Community-maintained Agent Skills for complete Swift and Apple-platform app delivery.
72
90%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Medium
Suggest reviewing before use
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.3 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..tessl-plugin
skills
accessorysetupkit
references
activitykit
adattributionkit
references
alarmkit
references
app-clips
app-intents
app-store-optimization
app-store-review
apple-on-device-ai
appmigrationkit
audioaccessorykit
references
authentication
references
avfoundation-audio
references
avkit
background-processing
references
browserenginekit
callkit
references
carplay
cloudkit
contacts-framework
references
core-bluetooth
references
core-data
core-haptics
references
core-motion
references
core-nfc
references
coreml
references
cryptokit
cryptotokenkit
debugging-instruments
device-integrity
references
energykit
references
eventkit
family-controls
references
financekit
focus-engine
gamekit
git-branching-workflow
references
healthkit
references
homekit
references
ios-accessibility
ios-app-workflow
references
ios-ettrace-performance
ios-localization
ios-memgraph-analysis
ios-networking
ios-simulator
references
metrickit
references
musickit
references
natural-language
paperkit
references
passkit
references
pdfkit
pencilkit
references
permissionkit
references
photokit
push-notifications
quicklook
references
realitykit
references
relevancekit
references
scenekit
sensorkit
shazamkit
references
speech-recognition
references
spritekit
storekit
swift-api-design-guidelines
swift-architecture
references
swift-charts
swift-codable
references
swift-code-review
swift-concurrency
swift-formatstyle
references
swift-language
swift-security
references
swift-testing
swiftdata
swiftlint
swiftui-animation
swiftui-gestures
references
swiftui-layout-components
swiftui-liquid-glass
references
swiftui-patterns
swiftui-performance
swiftui-responsive-layout
swiftui-uikit-interop
swiftui-webkit
tabletopkit
tipkit
vision-framework
weatherkit
references