weather
查询全球任何城市的当前天气情况。当用户询问天气、查询城市温度、了解气象状况时使用此技能。支持中文、英文、拼音输入,自动匹配最佳位置。默认查询北京。
MIT-0 · Free to use, modify, and redistribute. No attribution required.
⭐ 2 · 537 · 1 current installs · 3 all-time installs
bySPrinG@maomaoshuo
MIT-0
Security Scan
OpenClaw
Benign
high confidencePurpose & 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.
Assessment
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.Like a lobster shell, security has layers — review code before you run it.
Current versionv1.0.2
Download ziplatest
License
MIT-0
Free to use, modify, and redistribute. No attribution required.
SKILL.md
天气查询技能
查询指定城市的当前天气信息,包括温度、天气状况、风速、风向等。
快速使用
-
执行天气查询:
printf '%s\n' "$ARGUMENTS" | python3 "scripts/weather.py" -
参数处理:
- 城市参数支持中文、英文、拼音
- 自动过滤"天气"、"怎么样"等修饰词
- 无参数时默认查询北京
-
输出解析:脚本返回格式化的天气信息,提取核心数据呈现给用户。
详细参考
- 城市支持与查询技巧:见 references/weather_details.md
- 故障排除指南:见 references/weather_details.md#故障排除
示例用法
查询北京天气→ 自动触发,查询北京/weather 上海→ 查询上海天气纽约温度多少→ 查询纽约天气London weather→ 查询伦敦天气
脚本自动处理城市名匹配和地理编码,优先匹配知名城市。
Files
3 totalSelect a file
Select a file to preview.
Comments
Loading comments…
