← 返回 Skills 市场
260
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install mock-weather
功能描述
模拟天气查询,为任意城市生成仿真天气数据(当前天气 + 多日预报)。Use when: (1) 用户查询某城市天气,(2) 用户询问天气预报,(3) 需要演示天气功能但无真实API时。支持中英文城市名,支持1-7天预报。注意:数据为模拟生成,非真实气象数据。
使用说明 (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
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install mock-weather - 安装完成后,直接呼叫该 Skill 的名称或使用
/mock-weather触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
模拟天气查询skill,支持任意城市当前天气和多日预报
元数据
常见问题
Mock Weather 是什么?
模拟天气查询,为任意城市生成仿真天气数据(当前天气 + 多日预报)。Use when: (1) 用户查询某城市天气,(2) 用户询问天气预报,(3) 需要演示天气功能但无真实API时。支持中英文城市名,支持1-7天预报。注意:数据为模拟生成,非真实气象数据。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 260 次。
如何安装 Mock Weather?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install mock-weather」即可一键安装,无需额外配置。
Mock Weather 是免费的吗?
是的,Mock Weather 完全免费(开源免费),可自由下载、安装和使用。
Mock Weather 支持哪些平台?
Mock Weather 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Mock Weather?
由 Kris(@krisliu16)开发并维护,当前版本 v1.0.0。
推荐 Skills