Provides guidance on using RelevanceKit to increase widget visibility on Apple Watch Smart Stack by declaring time-based, location-based, or fitness-related relevance signals for watchOS 26+.
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.
Use RelevanceKit to tell the Apple Watch Smart Stack when a widget matters by time, location, fitness state, sleep schedule, or connected hardware. Targets Swift 6.4 and watchOS 26+ relevant-widget workflows.
Beta-sensitive. Re-check current Apple documentation before changing availability, signatures, or Smart Stack behavior.
Use one of two models:
relevance() to an existing AppIntentTimelineProvider when the widget
always has timeline content and relevance is supplementary.RelevanceConfiguration with a RelevanceEntriesProvider when the
widget should appear only under matching conditions or create multiple
relevant cards. This path is watchOS 26+.Read RelevanceKit patterns for complete
providers, every RelevantContext factory, permissions, grouping,
associatedKind, previews, and RelevantIntentManager updates.
RelevantContext is declared across Apple platforms, but its relevance effect
is watchOS-only. Shared provider code may compile elsewhere without changing
widget visibility there.
Keep this skill focused on RelevantContext, WidgetRelevanceAttribute,
provider relevance(), RelevanceConfiguration, grouping,
RelevantIntentManager, and permissions required by relevance clues.
Route these sibling concerns elsewhere:
widgetkit.healthkit.mapkit.| Context | Use | Required setup |
|---|---|---|
.date(...) | Moment, scheduled event, or date interval | None |
.location(inferred:) | Home, work, school, commute | App location permission plus NSWidgetWantsLocation |
.location(_:) | Specific CLRegion | Same location setup |
.location(category:) | Nearby point-of-interest category | Same setup; returns optional |
.fitness(.workoutActive) | Active workout | HealthKit read access to HKWorkoutType |
.fitness(.activityRingsIncomplete) | Ring progress | Exact exercise/move/stand read types |
.sleep(...) | Bedtime or wakeup | Sleep-analysis read access |
.hardware(headphones:) | Headphone connection | None |
Location purpose strings belong in the containing app. The widget extension
declares NSWidgetWantsLocation and checks
CLLocationManager.isAuthorizedForWidgetUpdates. Enable HealthKit and request
the exact read types in every target that supplies fitness or sleep relevance.
WidgetRelevanceAttribute values in priority order; the system may use
only a subset.location(category:) is optional—omit unsupported categories rather than
force-unwrapping.relevance, entry, placeholder,
and a deterministic preview path..associatedKind(_:) to avoid duplicate Smart Stack cards..automatic, .ungrouped, or .named grouping intentionally.RelevantIntentManager.shared.updateRelevantIntents whenever source data
changes, not only during timeline refresh.associatedKind and creating duplicate cards.associatedKind prevent unwanted duplicates.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/all-ios-skills:relevancekitfrom all-ios-skills
npx claudepluginhub thienqo/ios-skills --plugin all-ios-skills95 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./alarmkitBuilds AlarmKit alarms and countdowns with system Lock Screen, Dynamic Island, StandBy, and Apple Watch presentation. Use for authorization, AlarmManager scheduling, stop/secondary actions, countdown extension handoff, state observation, or Live Activity-backed alarm experiences./app-clipsBuilds App Clips and their invocation, routing, App Store Connect experiences, size/capability limits, promotion, data handoff, notifications, and full-app migration. Use for App Clip Codes, URLs, NFC/QR, Safari/Maps/Messages invocation, NSUserActivity, or App Group/keychain transfer./app-intentsImplement App Intents for Siri, Shortcuts, Spotlight, widgets, Control Center, and Apple Intelligence on iOS. Covers AppIntent actions, AppEntity and EntityQuery models, AppShortcutsProvider phrases, IndexedEntity Spotlight indexing, WidgetConfigurationIntent, SnippetIntent, and assistant schemas. Use when exposing app actions or entities to system surfaces.Other plugins' skills for the same job