activitykit
Implement, review, or improve Live Activities and Dynamic Island experiences in iOS apps using ActivityKit. Use when building real-time updating widgets for the Lock Screen and Dynamic Island — delivery tracking, sports scores, ride-sharing status, workout timers, media playback, or any time-sensitive information that updates in real time. Also use when working with ActivityKit, ActivityAttributes, Activity lifecycle (request/update/end), Dynamic Island layouts (compact/minimal/expanded), push-to-update Live Activities, or Lock Screen live widgets.
npx skills add dpearson2699/swift-ios-skills --skill activitykit --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# ActivityKit ActivityKit owns real-time, glanceable Live Activities displayed on the Lock Screen and Dynamic Island. Ordinary timeline widgets belong in `widgetkit`, and generic APNs setup belongs in `push-notifications`; ActivityKit owns the Live Activity lifecycle and payload contract. `aps.content-state` must decode into the exact `ActivityAttributes.ContentState` shape, including any coordinated custom date/range encoding. Modern `ActivityContent` lifecycle examples require iOS 16.2+ unless noted. See [references/activitykit-patterns.md](references/activitykit-patterns.md) for complete code patterns including push payload formats, concurrent activities, state observation, and testing. ## Contents - [Workflow](#workflow) - [ActivityAttributes Definition](#activityattributes-definition) - [Activity Lifecycle](#activity-lifecycle) - [Lock Screen Presentation](#lock-screen-presentation) - [Dynamic Island](#dynamic-island) - [Push-to-Update](#push-to-update) - [Recent Additions](#recent-additions) - [Common Mistakes](#common-mistakes) - [Review Checklist](#review-checklist) - [References](#references) ## Workflow ### 1. Create a new Live Activity 1. Verify the host app capability a
- Contents
- Workflow
- 1. Create a new Live Activity
- 2. Review existing Live Activity code
- ActivityAttributes Definition
- Stale Date
- Activity Lifecycle
- Starting
- Updating
- Ending
- Lock Screen Presentation
- Supplemental Activity Families
- Dynamic Island
- Compact (Leading + Trailing)
What does the activitykit skill do?
Implement, review, or improve Live Activities and Dynamic Island experiences in iOS apps using ActivityKit. Use when building real-time updating widgets for the Lock Screen and Dynamic Island — delivery tracking, sports scores, ride-sharing status, workout timers, media playback, or any time-sensitive information that updates in real time. Also use when working with ActivityKit, ActivityAttributes, Activity lifecycle (request/update/end), Dynamic Island layouts (compact/minimal/expanded), push-to-update Live Activities, or Lock Screen live widgets.
How do I install it?
Run `npx skills add dpearson2699/swift-ios-skills --skill activitykit --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From dpearson2699/swift-ios-skills, a repository with 963 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.