← 返回 Skills 市场
838
总下载
5
收藏
6
当前安装
4
版本数
在 OpenClaw 中安装
/install weather-zh
功能描述
中文天气查询工具 - 使用中国天气网获取实时天气(无需API密钥,不依赖大模型)
安全使用建议
This skill appears coherent and straightforward: it reads a local city-code file and fetches/parses HTML from https://www.weather.com.cn using Python + requests. Before installing, ensure you are comfortable granting the skill network access to that site and that you have (or will install) the 'requests' package. Review the included weather-cn.py (it's short and readable) if you want to confirm there are no unexpected network endpoints or data-collection steps. Be aware the script uses regex-based HTML parsing — it may break if the website structure changes. The alias suggestion is optional and requires you to edit your shell rc; you can ignore it if you prefer not to modify shell configuration.
功能分析
Type: OpenClaw Skill
Name: weather-zh
Version: 0.1.3
The skill is designed to fetch weather information from weather.com.cn using a Python script. The `SKILL.md` and `README.md` provide clear instructions for its use, including setting up aliases and alternative `curl` commands for other weather APIs, none of which constitute prompt injection or malicious intent. The `weather-cn.py` script uses standard Python libraries (`requests`, `re`) to perform web scraping, and input sanitization appears adequate for its purpose, preventing shell or arbitrary URL injection. There is no evidence of data exfiltration, malicious execution, persistence mechanisms, or obfuscation.
能力评估
Purpose & Capability
Name/description (Chinese weather via weather.com.cn) matches the included files and runtime needs: a Python script that reads a local city-code mapping and fetches/parses HTML. Requested binary (python) and the pip dependency (requests) are appropriate and proportional.
Instruction Scope
SKILL.md instructions are limited to running the included script, editing the local city-code file, and optionally adding a shell alias. The instructions do not request unrelated files, credentials, or transmit data to unexpected endpoints (only calls to weather.com.cn and optional public fallbacks are mentioned).
Install Mechanism
No install spec is provided (instruction-only), and the code is bundled with the skill. The only runtime dependency is the widely used 'requests' package (declared in metadata) — no downloads from arbitrary URLs or extract operations are present.
Credentials
The skill requests no environment variables, no credentials, and no config paths beyond its own files. That is proportionate for a simple web-scraping weather tool.
Persistence & Privilege
The skill does not request always:true and does not modify other skills. It suggests an optional user action to add an alias to the user's shell rc (~/.zshrc or ~/.bash_profile); this is user-initiated and not required by the skill but is worth noting as a suggested modification to the user's shell configuration.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install weather-zh - 安装完成后,直接呼叫该 Skill 的名称或使用
/weather-zh触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.3
- 转为 Python 实现(weather-cn.py),提升解析准确率与稳定性
- 新增 requirements:需 Python 与 requests 库
- 新增/更新城市代码映射表(weather_codes.txt),更易扩展新城市
- 更新文档说明,反映 Python 版用法与优势
- 继续无需API密钥,不依赖大模型,零Token消耗
v0.1.2
- No changes detected in this version; documentation and features remain the same.
- All usage instructions, supported cities, and implementation details are unchanged.
- The skill continues to offer fast, reliable, model-free weather queries for China using bash scripts.
v0.1.1
- 新增 skill 名称字段,更新为“name: 中国城市天气Weather in China”并添加 slug 字段
- 其余文档内容保持一致,无工具逻辑变更
- 更新面向用户的 skill 配置,提升可读性和易用性
v0.1.0
Initial release of weather-zh — a lightweight, model-free Chinese weather query tool.
- Provides real-time weather data from China Weather Network using pure bash scripts.
- No API key or large model required; relies only on curl and grep.
- Supports 50+ major cities by default, with easy extension via a simple city code file.
- Fast (<1s), stable, zero token consumption per query.
- Returns rich, formatted Chinese weather summary including temperature and lifestyle indices.
元数据
常见问题
中国城市天气Weather In China 是什么?
中文天气查询工具 - 使用中国天气网获取实时天气(无需API密钥,不依赖大模型). 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 838 次。
如何安装 中国城市天气Weather In China?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install weather-zh」即可一键安装,无需额外配置。
中国城市天气Weather In China 是免费的吗?
是的,中国城市天气Weather In China 完全免费(开源免费),可自由下载、安装和使用。
中国城市天气Weather In China 支持哪些平台?
中国城市天气Weather In China 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 中国城市天气Weather In China?
由 kenera(@kenera)开发并维护,当前版本 v0.1.3。
推荐 Skills