$npx -y skills add coleam00/custom-agent-with-skills --skill weatherGet weather information for locations using Open-Meteo API. Use when user asks about weather, temperature, or forecasts.
| 1 | # Weather Skill |
| 2 | |
| 3 | Provides weather information for locations around the world using the free Open-Meteo API. |
| 4 | |
| 5 | ## When to Use |
| 6 | |
| 7 | - User asks about current weather |
| 8 | - User asks about temperature |
| 9 | - User asks about weather forecasts |
| 10 | - User mentions weather-related queries |
| 11 | |
| 12 | ## Available Operations |
| 13 | |
| 14 | 1. **Get Current Weather**: Retrieve current conditions for a location |
| 15 | 2. **Format Weather Data**: Present weather in a user-friendly format |
| 16 | |
| 17 | ## Instructions |
| 18 | |
| 19 | When a user asks about weather: |
| 20 | |
| 21 | 1. Identify the location from the user's query |
| 22 | 2. Look up the latitude and longitude for that location (common cities below) |
| 23 | 3. Use the Open-Meteo API to get weather data |
| 24 | 4. Present the weather information in a friendly format |
| 25 | |
| 26 | ### Common City Coordinates |
| 27 | |
| 28 | | City | Latitude | Longitude | |
| 29 | |------|----------|-----------| |
| 30 | | New York | 40.71 | -74.01 | |
| 31 | | Los Angeles | 34.05 | -118.24 | |
| 32 | | London | 51.51 | -0.13 | |
| 33 | | Paris | 48.85 | 2.35 | |
| 34 | | Tokyo | 35.69 | 139.69 | |
| 35 | | Sydney | -33.87 | 151.21 | |
| 36 | | Miami | 25.76 | -80.19 | |
| 37 | | Chicago | 41.88 | -87.63 | |
| 38 | | San Francisco | 37.77 | -122.42 | |
| 39 | | Berlin | 52.52 | 13.41 | |
| 40 | |
| 41 | ### Weather Code Meanings |
| 42 | |
| 43 | | Code | Description | |
| 44 | |------|-------------| |
| 45 | | 0 | Clear sky | |
| 46 | | 1, 2, 3 | Mainly clear, partly cloudy, overcast | |
| 47 | | 45, 48 | Fog | |
| 48 | | 51, 53, 55 | Drizzle (light, moderate, dense) | |
| 49 | | 61, 63, 65 | Rain (slight, moderate, heavy) | |
| 50 | | 71, 73, 75 | Snow fall (slight, moderate, heavy) | |
| 51 | | 80, 81, 82 | Rain showers (slight, moderate, violent) | |
| 52 | | 95 | Thunderstorm | |
| 53 | | 96, 99 | Thunderstorm with hail | |
| 54 | |
| 55 | ## Resources |
| 56 | |
| 57 | ALWAYS read this documentation before making an API request so you have the right parameters: |
| 58 | - `references/api_reference.md` - Complete Open-Meteo API documentation |
| 59 | |
| 60 | ## Examples |
| 61 | |
| 62 | ### Example 1: Simple Query |
| 63 | User asks: "What's the weather in New York?" |
| 64 | Response: Use coordinates (40.71, -74.01), call Open-Meteo API, format response with temperature and conditions. |
| 65 | |
| 66 | ### Example 2: Temperature Query |
| 67 | User asks: "How hot is it in Miami?" |
| 68 | Response: Use coordinates (25.76, -80.19), get temperature_2m, convert to Fahrenheit if needed. |
| 69 | |
| 70 | ## Notes |
| 71 | |
| 72 | - Open-Meteo is free and requires NO API key |
| 73 | - Temperature is in Celsius by default (add temperature_unit=fahrenheit for F) |
| 74 | - All times are in the specified timezone |