天气

v1.0.0

获取天气预报和气温信息。使用场景:用户询问天气、温度、降雨、出行建议等。支持通过 wttr.in 查询全球城市天气,无需 API Key。

0· 184·0 current·0 all-time
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
The name/description state it will fetch current weather and forecasts via wttr.in. The SKILL.md only contains curl examples against wttr.in and format codes that match the stated purpose.
Instruction Scope
Runtime instructions tell the agent to make HTTP requests to wttr.in using curl and specific query formats. The instructions do not read local files, environment secrets, or contact any endpoints other than wttr.in. Minor mismatch: the skill metadata lists no required binaries while the instructions rely on curl being available (this is an operational omission, not a security red flag).
Install Mechanism
No install spec and no code files — instruction-only. Nothing is downloaded or written to disk.
Credentials
No environment variables, credentials, or config paths are requested. That aligns with a public, no-API-key weather lookup service.
Persistence & Privilege
always is false and the skill is user-invocable. It does not request persistent installation or elevated platform privileges.
Assessment
This skill is simple and coherent: it runs HTTP queries to wttr.in (examples use curl) to get weather. Before installing, ensure your agent/runtime can make outbound HTTP requests and has curl (or adapt the instructions to use another HTTP client). There are no credentials requested, but be aware queries include city/location names — if users consider location sensitive, limit who can invoke the skill or block outbound network calls. Also respect wttr.in's rate limits to avoid being throttled.

Like a lobster shell, security has layers — review code before you run it.

latestvk97bca55frsverhmmta68jzqzh833hnv
184downloads
0stars
1versions
Updated 1mo ago
v1.0.0
MIT-0

天气查询技能

获取指定城市的当前天气和未来预报。

使用场景

适用:

  • "今天天气怎么样?"
  • "明天会下雨吗?"
  • "北京/上海天气"
  • "周末出行要带伞吗?"
  • 查询任意城市气温

不适用:

  • 历史天气数据
  • 极端天气预警(请查询气象局)
  • 气象数据分析

查询方式

当前天气

# 简洁格式
curl "wttr.in/北京?format=3"

# 详细当前天气
curl "wttr.in/北京?0"

预报查询

# 3天预报
curl "wttr.in/北京"

# 周预报
curl "wttr.in/北京?format=v2"

常用格式

# 城市+天气+温度+体感
curl -s "wttr.in/北京?format=%l:+%c+%t+(体感%f)"

# 是否下雨
curl -s "wttr.in/北京?format=%l:+%c+%p"

格式代码

  • %c — 天气状况emoji
  • %t — 温度
  • %f — 体感温度
  • %w — 风速
  • %h — 湿度
  • %p — 降水量
  • %l — 地点

快速示例

查询上海天气:

curl -s "wttr.in/上海?format=%l:+%c+%t+(体感%f),+%w风,+%h湿度"

查询明天会不会下雨:

curl -s "wttr.in/广州?1&format=%c+%p"

支持格式

  • 支持城市名:curl wttr.in/深圳
  • 支持拼音:curl wttr.in/Shenzhen
  • 支持机场代码:curl wttr.in/PEK
  • 支持中文:curl wttr.in/东京?format=3

注意事项

  • 无需 API Key
  • 有请求频率限制,请勿频繁刷请求
  • 支持全球主要城市
  • 网络不稳定时可能需要重试

Comments

Loading comments...