Fetches WeatherKit current, hourly, daily forecasts, alerts, and historical data for iOS apps. Handles setup, selective queries, caching, rate limits, and Apple attribution requirements.
Ships in all-ios-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Fetch current conditions, hourly and daily forecasts, weather alerts, and historical statistics using WeatherService. Displays mandatory Apple Weather attribution.
NSLocationWhenInUseUsageDescription to Info.plist if requesting coordinates via CoreLocation.WeatherService.shared across the app.Fetch complete weather datasets for a target CLLocation:
import WeatherKit
import CoreLocation
let weather = try await WeatherService.shared.weather(for: location)
// Current conditions
let current = weather.currentWeather
print("Temperature: \(current.temperature.formatted())")
print("Condition: \(current.condition.description), SF Symbol: \(current.symbolName)")
// Hourly and Daily forecasts
for hour in weather.hourlyForecast.prefix(12) {
print("\(hour.date.formatted(date: .omitted, time: .shortened)): \(hour.temperature.formatted())")
}
Format Measurement<UnitTemperature> values with .formatted() to honor user locale conventions.
Reduce bandwidth and processing by requesting only necessary datasets:
let (current, hourly) = try await WeatherService.shared.weather(
for: location,
including: .current, .hourly
)
Available query types include .current, .hourly, .daily, .minute, and .alerts.
Access climate context, historical comparisons, and weather summaries:
// Query weather changes (e.g. temperature shift since yesterday)
let changes = try await WeatherService.shared.weather(for: location, including: .changes)
// Historical comparison
let historical = try await WeatherService.shared.weather(for: location, including: .historicalComparisons)
Apple requires visible attribution whenever WeatherKit data is displayed:
let attribution = try await WeatherService.shared.attribution
// Display attribution.combinedMark (light/dark Apple Weather logo)
// Provide tappable link to attribution.legalPageURL
In SwiftUI, display attribution using Link and the official logo asset.
metadata.expirationDate returned with forecasts; avoid refetching unexpired data.weather(for:) on every view appearance causes rate-limiting errors. Respect metadata.expirationDate.temperature.formatted().including: queries.Measurement.formatted()including:) used to minimize network payloadmetadata.expirationDateWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
weatherkit, apple-weather, ios-weather, weather-data, forecast-api
95 skills in this plugin
/accessorysetupkitDiscover and configure Bluetooth and Wi-Fi accessories using AccessorySetupKit. Use when presenting a privacy-preserving accessory picker, defining discovery descriptors for BLE or Wi-Fi devices, handling accessory session events, migrating from CoreBluetooth permission-based scanning, or setting up accessories without requiring broad Bluetooth permissions./activitykitBuild or review Live Activities and Dynamic Island experiences with ActivityKit, including lifecycle, layouts, push updates, and scheduled delivery. Use for time-sensitive Lock Screen or Dynamic Island state; route ordinary widgets to widgetkit./adattributionkitMeasure ad effectiveness with privacy-preserving attribution using AdAttributionKit. Use when registering ad impressions, handling attribution postbacks, updating conversion values, implementing re-engagement attribution, configuring publisher or advertiser apps, or replacing SKAdNetwork with AdAttributionKit for ad measurement./all-ios-skills:weatherkitfrom all-ios-skills
npx claudepluginhub thienqo/ios-skills --plugin all-ios-skillsOther plugins' skills for the same job