Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计提醒

caiyun-weather彩云天气

Agent Skill

caiyun-weather 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

321

周安装

13

GitHub Stars

公开资料未说明

下载量

101
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:caiyun-weather(彩云天气)
来源仓库:https://github.com/caiyunapp/skills
仓库路径:skills/caiyun-weather
安装命令:
npx skills add https://github.com/caiyunapp/skills --skill caiyun-weather
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/caiyunapp/skills --skill caiyun-weather

简介

caiyun-weather 调用彩云天气 API 获取指定坐标的实时与预报数据,支持小时级与每日预报。

  • 适用于需要集成天气信息的 Codex、Claude、Cursor、Gemini CLI 应用场景。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需配置 API token 与环境变量。
  • 使用前应确保坐标有效且凭证安全,避免暴露敏感密钥或越权访问。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Caiyun Weather

Prerequisites

1. $CAIYUN_WEATHER_API_TOKEN environment variable 2. ~/.config/caiyunapp/config.json — JSON key caiyun_weather_api_token

  • Requires coordinates. Ask for latitude and longitude if they are missing.

Quick Start

curl -s "https://api.caiyunapp.com/v2.6/${CAIYUN_WEATHER_API_TOKEN}/<lon>,<lat>/weather?hourlysteps=24&dailysteps=5&unit=metric:v2"

Workflow

  1. Confirm coordinates are available.
  2. Confirm credentials are available:

- Check $CAIYUN_WEATHER_API_TOKEN env var first. - If absent, read the config file: cat ~/.config/caiyunapp/config.json and extract caiyun_weather_api_token. - If both are missing, tell the user to set the env var or create the config file.

  1. Run the curl command with the resolved token:
curl -s "https://api.caiyunapp.com/v2.6/<token>/<lon>,<lat>/weather?hourlysteps=24&dailysteps=5&unit=metric:v2"
  1. Summarize results in this order when relevant:

- current conditions from result.realtime - near-term change from result.forecast_keypoint - 24-hour trend from result.hourly.description - daily highs, lows, or sky conditions from result.daily

  1. Return raw JSON only when the user asks for it.

Defaults

  • Returned values are interpreted using metric:v2 units (see Field Reference below).
  • Use hourlysteps=24 unless the user requests a different horizon.
  • Use dailysteps=5 unless the user requests a different day count.

Failure Handling

  • If credentials are missing, explain how to set CAIYUN_WEATHER_API_TOKEN or create ~/.config/caiyunapp/config.json with {"caiyun_weather_api_token": "<your_token>"}.
  • If coordinates are missing, ask for latitude and longitude.
  • If the API response status is not ok, report the HTTP status and API status payload.

Field Reference

Endpoint

GET https://api.caiyunapp.com/v2.6/{API_KEY}/{lon},{lat}/weather

Supported query parameters:

  • hourlysteps — number of hourly forecast steps (default: 24)
  • dailysteps — number of daily forecast steps (default: 5)

Key Response Fields

  • result.realtime: current conditions (temperature, humidity, wind, skycon, visibility, pressure, apparent_temperature, precipitation)
  • result.minutely: minute-level precipitation forecast for the next 2 hours
  • result.hourly: hourly forecast data (temperature, precipitation, wind, skycon, humidity, cloudrate, pressure, visibility)
  • result.daily: multi-day forecast data (temperature min/max, precipitation, wind, skycon, humidity, cloudrate, pressure, visibility, life_index)
  • result.forecast_keypoint: short-term highlight summary for the next 2 hours
  • result.hourly.description: longer 24-hour narrative string

Units (metric:v2)

FieldUnit
temperature°C
wind speedkm/h
wind direction0–360° clockwise from north
pressurePa
humidity0–1
cloudrate0–1
precipitation (realtime/minutely/hourly/daily)mm/h
visibilitykm

Skycon Codes

CodeChineseEnglish
CLEAR_DAY晴(白天)Clear day
CLEAR_NIGHT晴(夜间)Clear night
PARTLY_CLOUDY_DAY多云(白天)Partly cloudy day
PARTLY_CLOUDY_NIGHT多云(夜间)Partly cloudy night
CLOUDYCloudy
LIGHT_HAZE轻度雾霾Light haze
MODERATE_HAZE中度雾霾Moderate haze
HEAVY_HAZE重度雾霾Heavy haze
LIGHT_RAIN小雨Light rain
MODERATE_RAIN中雨Moderate rain
HEAVY_RAIN大雨Heavy rain
STORM_RAIN暴雨Storm rain
FOGFog
LIGHT_SNOW小雪Light snow
MODERATE_SNOW中雪Moderate snow
HEAVY_SNOW大雪Heavy snow
STORM_SNOW暴雪Storm snow
DUST浮尘Dust
SAND沙尘Sand
WIND大风Wind

Priority order: snow > rain > fog > sand > dust > haze > wind > cloudy > partly cloudy > clear.

Precipitation Intensity Thresholds

