weather-zh
中文天气查询工具 - 使用中国天气网获取实时天气(无需API密钥,不依赖大模型)
Why use this skill?
Instantly get real-time weather for cities in China with this zero-LLM shell script. Fast, reliable, and free of token costs. Install via OpenClaw today.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/kenera/weather-cnWhat This Skill Does
The weather-zh skill provides a highly optimized, lightweight solution for fetching real-time weather information in China without requiring any Large Language Model (LLM) API calls. By utilizing a custom shell script (weather-cn.sh) that directly interacts with the China Weather Network, this tool eliminates the high latency and cost associated with model-based web scraping. It features a built-in mapping system using weather_codes.txt to instantly resolve city names to their respective meteorological data, ensuring reliable and lightning-fast information retrieval. The output is formatted into a clean, human-readable terminal dashboard, including daily temperature ranges, weather conditions (like sunny or rainy), and various life indices such as laundry, exercise, and ultraviolet exposure levels.
Installation
To install this skill, run the following command in your terminal: clawhub install openclaw/skills/skills/kenera/weather-cn. Once installed, ensure the script is accessible from your path. It is highly recommended to create a shell alias for easier access, for example: alias weather='~/.openclaw/workspace/skills/weather-zh/weather-cn.sh'. You can add this line to your .zshrc or .bash_profile configuration file to make the command available in every terminal session immediately upon opening.
Use Cases
The primary use case is for users needing rapid, frequent weather updates for cities in China without burning through LLM token quotas. It is ideal for developers who incorporate weather checks into their automation workflows, CLI enthusiasts who want quick info without opening a browser, and users who prioritize data privacy and zero-cost operation. Since it avoids complex model reasoning, it is perfectly suited for scripts that require 100% predictable output formats.
Example Prompts
- "成都今天天气怎么样?"
- "请帮我查询上海的天气状况。"
- "北京的气温和紫外线指数是多少?"
Tips & Limitations
- Accuracy: Data is pulled directly from the China Weather Network. If you notice data discrepancies, it is likely due to the source's update frequency.
- City Support: The tool comes with over 50 major cities pre-configured. If your city is missing, simply append the city name and its corresponding 9-digit code from the official website to the
weather_codes.txtfile. - Connectivity: This tool requires a network connection to reach weather.com.cn. It will not function in offline environments or behind restrictive firewalls that block the target domain.
- Optimization: Because this uses bash, grep, and sed, the performance is essentially instant, making it far superior to browser-automation tools for this specific data retrieval task.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-kenera-weather-cn": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, file-read, code-execution
Related Skills
中国城市天气Weather in China
中文天气查询工具 - 使用中国天气网获取实时天气(无需API密钥,不依赖大模型)
subskill-generation-rule
Define and enforce project orgnization rules for generating subskills. put generated recommendation outputs under data/, place new feature scripts under subskills/<feature>/, and optionally add SKILL.md inside each feature folder to keep main skill root clean.
A股短线交易决策 A-Share Short-Term Decision
A-share short-term trading decision skill for 1-5 day horizon. Use when you need real-data market sentiment, sector rotation, strong stock scanning, capital flow confirmation, date-based short-term signal scoring, prediction logging, and next-day market comparison for CN A-share momentum trading.