weather-search-new
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "weather-search-new" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-4008cd581be4fb282aa49c9945611f7674ba86d438043201ad77941256a9b259. Verify the upstream source and version against https://skillhub.cn/skills/user_fdc84a37/weather-search-new before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Query current weather and multi-day forecasts for any city. Use when users ask about weather, temperature, precipitation, travel clothing advice, or request “check weather,” “how's the weather,” or “is tomorrow suitable to go out” for a given city. Based on the Open-Meteo free API and requires no API key.
Introduction source: third_party · user_fdc84a37 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Translation pending; see source documentation.
- Limits and differences
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: weather-query
description: 查询任意城市的当前天气与未来多日预报。当用户询问天气、气温、是否下雨/下雪、出行着装建议,或给出城市名要求"查天气""天气怎么样""明天适合出门吗"时使用。基于 Open-Meteo 免费 API,无需 API key。
agent_created: trueWeather Query(天气查询)
Overview
提供任意城市(中英文均可)的当前天气与未来 1–7 天预报,输出中文可读结果。底层调用 Open-Meteo 免费天气 API,无需注册或 API key,开箱即用,适合直接发布与分享。
When to Use
- 用户询问某个城市的天气、气温、风力、湿度、降水概率。
- 用户问"今天/明天天气怎么样""会下雨吗""适合旅游/出行吗"。
- 用户给出城市名并要求查天气或生成天气简报。
- 任何需要实时天气数据的场景(出行建议、穿搭推荐、活动安排)。
Workflow
1. 解析用户意图
从用户消息中提取:城市名(必填)、预报天数(可选,默认 3 天)。若城市名缺失,向用户询问具体城市,不要臆测。
2. 调用查询脚本
使用 bundled 脚本 scripts/weather.py 完成地理编码与天气获取,避免手动拼接 HTTP 请求:
python scripts/weather.py --city "北京" --days 3
python scripts/weather.py --city "Shanghai" --days 5
python scripts/weather.py --city "东京" --lang zh
参数说明:
--city:城市名,支持中文(北京)与英文(Shanghai),必填。--days:预报天数,1–7,默认 3。--lang:地理编码语言,默认zh。
脚本输出已格式化为中文天气简报(当前天气 + 逐日预报),可直接呈现给用户。
3. 补充建议(可选)
在脚本输出基础上,可根据天气情况主动给出出行/穿搭建议,例如高温提醒补水、降水概率高建议带伞、大风注意防风等。
Notes & Constraints
- 脚本仅依赖 Python 标准库(
urllib),无需pip install,兼容任意 Python 3.8+ 环境。 - 若查询失败(城市未找到 / 网络问题),脚本会输出明确错误信息并以非零码退出;此时向用户说明并建议换个写法或检查网络。
- API 限流约 10,000 次/天(免费额度),正常个人使用不会触发。
- WMO 天气代码与 API 字段细节见
references/open-meteo.md,需要更深定制时再读取。
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 高频刚需场景,直接解决用户出行、穿衣等明确痛点
- 具有广泛受众和实用价值
Highlights
- 触发词覆盖全面(天气、气温、降水、出行建议等)
- 边界清晰,支持中英文城市名
Highlights
- Phase/步骤清晰(解析意图→调用脚本→补充建议)
- 含端到端示例,frontmatter完整
Highlights
- 工具来源明确(bundled 脚本),参数正确
- 覆盖主要异常(城市未找到/网络问题),脚本有非零码退出机制
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 49 -
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 3, 11
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.