Mock Weather

v1.0.0

模拟天气查询,为任意城市生成仿真天气数据(当前天气 + 多日预报)。Use when: (1) 用户查询某城市天气,(2) 用户询问天气预报,(3) 需要演示天气功能但无真实API时。支持中英文城市名,支持1-7天预报。注意:数据为模拟生成,非真实气象数据。

0· 248·0 current·0 all-time
byKris@krisliu16
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
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.
Assessment
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.

Like a lobster shell, security has layers — review code before you run it.

latestvk979hqz0mmtvwhzdp39q0kpd6x82dhqz
248downloads
0stars
1versions
Updated 1mo ago
v1.0.0
MIT-0

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 <city>

# Multi-day forecast (1-7 days)
python3 scripts/mock_weather.py <city> --forecast <days>

Examples:

python3 scripts/mock_weather.py 北京
python3 scripts/mock_weather.py Shanghai --forecast 5
python3 scripts/mock_weather.py 深圳 --forecast 7

Output Fields

FieldDescription
天气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

Comments

Loading comments...