Agent skill

china-weather

使用中国国家级公开天气数据查询中国天气。支持国家气象中心/中央气象台 nmc.cn、中国气象局天气页面 weather.cma.cn、中国天气网 weather.com.cn 的公开天气信息,覆盖城市实况、7 天预报、预警、空气质量、近期小时观测、未来逐小时预报、全国实况/预报地图、实况排行、雷达/卫星图层、全国预警列表、交通/环境/灾害/台风海洋/农业/数值预报等官方产品页;当用户需要判断未来具体时段是否下雨、出行、通勤、骑行、航班/高铁安排或天气风险时,按需返回可访问来源的数据、来源和发布时间。

valenovogithub.com/valenovoGitHub ↗
claude-codeships scripts
Install
npx skills add valenovo/ai-agent-skills --skill china-weather-agent-skill --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 8
SKILL.md size: 4 KB
Bundled scripts: yes
Path: china-weather-agent-skill/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 74
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 中国天气 ## 数据源策略 使用 `scripts/nmc_weather.py` 作为统一入口。不要在技能层规定哪个网站优先、哪个网站次要;当多个来源都返回数据时,保留各来源的字段、来源、发布时间和抓取时间,让调用智能体结合用户问题自行判断。 当用户问到未来具体小时段,例如“明天下午两点有没有雨”“几点开始下雨”“骑车路上会不会淋雨”,加 `--hourly-forecast`,脚本会返回 `https://www.weather.com.cn` 的未来逐小时预报数据。 `https://weather.cma.cn` 是中国气象局天气展示页面,可用 `cma-healthcheck`、`cma-city`、`cma-page` 或 `query --include-cma` 查询。这个站点在某些网络或客户端环境里可能被安全策略拦截或断开;如果返回 `ok:false`,保留失败状态,不要绕过拦截,也不要编造这个来源的数据。 不要抓取广告、访谈、社交组件、推荐服务或页面装饰。只保留可用于智能体判断的天气数据、官方产品文字、官方产品图片地址、来源和时间。 这个技能只提供结构化数据、来源、发布时间和风险字段。不要规定调用智能体的用户回复口吻、格式或固定话术;让调用智能体根据用户问题、记忆和人设自行组织回答。 如果来源不可访问、字段缺失或城市无法唯一解析,返回脚本给出的失败数据,不要编造天气值。 ## 快速使用 先查看能力和产品清单: ```bash python scripts/nmc_weather.py catalog python scripts/nmc_weather.py catalog --group 台风海洋 ``` 城市天气: ```bash python scripts/nmc_weather.py query 北京 python scripts/nmc_weather.py query 朝阳 --province 北京 python scripts/nmc_weather.py query 上海 --province 上海 --hourly-forecast --hourly-forecast-limit 96 python scripts/nmc_weather.py query 广州 --province 广东 --hourly-forecast --include-cma python scripts/nmc_weather.py query 北京 --daily-chart 7 --include-climate ``` 全国和区域数据: ```bash python scripts/nmc_weather.py map-weather --kind real --city 广州 --limit 20 python script

What's inside
Steps it walks through
  1. 数据源策略
  2. 快速使用
  3. 入口选择
  4. 数据使用契约
  5. 来源细节
Ships with 7 files
  • .gitignore
  • LICENSE
  • README.md
  • _meta.json
  • agents/openai.yaml
  • references/nmc-source.md
  • scripts/nmc_weather.py
Commands it runs
python scripts/nmc_weather.py catalog
python scripts/nmc_weather.py catalog --group 台风海洋
python scripts/nmc_weather.py query 北京
python scripts/nmc_weather.py query 朝阳 --province 北京
python scripts/nmc_weather.py query 上海 --province 上海 --hourly-forecast --hourly-forecast-limit 96
python scripts/nmc_weather.py query 广州 --province 广东 --hourly-forecast --include-cma
python scripts/nmc_weather.py query 北京 --daily-chart 7 --include-climate
python scripts/nmc_weather.py map-weather --kind real --city 广州 --limit 20
python scripts/nmc_weather.py map-weather --kind tomorrow --city 天津 --limit 20
python scripts/nmc_weather.py rank --type rain --hours 1 --limit 20
More from ai-agent-skills
All skills →
About this skill
What does the china-weather skill do?

使用中国国家级公开天气数据查询中国天气。支持国家气象中心/中央气象台 nmc.cn、中国气象局天气页面 weather.cma.cn、中国天气网 weather.com.cn 的公开天气信息,覆盖城市实况、7 天预报、预警、空气质量、近期小时观测、未来逐小时预报、全国实况/预报地图、实况排行、雷达/卫星图层、全国预警列表、交通/环境/灾害/台风海洋/农业/数值预报等官方产品页;当用户需要判断未来具体时段是否下雨、出行、通勤、骑行、航班/高铁安排或天气风险时,按需返回可访问来源的数据、来源和发布时间。

How do I install it?

Run `npx skills add valenovo/ai-agent-skills --skill china-weather-agent-skill --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From valenovo/ai-agent-skills, a repository with 74 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going