# relevancekit

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

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 3000 installs · ★ 1237
- Author: dpearson2699
- License: LicenseRef-Unknown · policy=link-only · description only; the file stays with the author
- Source: https://github.com/dpearson2699/swift-ios-skills/tree/HEAD/skills/relevancekit/SKILL.md
- Updated: 2026-07-31
- HTML: https://affpapa.org/en/nevibecode/skills/relevancekit

## What it 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.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add dpearson2699/swift-ios-skills --skill relevancekit -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/relevancekit/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/relevancekit/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add dpearson2699/swift-ios-skills --skill relevancekit -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/relevancekit/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add dpearson2699/swift-ios-skills --skill relevancekit -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/relevancekit/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install dpearson2699/swift-ios-skills relevancekit
```

2. **Manually: put the files in place**
- File: `.github/skills/relevancekit/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add dpearson2699/swift-ios-skills --skill relevancekit -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/dpearson2699/swift-ios-skills --path skills/relevancekit
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/relevancekit/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add dpearson2699/swift-ios-skills --skill relevancekit -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/dpearson2699/swift-ios-skills/tree/HEAD/skills/relevancekit/SKILL.md

## When to use it
- 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
- 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

## Similar
- [widgetkit](https://affpapa.org/en/nevibecode/skills/prisma-labs-dev-widgetkit.md) — skill · 458 installs
- [watchOS](https://affpapa.org/en/nevibecode/skills/watchos.md) — skill · 579 installs
- [axiom-watchos](https://affpapa.org/en/nevibecode/skills/axiom-watchos.md) — skill · 934 installs
- [apple-hig-expert](https://affpapa.org/en/nevibecode/skills/apple-hig-expert.md) — skill · 662 installs
- [hig-components-status](https://affpapa.org/en/nevibecode/skills/hig-components-status.md) — skill · 636 installs
- [axiom-health](https://affpapa.org/en/nevibecode/skills/axiom-health.md) — skill · 953 installs

From the same set: [dpearson2699/swift-ios-skills](https://affpapa.org/en/nevibecode/by/dpearson2699/swift-ios-skills.md) — 86 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
