Skip to main content
skill CX Codex

relevancekit — Claude Code skill: Apple Watch widgets in Smart Stack

A skill that teaches your agent to attach RelevanceKit context to watchOS widgets, so the Smart Stack surfaces them at the right moment.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add dpearson2699/swift-ios-skills --skill relevancekit -a claude-code
Open on GitHub

What relevancekit does

RelevanceKit is Apple's framework for telling watchOS when a widget matters. This skill hands the agent working patterns: RelevantContext built from a date or a place, WidgetRelevance holding a list of attributes, grouping through WidgetRelevanceGroup.

There are two routes. Add a relevance() method to an existing AppIntentTimelineProvider and share the provider code with iOS. Or build the widget entirely on RelevanceConfiguration and RelevanceEntriesProvider, where a card only appears once conditions match. The second route needs watchOS 26+.

Some clues need setup first. Location signals require the containing app to request access and the widget extension to declare NSWidgetWantsLocation; fitness and sleep clues need HealthKit with the exact read types. The author flags the material as beta-sensitive and suggests re-checking Apple's documentation before making firm claims about RelevanceKit behavior.

What it helps with

  • surface a widget in the Smart Stack only at the right time
  • tie a card to the user's location
  • create separate cards for upcoming calendar events
  • factor in a workout or a sleep schedule
  • keep RelevanceKit types apart from WidgetKit ones

Example prompts for the agent

  • Add relevance() to my AppIntentTimelineProvider so the widget shows up before a meeting
  • Build a widget on RelevanceEntriesProvider that only appears near my office
  • Check which permissions my watchOS widget needs for location and fitness clues

How to install relevancekit

1Skills CLI (Vercel)

npx skills add dpearson2699/swift-ios-skills --skill relevancekit -a claude-code

2Manually: put the files in place

~/.claude/skills/relevancekit/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/relevancekit/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about relevancekit

How do I install relevancekit in Claude?

Run npx skills add dpearson2699/swift-ios-skills --skill relevancekit -a claude-code. The skill lands in ~/.claude/skills/relevancekit/SKILL.md.

What does relevancekit do?

It helps the agent write RelevanceKit code: declaring widget context by time, location, fitness state, sleep or connected headphones so watchOS can place the card in the Smart Stack when it fits.

Which platforms does RelevanceKit support?

RelevantContext is declared on iOS 17+ and watchOS 10+, but only watchOS acts on it. RelevanceConfiguration, RelevanceEntriesProvider and RelevanceEntry start at watchOS 26.

Similar skills

Everything for Mobile →

From the same set86

pdfkit This skill guides PDFKit work in Swift apps, from displaying documents to searching text and adding annotations. Use it when building PDF features into an app. CX Codex +1 3,100installs metrickit A skill that steers MetricKit work on iOS and iPadOS: production metrics, diagnostic reports, and how to keep them from slipping away. CX Codex +1 3,100installs swift-security Guides AI agents through Apple Keychain, Secure Enclave, and CryptoKit workflows. Useful for securing client data storage on iOS and macOS. CX Codex +1 3,000installs sensorkit This skill guides SensorKit setup for research apps on iPhone and Apple Watch. Use it to configure sensor access, request consent, record readings, and fetch them later. CX Codex +1 3,000installs appmigrationkit This skill guides Claude Code in setting up cross-platform data transfers between iOS and Android using the AppMigrationKit framework. CX Codex +1 3,000installs browserenginekit Guides work on alternative iOS and iPadOS browser engines with BrowserEngineKit. It covers web content, networking, rendering, and platform setup. CX Codex +1 3,000installs dockkit A skill for the DockKit framework: write Swift code that drives motorized docks and gimbals so the iPhone physically follows a subject. CX Codex +1 3,000installs audioaccessorykit Guides automatic audio switching setup for third-party Bluetooth headphones with AudioAccessoryKit on iOS 26.4+. Useful when companion apps and extensions handle accessory state. CX Codex +1 3,000installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor