Wetter Abfrage
Researchwetter-abfrageWetter Abfrage is an Agent Skill for research published in the Alex8791-cyber/cognithor repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Weather query skill that retrieves current temperature, humidity, wind speed, and multi-day forecasts for a given city or coordinate. Use when checking the weather, getting a forecast, looking up temperature or wind conditions, or planning outdoor activities based on weather data.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/Alex8791-cyber/cognithor/blob/HEAD/skills/wetter_abfrage/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/wetter-abfrage, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Wetter Abfrage
Retrieves current weather conditions (temperature, humidity, wind speed, conditions) and multi-day forecasts for a user-specified location.
Steps
- Parse location — extract city name or coordinates from user input:
cognithor wetter_abfrage München - Query weather API — fetch current conditions and forecast data:
async with httpx.AsyncClient() as client: resp = await client.get( f"{API_BASE}/weather", params={"q": location, "units": "metric"} ) data = resp.json() - Format response — present key metrics in a readable summary:
München — 18°C, leicht bewölkt Luftfeuchtigkeit: 62% | Wind: 12 km/h NW Vorhersage: Mo 20°C ☀️ | Di 17°C 🌧️ | Mi 19°C ⛅ - Handle ambiguity — if multiple locations match, present options:
Meinten Sie: (1) München, DE (2) München, AT? - Return structured data —
{"status": "ok", "result": <weather_data>}
Example
User > Wie wird das Wetter morgen in Berlin?
Cognithor > Berlin — morgen: 22°C, sonnig
Luftfeuchtigkeit: 45% | Wind: 8 km/h SO
UV-Index: 6 (hoch) — Sonnenschutz empfohlen
Error Handling
| Error | Cause | Recovery |
|---|---|---|
| Location not found | Typo or unknown city | Ask user to re-enter or provide coordinates |
| API timeout | Network issue or rate limit | Retry once after 2s; report failure if persistent |
| Missing data fields | Partial API response | Return available fields, note missing ones |