kellyvv/openher/weather

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

查询中国城市天气(免费,无需API密钥)。支持城市名查天气。

Install

npx vskill@latest install kellyvv/openher/weather

SKILL.md

Weather

使用 t.weather.sojson.com 免费 API 查询天气。返回 JSON,包含温度、湿度、风向等。

城市代码映射

常用城市代码(citykey):

  • 北京: 101010100
  • 上海: 101020100
  • 广州: 101280101
  • 深圳: 101280601
  • 杭州: 101210101
  • 成都: 101270101
  • 武汉: 101200101
  • 南京: 101190101
  • 重庆: 101040100
  • 西安: 101110101
  • 天津: 101030100
  • 苏州: 101190401
  • 长沙: 101250101
  • 厦门: 101230201

Rules for generating commands

  1. User specifies a city → 查找对应的 citykey,使用 API 查询
  2. No city specified → 默认使用北京 (101010100)
  3. Always add `--connect-timeout 5` to prevent hanging
  4. Always add a fallback with || — if curl fails, echo an error message
  5. 用 jq 或 python 提取关键数据(如没有 jq,直接返回原始 JSON 也可以)

Patterns

基本查询(返回精简数据)
bash
curl -s --connect-timeout 5 "http://t.weather.sojson.com/api/weather/city/101010100" | python3 -c "
import sys,json
d=json.load(sys.stdin)
if d.get('status')==200:
ci=d['cityInfo']
t=d['data']
f=t['forecast'][0]
print(f\"{ci['city']} {f['ymd']} {f['week']}\")
print(f\"天气: {f['type']} | {f['low']}~{f['high']}\")
print(f\"湿度: {t['shidu']} | 风: {f['fx']}{f['fl']}\")
print(f\"PM2.5: {t['pm25']} 空气: {t['quality']}\")
print(f\"提示: {t['ganmao']}\")
else:
print('天气查询失败')
" || echo "天气查询暂时不可用,请稍后再试"
上海天气
bash
curl -s --connect-timeout 5 "http://t.weather.sojson.com/api/weather/city/101020100" | python3 -c "
import sys,json
d=json.load(sys.stdin)
if d.get('status')==200:
ci=d['cityInfo']
t=d['data']
f=t['forecast'][0]
print(f\"{ci['city']} {f['ymd']} {f['week']}\")
print(f\"天气: {f['type']} | {f['low']}~{f['high']}\")
print(f\"湿度: {t['shidu']} | 风: {f['fx']}{f['fl']}\")
print(f\"PM2.5: {t['pm25']} 空气: {t['quality']}\")
print(f\"提示: {t['ganmao']}\")
else:
print('天气查询失败')
" || echo "天气查询暂时不可用,请稍后再试"

Important notes

  • API 免费,无需注册和密钥
  • 返回中文数据,适合中文 persona 直接使用
  • 如果用户说的城市不在上面的列表中,用最接近的大城市代替,或直接告诉用户暂不支持该城市
  • || echo "..." 确保 stdout 不为空

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
266
Repository forks
21
7-day trend score
28

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 2 Jul 2026, 3 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/kellyvv/openher/weather/badge)](https://verified-skill.com/skills/kellyvv/openher/weather)

Something wrong with this skill or its page? Tell us.