← Back to Skills Marketplace
shuowang-ai

KnowAir Air Quality 明气空气质量

by Shuo Wang · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
227
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install knowair-air-quality
Description
Get hourly (up to 360 hours) and daily (up to 15 days) weather forecasts by latitude and longitude via the Caiyun Weather API. Returns temperature trends, we...
README (SKILL.md)

KnowAir Forecast — Hourly & Daily Weather Forecasts

Query detailed hourly and daily weather forecasts for any location using the Caiyun Weather API.

Prerequisites

  1. A valid Caiyun Weather API token set as CAIYUN_TOKEN environment variable, or stored in ~/.config/knowair/token.
  2. Coordinates (longitude, latitude) for the target location.

Quick Start

python3 scripts/query_forecast.py --lng 116.3176 --lat 39.9760 --type daily --days 7

Workflow

  1. Resolve coordinates — convert city name to longitude and latitude if needed.
  2. Choose forecast typehourly or daily.
  3. Run the script:
    python3 scripts/query_forecast.py --lng \x3CLNG> --lat \x3CLAT> --type \x3CTYPE>
    
  4. Present results — highlight temperature ranges, precipitation probability, and notable weather changes.

Options

Flag Description Default
--lng Longitude (-180 to 180) Required
--lat Latitude (-90 to 90) Required
--type hourly or daily daily
--hours Hours to forecast (1-360, hourly mode) 48
--days Days to forecast (1-15, daily mode) 7
--detail-level Display density 0-6 (0=auto, 1=every hour, etc.) 0
--lang Output language: en or zh en

Defaults

  • Forecast type: daily
  • Days: 7, Hours: 48
  • Detail level: auto (0)
  • Language: en

Failure Handling

  • Missing token → exit code 2 with setup instructions.
  • API error → exit code 1 with error details.
  • Network unreachable → suggest the user check connectivity.

Additional Resources

Usage Guidance
This skill appears to be a straightforward Caiyun weather client. Before installing: 1) Confirm you trust the skill source (source/homepage are unknown). 2) Be aware it requires a Caiyun API token (CAIYUN_TOKEN); the script will also read ~/.config/knowair/token if the env var is not set—remove or secure any token file you don't want the skill to read. 3) The script makes network requests only to api.caiyunapp.com; if you need stronger isolation, run it in a sandbox. 4) If you expect automatic geocoding from city names, note the script requires explicit lng/lat (you or the agent must resolve names separately). If any of the above are unacceptable, do not install or provide your token.
Capability Analysis
Type: OpenClaw Skill Name: knowair-air-quality Version: 1.0.0 The skill is a standard implementation for querying weather forecasts from the Caiyun Weather API. The core logic in `scripts/query_forecast.py` uses Python's standard library to perform HTTP requests and handle API tokens via environment variables or a local configuration file (~/.config/knowair/token). No evidence of data exfiltration, malicious execution, or prompt injection was found.
Capability Assessment
Purpose & Capability
Name/description match the code and runtime instructions. The script implements hourly/daily forecasts using the Caiyun API and requires python3 and CAIYUN_TOKEN — both appropriate for this purpose. Note: the SKILL.md mentions resolving city names to coordinates but the included script requires explicit lng/lat inputs (geocoding is not implemented in the script). This is a minor documentation gap, not a functional mismatch.
Instruction Scope
Runtime instructions only direct running the included Python script and presenting forecast output. The script makes HTTP GET requests to https://api.caiyunapp.com and prints JSON results. It reads only the CAIYUN_TOKEN environment variable (with a local fallback file) and does not reference other system credentials, unusual files, or external endpoints. Network access is required and explicitly declared.
Install Mechanism
No install spec (instruction-only) and included code is small and straightforward. Nothing is downloaded from arbitrary URLs or installed from untrusted package sources. Risk from installation is low.
Credentials
The skill requires a single credential (CAIYUN_TOKEN), which is proportionate. However, the script falls back to reading ~/.config/knowair/token if the env var is absent; the registry metadata declared no required config paths, so this local-file access is not documented in the metadata. This is a minor inconsistency to be aware of.
Persistence & Privilege
The skill is not always-included and does not request elevated or persistent platform privileges. It does not modify other skills or system-wide settings. Autonomous invocation is enabled by default (normal for skills) but not elevated.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install knowair-air-quality
  3. After installation, invoke the skill by name or use /knowair-air-quality
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of knowair-forecast for weather forecasting. - Provides hourly (up to 360 hours) and daily (up to 15 days) forecasts by latitude and longitude using the Caiyun Weather API. - Returns temperature trends, conditions, precipitation probability, wind, humidity, and life indices. - Supports both English and Chinese output; configurable detail levels. - Requires a Caiyun API token and coordinates as input. - Includes options for forecast length, forecast type, and output format.
Metadata
Slug knowair-air-quality
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is KnowAir Air Quality 明气空气质量?

Get hourly (up to 360 hours) and daily (up to 15 days) weather forecasts by latitude and longitude via the Caiyun Weather API. Returns temperature trends, we... It is an AI Agent Skill for Claude Code / OpenClaw, with 227 downloads so far.

How do I install KnowAir Air Quality 明气空气质量?

Run "/install knowair-air-quality" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is KnowAir Air Quality 明气空气质量 free?

Yes, KnowAir Air Quality 明气空气质量 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does KnowAir Air Quality 明气空气质量 support?

KnowAir Air Quality 明气空气质量 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created KnowAir Air Quality 明气空气质量?

It is built and maintained by Shuo Wang (@shuowang-ai); the current version is v1.0.0.

💬 Comments