Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Relevancekit

BSecurity

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.

3 stars
0 votes
0 copies
0 views
Added 9/28/2026
developmentgoswifttestingdocumentation

Security Analysis

B75/100
criticalClaims developer/debug mode to bypass safety — documented in ToxicSkills study

Scanned 9/28/2026

Install to Claude Code

$npx -y skills add thiennc-tesoglobal/ios-skills --skill relevancekit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Relevancekit?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Relevancekit
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/thiennc-tesoglobal-relevancekit/badge)](https://www.skillsdirectory.com/skills/thiennc-tesoglobal-relevancekit)

More formats (shields.io, HTML) on the badges page.

Files
SKILL.md
---
name: relevancekit
description: "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."
---

# 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.3 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](#choose-a-provider)
- [Scope boundaries](#scope-boundaries)
- [Signals and permissions](#signals-and-permissions)
- [Provider invariants](#provider-invariants)
- [Testing](#testing)
- [Common mistakes](#common-mistakes)
- [Review checklist](#review-checklist)
- [References](#references)

## 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.
2. 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](references/relevancekit-patterns.md) 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

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

## 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

- [RelevanceKit patterns](references/relevancekit-patterns.md)
- [RelevanceKit documentation](https://sosumi.ai/documentation/relevancekit)
- [RelevantContext](https://sosumi.ai/documentation/relevancekit/relevantcontext)
- [Smart Stack widget suggestions](https://sosumi.ai/documentation/widgetkit/widget-suggestions-in-smart-stacks)
- [RelevanceConfiguration](https://sosumi.ai/documentation/widgetkit/relevanceconfiguration)
- [RelevanceEntriesProvider](https://sosumi.ai/documentation/widgetkit/relevanceentriesprovider)

Attribution

thiennc-tesoglobalthiennc-tesoglobal
View sourceMore from thiennc-tesoglobal →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Browser Extension Developer

Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.

284972 votes

Seo Optimizer

SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.

2222 votes

Google Official Seo Guide

Official Google SEO guide covering search optimization, best practices, Search Console, crawling, indexing, and improving website search visibility based on official Google documentation

1862 votes

Tanstack Start

Build a full-stack TanStack Start app on Cloudflare Workers from scratch — SSR, file-based routing, server functions, D1+Drizzle, better-auth, Tailwind v4+shadcn/ui. Use whenever the user mentions TanStack Start, asks to scaffold a full-stack Cloudflare app with SSR, wants an SSR dashboard, or asks for a React 19 + Cloudflare Workers app with file-based routing and server functions — even if they don't name TanStack Start specifically. No template repo — Claude generates every file fresh per ...

10311 votes

Pentest

PTES-aligned adversarial security audit for backend, frontend, and mobile applications. Produces a CVSS-scored Hacker Report with verified PoCs and phased remediation.

5491 votes
View all in development →