OpenParable
Skip to content
← Back to skills

Wetter Abfrage

Research
wetter-abfrage

Wetter 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.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
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

  1. Parse location — extract city name or coordinates from user input:
    cognithor wetter_abfrage München
    
  2. 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()
    
  3. 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 ⛅
    
  4. Handle ambiguity — if multiple locations match, present options:
    Meinten Sie: (1) München, DE  (2) München, AT?
    
  5. 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

ErrorCauseRecovery
Location not foundTypo or unknown cityAsk user to re-enter or provide coordinates
API timeoutNetwork issue or rate limitRetry once after 2s; report failure if persistent
Missing data fieldsPartial API responseReturn available fields, note missing ones