10-of-my-most-popular-text-to-image-series-prompts-78b0897e
generate a bunch of images, then you curate the results to handpick the best ones
天气查询技能(增强版)
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
SkillHub CLI
skillhub install chenchaoqun/weather-plus-cn打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。
将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。
从中国天气网获取权威天气数据,提供穿衣建议和生活指数参考。
✅ 使用此技能:
❌ 不使用此技能:
# 获取北京天气
web_fetch --url "http://www.weather.com.cn/weather/101010100.shtml" --maxChars 8000
# 获取黄冈天气
web_fetch --url "http://www.weather.com.cn/weather/101200401.shtml" --maxChars 8000
# 基本用法
python scripts/weather_query.py <city_code>
# 示例
python scripts/weather_query.py 101010100 # 北京
python scripts/weather_query.py 101280101 # 广州
# 一行式天气
curl -s "wttr.in/Beijing?format=3"
# 详细信息
curl -s "wttr.in/Beijing?0"
常见城市代码见 references/city_codes.md。
| 城市 | 代码 | 城市 | 代码 |
|---|---|---|---|
| 北京 | 101010100 | 上海 | 101020100 |
| 广州 | 101280101 | 深圳 | 101280601 |
| 武汉 | 101200101 | 杭州 | 101210101 |
| 成都 | 101270101 | 西安 | 101110101 |
| 黄冈 | 101200401 |
根据平均温度自动生成建议:
| 平均温度 | 建议 |
|---|---|
| ≥28℃ | 短袖、短裤、裙子等夏季服装 |
| 22-28℃ | 薄衬衫、T 恤、薄外套等春秋服装 |
| 15-22℃ | 外套、毛衣、薄夹克等 |
| 8-15℃ | 厚外套、毛衣、风衣等保暖服装 |
| 0-8℃ | 厚羽绒服、棉衣、保暖内衣等冬季服装 |
| <0℃ | 厚羽绒服、棉衣、帽子围巾手套等隆冬装备 |
references/city_codes.md
使用 web_fetch 获取天气网页...
这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。
# 天气查询技能(增强版) 从中国天气网获取权威天气数据,提供穿衣建议和生活指数参考。 ## 何时使用 ✅ **使用此技能:** - "今天北京天气如何?" - "查询上海天气并给出穿衣建议" - "这周末广州会下雨吗?" - "明天需要带伞吗?" - 出行前的天气准备查询 ❌ **不使用此技能:** - 历史天气数据查询 - 气候趋势分析 - 专业气象数据(航空、海洋等) - 海外城市天气(使用 wttr.in) ## 快速开始 ### 方式一:使用 web_fetch 获取天气数据(推荐) ```bash # 获取北京天气 web_fetch --url "http://www.weather.com.cn/weather/101010100.shtml" --maxChars 8000 # 获取黄冈天气 web_fetch --url "http://www.weather.com.cn/weather/101200401.shtml" --maxChars 8000 ``` ### 方式二:使用 Python 脚本 ```bash # 基本用法 python scripts/weather_query.py <city_code> # 示例 python scripts/weather_query.py 101010100 # 北京 python scripts/weather_query.py 101280101 # 广州 ``` ### 方式三:直接访问 wttr.in(快速查询) ```bash # 一行式天气 curl -s "wttr.in/Beijing?format=3" # 详细信息 curl -s "wttr.in/Beijing?0" ``` ## 城市代码 常见城市代码见 `references/city_codes.md`。 ### 主要城市速查 | 城市 | 代码 | 城市 | 代码 | |------|------|------|------| | 北京 | 101010100 | 上海 | 101020100 | | 广州 | 101280101 | 深圳 | 101280601 | | 武汉 | 101200101 | 杭州 | 101210101 | | 成都 | 101270101 | 西安 | 101110101 | | 黄冈 | 101200401 | | | ## 穿衣建议规则 根据平均温度自动生成建议: | 平均温度 | 建议 | |---------|------| | ≥28℃ | 短袖、短裤、裙子等夏季服装 | | 22-28℃ | 薄衬衫、T 恤、薄外套等春秋服装 | | 15-22℃ | 外套、毛衣、薄夹克等 | | 8-15℃ | 厚外套、毛衣、风衣等保暖服装 | | 0-8℃ | 厚羽绒服、棉衣、保暖内衣等冬季服装 | | <0℃ | 厚羽绒服、棉衣、帽子围巾手套等隆冬装备 | ### 特殊天气补充 - **雨天/雪天**:携带雨具,穿防滑防水鞋子 - **雪天 + 低温**:路面可能结冰,注意防滑 - **雾天/霾天**:注意交通安全,敏感人群佩戴口罩 ## 完整工作流程 ### 步骤 1:确定城市代码 - 已知代码 → 直接使用 - 未知代码 → 查阅 `references/city_codes.md` - 特殊城市 → 访问 weather.com.cn 查询 ### 步骤 2:获取天气数据 使用 web_fetch 获取天气网页...
generate a bunch of images, then you curate the results to handpick the best ones
generate a bunch of images, then you curate the results to handpick the best ones
Productivity system based on Maya calendar with 13 natural tones for project management and personal development
Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.