FrancyJGLisboa

live-weather-briefing-skill

本技能使用Open-Meteo地理编码和预报API为指定城市生成当前天气简报。它会解析城市位置、获取实时天气数据并附上来源链接。

FrancyJGLisboa 2,408 266 更新于 1个月前

资源

12
GitHub

安装

npx skillscat add francyjglisboa/agent-skill-creator/references-examples-live-weather-briefing-skill

通过 SkillsCat registry 安装。

技能简介

本技能使用Open-Meteo地理编码和预报API为指定城市生成当前天气简报。它会解析城市位置、获取实时天气数据并附上来源链接。

SKILL.md

/live-weather-briefing-skill

Create a current weather briefing for one city. Resolve the city through
Open-Meteo's geocoding API, then retrieve current conditions from its forecast API.
Always show the resolved location, observation time, and source URLs.

Run

python3 scripts/run_pipeline.py --city "Sao Paulo, BR" --output briefing.md

The command makes two live, read-only API requests and writes a Markdown briefing.
It never books travel, sends alerts, or changes external data.

Required behavior

  1. Use the first exact geocoding result and show its country and coordinates.
  2. Retrieve current temperature, apparent temperature, wind speed, weather code, and observation time.
  3. State that weather is advisory and include the source URLs.
  4. If a city cannot be resolved or an API response is incomplete, stop with an error; do not invent conditions.

Gotchas

  • Current conditions are model data, not a safety alert. Check local official warnings before decisions involving risk.
  • A city name can be ambiguous. Include a country or region in the request when the city is not unique.
  • Conditions change after retrieval; the briefing's observation time identifies the freshness of this result.
  • Treat a trailing two-letter country code as a geographic qualifier, not part of the city name.
  • Treat a trailing two-letter country code as a geographic qualifier, not part of the city name.
  • Treat a trailing two-letter country code as a geographic qualifier, not part of the city name.

References

分类