← Back to Skills Marketplace
krisliu16

Mock Weather

by Kris · GitHub ↗ · v1.0.0
cross-platform ✓ Security Clean
260
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install mock-weather
Description
模拟天气查询,为任意城市生成仿真天气数据(当前天气 + 多日预报)。Use when: (1) 用户查询某城市天气,(2) 用户询问天气预报,(3) 需要演示天气功能但无真实API时。支持中英文城市名,支持1-7天预报。注意:数据为模拟生成,非真实气象数据。
README (SKILL.md)

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
Usage Guidance
This appears safe for demos and testing: it runs locally, uses no network or secrets, and produces deterministic simulated weather. Before installing, ensure the agent environment has Python 3 available (SKILL.md assumes 'python3' but the required binaries field is empty). Remember the output is simulated—do not use it for real-world decisions. If you want extra assurance, inspect the included scripts locally (they are short and readable) and run them in a sandboxed environment.
Capability Analysis
Type: OpenClaw Skill Name: mock-weather Version: 1.0.0 The skill bundle is a straightforward utility for generating simulated weather data. The Python script (scripts/mock_weather.py) uses standard libraries to generate deterministic mock results based on a city name seed and does not perform any network requests, file access, or sensitive data collection. The SKILL.md instructions are consistent with the stated purpose and contain no malicious prompt injection.
Capability Assessment
Purpose & Capability
Name/description match the included functionality: a local mock-weather generator. The included script implements the described behavior (current + 1–7 day forecasts, deterministic per city/day).
Instruction Scope
SKILL.md instructs running the included Python script with a city and optional --forecast. The script only reads CLI args and the current date, and does not access environment variables, files, network endpoints, or other system state.
Install Mechanism
There is no install spec (instruction-only), and the package includes a small Python script. SKILL.md shows running 'python3', but the registry metadata lists no required binaries — a minor mismatch: python3 is implicitly required to run the script but not declared.
Credentials
The skill declares no env vars, no credentials, and the code does not read secrets or configuration. Requested access is minimal and appropriate for a local mock generator.
Persistence & Privilege
always is false, and the skill does not attempt to modify other skills, system configuration, or persist credentials. It requires no elevated privileges.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install mock-weather
  3. After installation, invoke the skill by name or use /mock-weather
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
模拟天气查询skill,支持任意城市当前天气和多日预报
Metadata
Slug mock-weather
Version 1.0.0
License
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

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.

💬 Comments