天气增强

weather-plus

by anmu14641

获取全球城市天气信息和预报。使用场景包括查询当前天气、未来7天预报、空气质量、穿衣建议等。适用于用户问天气、温度、预报等。

4.5k其他未扫描2026年4月20日

安装

claude skill add --url https://github.com/openclaw/skills

文档

天气查询 Skill

获取全球城市天气信息和详细预报。

数据来源

  • wttr.in — 全球城市天气,无 API Key 需要
  • Open-Meteo — 免费天气预报 API,支持 7 天预报

使用方式

1. 查询当前天气

用户可能问:

  • "今天天气怎么样?"
  • "现在多少度?"
  • "北京今天冷吗?"

执行流程:

  1. 提取城市名称
  2. 使用 wttr.in 获取天气数据
  3. 提取温度、天气状况、湿度、风力
  4. 返回简洁的天气报告

2. 查询天气预报

用户可能问:

  • "明天会下雨吗?"
  • "这周末天气如何?"
  • "下周一的天气怎么样?"
  • "东京未来7天天气"

执行流程:

  1. 确定查询的天数(1-7天)
  2. 调用 wttr.in 或 Open-Meteo 获取预报
  3. 整理每日最高/最低温度、天气状况
  4. 返回预报列表

3. 详细气象信息

用户可能问:

  • "湿度多少?"
  • "风力几级?"
  • "空气质量怎么样?"
  • "日出日落时间?"

执行流程:

  1. 获取完整天气数据(JSON 格式)
  2. 提取相关气象要素
  3. 格式化输出

4. 穿衣建议

用户可能问:

  • "明天穿什么?"
  • "去三亚需要带什么?"
  • "哈尔滨冬天穿什么?"

执行流程:

  1. 获取温度范围和天气状况
  2. 根据温度给出穿衣建议
  3. 提醒是否需要带伞、防晒等

5. 多城市对比

用户可能问:

  • "北京和上海天气对比"
  • "这几个城市哪个更暖和?"

执行流程:

  1. 提取多个城市名称
  2. 并行获取各城市天气
  3. 对比分析后返回

输出格式

当前天气

code
🌤️ 北京今日天气
- 温度:15°C
- 体感:13°C
- 天气:晴
- 湿度:45%
- 风力:东北风 3级
- 空气质量:良

天气预报

code
📅 北京天气预报 (3月17日-19日)

3月17日(周一)☀️ 晴
- 最高 18°C | 最低 8°C
- 风向:北风 2级

3月18日(周二)🌤️ 多云
- 最高 16°C | 最低 10°C
- 风向:东南风 3级

3月19日(周三)🌧️ 小雨
- 最高 14°C | 最低 9°C
- 降水概率:60%

穿衣建议

code
👕 穿衣建议(北京,3月17日)
- 建议:长袖衬衫 + 薄外套
- 早晚温差较大,建议带件外套
- 无需带伞,适宜外出

注意事项

  • wttr.in 在国内访问可能不稳定,可备用 Open-Meteo
  • 预报准确度随天数递减,3天内较准确
  • 极端天气请查询官方气象预警
  • 部分小城市可能无法查询

相关 Skills

Claude API

by anthropic

热门

Build, debug, and optimize Claude API / Anthropic SDK apps. Apps built with this skill should include prompt caching. Also handles migrating existing Claude API code between Claude model versions (4.5 → 4.6, 4.6 → 4.7, retired-model replacements). TRIGGER when: code imports `anthropic`/`@anthropic-ai/sdk`; user asks for the Claude API, Anthropic SDK, or Managed Agents; user adds/modifies/tunes a Claude feature (caching, thinking, compaction, tool use, batch, files, citations, memory) or model (Opus/Sonnet/Haiku) in a file; questions about prompt caching / cache hit rate in an Anthropic SDK project. SKIP: file imports `openai`/other-provider SDK, filename like `*-openai.py`/`*-generic.py`, provider-neutral code, general programming/ML.

其他
安全147.7k

并行代理

by axelhu

热门

Use when facing 2 or more independent tasks that can be worked on without shared state - dispatches parallel subagents using sessions_spawn for concurrent investigation and execution, adapted for OpenClaw

其他
未扫描4.5k

高光制作器

by bwbernardweston18

热门

>

其他
未扫描4.5k

评论