← Back to Skills Marketplace
maomaoshuo

weather

by SPrinG · GitHub ↗ · v1.0.2
cross-platform ✓ Security Clean
731
Downloads
2
Stars
2
Active Installs
3
Versions
Install in OpenClaw
/install maomao-weather
Description
查询全球任何城市的当前天气情况。当用户询问天气、查询城市温度、了解气象状况时使用此技能。支持中文、英文、拼音输入,自动匹配最佳位置。默认查询北京。
README (SKILL.md)

天气查询技能

查询指定城市的当前天气信息,包括温度、天气状况、风速、风向等。

快速使用

  1. 执行天气查询
    printf '%s\
    

' "$ARGUMENTS" | python3 "scripts/weather.py"


2. **参数处理**:
- 城市参数支持中文、英文、拼音
- 自动过滤"天气"、"怎么样"等修饰词
- 无参数时默认查询北京

3. **输出解析**:脚本返回格式化的天气信息,提取核心数据呈现给用户。

## 详细参考

- **城市支持与查询技巧**:见 [references/weather_details.md](references/weather_details.md)
- **故障排除指南**:见 [references/weather_details.md#故障排除](references/weather_details.md#故障排除)

## 示例用法

- `查询北京天气` → 自动触发,查询北京
- `/weather 上海` → 查询上海天气
- `纽约温度多少` → 查询纽约天气
- `London weather` → 查询伦敦天气

脚本自动处理城市名匹配和地理编码,优先匹配知名城市。
Usage Guidance
This skill appears to do what it says: it runs a local Python script that queries Open‑Meteo services for geocoding and current-weather data and does not request credentials or access other system data. Things to keep in mind before installing: 1) the script makes outbound HTTPS requests to geocoding-api.open-meteo.com and api.open-meteo.com (your city queries are sent to those services); 2) it requires the Python 'requests' package — the script will prompt you to install it if absent; and 3) the skill has no published homepage and the source is listed as 'unknown' (not a security problem by itself, but if you require an auditable origin you may want a skill with a known repository or publisher). If those network calls and the lack of a published source are acceptable, the skill is coherent and low risk.
Capability Analysis
Type: OpenClaw Skill Name: maomao-weather Version: 1.0.2 The OpenClaw skill bundle is designed for weather lookup and appears benign. The `SKILL.md` correctly declares `allowed-tools: Bash` and passes user arguments to the `scripts/weather.py` script via standard input (`printf '%s\n' "$ARGUMENTS" | python3 ...`), which is a robust method to prevent direct shell injection. The `weather.py` script safely processes this input, making network requests only to legitimate Open-Meteo APIs for geocoding and weather data, without any evidence of data exfiltration, arbitrary command execution, or other malicious activities. No prompt injection attempts were found in the markdown files.
Capability Assessment
Purpose & Capability
Name/description (weather lookup) match the implementation. The included script performs geocoding and current-weather queries and contains built-in city coordinates and matching logic appropriate for a weather skill.
Instruction Scope
SKILL.md instructs the agent to run scripts/weather.py with the city argument. The runtime behavior is limited to parsing input, resolving a city (local dictionary + Open‑Meteo geocoding), and calling Open‑Meteo's forecast API to retrieve current weather. The instructions do not access unrelated files, environment variables, or external endpoints beyond the weather/geocoding APIs.
Install Mechanism
There is no install spec (instruction-only), which reduces risk. The script requires the Python 'requests' library; if missing it prints pip install instructions and exits. The skill does not automatically fetch arbitrary code or download executables.
Credentials
The skill requests no environment variables, secrets, or config paths. Its external network calls are limited to Open‑Meteo endpoints (geocoding-api.open-meteo.com and api.open-meteo.com), which are appropriate and proportional for a weather lookup tool.
Persistence & Privilege
always is false and the skill does not modify other skills or system configuration. It does not request persistent privileges or system-wide changes.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install maomao-weather
  3. After installation, invoke the skill by name or use /maomao-weather
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
maomao-weather 1.0.2 - Added a new reference file: references/weather_details.md with detailed usage and troubleshooting. - Updated SKILL.md for clearer instructions, new example queries, and direct links to reference material. - Improved description of city name input and automatic filtering of query modifiers. - Usage section now describes weather query command, argument handling, and output parsing more concisely. - Default city behavior and multi-language input support clarified.
v1.0.1
- 更新Bash命令为使用python3执行脚本,并调整脚本路径为skills/weather/scripts/weather.py - 其他说明和功能保持不变
v1.0.0
- Initial release of the weather query skill. - Allows users to check current weather for any city worldwide; defaults to Beijing if no city is specified. - Supports city names in Chinese, English, or Pinyin with intelligent matching (Chinese cities prioritized for Chinese names). - Presents concise weather information using output from an internal weather script. - Includes built-in optimizations for major Chinese cities and offers usage and troubleshooting tips.
Metadata
Slug maomao-weather
Version 1.0.2
License
All-time Installs 4
Active Installs 2
Total Versions 3
Frequently Asked Questions

What is weather?

查询全球任何城市的当前天气情况。当用户询问天气、查询城市温度、了解气象状况时使用此技能。支持中文、英文、拼音输入,自动匹配最佳位置。默认查询北京。 It is an AI Agent Skill for Claude Code / OpenClaw, with 731 downloads so far.

How do I install weather?

Run "/install maomao-weather" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is weather free?

Yes, weather is completely free (open-source). You can download, install and use it at no cost.

Which platforms does weather support?

weather is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created weather?

It is built and maintained by SPrinG (@maomaoshuo); the current version is v1.0.2.

💬 Comments