English | 简体中文
Installable Agent Skills for querying the Caiyun Weather API.
Installable skill packages live under skills/. Installation uses npx skills add.
Before anything, ensure you have access to the API. You can apply for it at https://docs.caiyunapp.com/weather-api/.
The script reads credentials in this order:
CAIYUN_WEATHER_API_TOKENenvironment variable$XDG_CONFIG_HOME/caiyunapp/config.json(falls back to~/.config/caiyunapp/config.jsonifXDG_CONFIG_HOMEis not set)
Create ~/.config/caiyunapp/config.json (or $XDG_CONFIG_HOME/caiyunapp/config.json):
{
"caiyun_weather_api_token": "your-key"
}This is useful when environment setup is inconvenient, but keep in mind the key is stored as plaintext on disk.
GitHub:
npx skills add https://github.com/caiyunapp/skills| Skill | Description |
|---|---|
caiyun-weather |
Query Caiyun comprehensive weather data by latitude and longitude. Returns realtime weather, short-term weather guidance, hourly forecast, daily forecast, life index cues, and weather code interpretation. |