weather
Fetches current or forecasted weather for a given city using the Open-Meteo API
When & Why to Use This Skill
The Weather Claude skill enables AI agents to retrieve real-time weather conditions and accurate forecasts for any city worldwide using the Open-Meteo API. It provides essential meteorological data, including temperature in Celsius, wind speed, and weather condition codes, making it a vital tool for context-aware planning and automated information retrieval.
Use Cases
- Travel Planning: Automatically check weather conditions for multiple destinations to help users pack appropriately or select the best travel dates.
- Event Management: Monitor local forecasts for outdoor events to trigger contingency plans or send automated weather alerts to participants.
- Logistics and Shipping: Integrate weather data into supply chain workflows to anticipate potential transit delays caused by adverse weather conditions.
- Daily Productivity: Enhance personal assistant agents by including localized weather updates and clothing recommendations in daily morning briefings.
| name | weather |
|---|---|
| description | Fetches current or forecasted weather for a given city using the Open-Meteo API |
Weather Skill
Get current weather conditions or forecasts for any city.
Usage
Run the script with a city name and optional date:
# Current weather
npx tsx .opencode/skills/weather/scripts/get-weather.ts "London"
# Forecast for a specific date
npx tsx .opencode/skills/weather/scripts/get-weather.ts "London" "2025-12-05"
Parameters
| Parameter | Required | Description |
|---|---|---|
| city | Yes | City name to get weather for |
| date | No | Date in YYYY-MM-DD format for forecast |
What it returns
Current weather (no date provided)
- City name
- Temperature (Celsius)
- Wind speed (km/h)
- Weather condition code
Forecast (with date)
- City name
- Temperature range (min - max in Celsius)
- Max wind speed (km/h)
- Weather condition code