← 返回 Skills 市场
227
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install 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...
使用说明 (SKILL.md)
KnowAir Forecast — Hourly & Daily Weather Forecasts
Query detailed hourly and daily weather forecasts for any location using the Caiyun Weather API.
Prerequisites
- A valid Caiyun Weather API token set as
CAIYUN_TOKENenvironment variable, or stored in~/.config/knowair/token. - 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
- Resolve coordinates — convert city name to longitude and latitude if needed.
- Choose forecast type —
hourlyordaily. - Run the script:
python3 scripts/query_forecast.py --lng \x3CLNG> --lat \x3CLAT> --type \x3CTYPE> - 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
- examples.md — usage examples
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install knowair-air-quality - 安装完成后,直接呼叫该 Skill 的名称或使用
/knowair-air-quality触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
常见问题
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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 227 次。
如何安装 KnowAir Air Quality 明气空气质量?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install knowair-air-quality」即可一键安装,无需额外配置。
KnowAir Air Quality 明气空气质量 是免费的吗?
是的,KnowAir Air Quality 明气空气质量 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
KnowAir Air Quality 明气空气质量 支持哪些平台?
KnowAir Air Quality 明气空气质量 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 KnowAir Air Quality 明气空气质量?
由 Shuo Wang(@shuowang-ai)开发并维护,当前版本 v1.0.0。
推荐 Skills