[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M782N68B1KHFQ157DFBGSM8N":3,"skill-same:01M782N68B1KHFQ157DFBGSM8N":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M782N68B1KHFQ157DFBGSM8N","activitykit",null,"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\u002Fupdate\u002Fend), Dynamic Island layouts (compact\u002Fminimal\u002Fexpanded), push-to-update Live Activities, or Lock Screen live widgets.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fskills_sh\u002Fs\u002Fskills-sh_dpearson2699_swift-ios-skills_activitykit\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: activitykit\ndescription: \"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\u002Fupdate\u002Fend), Dynamic Island layouts (compact\u002Fminimal\u002Fexpanded), push-to-update Live Activities, or Lock Screen live widgets.\"\n---\n\n# ActivityKit\n\nActivityKit owns real-time, glanceable Live Activities displayed on the Lock\nScreen and, on supported devices, Dynamic Island. StandBy, CarPlay, and a\npaired Mac can also display Live Activities, but do not blur that core routing:\nordinary Home Screen\u002Ftimeline widgets belong in `widgetkit`, and generic APNs\nsetup belongs in `push-notifications`. Live Activity push payload shape stays in\nActivityKit: device-token updates use `apns-push-type: liveactivity` and\n`apns-topic: \u003Cbundle-id>.push-type.liveactivity`, while `aps.content-state` must\ndecode into the app's actual `ActivityAttributes.ContentState` `Codable` shape.\nDo not assume `Date` or `ClosedRange\u003CDate>` use Unix timestamp\n`lowerBound`\u002F`upperBound` dictionaries unless the Swift model and server\ncontract coordinate that encoding. Boundary answers that keep ActivityKit APNs\npayloads, `content-state`, or Live Activity data contracts in scope should\ninclude these payload-shape invariants even when routing generic APNs setup\nelsewhere. Patterns target iOS 26+ with Swift 6.3;\nmodern `ActivityContent` lifecycle examples require iOS 16.2+ unless noted.\n\nSee [references\u002Factivitykit-patterns.md](references\u002Factivitykit-patterns.md) for complete code patterns including push payload formats, concurrent activities, state observation, and testing.\n\n## Contents\n\n- [Workflow](#workflow)\n- [ActivityAttributes Definition](#activityattributes-definition)\n- [Activity Lifecycle](#activity-lifecycle)\n- [Lock Screen Presentation](#lock-screen-presentation)\n- [Dynamic Island](#dynamic-island)\n- [Push-to-Update](#push-to-update)\n- [Recent Additions](#recent-additions)\n- [Common Mistakes](#common-mistakes)\n- [Review Checklist](#review-checklist)\n- [References](#references)\n\n## Workflow\n\n### 1. Create a new Live Activity\n\n1. Add `NSSupportsLiveActivities = YES` to the host app's Info.plist.\n2. Define an `ActivityAttributes` struct with a nested `ContentState`.\n3. Create an `ActivityConfiguration` in the widget bundle with Lock Screen\n   content and Dynamic Island closures.\n4. Start the activity with `Activity.request(attributes:content:pushType:)`.\n5. Update with `activity.update(_:)` and end with `activity.end(_:dismissalPolicy:)`.\n6. Forward push tokens to your server for remote updates.\n\n### 2. Review existing Live Activity code\n\nRun through the Review Checklist at the end of this document.\n\n## ActivityAttributes Definition\n\nDefine both static data (immutable for the activity lifetime) and dynamic\n`ContentState` (changes with each update). Keep `ContentState` small because\nthe entire struct is serialized on every update and push payload.\n\n```swift\nimport ActivityKit\n\nstruct DeliveryAttributes: ActivityAttributes {\n    \u002F\u002F Static -- set once at activity creation, never changes\n    var orderNumber: Int\n    var restaurantName: String\n\n    \u002F\u002F Dynamic -- updated throughout the activity lifetime\n    struct ContentState: Codable, Hashable {\n        var driverName: String\n        var estimatedDeliveryTime: ClosedRange\u003CDate>\n        var currentStep: DeliveryStep\n    }\n}\n\nenum DeliveryStep: String, Codable, Hashable, CaseIterable {\n    case confirmed, preparing, pickedUp, delivering, delivered\n\n    var icon: String {\n        switch self {\n        case .confirmed: \"checkmark.circle\"\n        case .preparing: \"frying.pan\"\n        case .pickedUp: \"bag.fill\"\n        case .delivering: \"box.truck.fill\"\n        case .delivered: \"house.fill\"\n        }\n    }\n}\n```\n\n### Stale Date\n\nSet `staleDate` on `ActivityContent` to tell the system when content becomes outdated. The system sets `context.isStale` to `true` after this date; show fallback UI (e.g., \"Updating...\") in your views.\n\n```swift\nlet content = ActivityContent(\n    state: state,\n    staleDate: Date().addingTimeInterval(300), \u002F\u002F stale after 5 minutes\n    relevanceScore: 75\n)\n```\n\n## Activity Lifecycle\n\n### Starting\n\nUse `Activity.request` to create and display a Live Activity. Pass `.token` as\nthe `pushType` to enable remote updates via APNs. The `ActivityContent` request\nshown here requires iOS 16.2+.\n\n```swift\nlet attributes = DeliveryAttributes(orderNumber: 42, restaurantName: \"Pizza Place\")\nlet state = DeliveryAttributes.ContentState(\n    driverName: \"Alex\",\n    estimatedDeliveryTime: Date()...Date().addingTimeInterval(1800),\n    currentStep: .preparing\n)\nlet content = ActivityContent(state: state, staleDate: nil, relevanceScore: 75)\n\ndo {\n    let activity = try Activity.request(\n        attributes: attributes,\n        content: content,\n        pushType: .token\n    )\n    print(\"Started activity: \\(activity.id)\")\n} catch {\n    print(\"Failed to start activity: \\(error)\")\n}\n```\n\n### Updating\n\nUpdate the dynamic content state from the app. Use `AlertConfiguration` to\ntrigger a visible banner and sound alongside the update.\n\n```swift\nlet updatedState = DeliveryAttributes.ContentState(\n    driverName: \"Alex\",\n    estimatedDeliveryTime: Date()...Date().addingTimeInterval(600),\n    currentStep: .delivering\n)\nlet updatedContent = ActivityContent(\n    state: updatedState,\n    staleDate: Date().addingTimeInterval(300),\n    relevanceScore: 90\n)\n\n\u002F\u002F Silent update\nawait activity.update(updatedContent)\n\n\u002F\u002F Update with an alert\nawait activity.update(updatedContent, alertConfiguration: AlertConfiguration(\n    title: \"Order Update\",\n    body: \"Your driver is nearby!\",\n    sound: .default\n))\n```\n\n### Ending\n\nEnd the activity when the tracked event completes. Choose a dismissal policy\nto control how long the ended activity lingers on the Lock Screen.\n\n```swift\nlet finalState = DeliveryAttributes.ContentState(\n    driverName: \"Alex\",\n    estimatedDeliveryTime: Date()...Date(),\n    currentStep: .delivered\n)\nlet finalContent = ActivityContent(state: finalState, staleDate: nil, relevanceScore: 0)\n\n\u002F\u002F System decides when to remove (up to 4 hours)\nawait activity.end(finalContent, dismissalPolicy: .default)\n\n\u002F\u002F Remove immediately\nawait activity.end(finalContent, dismissalPolicy: .immediate)\n\n\u002F\u002F Remove after a specific time (max 4 hours from now)\nawait activity.end(finalContent, dismissalPolicy: .after(Date().addingTimeInterval(3600)))\n```\n\nAlways end activities on all terminal code paths -- success, user\u002Fapp\ncancellation, sign-out\u002Fsession stop, unrecoverable app error, and terminal server\nfailure. If the server says the tracked event can no longer continue or be\nrepresented accurately, apply or send a final terminal state and end the activity\ninstead of leaving stale progress visible. When reviewing duration claims,\ndistinguish the active lifetime (up to 8 hours unless the app or user ends it\nsooner), system-ended Lock Screen presence (up to 4 additional hours, for 12\nhours total from start), and app-ended `.default` dismissal linger (up to 4 hours\nafter ending).\n\n## Lock Screen Presentation\n\nThe Lock Screen is the primary Live Activity display surface. Every device with\niOS 16.1+ displays Live Activities here. Design this layout first, then adapt\nfor Dynamic Island where available.\n\n```swift\nstruct DeliveryActivityWidget: Widget {\n    var body: some WidgetConfiguration {\n        ActivityConfiguration(for: DeliveryAttributes.self) { context in\n            VStack(alignment: .leading) {\n                Text(context.attributes.restaurantName).font(.headline)\n\n                if context.isStale {\n                    Label(\"Updating...\", systemImage: \"arrow.trianglehead.2.clockwise\")\n                        .foregroundStyle(.secondary)\n                } else {\n                    Text(timerInterval: context.state.estimatedDeliveryTime, countsDown: true)\n                        .monospacedDigit()\n                }\n            }\n            .padding()\n        } dynamicIsland: { context in\n            DynamicIsland {\n                DynamicIslandExpandedRegion(.center) {\n                    Text(context.attributes.restaurantName).font(.headline)\n                }\n                DynamicIslandExpandedRegion(.trailing) {\n                    Text(timerInterval: context.state.estimatedDeliveryTime, countsDown: true)\n                }\n            } compactLeading: {\n                Image(systemName: \"box.truck.fill\")\n            } compactTrailing: {\n                Text(timerInterval: context.state.estimatedDeliveryTime, countsDown: true)\n            } minimal: {\n                Image(systemName: \"box.truck.fill\")\n            }\n        }\n    }\n}\n```\n\n### Supplemental Activity Families\n\nThe Lock Screen presentation has limited vertical space. Avoid layouts taller\nthan roughly 160 points. On iOS 18+, use `supplementalActivityFamilies` when\nyou provide adaptive layouts beyond the default: `.medium` for iOS\u002FmacOS\nLive Activity sizing and `.small` for watchOS Live Activity sizing.\n\n```swift\nActivityConfiguration(for: DeliveryAttributes.self) { context in\n    \u002F\u002F Lock Screen content\n} dynamicIsland: { context in\n    \u002F\u002F Dynamic Island\n}\n.supplementalActivityFamilies([.medium, .small])\n```\n\n## Dynamic Island\n\nDynamic Island presentations appear only on devices that include Dynamic Island.\nDesign all three modes, but treat the Lock Screen as the primary surface since\nnot all devices have a Dynamic Island.\n\n### Compact (Leading + Trailing)\n\nUsed when one Live Activity occupies Dynamic Island compact space. Space is\nextremely limited -- show only the most critical information.\n\n| Region | Purpose |\n|---|---|\n| `compactLeading` | Icon or tiny label identifying the activity |\n| `compactTrailing` | One key value (timer, score, status) |\n\n### Minimal\n\nShown when multiple Live Activities compete for space. Only one activity gets\nthe minimal slot. Display a single icon or glyph.\n\n### Expanded Regions\n\nShown when the user long-presses the Dynamic Island.\n\n| Region | Position |\n|---|---|\n| `.leading` | Left of the TrueDepth camera; wraps below |\n| `.trailing` | Right of the TrueDepth camera; wraps below |\n| `.center` | Directly below the camera |\n| `.bottom` | Below all other regions |\n\n### Keyline Tint\n\nApply a subtle tint to the Dynamic Island border:\n\n```swift\nDynamicIsland { \u002F* expanded *\u002F }\n    compactLeading: { \u002F* ... *\u002F }\n    compactTrailing: { \u002F* ... *\u002F }\n    minimal: { \u002F* ... *\u002F }\n    .keylineTint(.blue)\n```\n\n## Push-to-Update\n\nPush-to-update sends Live Activity updates through APNs, which is more\nefficient than polling from the app and works when the app is suspended, subject\nto APNs delivery, priority, budget, and throttling.\n\n### Setup\n\nPass `.token` as the `pushType` when starting the activity, then forward the\nper-activity update token to your server. Update tokens can rotate, so observe\n`activity.pushTokenUpdates` and re-register every emitted token:\n\n```swift\nlet activity = try Activity.request(\n    attributes: attributes,\n    content: content,\n    pushType: .token\n)\n\n\u002F\u002F Observe token changes -- tokens can rotate\nTask {\n    for await token in activity.pushTokenUpdates {\n        let tokenString = token.map { String(format: \"%02x\", $0) }.joined()\n        try await ServerAPI.shared.registerActivityToken(\n            tokenString, activityID: activity.id\n        )\n    }\n}\n```\n\n### APNs Payload Format\n\nSend an HTTP\u002F2 POST to APNs with these headers and JSON body:\n\n**Required device-token HTTP headers:**\n- `apns-push-type: liveactivity`\n- `apns-topic: \u003Cbundle-id>.push-type.liveactivity`\n- `apns-priority: 5` (lower priority) or `10` (immediate, counts against budget)\n\nThe `aps.alert` payload controls visible alert\u002Fbanner\u002Fsound behavior; priority\nalone does not create an alert.\n\n**Payload body:** Put `timestamp`, `event`, and the full `content-state` inside `aps`. Use `event: \"update\"` for updates, `event: \"end\"` plus optional `dismissal-date` for ending, and `event: \"start\"` with `attributes-type`, `attributes`, `content-state`, and required `alert` for push-to-start. Add `stale-date`, `relevance-score`, or `alert` when appropriate.\n\nThe `content-state` JSON must decode into `ActivityAttributes.ContentState`. Use the default synthesized `Codable` key and value shape unless the Swift model declares custom `CodingKeys`; then coordinate those exact keys and value shapes server-side. Do not assume `Date` or `ClosedRange\u003CDate>` values are Unix timestamp dictionaries unless your Swift model explicitly encodes them that way. Mismatched keys or types can prevent ActivityKit from applying the update.\n\n### Push-to-Start\n\nStart a Live Activity remotely without the app running (iOS 17.2+). Push-to-start tokens are ActivityKit-specific tokens from `Activity\u003CAttributes>.pushToStartTokenUpdates`; they are distinct from ordinary app\u002Fdevice APNs tokens and per-activity update tokens:\n\n```swift\nTask {\n    for await token in Activity\u003CDeliveryAttributes>.pushToStartTokenUpdates {\n        let tokenString = token.map { String(format: \"%02x\", $0) }.joined()\n        try await ServerAPI.shared.registerPushToStartToken(tokenString)\n    }\n}\n```\n\n### Frequent Push Updates\n\nAdd `NSSupportsLiveActivitiesFrequentUpdates = YES` to Info.plist to increase\nthe system-managed push update budget. When cadence matters, check\n`ActivityAuthorizationInfo.frequentPushesEnabled` and observe\n`frequentPushEnablementUpdates`; Apple does not guarantee a fixed update rate.\n\n## Recent Additions\n\n### Scheduled Live Activities (iOS 26+)\n\nSchedule a Live Activity to start at a future time. The system starts the\nactivity automatically without the app being in the foreground. Use for events\nwith known start times (sports games, flights, scheduled deliveries).\n\n```swift\nlet scheduledDate = Calendar.current.date(\n    from: DateComponents(year: 2026, month: 3, day: 15, hour: 19, minute: 0)\n)!\n\nlet activity = try Activity.request(\n    attributes: attributes,\n    content: content,\n    pushType: .token,\n    style: .standard,\n    alertConfiguration: AlertConfiguration(\n        title: \"Game Starting\",\n        body: \"The live score is ready.\",\n        sound: .default\n    ),\n    start: scheduledDate\n)\n```\n\n### ActivityStyle (iOS 18+ request parameter)\n\nUse the iOS 18+ `style:` request parameter to choose persistence behavior. Use\n`.standard` for persistent Live Activities such as deliveries, rides, sports\nscores, timers, and flight\u002Fstatus boards. Use `.transient` only for a\nshort-lived expanded Dynamic Island presentation; it can auto-end when the user\nlocks the device, collapses or shrinks the expanded presentation, leaves the\napp, or does other work outside Dynamic Island.\n\n```swift\nlet activity = try Activity.request(\n    attributes: attributes,\n    content: content,\n    pushType: .token,\n    style: .standard\n)\n```\n\n### Paired Mac & CarPlay (iOS 26+)\n\nLive Activities can appear on a paired Mac and on the CarPlay Home Screen. No additional ActivityKit API is required, but validate compact layouts; buttons and toggles in Live Activities do not perform actions in CarPlay.\n\n### Channel-Based Push (iOS 18+)\n\nBroadcast updates to many Live Activities at once with an APNs-created channel\nID. Enable the broadcast capability outside Xcode, create the channel on the\nserver, then subscribe with `.channel(channelID)`. Channel pushes update or end\nLive Activities; they do not start them. Use `apns-channel-id` and expiration\nfor channel pushes instead of the device-token `apns-topic` example above.\n\n```swift\nlet activity = try Activity.request(\n    attributes: attributes, content: content,\n    pushType: .channel(channelIDFromServer)\n)\n```\n\n## Common Mistakes\n\n**DON'T:** Put too much content in the compact presentation -- it is tiny.\n**DO:** Show only the most critical info (icon + one value) in compact leading\u002Ftrailing.\n\n**DON'T:** Update Live Activities too frequently from the app (drains battery).\n**DO:** Use push-to-update for server-driven updates. Limit app-side updates to user actions.\n\n**DON'T:** Forget to end the activity when the event reaches any terminal state.\n**DO:** End activities on success, cancellation, sign-out, unrecoverable errors, and terminal server failures. A leaked activity frustrates users.\n\n**DON'T:** Assume every device has Dynamic Island.\n**DO:** Design for the Lock Screen as the primary surface; Dynamic Island is supplementary.\n\n**DON'T:** Treat Lock Screen or Dynamic Island Live Activities as ordinary Home Screen\u002Ftimeline widgets.\n**DO:** Use ActivityKit for the Live Activity lifecycle and those display surfaces; route ordinary Home Screen\u002Ftimeline widgets to `widgetkit`.\n\n**DON'T:** Reduce Live Activity payload routing to generic `content-state` matching when the prompt involves APNs payloads.\n**DO:** Include the actual `ContentState` `Codable` contract and coordinated `Date`\u002F`ClosedRange\u003CDate>` encoding caveat; route generic APNs auth and registration to `push-notifications`.\n\n**DON'T:** Store sensitive information in ActivityAttributes (visible on Lock Screen).\n**DO:** Keep sensitive data in the app and show only safe-to-display summaries.\n\n**DON'T:** Forget to handle stale dates.\n**DO:** Check `context.isStale` in views and show fallback UI (\"Updating...\" or similar).\n\n**DON'T:** Ignore push token rotation. Tokens can change at any time.\n**DO:** Use `activity.pushTokenUpdates` async sequence and re-register on every emission.\n\n**DON'T:** Forget the `NSSupportsLiveActivities` Info.plist key.\n**DO:** Add `NSSupportsLiveActivities = YES` to the host app's Info.plist (not the extension).\n\n**DON'T:** Use the deprecated `contentState`-based API for request\u002Fupdate\u002Fend.\n**DO:** Use `ActivityContent` for all lifecycle calls.\n\n**DON'T:** Fetch network data or location directly from Live Activity views.\n**DO:** Pre-compute display values in the app or server and pass them through ActivityKit updates or pushes.\n\n## Review Checklist\n\n- [ ] `ActivityAttributes` defines static properties and `ContentState`\n- [ ] `NSSupportsLiveActivities = YES` in host app Info.plist\n- [ ] Activity uses `ActivityContent` (not deprecated contentState API)\n- [ ] Activity ended in all terminal paths (success, error, cancellation, sign-out, terminal server failure)\n- [ ] ActivityKit lifecycle and Lock Screen\u002FDynamic Island Live Activity surfaces are separated from ordinary Home Screen\u002Ftimeline widget work\n- [ ] Lock Screen layout, the primary Live Activity surface, handles `context.isStale`\n- [ ] Dynamic Island compact, expanded, and minimal implemented with Lock Screen fallback\n- [ ] Push update token forwarded to server via `activity.pushTokenUpdates`\n- [ ] Push-to-start token collected via `Activity\u003CAttributes>.pushToStartTokenUpdates`\n- [ ] Push-to-start payload includes required `alert`\n- [ ] `content-state` JSON matches the actual `ContentState` `Codable` shape, including coordinated date\u002Frange encoding\n- [ ] Review distinguishes 8-hour active lifetime, 12-hour total system-ended Lock Screen presence, and 4-hour app-ended `.default` linger\n- [ ] `ActivityAuthorizationInfo` checked before starting\n- [ ] `frequentPushesEnabled` checked before assuming high-cadence pushes\n- [ ] ContentState kept small (serialized on every update)\n- [ ] iOS 18+ availability guarded for `style:`, `.channel`, and supplemental families\n- [ ] iOS 18+ `style:` choices are justified: `.standard` for persistent Live Activities, `.transient` only for short-lived expanded Dynamic Island presentations\n- [ ] ActivityKit push priority and `aps.alert` behavior are handled separately\n- [ ] Live Activity views avoid direct network\u002Flocation work\n- [ ] Tested on device for push delivery and Dynamic Island behavior\n\n## References\n\n- See [references\u002Factivitykit-patterns.md](references\u002Factivitykit-patterns.md) for patterns and code examples\n","# ActivityKit\n\nActivityKit owns real-time, glanceable Live Activities displayed on the Lock\nScreen and, on supported devices, Dynamic Island. StandBy, CarPlay, and a\npaired Mac can also display Live Activities, but do not blur that core routing:\nordinary Home Screen\u002Ftimeline widgets belong in `widgetkit`, and generic APNs\nsetup belongs in `push-notifications`. Live Activity push payload shape stays in\nActivityKit: device-token updates use `apns-push-type: liveactivity` and\n`apns-topic: \u003Cbundle-id>.push-type.liveactivity`, while `aps.content-state` must\ndecode into the app's actual `ActivityAttributes.ContentState` `Codable` shape.\nDo not assume `Date` or `ClosedRange\u003CDate>` use Unix timestamp\n`lowerBound`\u002F`upperBound` dictionaries unless the Swift model and server\ncontract coordinate that encoding. Boundary answers that keep ActivityKit APNs\npayloads, `content-state`, or Live Activity data contracts in scope should\ninclude these payload-shape invariants even when routing generic APNs setup\nelsewhere. Patterns target iOS 26+ with Swift 6.3;\nmodern `ActivityContent` lifecycle examples require iOS 16.2+ unless noted.\n\nSee [references\u002Factivitykit-patterns.md](references\u002Factivitykit-patterns.md) for complete code patterns including push payload formats, concurrent activities, state observation, and testing.\n\n## Contents\n\n- [Workflow](#workflow)\n- [ActivityAttributes Definition](#activityattributes-definition)\n- [Activity Lifecycle](#activity-lifecycle)\n- [Lock Screen Presentation](#lock-screen-presentation)\n- [Dynamic Island](#dynamic-island)\n- [Push-to-Update](#push-to-update)\n- [Recent Additions](#recent-additions)\n- [Common Mistakes](#common-mistakes)\n- [Review Checklist](#review-checklist)\n- [References](#references)\n\n## Workflow\n\n### 1. Create a new Live Activity\n\n1. Add `NSSupportsLiveActivities = YES` to the host app's Info.plist.\n2. Define an `ActivityAttributes` struct with a nested `ContentState`.\n3. Create an `ActivityConfiguration` in the widget bundle with Lock Screen\n   content and Dynamic Island closures.\n4. Start the activity with `Activity.request(attributes:content:pushType:)`.\n5. Update with `activity.update(_:)` and end with `activity.end(_:dismissalPolicy:)`.\n6. Forward push tokens to your server for remote updates.\n\n### 2. Review existing Live Activity code\n\nRun through the Review Checklist at the end of this document.\n\n## ActivityAttributes Definition\n\nDefine both static data (immutable for the activity lifetime) and dynamic\n`ContentState` (changes with each update). Keep `ContentState` small because\nthe entire struct is serialized on every update and push payload.\n\n```swift\nimport ActivityKit\n\nstruct DeliveryAttributes: ActivityAttributes {\n    \u002F\u002F Static -- set once at activity creation, never changes\n    var orderNumber: Int\n    var restaurantName: String\n\n    \u002F\u002F Dynamic -- updated throughout the activity lifetime\n    struct ContentState: Codable, Hashable {\n        var driverName: String\n        var estimatedDeliveryTime: ClosedRange\u003CDate>\n        var currentStep: DeliveryStep\n    }\n}\n\nenum DeliveryStep: String, Codable, Hashable, CaseIterable {\n    case confirmed, preparing, pickedUp, delivering, delivered\n\n    var icon: String {\n        switch self {\n        case .confirmed: \"checkmark.circle\"\n        case .preparing: \"frying.pan\"\n        case .pickedUp: \"bag.fill\"\n        case .delivering: \"box.truck.fill\"\n        case .delivered: \"house.fill\"\n        }\n    }\n}\n```\n\n### Stale Date\n\nSet `staleDate` on `ActivityContent` to tell the system when content becomes outdated. The system sets `context.isStale` to `true` after this date; show fallback UI (e.g., \"Updating...\") in your views.\n\n```swift\nlet content = ActivityContent(\n    state: state,\n    staleDate: Date().addingTimeInterval(300), \u002F\u002F stale after 5 minutes\n    relevanceScore: 75\n)\n```\n\n## Activity Lifecycle\n\n### Starting\n\nUse `Activity.request` to create and display a Live Activity. Pass `.token` as\nthe `pushType` to enable remote updates via APNs. The `ActivityContent` request\nshown here requires iOS 16.2+.\n\n```swift\nlet attributes = DeliveryAttributes(orderNumber: 42, restaurantName: \"Pizza Place\")\nlet state = DeliveryAttributes.ContentState(\n    driverName: \"Alex\",\n    estimatedDeliveryTime: Date()...Date().addingTimeInterval(1800),\n    currentStep: .preparing\n)\nlet content = ActivityContent(state: state, staleDate: nil, relevanceScore: 75)\n\ndo {\n    let activity = try Activity.request(\n        attributes: attributes,\n        content: content,\n        pushType: .token\n    )\n    print(\"Started activity: \\(activity.id)\")\n} catch {\n    print(\"Failed to start activity: \\(error)\")\n}\n```\n\n### Updating\n\nUpdate the dynamic content state from the app. Use `AlertConfiguration` to\ntrigger a visible banner and sound alongside the update.\n\n```swift\nlet updatedState = DeliveryAttributes.ContentState(\n    driverName: \"Alex\",\n    estimatedDeliveryTime: Date()...Date().addingTimeInterval(600),\n    currentStep: .delivering\n)\nlet updatedContent = ActivityContent(\n    state: updatedState,\n    staleDate: Date().addingTimeInterval(300),\n    relevanceScore: 90\n)\n\n\u002F\u002F Silent update\nawait activity.update(updatedContent)\n\n\u002F\u002F Update with an alert\nawait activity.update(updatedContent, alertConfiguration: AlertConfiguration(\n    title: \"Order Update\",\n    body: \"Your driver is nearby!\",\n    sound: .default\n))\n```\n\n### Ending\n\nEnd the activity when the tracked event completes. Choose a dismissal policy\nto control how long the ended activity lingers on the Lock Screen.\n\n```swift\nlet finalState = DeliveryAttributes.ContentState(\n    driverName: \"Alex\",\n    estimatedDeliveryTime: Date()...Date(),\n    currentStep: .delivered\n)\nlet finalContent = ActivityContent(state: finalState, staleDate: nil, relevanceScore: 0)\n\n\u002F\u002F System decides when to remove (up to 4 hours)\nawait activity.end(finalContent, dismissalPolicy: .default)\n\n\u002F\u002F Remove immediately\nawait activity.end(finalContent, dismissalPolicy: .immediate)\n\n\u002F\u002F Remove after a specific time (max 4 hours from now)\nawait activity.end(finalContent, dismissalPolicy: .after(Date().addingTimeInterval(3600)))\n```\n\nAlways end activities on all terminal code paths -- success, user\u002Fapp\ncancellation, sign-out\u002Fsession stop, unrecoverable app error, and terminal server\nfailure. If the server says the tracked event can no longer continue or be\nrepresented accurately, apply or send a final terminal state and end the activity\ninstead of leaving stale progress visible. When reviewing duration claims,\ndistinguish the active lifetime (up to 8 hours unless the app or user ends it\nsooner), system-ended Lock Screen presence (up to 4 additional hours, for 12\nhours total from start), and app-ended `.default` dismissal linger (up to 4 hours\nafter ending).\n\n## Lock Screen Presentation\n\nThe Lock Screen is the primary Live Activity display surface. Every device with\niOS 16.1+ displays Live Activities here. Design this layout first, then adapt\nfor Dynamic Island where available.\n\n```swift\nstruct DeliveryActivityWidget: Widget {\n    var body: some WidgetConfiguration {\n        ActivityConfiguration(for: DeliveryAttributes.self) { context in\n            VStack(alignment: .leading) {\n                Text(context.attributes.restaurantName).font(.headline)\n\n                if context.isStale {\n                    Label(\"Updating...\", systemImage: \"arrow.trianglehead.2.clockwise\")\n                        .foregroundStyle(.secondary)\n                } else {\n                    Text(timerInterval: context.state.estimatedDeliveryTime, countsDown: true)\n                        .monospacedDigit()\n                }\n            }\n            .padding()\n        } dynamicIsland: { context in\n            DynamicIsland {\n                DynamicIslandExpandedRegion(.center) {\n                    Text(context.attributes.restaurantName).font(.headline)\n                }\n                DynamicIslandExpandedRegion(.trailing) {\n                    Text(timerInterval: context.state.estimatedDeliveryTime, countsDown: true)\n                }\n            } compactLeading: {\n                Image(systemName: \"box.truck.fill\")\n            } compactTrailing: {\n                Text(timerInterval: context.state.estimatedDeliveryTime, countsDown: true)\n            } minimal: {\n                Image(systemName: \"box.truck.fill\")\n            }\n        }\n    }\n}\n```\n\n### Supplemental Activity Families\n\nThe Lock Screen presentation has limited vertical space. Avoid layouts taller\nthan roughly 160 points. On iOS 18+, use `supplementalActivityFamilies` when\nyou provide adaptive layouts beyond the default: `.medium` for iOS\u002FmacOS\nLive Activity sizing and `.small` for watchOS Live Activity sizing.\n\n```swift\nActivityConfiguration(for: DeliveryAttributes.self) { context in\n    \u002F\u002F Lock Screen content\n} dynamicIsland: { context in\n    \u002F\u002F Dynamic Island\n}\n.supplementalActivityFamilies([.medium, .small])\n```\n\n## Dynamic Island\n\nDynamic Island presentations appear only on devices that include Dynamic Island.\nDesign all three modes, but treat the Lock Screen as the primary surface since\nnot all devices have a Dynamic Island.\n\n### Compact (Leading + Trailing)\n\nUsed when one Live Activity occupies Dynamic Island compact space. Space is\nextremely limited -- show only the most critical information.\n\n| Region | Purpose |\n|---|---|\n| `compactLeading` | Icon or tiny label identifying the activity |\n| `compactTrailing` | One key value (timer, score, status) |\n\n### Minimal\n\nShown when multiple Live Activities compete for space. Only one activity gets\nthe minimal slot. Display a single icon or glyph.\n\n### Expanded Regions\n\nShown when the user long-presses the Dynamic Island.\n\n| Region | Position |\n|---|---|\n| `.leading` | Left of the TrueDepth camera; wraps below |\n| `.trailing` | Right of the TrueDepth camera; wraps below |\n| `.center` | Directly below the camera |\n| `.bottom` | Below all other regions |\n\n### Keyline Tint\n\nApply a subtle tint to the Dynamic Island border:\n\n```swift\nDynamicIsland { \u002F* expanded *\u002F }\n    compactLeading: { \u002F* ... *\u002F }\n    compactTrailing: { \u002F* ... *\u002F }\n    minimal: { \u002F* ... *\u002F }\n    .keylineTint(.blue)\n```\n\n## Push-to-Update\n\nPush-to-update sends Live Activity updates through APNs, which is more\nefficient than polling from the app and works when the app is suspended, subject\nto APNs delivery, priority, budget, and throttling.\n\n### Setup\n\nPass `.token` as the `pushType` when starting the activity, then forward the\nper-activity update token to your server. Update tokens can rotate, so observe\n`activity.pushTokenUpdates` and re-register every emitted token:\n\n```swift\nlet activity = try Activity.request(\n    attributes: attributes,\n    content: content,\n    pushType: .token\n)\n\n\u002F\u002F Observe token changes -- tokens can rotate\nTask {\n    for await token in activity.pushTokenUpdates {\n        let tokenString = token.map { String(format: \"%02x\", $0) }.joined()\n        try await ServerAPI.shared.registerActivityToken(\n            tokenString, activityID: activity.id\n        )\n    }\n}\n```\n\n### APNs Payload Format\n\nSend an HTTP\u002F2 POST to APNs with these headers and JSON body:\n\n**Required device-token HTTP headers:**\n- `apns-push-type: liveactivity`\n- `apns-topic: \u003Cbundle-id>.push-type.liveactivity`\n- `apns-priority: 5` (lower priority) or `10` (immediate, counts against budget)\n\nThe `aps.alert` payload controls visible alert\u002Fbanner\u002Fsound behavior; priority\nalone does not create an alert.\n\n**Payload body:** Put `timestamp`, `event`, and the full `content-state` inside `aps`. Use `event: \"update\"` for updates, `event: \"end\"` plus optional `dismissal-date` for ending, and `event: \"start\"` with `attributes-type`, `attributes`, `content-state`, and required `alert` for push-to-start. Add `stale-date`, `relevance-score`, or `alert` when appropriate.\n\nThe `content-state` JSON must decode into `ActivityAttributes.ContentState`. Use the default synthesized `Codable` key and value shape unless the Swift model declares custom `CodingKeys`; then coordinate those exact keys and value shapes server-side. Do not assume `Date` or `ClosedRange\u003CDate>` values are Unix timestamp dictionaries unless your Swift model explicitly encodes them that way. Mismatched keys or types can prevent ActivityKit from applying the update.\n\n### Push-to-Start\n\nStart a Live Activity remotely without the app running (iOS 17.2+). Push-to-start tokens are ActivityKit-specific tokens from `Activity\u003CAttributes>.pushToStartTokenUpdates`; they are distinct from ordinary app\u002Fdevice APNs tokens and per-activity update tokens:\n\n```swift\nTask {\n    for await token in Activity\u003CDeliveryAttributes>.pushToStartTokenUpdates {\n        let tokenString = token.map { String(format: \"%02x\", $0) }.joined()\n        try await ServerAPI.shared.registerPushToStartToken(tokenString)\n    }\n}\n```\n\n### Frequent Push Updates\n\nAdd `NSSupportsLiveActivitiesFrequentUpdates = YES` to Info.plist to increase\nthe system-managed push update budget. When cadence matters, check\n`ActivityAuthorizationInfo.frequentPushesEnabled` and observe\n`frequentPushEnablementUpdates`; Apple does not guarantee a fixed update rate.\n\n## Recent Additions\n\n### Scheduled Live Activities (iOS 26+)\n\nSchedule a Live Activity to start at a future time. The system starts the\nactivity automatically without the app being in the foreground. Use for events\nwith known start times (sports games, flights, scheduled deliveries).\n\n```swift\nlet scheduledDate = Calendar.current.date(\n    from: DateComponents(year: 2026, month: 3, day: 15, hour: 19, minute: 0)\n)!\n\nlet activity = try Activity.request(\n    attributes: attributes,\n    content: content,\n    pushType: .token,\n    style: .standard,\n    alertConfiguration: AlertConfiguration(\n        title: \"Game Starting\",\n        body: \"The live score is ready.\",\n        sound: .default\n    ),\n    start: scheduledDate\n)\n```\n\n### ActivityStyle (iOS 18+ request parameter)\n\nUse the iOS 18+ `style:` request parameter to choose persistence behavior. Use\n`.standard` for persistent Live Activities such as deliveries, rides, sports\nscores, timers, and flight\u002Fstatus boards. Use `.transient` only for a\nshort-lived expanded Dynamic Island presentation; it can auto-end when the user\nlocks the device, collapses or shrinks the expanded presentation, leaves the\napp, or does other work outside Dynamic Island.\n\n```swift\nlet activity = try Activity.request(\n    attributes: attributes,\n    content: content,\n    pushType: .token,\n    style: .standard\n)\n```\n\n### Paired Mac & CarPlay (iOS 26+)\n\nLive Activities can appear on a paired Mac and on the CarPlay Home Screen. No additional ActivityKit API is required, but validate compact layouts; buttons and toggles in Live Activities do not perform actions in CarPlay.\n\n### Channel-Based Push (iOS 18+)\n\nBroadcast updates to many Live Activities at once with an APNs-created channel\nID. Enable the broadcast capability outside Xcode, create the channel on the\nserver, then subscribe with `.channel(channelID)`. Channel pushes update or end\nLive Activities; they do not start them. Use `apns-channel-id` and expiration\nfor channel pushes instead of the device-token `apns-topic` example above.\n\n```swift\nlet activity = try Activity.request(\n    attributes: attributes, content: content,\n    pushType: .channel(channelIDFromServer)\n)\n```\n\n## Common Mistakes\n\n**DON'T:** Put too much content in the compact presentation -- it is tiny.\n**DO:** Show only the most critical info (icon + one value) in compact leading\u002Ftrailing.\n\n**DON'T:** Update Live Activities too frequently from the app (drains battery).\n**DO:** Use push-to-update for server-driven updates. Limit app-side updates to user actions.\n\n**DON'T:** Forget to end the activity when the event reaches any terminal state.\n**DO:** End activities on success, cancellation, sign-out, unrecoverable errors, and terminal server failures. A leaked activity frustrates users.\n\n**DON'T:** Assume every device has Dynamic Island.\n**DO:** Design for the Lock Screen as the primary surface; Dynamic Island is supplementary.\n\n**DON'T:** Treat Lock Screen or Dynamic Island Live Activities as ordinary Home Screen\u002Ftimeline widgets.\n**DO:** Use ActivityKit for the Live Activity lifecycle and those display surfaces; route ordinary Home Screen\u002Ftimeline widgets to `widgetkit`.\n\n**DON'T:** Reduce Live Activity payload routing to generic `content-state` matching when the prompt involves APNs payloads.\n**DO:** Include the actual `ContentState` `Codable` contract and coordinated `Date`\u002F`ClosedRange\u003CDate>` encoding caveat; route generic APNs auth and registration to `push-notifications`.\n\n**DON'T:** Store sensitive information in ActivityAttributes (visible on Lock Screen).\n**DO:** Keep sensitive data in the app and show only safe-to-display summaries.\n\n**DON'T:** Forget to handle stale dates.\n**DO:** Check `context.isStale` in views and show fallback UI (\"Updating...\" or similar).\n\n**DON'T:** Ignore push token rotation. Tokens can change at any time.\n**DO:** Use `activity.pushTokenUpdates` async sequence and re-register on every emission.\n\n**DON'T:** Forget the `NSSupportsLiveActivities` Info.plist key.\n**DO:** Add `NSSupportsLiveActivities = YES` to the host app's Info.plist (not the extension).\n\n**DON'T:** Use the deprecated `contentState`-based API for request\u002Fupdate\u002Fend.\n**DO:** Use `ActivityContent` for all lifecycle calls.\n\n**DON'T:** Fetch network data or location directly from Live Activity views.\n**DO:** Pre-compute display values in the app or server and pass them through ActivityKit updates or pushes.\n\n## Review Checklist\n\n- [ ] `ActivityAttributes` defines static properties and `ContentState`\n- [ ] `NSSupportsLiveActivities = YES` in host app Info.plist\n- [ ] Activity uses `ActivityContent` (not deprecated contentState API)\n- [ ] Activity ended in all terminal paths (success, error, cancellation, sign-out, terminal server failure)\n- [ ] ActivityKit lifecycle and Lock Screen\u002FDynamic Island Live Activity surfaces are separated from ordinary Home Screen\u002Ftimeline widget work\n- [ ] Lock Screen layout, the primary Live Activity surface, handles `context.isStale`\n- [ ] Dynamic Island compact, expanded, and minimal implemented with Lock Screen fallback\n- [ ] Push update token forwarded to server via `activity.pushTokenUpdates`\n- [ ] Push-to-start token collected via `Activity\u003CAttributes>.pushToStartTokenUpdates`\n- [ ] Push-to-start payload includes required `alert`\n- [ ] `content-state` JSON matches the actual `ContentState` `Codable` shape, including coordinated date\u002Frange encoding\n- [ ] Review distinguishes 8-hour active lifetime, 12-hour total system-ended Lock Screen presence, and 4-hour app-ended `.default` linger\n- [ ] `ActivityAuthorizationInfo` checked before starting\n- [ ] `frequentPushesEnabled` checked before assuming high-cadence pushes\n- [ ] ContentState kept small (serialized on every update)\n- [ ] iOS 18+ availability guarded for `style:`, `.channel`, and supplemental families\n- [ ] iOS 18+ `style:` choices are justified: `.standard` for persistent Live Activities, `.transient` only for short-lived expanded Dynamic Island presentations\n- [ ] ActivityKit push priority and `aps.alert` behavior are handled separately\n- [ ] Live Activity views avoid direct network\u002Flocation work\n- [ ] Tested on device for push delivery and Dynamic Island behavior\n\n## References\n\n- See [references\u002Factivitykit-patterns.md](references\u002Factivitykit-patterns.md) for patterns and code examples\n",{"name":5,"description":7},"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fskills_sh\u002Fs\u002Fskills-sh_dpearson2699_swift-ios-skills_activitykit",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill activitykit",{"tool":39,"command":40},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill activitykit",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill activitykit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fskills_sh\u002Fs\u002Fskills-sh_dpearson2699_swift-ios-skills_activitykit\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]