← Back to Skills Marketplace
kenera

中国城市天气Weather In China

by kenera · GitHub ↗ · v0.1.3
cross-platform ✓ Security Clean
838
Downloads
5
Stars
6
Active Installs
4
Versions
Install in OpenClaw
/install weather-zh
Description
中文天气查询工具 - 使用中国天气网获取实时天气(无需API密钥,不依赖大模型)
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install weather-zh
  3. After installation, invoke the skill by name or use /weather-zh
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug weather-zh
Version 0.1.3
License
All-time Installs 6
Active Installs 6
Total Versions 4
Frequently Asked Questions

What is 中国城市天气Weather In China?

中文天气查询工具 - 使用中国天气网获取实时天气(无需API密钥,不依赖大模型). It is an AI Agent Skill for Claude Code / OpenClaw, with 838 downloads so far.

How do I install 中国城市天气Weather In China?

Run "/install weather-zh" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is 中国城市天气Weather In China free?

Yes, 中国城市天气Weather In China is completely free (open-source). You can download, install and use it at no cost.

Which platforms does 中国城市天气Weather In China support?

中国城市天气Weather In China is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 中国城市天气Weather In China?

It is built and maintained by kenera (@kenera); the current version is v0.1.3.

💬 Comments