Agent skill · software engineering · dpearson2699
weatherkit
Fetch WeatherKit current, minute, hourly, and daily forecasts; weather alerts; iOS 18+ changes, historical comparisons, summaries, and statistics; and required Apple Weather attribution. Use when integrating weather data, showing forecasts or alerts, caching WeatherKit responses, displaying attribution, or reviewing WeatherKit query limits in iOS apps.
Why this skill is useful
Provides specific commands and patterns for integrating WeatherKit into iOS apps, which the AI wouldn't reliably generate on its own.
What it needs
Requires xcode installed locally. Requires apple account access. About 6k tokens when loaded. Last updated 2026-07-31. 973 stars on the source repository.
What this skill does
WeatherKit Fetch current conditions, hourly and daily forecasts, weather alerts, and historical statistics using WeatherService. Display required Apple Weather attribution. Contents Setup Fetching Current Weather Forecasts Weather Alerts Selective Queries Context Queries Attribution Availability Common Mistakes Review Checklist References Setup Project Configuration 1. Enable the WeatherKit capability in Xcode (adds the entitlement) 2. Enable WeatherKit for your App ID in the Apple Developer portal 3. Add NSLocationWhenInUseUsageDescription to Info.plist if using device location 4. WeatherKit requires an active Apple Developer Program membership Import Creating the Service Use the shared singleton or create an instance. WeatherService conforms to Sendable; keep app cache and UI state isolated separately. Fetching Current Weather Fetch current conditions for a location. Returns a Weather object with all available datasets. WeatherKit temperatures are Measurement<UnitTemperature> values; display them with .formatted() so units and number formatting follow the user's locale. Forecasts Hourly Forecast Returns 25 contiguous hours starting from the current hour by default. Daily Forecast Returns 10 contiguous days starting from the current day by default. Custom Date Range Request forecasts for specific date ranges using WeatherQuery. Daily and hourly date-range queries use an inclusive startDate and exclusive endDate. They can include historical data from August 1, 2021. Forecasts are available up to 10 days in the future; each request returns at most 10 daily forecast days or about 240 hourly forecast hours. For tomorrow-specific guidance, request the local tomorrow day interval rather than using minute forecasts: Weather Alerts Fetch active weather alerts for a location. Alerts include severity, summary, and affected regions. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills dpearson2699/weatherkit