/install mock-weather
Mock Weather Skill
Generate simulated weather data for any city. Useful for demos, testing, or when no real weather API is available.
Usage
Run the script directly:
# Current weather (today)
python3 scripts/mock_weather.py \x3Ccity>
# Multi-day forecast (1-7 days)
python3 scripts/mock_weather.py \x3Ccity> --forecast \x3Cdays>
Examples:
python3 scripts/mock_weather.py 北京
python3 scripts/mock_weather.py Shanghai --forecast 5
python3 scripts/mock_weather.py 深圳 --forecast 7
Output Fields
| Field | Description |
|---|---|
| 天气 | Weather condition (晴/多云/雨/雪 etc.) |
| 气温 | Low ~ High temperature (°C) |
| 湿度 | Humidity (%) |
| 风力 | Wind direction + level |
Notes
- Data is deterministically generated from city name + current date (same city = consistent results within a day)
- Supports any city name (Chinese or English)
- Always clarify to users that this is simulated data, not real weather
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install mock-weather - After installation, invoke the skill by name or use
/mock-weather - Provide required inputs per the skill's parameter spec and get structured output
What is Mock Weather?
模拟天气查询,为任意城市生成仿真天气数据(当前天气 + 多日预报)。Use when: (1) 用户查询某城市天气,(2) 用户询问天气预报,(3) 需要演示天气功能但无真实API时。支持中英文城市名,支持1-7天预报。注意:数据为模拟生成,非真实气象数据。 It is an AI Agent Skill for Claude Code / OpenClaw, with 260 downloads so far.
How do I install Mock Weather?
Run "/install mock-weather" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Mock Weather free?
Yes, Mock Weather is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Mock Weather support?
Mock Weather is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Mock Weather?
It is built and maintained by Kris (@krisliu16); the current version is v1.0.0.