← 返回 Skills 市场
57
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install moji-weather
功能描述
中国天气查询技能,使用墨迹天气和 MSN 天气作为数据源,支持国内城市天气查询。 当用户询问天气、温度、预报时使用此技能。 覆盖内置 weather 技能,强制使用国内数据源,避免 wttr.in 等国外 API 的访问问题。
使用说明 (SKILL.md)
天气查询 — 中国数据源版
⚠️ 本技能覆盖内置 weather 技能,强制使用国内数据源,解决 wttr.in/Open-Meteo 在国内的访问问题。
🎯 什么时候使用
立即触发:
- 用户问"今天天气怎么样"、"明天会下雨吗"
- 用户提到城市名 + "天气"、"温度"、"下雨"
- 用户问"需要带伞吗"、"适合出门吗"
- 用户需要多日天气预报
不要触发:
- 历史天气数据查询
- 气象学专业分析
- 国外城市天气(内置 weather 技能可以处理)
⛔ 禁止事项
- ❌ 禁止使用
wttr.in、Open-Meteo或任何国外天气 API - ❌ 禁止用
curl直接获取天气数据 - ❌ 禁止凭记忆或猜测生成天气数据
- ❌ 禁止回复未经验证的天气信息
✅ 数据源
1. 墨迹天气(首选)
| 项目 | 内容 |
|---|---|
| 首页 | https://tianqi.moji.com/ |
| 城市页 | https://tianqi.moji.com/weather/省份/城市/区县 |
URL 规则:
- 省份、城市、区县名称使用拼音小写
- 用
/分隔,最多三级:/weather/province/city/district - 如果区县级查不到,降级到城市级
常用城市 URL 示例:
| 城市 | URL |
|---|---|
| 佛山顺德 | https://tianqi.moji.com/weather/guangdong/foshan/shunde |
| 上海闵行 | https://tianqi.moji.com/weather/shanghai/shanghai/minhang |
| 北京 | https://tianqi.moji.com/weather/beijing/beijing |
| 广州 | https://tianqi.moji.com/weather/guangdong/guangzhou |
| 深圳 | https://tianqi.moji.com/weather/guangdong/shenzhen |
| 杭州 | https://tianqi.moji.com/weather/zhejiang/hangzhou |
| 成都 | https://tianqi.moji.com/weather/sichuan/chengdu |
| 武汉 | https://tianqi.moji.com/weather/hubei/wuhan |
| 南京 | https://tianqi.moji.com/weather/jiangsu/nanjing |
| 重庆 | https://tianqi.moji.com/weather/chongqing/chongqing |
2. MSN 天气(备选/交叉验证)
| 项目 | 内容 |
|---|---|
| 地址 | https://www.msn.cn/zh-cn/weather/ |
| 用途 | 墨迹天气数据异常时的备选源 |
| 特点 | 需要浏览器渲染,数据来自 AccuWeather |
🔄 操作流程
标准查询流程
用户问天气 → 构造墨迹天气 URL → browser 打开 → 截图/提取数据 → 整理回复
Step 1: 构造 URL 根据用户提到的城市,构造墨迹天气 URL:
- 将中文城市名转换为拼音
- 格式:
https://tianqi.moji.com/weather/{province}/{city}/{district} - 不确定区县时,只用省市两级
Step 2: 浏览器获取数据
browser → open → {URL}
browser → snapshot → 提取天气信息
如果需要可视化截图:
browser → screenshot → 发送给户
Step 3: 整理回复 提取以下关键信息:
- 当前温度、天气状况(晴/阴/雨/雪)
- 今日最高/最低温度
- 空气质量指数(AQI)
- 风力风向
- 未来 3-5 天预报(如有)
Step 4: 回复用户 格式参考:
📍 {城市} 天气
🌡️ 当前: {温度}°C {天气状况}
📊 今日: {最低}°C ~ {最高}°C
💨 风力: {风力描述}
🌫️ AQI: {空气质量指数} {等级}
📅 未来几天:
明天: {温度范围} {天气}
后天: {温度范围} {天气}
降级流程
如果墨迹天气无法访问或数据异常:
- 打开 MSN 天气
https://www.msn.cn/zh-cn/weather/ - 搜索目标城市
- 获取数据并回复
- 备注"数据来源:MSN 天气"
💡 使用技巧
拼音转换规则:
- 常用城市拼音可直接记忆(如 beijing, shanghai, guangzhou)
- 多音字注意:重庆 →
chongqing(不是 zhongqing) - 自治区:内蒙古 →
neimenggu,新疆 →xinjiang
常见城市拼音速查:
| 中文 | 拼音 | 省级拼音 |
|---|---|---|
| 北京 | beijing | beijing |
| 上海 | shanghai | shanghai |
| 广州 | guangzhou | guangdong |
| 深圳 | shenzhen | guangdong |
| 成都 | chengdu | sichuan |
| 杭州 | hangzhou | zhejiang |
| 南京 | nanjing | jiangsu |
| 武汉 | wuhan | hubei |
| 重庆 | chongqing | chongqing |
| 西安 | xian | shaanxi |
| 长沙 | changsha | hunan |
| 青岛 | qingdao | shandong |
| 大连 | dalian | liaoning |
| 厦门 | xiamen | fujian |
| 苏州 | suzhou | jiangsu |
📝 示例对话
用户: 北京今天天气怎么样?
操作:
- 打开
https://tianqi.moji.com/weather/beijing/beijing - 用 browser snapshot 提取数据
- 整理回复
回复:
📍 北京 天气
🌡️ 当前: 22°C 晴
📊 今日: 15°C ~ 25°C
💨 风力: 南风 3级
🌫️ AQI: 65 良
空气质量不错,适合户外活动!
用户: 上海明天会下雨吗?
操作:
- 打开
https://tianqi.moji.com/weather/shanghai/shanghai - 查看未来几天预报
- 回复降水概率
用户: 佛山顺德区现在多少度?
操作:
- 打开
https://tianqi.moji.com/weather/guangdong/foshan/shunde - 提取当前温度
- 回复
⚠️ 注意事项
- 数据来源声明: 回复末尾注明"数据来源:墨迹天气"或"数据来源:MSN 天气"
- 时效性: 天气数据会变化,回复时注明查询时间
- 降级策略: 墨迹天气 404 时,先尝试去掉区县再查,最后用 MSN
- 截图分享: 用户说"截图给我看"时,用 browser screenshot 发送
- 多城市查询: 用户同时问多个城市时,依次查询后汇总回复
本技能专为解决国内网络环境下天气查询问题而设计,适用于所有需要查询中国城市天气的场景。
安全使用建议
This appears safe for ordinary weather lookups. Be aware that it will query Moji Weather or MSN Weather through the browser and may send the city or location you ask about to those sites.
功能分析
Type: OpenClaw Skill
Name: moji-weather
Version: 1.0.0
The 'moji-weather' skill is a legitimate utility designed to provide weather information for Chinese cities by scraping public data from Moji Weather and MSN Weather. The instructions in SKILL.md guide the agent to use the browser tool for data retrieval, explicitly forbidding direct curl commands or foreign APIs to ensure reliability within China. No indicators of data exfiltration, malicious execution, or harmful prompt injection were found.
能力评估
Purpose & Capability
The stated purpose is China weather lookup, and the instructions consistently describe fetching weather data from Moji Weather with MSN Weather as a fallback.
Instruction Scope
The skill explicitly overrides the built-in weather behavior for relevant queries and forces domestic data sources; this is disclosed and aligned with the stated goal, but users should be aware it changes the default source selection.
Install Mechanism
There is no install spec, no helper code, no package dependency, and no required binary or environment variable.
Credentials
The skill uses browser browsing/snapshot/screenshot against disclosed weather websites, which is proportionate for live weather lookup and does not request local files or credentials.
Persistence & Privilege
The artifacts show no persistence, background worker, account login, credential use, or privilege escalation.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install moji-weather - 安装完成后,直接呼叫该 Skill 的名称或使用
/moji-weather触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: 墨迹天气 + MSN 天气双数据源,支持国内城市天气查询
元数据
常见问题
墨迹天气 (Moji Weather CN) 是什么?
中国天气查询技能,使用墨迹天气和 MSN 天气作为数据源,支持国内城市天气查询。 当用户询问天气、温度、预报时使用此技能。 覆盖内置 weather 技能,强制使用国内数据源,避免 wttr.in 等国外 API 的访问问题。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 57 次。
如何安装 墨迹天气 (Moji Weather CN)?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install moji-weather」即可一键安装,无需额外配置。
墨迹天气 (Moji Weather CN) 是免费的吗?
是的,墨迹天气 (Moji Weather CN) 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
墨迹天气 (Moji Weather CN) 支持哪些平台?
墨迹天气 (Moji Weather CN) 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 墨迹天气 (Moji Weather CN)?
由 paudyyin(@paudyyin)开发并维护,当前版本 v1.0.0。
推荐 Skills