weather-forecast
Skill5 starsChanged 3 months agoApache-2.0View on GitHub
查天气预报。香港用香港天文台官方 API(最准、秒回),全球用 Open-Meteo(免 key)。当用户说"天气"、"天气预报"、"今天天气"、"明天天气"、"几天天气"、"会不会下雨"、"weather"、"forecast"、"香港天气"、"某城市天气"等关键词时触发。
3 other projects use a version of this.
Adopted by
Most recently taken up by
- sudeepban/claude-skillstheir own version, first seen Oct 20, 2026
- runxhq/runxtheir own version, first seen Oct 13, 2026
- ianalloway/openclaw-skillstheir own version, first seen Jun 26, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- runxhq/runx★ 97same name
- ianalloway/openclaw-skills★ 4same name
- sudeepban/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository54 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- agent-teamsSkill
- bilibili-channelSkill
- bot-configSkill
- browser-cliSkill
- bwrap-bypassSkill
- cc-pages-backupSkill
- chat-styleSkill
- chinese-dictationSkill
- code-wiki-reconSkill
- deck-builderSkill
- docx-form-fillerSkill
- evolutionSkill
- explainer-distillSkill
- feishu-bitableSkill
- feishu-docSkill
- feishu-mailSkill
- feishu-sheetSkill
- feishu-user-msgSkill
- fireworks-tech-graphSkill
- frontend-slidesSkill
- gemini-ui-reviewerSkill
- hk-busSkill
- hk-share-award-tax-dipn38Skill
- imagen-generatorSkill
- issue-handlerSkill
- lecture-videoSkill
- lecture-voiceSkill
- lesson-read-aloudSkill
- live-canvasSkill
- lustre-mounterSkill
- manim-teaching-figuresSkill
- math-video-tutorSkill
- memory-gcSkill
- memory-lintSkill
- multimodal-explainerSkill
- music-generatorSkill
- notifySkill
- page-styleSkill
- paper-explainerSkill
- session-handoffSkill
- skill-creatorSkill
- smoke-testSkill
- study-materialSkill
- tmux-installerSkill
- tmux-orchestratorSkill
- tpuguruSkill
- tts-generatorSkill
- veo-generatorSkill
- vscode-referenceSkill
- wechat-readerSkill
- wikiSkill
- youtube-channelSkill
- zsh-installerSkill
The file
Files
天气预报
多源快速天气查询。优先用免费、秒回、无需 key 的官方数据源。
触发条件
- "天气"、"天气预报"、"今天/明天天气"、"九天天气"、"会不会下雨"
- "香港天气"、"东京天气"、"<城市>天气"
- "weather"、"forecast"
用法
python3 ~/.claude/skills/weather-forecast/scripts/weather.py # 默认香港
python3 ~/.claude/skills/weather-forecast/scripts/weather.py hk # 香港天文台
python3 ~/.claude/skills/weather-forecast/scripts/weather.py "Tokyo" # 任意城市
python3 ~/.claude/skills/weather-forecast/scripts/weather.py 22.3 114.17 # 经纬度
python3 ~/.claude/skills/weather-forecast/scripts/weather.py hk --json # 原始 JSON脚本已格式化好输出,直接转述给用户即可(聊天平台保持简洁,长预报可裁剪到 3-5 天)。
数据源说明
默认启用(免费、无需 key)
| 源 | 用途 | 端点 | 认证 |
| 香港天文台 HKO | 香港地区(最准) | data.weather.gov.hk/weatherAPI/opendata/weather.php | 无 |
| Open-Meteo | 全球任意地点 | api.open-meteo.com/v1/forecast | 无 |
HKO dataType 参数:
flw本港地区天气预报(今明)fnd九天天气预报rhrread实时天气(气温/湿度/雨量/各区)warnsum现行警告摘要swt特别天气提示- lang:
tc(繁) /sc(简) /en(英)
天气图标:HKO 返回 ForecastIcon 编号,对应 https://www.hko.gov.hk/images/HKOWxIconOutline/pic{编号}.png
可选源(需配 key,默认未启用)
Apple WeatherKit — 苹果天气同款数据源(聚合多家气象局,含 HKO)。
- 端点:
weatherkit.apple.com/api/v1/weather/{lang}/{lat}/{lon} - 认证:Apple Developer 账号($99/年)签 ES256 JWT
- 免费额度:50 万次/月
- 苹果天气 App 自 2022 起就用 WeatherKit(取代 2020 收购的 Dark Sky)
Google Weather API(Maps Platform,2025 GA)
- 端点:
weather.googleapis.com/v1/currentConditions:lookup、/forecast/days:lookup、/forecast/hours:lookup - 认证:GCP API key(
?key=) - 计费:按量,有免费额度
墨迹天气 — 无免费公开 API,走 B2B 商业授权(企业版/开放平台),需付费商务合作。香港地区数据不如天文台准,不推荐个人使用。
要启用 WeatherKit/Google,在 scripts/weather.py 加对应 fetch 函数并把 key 放环境变量;本 skill 默认不依赖任何 key,开箱即用。
为什么之前网页访问慢
天文台官网 hko.gov.hk 是渲染页(含大量 JS/图表),抓取慢。换成上面的 opendata JSON API 直连即可秒回(实测各端点几百毫秒)。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

