Files
dongsheng123132 920fc06679 feat: add 10 China-optimized skills, auto-install via setup.sh
Skills (40KB total, in portable/skills-cn/):
- deepseek-helper: DeepSeek API usage and model selection
- china-weather: Chinese city weather via wttr.in
- xiaohongshu-writer: 小红书爆款笔记写作
- wechat-article: 微信公众号文章写作
- douyin-script: 抖音/快手短视频脚本
- bilibili-helper: B站内容优化
- china-search: 百度/搜狗/Bing国内搜索
- zhihu-writer: 知乎回答写作
- weibo-poster: 微博内容创作
- china-translate: 中英互译+本地化

setup.sh auto-copies skills-cn/ into OpenClaw skills directory.
No external dependency on ClawHub for these skills.
2026-03-12 15:48:17 +08:00

89 lines
2.1 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
name: china-weather
description: "中国城市天气查询 - 支持中文城市名、农历日期、wttr.in接口"
metadata: { "openclaw": { "emoji": "🌤️" } }
---
# 中国城市天气查询
通过 wttr.in 查询中国各城市天气信息,支持中文城市名输入,附带农历日期和生活建议。
## 功能概述
- **实时天气**: 通过 curl 调用 wttr.in 获取天气数据
- **中文城市名**: 支持直接输入"深圳"、"北京"等中文名
- **多日预报**: 支持当天及未来 3 天天气预报
- **农历日期**: 自动附带当天农历日期信息
- **生活指数**: 穿衣建议、出行提示、紫外线指数
## 查询方式
使用 Bash 工具执行以下命令格式:
```bash
# 基础查询(中文输出)
curl -s "wttr.in/深圳?lang=zh"
# 精简单行格式
curl -s "wttr.in/深圳?format=3&lang=zh"
# 仅今天的天气
curl -s "wttr.in/深圳?0&lang=zh"
# JSON 格式(便于解析)
curl -s "wttr.in/深圳?format=j1"
```
## 使用示例
### 查天气
```
深圳今天天气怎么样?
```
### 出行建议
```
明天要去杭州出差,需要带伞吗?
```
### 多城市对比
```
北京和上海这周末天气哪个好?想出去玩
```
### 穿衣建议
```
广州现在多少度?穿什么衣服合适?
```
## 适用场景
- 快速查询国内任意城市天气
- 出差/旅行前了解目的地天气
- 需要穿衣或出行建议
- 查看未来几天天气趋势
- 终端环境下无法打开天气 App 时
## 不适用场景
- 需要精确到小时的天气预报wttr.in 精度有限)
- 查询历史天气数据
- 需要灾害预警等官方气象信息(请使用中国气象局官网)
- 查询海外城市天气(本技能优化了中国城市名映射)
## 城市名映射
常见城市直接使用拼音或中文均可:
- 北京 → Beijing / 北京
- 上海 → Shanghai / 上海
- 深圳 → Shenzhen / 深圳
- 广州 → Guangzhou / 广州
如遇查询失败,尝试使用城市拼音替代中文名。
## 注意事项
- wttr.in 为免费服务,偶尔可能响应较慢
- 温度默认摄氏度,风速默认 km/h
- 数据来源为 WorldWeatherOnline仅供参考