thiennc-tesoglobal/ios-skills/relevancekit

Claude Code and agent skill by thiennc-tesoglobal/ios-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Increase widget visibility on Apple Watch using RelevanceKit. Use when providing contextual relevance signals for watchOS widgets, declaring time-based or location-based relevance, combining multiple relevance providers, helping the system surface the right widget at the right time on watchOS 26, or routing mixed RelevanceKit/WidgetKit/HealthKit/MapKit Smart Stack scope.

Install

npx vskill@latest install thiennc-tesoglobal/ios-skills/relevancekit

SKILL.md

The same SKILL.md was published earlier as thiennc-tesoglobal/ios-skills/relevancekit.

RelevanceKit

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.

Contents

Choose a provider

Use one of two models:

  1. Add relevance() to an existing AppIntentTimelineProvider when the widget

always has timeline content and relevance is supplementary.

  1. Use 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.

Scope boundaries

Keep this skill focused on RelevantContext, WidgetRelevanceAttribute, provider relevance(), RelevanceConfiguration, grouping, RelevantIntentManager, and permissions required by relevance clues.

Route these sibling concerns elsewhere:

  • Widget timelines, families, reload budgets, rendering, push reloads, Live

Activities, and controls → widgetkit.

  • Workout sessions, activity/sleep queries, routes, and HealthKit authorization

UX → healthkit.

  • Geocoding, place search, directions, regions, geofencing, and location

authorization architecture → mapkit.

Signals and permissions

ContextUseRequired setup
.date(...)Moment, scheduled event, or date intervalNone
.location(inferred:)Home, work, school, commuteApp location permission plus NSWidgetWantsLocation
.location(_:)Specific CLRegionSame location setup
.location(category:)Nearby point-of-interest categorySame setup; returns optional
.fitness(.workoutActive)Active workoutHealthKit read access to HKWorkoutType
.fitness(.activityRingsIncomplete)Ring progressExact exercise/move/stand read types
.sleep(...)Bedtime or wakeupSleep-analysis read access
.hardware(headphones:)Headphone connectionNone

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.

Provider invariants

  • Return WidgetRelevanceAttribute values in priority order; the system may use

only a subset.

  • location(category:) is optional—omit unsupported categories rather than

force-unwrapping.

  • A relevance entries provider supplies relevance, entry, placeholder,

and a deterministic preview path.

  • When timeline and relevant widgets represent the same data, set

.associatedKind(_:) to avoid duplicate Smart Stack cards.

  • Use .automatic, .ungrouped, or .named grouping intentionally.
  • For timeline-provider relevance, call

RelevantIntentManager.shared.updateRelevantIntents whenever source data changes, not only during timeline refresh.

  • Degrade gracefully when authorization is absent; do not manufacture false

location, fitness, or sleep clues.

Testing

  • Enable WidgetKit Developer Mode on the Apple Watch.
  • Preview entry and configuration states at relevant display sizes.
  • Exercise permission granted, denied, restricted, and unavailable data paths.
  • Verify ordering, grouping, and duplicate suppression with realistic entries.
  • Finish on a physical watch; do not treat compilation or iOS preview behavior

as proof of Smart Stack ranking.

Common Mistakes

  • Expecting RelevanceKit calls to affect iOS widget ranking.
  • Creating a relevant widget when a normal timeline plus relevance is sufficient.
  • Returning location clues without widget-update authorization.
  • Failing to refresh relevant intents after source data changes.
  • Omitting associatedKind and creating duplicate cards.
  • Assuming every point-of-interest category creates a context.

Review Checklist

  • [ ] Provider model matches always-available versus condition-only content.
  • [ ] Relevance scope is separated from WidgetKit, HealthKit, and MapKit ownership.
  • [ ] Every clue has its exact permission and availability setup.
  • [ ] Attributes are priority-ordered and unsupported optionals are omitted.
  • [ ] Entry, placeholder, relevance, and preview paths are deterministic.
  • [ ] Grouping and associatedKind prevent unwanted duplicates.
  • [ ] Relevant intents update whenever underlying data changes.
  • [ ] Physical-watch testing covers permission and ranking behavior.

References

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
3
7-day trend score
7

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/thiennc-tesoglobal/ios-skills/relevancekit/badge)](https://verified-skill.com/skills/thiennc-tesoglobal/ios-skills/relevancekit)

Something wrong with this skill or its page? Tell us.