Hourly (mm/h)Minutely (mm/h)Meaning
< 0.0606< 0.08No rain or snow
0.0606–0.89890.08–3.44Light rain or snow
0.8989–2.873.44–11.33Moderate rain or snow
2.87–12.863811.33–51.30Heavy rain or snow
≥ 12.8638≥ 51.30Storm rain or snow

Wind Speed Scale (km/h)

LevelSpeed rangeDescription
0< 1Calm
11–5Light air
26–11Light breeze
312–19Gentle breeze
420–28Moderate breeze
529–38Fresh breeze
639–49Strong breeze
750–61High wind
862–74Gale
975–88Strong gale
1089–102Storm
11103–117Violent storm
12118–133Hurricane
13134–149Typhoon
14150–166Strong typhoon
15167–183Strong typhoon
16184–201Super typhoon
17202–220Super typhoon

Wind Direction (16-point)

DirectionDegrees
N348.76–11.25
NNE11.26–33.75
NE33.76–56.25
ENE56.26–78.75
E78.76–101.25
ESE101.26–123.75
SE123.76–146.25
SSE146.26–168.75
S168.76–191.25
SSW191.26–213.75
SW213.76–236.25
WSW236.26–258.75
W258.76–281.25
WNW281.26–303.75
NW303.76–326.25
NNW326.26–348.75

Life Index Keys

KeyScaleMeaning
ultravioletrealtime: 0–11; daily: 1–5UV index, from none to extreme
dressing0–8Dressing recommendation, from very hot to extremely cold
comfort0–13Comfort index, from muggy to dry cold
coldRisk1–4Cold risk, from low chance to very high chance
carWashing1–4Car washing suitability, from suitable to unsuitable

Sources

Examples

Current Weather

Prompt:

查一下北京 116.3176,39.9760 现在的天气

Command:

curl -s "https://api.caiyunapp.com/v2.6/${CAIYUN_WEATHER_API_TOKEN}/116.3176,39.9760/weather?hourlysteps=24&dailysteps=5&unit=metric:v2"

Response style:

北京当前多云,气温 27C,体感 29C,湿度 68%。未来两小时天气平稳,24 小时内以多云到小雨为主。

Next 2 Hours Rain

Prompt:

看看 121.4737,31.2304 未来两小时会不会下雨

Command:

curl -s "https://api.caiyunapp.com/v2.6/${CAIYUN_WEATHER_API_TOKEN}/121.4737,31.2304/weather?hourlysteps=2&dailysteps=1&unit=metric:v2"

Response style:

未来两小时重点提示:短时有小雨概率。优先参考 forecast_keypoint,其次再补充分钟级降水强度或概率。

24-Hour Forecast

Prompt:

给我 114.0579,22.5431 未来 24 小时天气趋势

Command:

curl -s "https://api.caiyunapp.com/v2.6/${CAIYUN_WEATHER_API_TOKEN}/114.0579,22.5431/weather?hourlysteps=24&dailysteps=3&unit=metric:v2"

Response style:

未来 24 小时整体描述:白天多云,夜间有阵雨。回答时优先使用 hourly.description,再补充温度变化、降水和风力趋势。

Daily Forecast

Prompt:

查 113.2644,23.1291 未来 5 天天气

Command:

curl -s "https://api.caiyunapp.com/v2.6/${CAIYUN_WEATHER_API_TOKEN}/113.2644,23.1291/weather?hourlysteps=24&dailysteps=5&unit=metric:v2"

Response style:

未来 5 天最高温 29-33C,最低温 22-26C,前两天多云,后续有阵雨。按天给出高低温、skycon 和必要的降水提示。

Life Index

Prompt:

看下 104.0665,30.5728 的生活指数,重点说穿衣和紫外线

Command:

curl -s "https://api.caiyunapp.com/v2.6/${CAIYUN_WEATHER_API_TOKEN}/104.0665,30.5728/weather?hourlysteps=24&dailysteps=5&unit=metric:v2"

Response style:

先报告当前或近天的 life index 字段,再按 Field Reference 的等级说明解释 dressing、ultraviolet、comfort、coldRisk、carWashing。

Weather Code Interpretation

Prompt:

返回里的 skycon 是 LIGHT_RAIN 和 CLOUDY,分别是什么意思

Response style:

根据 Field Reference 解释 skycon 代码的含义,并在需要时补充降水强度阈值或天气现象优先级。

Missing Coordinates

Prompt:

帮我查杭州天气

Response style:

当前 skill 需要经纬度。先向用户索要 latitude 和 longitude,或者让用户提供一个已经解析好的坐标。

Missing API Key

Prompt:

用 Caiyun Weather Skill 查 120.1551,30.2741 的天气

Response style:

如果 CAIYUN_WEATHER_API_TOKEN 未设置且 ~/.config/caiyunapp/config.json 不存在,直接说明缺少凭据,并告诉用户设置环境变量或创建配置文件后再重试。

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.85%
按下载量换算38

Claude

29.35%
按下载量换算30

Cursor

17.14%
按下载量换算17

Gemini CLI

8.84%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills