Skip to content
Back to skills

Wetter Abfrage

ASecurity

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.

  • 153 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 27, 2026
data-aipythonapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned May 27, 2026

npx -y skills add Alex8791-cyber/cognithor --skill wetter_abfrage --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Wetter Abfrage?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Wetter Abfrage
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/alex8791-cyber-wetter-abfrage/badge)](https://www.skillsdirectory.com/skills/alex8791-cyber-wetter-abfrage)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: wetter-abfrage
description: "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."
---

# 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:
   ```python
   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

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

Files in this skill

  • SKILL.md1.9 KB
  • manifest.json183 B
  • skill.py381 B
  • test_skill.py259 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.