[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6E6HSNEBB47ZWAYSFQMZG7Y":3,"skill-same:01M6E6HSNEBB47ZWAYSFQMZG7Y":368},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":50,"repositoryHtmlUrl":51,"repositoryHomepageUrl":52,"ownerHtmlUrl":53,"ownerBlogUrl":6,"ownerDescription":54,"updatedAt":55,"install":56,"resources":69},"01M6E6HSNEBB47ZWAYSFQMZG7Y","axiom-now-playing",null,"Use when Now Playing metadata doesn't appear on Lock Screen\u002FControl Center, remote commands (play\u002Fpause\u002Fskip) don't respond, artwork is missing\u002Fwrong\u002Fflickering, or playback state is out of sync - provides systematic diagnosis, correct patterns, and professional push-back for audio\u002Fvideo apps on iOS 18+","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FCharlesWiltgen\u002FAxiom\u002Faxiom-now-playing\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"axiom now playing","now","commands","respond","professional","missing","screen","apps","diagnosis","systematic","sync","back","patterns","use","correct","Audio","Video","push","state","play","2026-11-10 10:12:30",false,"---\nname: axiom-now-playing\ndescription: Use when Now Playing metadata doesn't appear on Lock Screen\u002FControl Center, remote commands (play\u002Fpause\u002Fskip) don't respond, artwork is missing\u002Fwrong\u002Fflickering, or playback state is out of sync - provides systematic diagnosis, correct patterns, and professional push-back for audio\u002Fvideo apps on iOS 18+\nlicense: MIT\ncompatibility: iOS 18+, iPadOS 18+, CarPlay (iOS 14+)\nmetadata:\n  version: \"1.1.0\"\n---\n\n# Now Playing Integration Guide\n\n**Purpose**: Prevent the 4 most common Now Playing issues on iOS 18+: info not appearing, commands not working, artwork problems, and state sync issues\n\n**Swift Version**: Swift 6.0+\n**iOS Version**: iOS 18+\n**Xcode**: Xcode 16+\n\n## Core Philosophy\n\n> \"Now Playing eligibility requires THREE things working together: AVAudioSession activation, remote command handlers, and metadata publishing. Missing ANY of these silently breaks the entire system. 90% of Now Playing issues stem from incorrect activation order or missing command handlers, not API bugs.\"\n\n**Key Insight from WWDC 2022\u002F110338**: Apps must meet two system heuristics:\n1. Register handlers for at least one remote command\n2. Configure AVAudioSession with a non-mixable category\n\n## When to Use This Skill\n\n✅ **Use this skill when**:\n- Now Playing info doesn't appear on Lock Screen or Control Center\n- Play\u002Fpause\u002Fskip buttons are grayed out or don't respond\n- Album artwork is missing, wrong, or flickers between images\n- Control Center shows \"Playing\" when app is paused, or vice versa\n- Apple Music or other apps \"steal\" Now Playing status\n- Implementing Now Playing for the first time\n- Debugging Now Playing issues in existing implementation\n- Integrating CarPlay Now Playing (covered in Pattern 6)\n- Working with MusicKit\u002FApple Music content (covered in Pattern 7)\n\n### iOS 26 Note\n\niOS 26 introduces **Liquid Glass visual design** for Lock Screen and Control Center Now Playing widgets. This is **automatic system behavior** — no code changes required. The patterns in this skill remain valid for iOS 26.\n\n❌ **Do NOT use this skill for**:\n- Background audio configuration details (see AVFoundation skill)\n\n## Related Skills\n\n- **swift-concurrency** - For @MainActor patterns, weak self in closures, async artwork loading\n- **memory-debugging** - For retain cycles in command handlers\n- **avfoundation-ref** - For AVAudioSession configuration details\n\n---\n\n## Red Flags \u002F Anti-Patterns\n\n**If you see ANY of these, suspect Now Playing misconfiguration:**\n\n- Info appears briefly then disappears (AVAudioSession deactivated)\n- Commands work in simulator but not on device (simulator has different audio stack)\n- Artwork shows placeholder then updates (race condition, not necessarily wrong)\n- Artwork never appears (format\u002Fsize issue or MPMediaItemArtwork block returning nil)\n- Play\u002Fpause state incorrect after backgrounding (not updating on playback rate changes)\n- Another app \"steals\" Now Playing (didn't meet eligibility requirements)\n- `playbackState` property doesn't update (iOS doesn't have `playbackState`, macOS only!)\n\n**FORBIDDEN Assumptions:**\n- \"Just set nowPlayingInfo and it works\" - Must have AVAudioSession + command handlers\n- \"playbackState controls Control Center\" - iOS ignores playbackState, uses playbackRate\n- \"Artwork just needs an image\" - Needs proper MPMediaItemArtwork with size handler\n- \"Commands enable themselves\" - Must add target AND set isEnabled = true\n- \"Update elapsed time every second\" - System infers from rate, causes jitter\n\n## Mandatory First Steps (Pre-Diagnosis)\n\nRun this code to understand current state before debugging:\n\n```swift\n\u002F\u002F 1. Verify AVAudioSession configuration\nlet session = AVAudioSession.sharedInstance()\nprint(\"Category: \\(session.category.rawValue)\")\nprint(\"Mode: \\(session.mode.rawValue)\")\nprint(\"Options: \\(session.categoryOptions)\")\nprint(\"Is active: \\(try? session.setActive(true))\")\n\u002F\u002F Must be: .playback category, NOT .mixWithOthers option\n\n\u002F\u002F 2. Verify background mode\n\u002F\u002F Info.plist must have: UIBackgroundModes = [\"audio\"]\n\n\u002F\u002F 3. Check command handlers are registered\nlet commandCenter = MPRemoteCommandCenter.shared()\nprint(\"Play enabled: \\(commandCenter.playCommand.isEnabled)\")\nprint(\"Pause enabled: \\(commandCenter.pauseCommand.isEnabled)\")\n\u002F\u002F Must have at least one command with target AND isEnabled = true\n\n\u002F\u002F 4. Check nowPlayingInfo dictionary\nif let info = MPNowPlayingInfoCenter.default().nowPlayingInfo {\n    print(\"Title: \\(info[MPMediaItemPropertyTitle] ?? \"nil\")\")\n    print(\"Artwork: \\(info[MPMediaItemPropertyArtwork] != nil)\")\n    print(\"Duration: \\(info[MPMediaItemPropertyPlaybackDuration] ?? \"nil\")\")\n    print(\"Elapsed: \\(info[MPNowPlayingInfoPropertyElapsedPlaybackTime] ?? \"nil\")\")\n    print(\"Rate: \\(info[MPNowPlayingInfoPropertyPlaybackRate] ?? \"nil\")\")\n} else {\n    print(\"No nowPlayingInfo set!\")\n}\n```\n\n**What this tells you:**\n\n| Observation | Diagnosis | Pattern |\n|-------------|-----------|---------|\n| Category is .ambient or has .mixWithOthers | Won't become Now Playing app | Pattern 1 |\n| No commands have targets | System ignores app | Pattern 2 |\n| Commands have targets but isEnabled = false | UI grayed out | Pattern 2 |\n| Artwork is nil | MPMediaItemArtwork block returning nil | Pattern 3 |\n| playbackRate is 0.0 when playing | Control Center shows paused | Pattern 4 |\n| Background mode \"audio\" not in Info.plist | Info disappears on lock | Pattern 1 |\n\n## Decision Tree\n\n```\nNow Playing not working?\n├─ Info never appears at all?\n│  ├─ AVAudioSession category .ambient or .mixWithOthers?\n│  │  └─ Pattern 1a (Wrong Category)\n│  ├─ No remote command handlers registered?\n│  │  └─ Pattern 2a (Missing Handlers)\n│  ├─ Background mode \"audio\" not in Info.plist?\n│  │  └─ Pattern 1b (Background Mode)\n│  └─ AVAudioSession.setActive(true) never called?\n│     └─ Pattern 1c (Not Activated)\n│\n├─ Info appears briefly, then disappears?\n│  ├─ On lock screen specifically?\n│  │  ├─ AVAudioSession deactivated too early?\n│  │  │  └─ Pattern 1d (Early Deactivation)\n│  │  └─ App suspended (no background mode)?\n│  │     └─ Pattern 1b (Background Mode)\n│  └─ When switching apps?\n│     └─ Another app claiming Now Playing → Pattern 5\n│\n├─ Commands not responding?\n│  ├─ Buttons grayed out (disabled)?\n│  │  └─ command.isEnabled = false → Pattern 2b\n│  ├─ Buttons visible but no response?\n│  │  ├─ Handler not returning .success?\n│  │  │  └─ Pattern 2c (Handler Return)\n│  │  └─ Using wrong command center (session vs shared)?\n│  │     └─ Pattern 2d (Command Center)\n│  └─ Skip forward\u002Fbackward not showing?\n│     └─ preferredIntervals not set → Pattern 2e\n│\n├─ Artwork problems?\n│  ├─ Never appears?\n│  │  ├─ MPMediaItemArtwork block returning nil?\n│  │  │  └─ Pattern 3a (Artwork Block)\n│  │  └─ Image format\u002Fsize invalid?\n│  │     └─ Pattern 3b (Image Format)\n│  ├─ Wrong artwork showing?\n│  │  └─ Race condition between sources → Pattern 3c\n│  └─ Artwork flickering?\n│     └─ Multiple updates in rapid succession → Pattern 3d\n│\n├─ State sync issues?\n│  ├─ Shows \"Playing\" when paused?\n│  │  └─ playbackRate not updated → Pattern 4a\n│  ├─ Progress bar stuck or jumping?\n│  │  └─ elapsedTime not updated at right moments → Pattern 4b\n│  └─ Duration wrong?\n│     └─ Not setting playbackDuration → Pattern 4c\n│\n├─ CarPlay specific issues?\n│  ├─ App doesn't appear in CarPlay at all?\n│  │  └─ Missing entitlement → Pattern 6 (Add com.apple.developer.carplay-audio)\n│  ├─ Now Playing blank in CarPlay but works on iOS?\n│  │  └─ Same root cause as iOS → Check Patterns 1-4\n│  ├─ Custom buttons don't appear in CarPlay?\n│  │  └─ Wrong configuration timing → Pattern 6 (Configure at templateApplicationScene)\n│  └─ Works on device but not CarPlay simulator?\n│     └─ Debugger interference → Pattern 6 (Run without debugger)\n│\n└─ Using MusicKit (ApplicationMusicPlayer)?\n   ├─ Now Playing shows wrong info?\n   │  └─ Overwriting automatic data → Pattern 7 (Don't set nowPlayingInfo manually)\n   └─ Mixing MusicKit + own content?\n      └─ Hybrid approach needed → Pattern 7 (Switch between players)\n```\n\n---\n\n## Pattern 1: AVAudioSession Configuration (Info Not Appearing)\n\n**Time cost**: 10-15 minutes\n\n### Symptom\n- Now Playing info never appears on Lock Screen\n- Info appears briefly then disappears on lock\n- Works in foreground, disappears in background\n\n### BAD Code\n\n```swift\n\u002F\u002F ❌ WRONG — Category allows mixing, won't become Now Playing app\nclass PlayerService {\n    func setupAudioSession() throws {\n        try AVAudioSession.sharedInstance().setCategory(\n            .playback,\n            options: .mixWithOthers  \u002F\u002F ❌ Mixable = not eligible for Now Playing\n        )\n        \u002F\u002F Never called setActive()  \u002F\u002F ❌ Session not activated\n    }\n\n    func play() {\n        player.play()\n        updateNowPlaying()  \u002F\u002F ❌ Won't appear - session not active\n    }\n}\n```\n\n### GOOD Code\n\n```swift\n\u002F\u002F ✅ CORRECT — Non-mixable category, activated before playback\nclass PlayerService {\n    func setupAudioSession() throws {\n        try AVAudioSession.sharedInstance().setCategory(\n            .playback,\n            mode: .default,\n            options: []  \u002F\u002F ✅ No .mixWithOthers = eligible for Now Playing\n        )\n    }\n\n    func play() async throws {\n        \u002F\u002F ✅ Activate BEFORE starting playback\n        try AVAudioSession.sharedInstance().setActive(true)\n\n        player.play()\n        updateNowPlaying()  \u002F\u002F ✅ Now appears correctly\n    }\n\n    func stop() async throws {\n        player.pause()\n\n        \u002F\u002F ✅ Deactivate AFTER stopping, with notify option\n        try AVAudioSession.sharedInstance().setActive(\n            false,\n            options: .notifyOthersOnDeactivation\n        )\n    }\n}\n```\n\n### Info.plist Requirement\n\n```xml\n\u003Ckey>UIBackgroundModes\u003C\u002Fkey>\n\u003Carray>\n    \u003Cstring>audio\u003C\u002Fstring>\n\u003C\u002Farray>\n```\n\n### Verification\n- Lock screen shows Now Playing controls\n- Info persists when app backgrounded\n- Survives app switch (unless another app plays)\n\n---\n\n## Pattern 2: Remote Command Registration (Commands Not Working)\n\n**Time cost**: 15-20 minutes\n\n### Symptom\n- Play\u002Fpause buttons grayed out\n- Buttons visible but tapping does nothing\n- Skip buttons don't appear\n- Commands work once then stop\n\n### BAD Code\n\n```swift\n\u002F\u002F ❌ WRONG — Missing targets and isEnabled\nclass PlayerService {\n    func setupCommands() {\n        let commandCenter = MPRemoteCommandCenter.shared()\n\n        \u002F\u002F ❌ Added target but forgot isEnabled\n        commandCenter.playCommand.addTarget { _ in\n            self.player.play()\n            return .success\n        }\n        \u002F\u002F playCommand.isEnabled defaults to false!\n\n        \u002F\u002F ❌ Never added pause handler\n\n        \u002F\u002F ❌ skipForward without preferredIntervals\n        commandCenter.skipForwardCommand.addTarget { _ in\n            return .success\n        }\n    }\n}\n```\n\n### GOOD Code\n\n```swift\n\u002F\u002F ✅ CORRECT — Targets registered, enabled, with proper configuration\n@MainActor\nclass PlayerService {\n    private var commandTargets: [Any] = []  \u002F\u002F Keep strong references\n\n    func setupCommands() {\n        let commandCenter = MPRemoteCommandCenter.shared()\n\n        \u002F\u002F ✅ Play command - add target AND enable\n        let playTarget = commandCenter.playCommand.addTarget { [weak self] _ in\n            self?.player.play()\n            self?.updateNowPlayingPlaybackState(isPlaying: true)\n            return .success\n        }\n        commandCenter.playCommand.isEnabled = true\n        commandTargets.append(playTarget)\n\n        \u002F\u002F ✅ Pause command\n        let pauseTarget = commandCenter.pauseCommand.addTarget { [weak self] _ in\n            self?.player.pause()\n            self?.updateNowPlayingPlaybackState(isPlaying: false)\n            return .success\n        }\n        commandCenter.pauseCommand.isEnabled = true\n        commandTargets.append(pauseTarget)\n\n        \u002F\u002F ✅ Skip forward - set preferredIntervals BEFORE adding target\n        commandCenter.skipForwardCommand.preferredIntervals = [15.0]\n        let skipForwardTarget = commandCenter.skipForwardCommand.addTarget { [weak self] event in\n            guard let skipEvent = event as? MPSkipIntervalCommandEvent else {\n                return .commandFailed\n            }\n            self?.skip(by: skipEvent.interval)\n            return .success\n        }\n        commandCenter.skipForwardCommand.isEnabled = true\n        commandTargets.append(skipForwardTarget)\n\n        \u002F\u002F ✅ Skip backward\n        commandCenter.skipBackwardCommand.preferredIntervals = [15.0]\n        let skipBackwardTarget = commandCenter.skipBackwardCommand.addTarget { [weak self] event in\n            guard let skipEvent = event as? MPSkipIntervalCommandEvent else {\n                return .commandFailed\n            }\n            self?.skip(by: -skipEvent.interval)\n            return .success\n        }\n        commandCenter.skipBackwardCommand.isEnabled = true\n        commandTargets.append(skipBackwardTarget)\n    }\n\n    func teardownCommands() {\n        let commandCenter = MPRemoteCommandCenter.shared()\n        commandCenter.playCommand.removeTarget(nil)\n        commandCenter.pauseCommand.removeTarget(nil)\n        commandCenter.skipForwardCommand.removeTarget(nil)\n        commandCenter.skipBackwardCommand.removeTarget(nil)\n        commandTargets.removeAll()\n    }\n\n    deinit {\n        teardownCommands()\n    }\n}\n```\n\n### Verification\n- Buttons not grayed out in Control Center\n- Tapping play\u002Fpause actually plays\u002Fpauses\n- Skip buttons show with correct interval (15s)\n\n---\n\n## Pattern 3: Artwork Configuration (Artwork Problems)\n\n**Time cost**: 15-25 minutes\n\n### Symptom\n- Artwork never appears (generic placeholder)\n- Wrong artwork for current track\n- Artwork flickers between images\n- Artwork appears then disappears\n\n### BAD Code\n\n```swift\n\u002F\u002F ❌ WRONG — MPMediaItemArtwork block can return nil, no size handling\nfunc updateNowPlaying() {\n    var nowPlayingInfo = [String: Any]()\n    nowPlayingInfo[MPMediaItemPropertyTitle] = track.title\n\n    \u002F\u002F ❌ Storing UIImage directly (doesn't work)\n    nowPlayingInfo[MPMediaItemPropertyArtwork] = image\n\n    \u002F\u002F ❌ Or: Block that ignores requested size\n    let artwork = MPMediaItemArtwork(boundsSize: image.size) { _ in\n        return self.cachedImage  \u002F\u002F ❌ May be nil, ignores requested size\n    }\n\n    MPNowPlayingInfoCenter.default().nowPlayingInfo = nowPlayingInfo\n}\n\n\u002F\u002F ❌ WRONG — Multiple rapid updates cause flickering\nfunc loadArtwork(from url: URL) {\n    \u002F\u002F Request 1\n    loadImage(url) { image in\n        self.updateNowPlayingArtwork(image)  \u002F\u002F Update 1\n    }\n    \u002F\u002F Request 2 (cached) returns faster\n    loadCachedImage(url) { image in\n        self.updateNowPlayingArtwork(image)  \u002F\u002F Update 2 - flicker!\n    }\n}\n```\n\n### GOOD Code\n\n```swift\n\u002F\u002F ✅ CORRECT — Proper MPMediaItemArtwork with value capture (Swift 6 compliant)\n@MainActor\nclass NowPlayingService {\n    private var currentArtworkURL: URL?\n\n    func updateNowPlayingArtwork(_ image: UIImage, for trackURL: URL) {\n        \u002F\u002F ✅ Prevent race conditions - only update if still current track\n        guard trackURL == currentArtworkURL else { return }\n\n        \u002F\u002F ✅ Create MPMediaItemArtwork with VALUE CAPTURE (not stored property)\n        \u002F\u002F This is Swift 6 strict concurrency compliant — UIImage is immutable\n        \u002F\u002F and safe to capture across isolation domains\n        let artwork = MPMediaItemArtwork(boundsSize: image.size) { [image] requestedSize in\n            \u002F\u002F ✅ System calls this block from any thread\n            \u002F\u002F Captured value avoids \"Main actor-isolated property\" error\n            return image\n        }\n\n        \u002F\u002F ✅ Update only artwork key, preserve other values\n        var nowPlayingInfo = MPNowPlayingInfoCenter.default().nowPlayingInfo ?? [:]\n        nowPlayingInfo[MPMediaItemPropertyArtwork] = artwork\n        MPNowPlayingInfoCenter.default().nowPlayingInfo = nowPlayingInfo\n    }\n\n    \u002F\u002F ✅ Single entry point with priority: embedded > cached > remote\n    func loadArtwork(for track: Track) async {\n        currentArtworkURL = track.artworkURL\n\n        \u002F\u002F Priority 1: Embedded in file (immediate, no flicker)\n        if let embedded = await extractEmbeddedArtwork(track.fileURL) {\n            updateNowPlayingArtwork(embedded, for: track.artworkURL)\n            return\n        }\n\n        \u002F\u002F Priority 2: Already cached (fast)\n        if let cached = await loadFromCache(track.artworkURL) {\n            updateNowPlayingArtwork(cached, for: track.artworkURL)\n            return\n        }\n\n        \u002F\u002F Priority 3: Remote (slow, but don't flicker)\n        \u002F\u002F ✅ Set placeholder first, then update once with real image\n        if let remote = await downloadImage(track.artworkURL) {\n            updateNowPlayingArtwork(remote, for: track.artworkURL)\n        }\n    }\n}\n```\n\n**Why value capture, not `nonisolated(unsafe)`**: The closure passed to `MPMediaItemArtwork` may be called by the system from any thread. Under Swift 6 strict concurrency, accessing `@MainActor`-isolated stored properties from this closure would cause a compile error. Capturing the image value directly is cleaner than using `nonisolated(unsafe)` because UIImage is immutable and thread-safe for reads.\n\n### Artwork Size Guidelines\n- Lock Screen: 300x300 points (600x600 @2x, 900x900 @3x)\n- Control Center: Various sizes\n- **Best practice**: Provide image at least 600x600 pixels\n\n### Verification\n- Artwork appears on Lock Screen\n- Correct artwork for current track\n- No flickering when track changes\n- Artwork persists after backgrounding\n\n---\n\n## Pattern 4: Playback State Synchronization (State Sync Issues)\n\n**Time cost**: 10-20 minutes\n\n### Symptom\n- Control Center shows \"Playing\" when actually paused\n- Progress bar doesn't move or jumps unexpectedly\n- Duration shows wrong value\n- Scrubbing doesn't work correctly\n\n### BAD Code\n\n```swift\n\u002F\u002F ❌ WRONG — Using playbackState (macOS only, ignored on iOS)\nfunc updatePlaybackState(isPlaying: Bool) {\n    MPNowPlayingInfoCenter.default().playbackState = isPlaying ? .playing : .paused\n    \u002F\u002F ❌ iOS ignores this property! Only macOS uses it.\n}\n\n\u002F\u002F ❌ WRONG — Updating elapsed time on a timer (causes drift)\nTimer.scheduledTimer(withTimeInterval: 1.0, repeats: true) { _ in\n    var info = MPNowPlayingInfoCenter.default().nowPlayingInfo ?? [:]\n    info[MPNowPlayingInfoPropertyElapsedPlaybackTime] = self.player.currentTime().seconds\n    MPNowPlayingInfoCenter.default().nowPlayingInfo = info\n    \u002F\u002F ❌ Every second creates jitter, system already infers from timestamp\n}\n\n\u002F\u002F ❌ WRONG — Partial dictionary updates cause race conditions\nfunc updateTitle() {\n    var info = [String: Any]()\n    info[MPMediaItemPropertyTitle] = track.title\n    MPNowPlayingInfoCenter.default().nowPlayingInfo = info\n    \u002F\u002F ❌ Cleared all other values (artwork, duration, etc.)!\n}\n```\n\n### GOOD Code\n\n```swift\n\u002F\u002F ✅ CORRECT — Use playbackRate for iOS, update at key moments only\n@MainActor\nclass NowPlayingService {\n\n    \u002F\u002F ✅ Update when playback STARTS\n    func playbackStarted(track: Track, player: AVPlayer) {\n        var nowPlayingInfo = MPNowPlayingInfoCenter.default().nowPlayingInfo ?? [:]\n\n        \u002F\u002F ✅ Core metadata\n        nowPlayingInfo[MPMediaItemPropertyTitle] = track.title\n        nowPlayingInfo[MPMediaItemPropertyArtist] = track.artist\n        nowPlayingInfo[MPMediaItemPropertyAlbumTitle] = track.album\n        nowPlayingInfo[MPMediaItemPropertyPlaybackDuration] = player.currentItem?.duration.seconds ?? 0\n\n        \u002F\u002F ✅ Playback state via RATE (not playbackState property)\n        nowPlayingInfo[MPNowPlayingInfoPropertyElapsedPlaybackTime] = player.currentTime().seconds\n        nowPlayingInfo[MPNowPlayingInfoPropertyPlaybackRate] = 1.0  \u002F\u002F Playing\n\n        MPNowPlayingInfoCenter.default().nowPlayingInfo = nowPlayingInfo\n    }\n\n    \u002F\u002F ✅ Update when playback PAUSES\n    func playbackPaused(player: AVPlayer) {\n        var nowPlayingInfo = MPNowPlayingInfoCenter.default().nowPlayingInfo ?? [:]\n\n        \u002F\u002F ✅ Update elapsed time AND rate together\n        nowPlayingInfo[MPNowPlayingInfoPropertyElapsedPlaybackTime] = player.currentTime().seconds\n        nowPlayingInfo[MPNowPlayingInfoPropertyPlaybackRate] = 0.0  \u002F\u002F Paused\n\n        MPNowPlayingInfoCenter.default().nowPlayingInfo = nowPlayingInfo\n    }\n\n    \u002F\u002F ✅ Update when user SEEKS\n    func userSeeked(to time: CMTime, player: AVPlayer) {\n        var nowPlayingInfo = MPNowPlayingInfoCenter.default().nowPlayingInfo ?? [:]\n\n        nowPlayingInfo[MPNowPlayingInfoPropertyElapsedPlaybackTime] = time.seconds\n        \u002F\u002F ✅ Keep current rate (don't change playing\u002Fpaused state)\n\n        MPNowPlayingInfoCenter.default().nowPlayingInfo = nowPlayingInfo\n    }\n\n    \u002F\u002F ✅ Update when track CHANGES\n    func trackChanged(to newTrack: Track, player: AVPlayer) {\n        \u002F\u002F ✅ Full refresh of all metadata\n        var nowPlayingInfo = [String: Any]()\n\n        nowPlayingInfo[MPMediaItemPropertyTitle] = newTrack.title\n        nowPlayingInfo[MPMediaItemPropertyArtist] = newTrack.artist\n        nowPlayingInfo[MPMediaItemPropertyAlbumTitle] = newTrack.album\n        nowPlayingInfo[MPMediaItemPropertyPlaybackDuration] = player.currentItem?.duration.seconds ?? 0\n        nowPlayingInfo[MPNowPlayingInfoPropertyElapsedPlaybackTime] = 0.0\n        nowPlayingInfo[MPNowPlayingInfoPropertyPlaybackRate] = player.rate\n\n        MPNowPlayingInfoCenter.default().nowPlayingInfo = nowPlayingInfo\n\n        \u002F\u002F Then load artwork asynchronously\n        Task {\n            await loadArtwork(for: newTrack)\n        }\n    }\n}\n```\n\n### When to Update Now Playing Info\n\n| Event | What to Update |\n|-------|---------------|\n| Playback starts | All metadata + elapsed=current + rate=1.0 |\n| Playback pauses | elapsed=current + rate=0.0 |\n| User seeks | elapsed=newPosition (keep rate) |\n| Track changes | All metadata (new track) |\n| Playback rate changes (2x, 0.5x) | rate=newRate |\n\n### DO NOT Update\n- On a timer (system infers from elapsed + rate + timestamp)\n- Elapsed time continuously (causes jitter)\n- Partial dictionaries (loses other values)\n\n---\n\n## Pattern 5: MPNowPlayingSession (iOS 16+ Recommended Approach)\n\n**Time cost**: 20-30 minutes\n\n### When to Use MPNowPlayingSession\n- iOS 16+ (available since iOS 16, previously tvOS only)\n- Using AVPlayer for playback\n- Want automatic publishing of playback state\n- Multiple players (Picture-in-Picture scenarios)\n\n### BAD Code (Manual Approach - More Error-Prone)\n\n```swift\n\u002F\u002F ❌ Manual updates are error-prone, easy to miss state changes\nclass OldStylePlayer {\n    func play() {\n        player.play()\n        \u002F\u002F Must remember to:\n        updateNowPlayingElapsed()\n        updateNowPlayingRate()\n        \u002F\u002F Easy to forget one...\n    }\n}\n```\n\n### GOOD Code (MPNowPlayingSession)\n\n```swift\n\u002F\u002F ✅ CORRECT — MPNowPlayingSession handles automatic publishing\n@MainActor\nclass ModernPlayerService {\n    private var player: AVPlayer\n    private var session: MPNowPlayingSession?\n\n    init() {\n        player = AVPlayer()\n        setupSession()\n    }\n\n    func setupSession() {\n        \u002F\u002F ✅ Create session with player\n        session = MPNowPlayingSession(players: [player])\n\n        \u002F\u002F ✅ Enable automatic publishing of:\n        \u002F\u002F - Duration\n        \u002F\u002F - Elapsed time\n        \u002F\u002F - Playback state (rate)\n        \u002F\u002F - Playback progress\n        session?.automaticallyPublishNowPlayingInfo = true\n\n        \u002F\u002F ✅ Register commands on SESSION's command center (not shared)\n        session?.remoteCommandCenter.playCommand.addTarget { [weak self] _ in\n            self?.player.play()\n            return .success\n        }\n        session?.remoteCommandCenter.playCommand.isEnabled = true\n\n        session?.remoteCommandCenter.pauseCommand.addTarget { [weak self] _ in\n            self?.player.pause()\n            return .success\n        }\n        session?.remoteCommandCenter.pauseCommand.isEnabled = true\n\n        \u002F\u002F ✅ Try to become active Now Playing session\n        session?.becomeActiveIfPossible { success in\n            print(\"Became active Now Playing: \\(success)\")\n        }\n    }\n\n    func play(track: Track) async {\n        let item = AVPlayerItem(url: track.url)\n\n        \u002F\u002F ✅ Set static metadata on player item (title, artwork)\n        item.nowPlayingInfo = [\n            MPMediaItemPropertyTitle: track.title,\n            MPMediaItemPropertyArtist: track.artist,\n            MPMediaItemPropertyArtwork: await createArtwork(for: track)\n        ]\n\n        player.replaceCurrentItem(with: item)\n        player.play()\n        \u002F\u002F ✅ No need to manually update elapsed time, rate, duration\n        \u002F\u002F MPNowPlayingSession publishes automatically!\n    }\n}\n```\n\n### Multiple Sessions (Picture-in-Picture)\n\n```swift\nclass MultiPlayerService {\n    var mainSession: MPNowPlayingSession\n    var pipSession: MPNowPlayingSession\n\n    func pipDidExpand() {\n        \u002F\u002F ✅ Promote PiP session when it expands to full screen\n        pipSession.becomeActiveIfPossible { success in\n            \u002F\u002F PiP now controls Lock Screen, Control Center\n        }\n    }\n\n    func pipDidMinimize() {\n        \u002F\u002F ✅ Demote back to main session\n        mainSession.becomeActiveIfPossible { success in\n            \u002F\u002F Main player now controls Lock Screen, Control Center\n        }\n    }\n}\n```\n\n### Critical Gotcha\n\n**When using MPNowPlayingSession**: Use `session.remoteCommandCenter`, NOT `MPRemoteCommandCenter.shared()`\n\n```swift\n\u002F\u002F ❌ WRONG\nlet commandCenter = MPRemoteCommandCenter.shared()\ncommandCenter.playCommand.addTarget { _ in }\n\n\u002F\u002F ✅ CORRECT\nsession.remoteCommandCenter.playCommand.addTarget { _ in }\n```\n\n---\n\n## Pattern 6: CarPlay Integration\n\nFor CarPlay-specific integration patterns, invoke `\u002Fskill axiom-now-playing-carplay`.\n\n**Key insight**: CarPlay uses the SAME MPNowPlayingInfoCenter and MPRemoteCommandCenter as iOS. If your Now Playing works on iOS, it works in CarPlay with zero additional code.\n\n---\n\n## Pattern 7: MusicKit Integration (Apple Music)\n\nFor MusicKit-specific integration patterns and hybrid app examples, invoke `\u002Fskill axiom-now-playing-musickit`.\n\n**Key insight**: MusicKit's ApplicationMusicPlayer automatically publishes to MPNowPlayingInfoCenter. You don't need to manually update Now Playing info when playing Apple Music content.\n\n---\n\n## Pressure Scenarios\n\n### Scenario 1: Apple Music Keeps Taking Over (24-Hour Launch Deadline)\n\n#### Situation\n- App launching tomorrow\n- QA reports: \"Now Playing works, but when user opens Apple Music then returns to our app, our controls disappear\"\n- Product manager: \"This is a blocker, users will think our app is broken\"\n- You're 2 hours from code freeze\n\n#### Rationalization Traps (DO NOT)\n1. *\"Just tell users not to use Apple Music\"* - Unacceptable UX, will get 1-star reviews\n2. *\"Force our app to always be Now Playing\"* - Impossible, system controls eligibility\n3. *\"File a bug with Apple\"* - Won't help before launch\n\n#### Root Cause\nYour app loses eligibility because:\n- Using `.mixWithOthers` option (allows other apps to play simultaneously)\n- Not calling `becomeActiveIfPossible()` when returning to foreground\n- AVAudioSession deactivated when backgrounded\n\n#### Systematic Fix (30 minutes)\n\n```swift\n\u002F\u002F 1. Remove mixWithOthers\ntry AVAudioSession.sharedInstance().setCategory(.playback, options: [])\n\n\u002F\u002F 2. Reactivate when returning to foreground\nNotificationCenter.default.addObserver(\n    forName: UIApplication.willEnterForegroundNotification,\n    object: nil,\n    queue: .main\n) { [weak self] _ in\n    guard self?.isPlaying == true else { return }\n\n    do {\n        try AVAudioSession.sharedInstance().setActive(true)\n        self?.session?.becomeActiveIfPossible { _ in }\n    } catch {\n        print(\"Failed to reactivate audio session: \\(error)\")\n    }\n}\n\n\u002F\u002F 3. Handle interruptions (phone call, Siri)\nNotificationCenter.default.addObserver(\n    forName: AVAudioSession.interruptionNotification,\n    object: nil,\n    queue: .main\n) { [weak self] notification in\n    guard let info = notification.userInfo,\n          let typeValue = info[AVAudioSessionInterruptionTypeKey] as? UInt,\n          let type = AVAudioSession.InterruptionType(rawValue: typeValue) else {\n        return\n    }\n\n    if type == .ended {\n        \u002F\u002F ✅ Reactivate after interruption\n        try? AVAudioSession.sharedInstance().setActive(true)\n        self?.session?.becomeActiveIfPossible { _ in }\n    }\n}\n```\n\n#### Communication Template\n\n```\nTo PM: Found root cause - our audio session config allowed Apple Music to take over.\nFix implemented: 3 changes to audio session handling.\nTesting: Verified fix with Apple Music, Spotify, phone calls.\nETA: 20 more minutes for full regression test.\n\nTo QA: Please test this flow:\n1. Play audio in our app\n2. Open Apple Music, play a song\n3. Return to our app, tap play\n4. Lock screen should show OUR controls\n```\n\n#### Time Saved\n- 2-3 hours of debugging speculation\n- Launch delay avoided\n- QA confidence restored\n\n---\n\n### Scenario 2: Artwork Flickers Every Track Change\n\n#### Situation\n- User feedback: \"Album art keeps flashing when songs change\"\n- Analytics show 3-4 artwork updates per track change\n- Designer: \"This looks unprofessional\"\n\n#### Root Cause\nMultiple artwork sources racing:\n1. Cache check (async)\n2. Remote URL fetch (async)\n3. Embedded artwork extraction (async)\n\nAll three complete at different times, each updating Now Playing\n\n#### Fix (20 minutes)\n\n```swift\n\u002F\u002F ✅ Single-source-of-truth with cancellation\nprivate var artworkTask: Task\u003CVoid, Never>?\n\nfunc loadArtwork(for track: Track) {\n    \u002F\u002F Cancel previous artwork load\n    artworkTask?.cancel()\n\n    artworkTask = Task { @MainActor in\n        \u002F\u002F Clear previous artwork immediately (optional)\n        \u002F\u002F updateNowPlayingArtwork(nil)\n\n        \u002F\u002F Wait for best available artwork\n        let artwork = await loadBestArtwork(for: track)\n\n        \u002F\u002F Check if still current track\n        guard !Task.isCancelled else { return }\n\n        \u002F\u002F Single update\n        updateNowPlayingArtwork(artwork, for: track.artworkURL)\n    }\n}\n\nprivate func loadBestArtwork(for track: Track) async -> UIImage? {\n    \u002F\u002F Priority order: embedded > cached > remote\n    if let embedded = await extractEmbeddedArtwork(track) {\n        return embedded\n    }\n    if let cached = await loadFromCache(track.artworkURL) {\n        return cached\n    }\n    return await downloadImage(track.artworkURL)\n}\n```\n\n#### Communication Template\n\n```\nTo Designer: Fixed artwork flicker - reduced from 3-4 updates to 1 per track.\nRoot cause: Multiple async sources racing to update artwork.\nSolution: Task cancellation + priority order (embedded > cached > remote).\nTesting: Verified with 10 track changes, zero flicker.\n```\n\n#### Time Saved\n- 1-2 hours investigating image caching\n- Designer approval unblocked\n- Professional UX restored\n\n---\n\n## Common Gotchas\n\n| Symptom | Cause | Solution | Time to Fix |\n|---------|-------|----------|-------------|\n| Info never appears | Missing background mode | Add `audio` to UIBackgroundModes in Info.plist | 2 min |\n| Info never appears | AVAudioSession not activated | Call `setActive(true)` before playback | 5 min |\n| Info never appears | No command handlers | Add target to at least one command | 10 min |\n| Info never appears | Using `.mixWithOthers` | Remove .mixWithOthers option | 5 min |\n| Commands grayed out | `isEnabled = false` | Set `command.isEnabled = true` after adding target | 5 min |\n| Commands don't respond | Handler returns wrong status | Return `.success` from handler | 5 min |\n| Commands don't respond | Using shared command center with MPNowPlayingSession | Use `session.remoteCommandCenter` instead | 10 min |\n| Skip buttons missing | No preferredIntervals | Set `skipCommand.preferredIntervals = [15.0]` | 5 min |\n| Artwork never appears | MPMediaItemArtwork block returns nil | Ensure image is loaded before creating artwork | 15 min |\n| Artwork flickers | Multiple rapid updates | Single source of truth with cancellation | 20 min |\n| Wrong play\u002Fpause state | Using `playbackState` property | Use `playbackRate` (1.0 = playing, 0.0 = paused) | 10 min |\n| Progress bar stuck | Not updating on seek | Update `elapsedPlaybackTime` after seek completes | 10 min |\n| Progress bar jumps | Updating elapsed on timer | Don't update on timer; system infers from rate | 10 min |\n| Loses Now Playing to other apps | Session not reactivated on foreground | Call `becomeActiveIfPossible()` on foreground | 15 min |\n| `playbackState` doesn't work | iOS-only app | `playbackState` is macOS only; use `playbackRate` on iOS | 10 min |\n| Siri skip ignores preferredIntervals | Hardcoded interval in handler | Use `event.interval` from MPSkipIntervalCommandEvent | 5 min |\n| **CarPlay**: App doesn't appear | Missing entitlement | Add `com.apple.developer.carplay-audio` to entitlements | 5 min |\n| **CarPlay**: Custom buttons don't appear | Configured at wrong time | Configure at `templateApplicationScene(_:didConnect:)` | 5 min |\n| **CarPlay**: Works on device, not simulator | Debugger attached | Run without debugger for reliable testing | 1 min |\n| **MusicKit**: Now Playing wrong | Overwriting automatic data | Don't set `nowPlayingInfo` when using ApplicationMusicPlayer | 5 min |\n\n---\n\n## Expert Checklist\n\n### Before Implementing Now Playing\n- [ ] Added `audio` to UIBackgroundModes in Info.plist\n- [ ] AVAudioSession category is `.playback` without `.mixWithOthers`\n- [ ] Decided: Manual (MPNowPlayingInfoCenter) or Automatic (MPNowPlayingSession)?\n\n### AVAudioSession Setup\n- [ ] `setCategory(.playback)` called at app launch\n- [ ] `setActive(true)` called before playback starts\n- [ ] `setActive(false, options: .notifyOthersOnDeactivation)` on stop\n- [ ] Interruption notification handled (reactivate after phone call)\n- [ ] Foreground notification handled (reactivate after background)\n\n### Remote Commands\n- [ ] At least one command has target registered\n- [ ] All registered commands have `isEnabled = true`\n- [ ] Skip commands have `preferredIntervals` set\n- [ ] Handlers return `.success` on success\n- [ ] Using correct command center (session's vs shared)\n- [ ] Command targets stored to prevent deallocation\n- [ ] Commands removed in deinit\n\n### Now Playing Info\n- [ ] Title set (`MPMediaItemPropertyTitle`)\n- [ ] Duration set (`MPMediaItemPropertyPlaybackDuration`)\n- [ ] Elapsed time set at play\u002Fpause\u002Fseek (`MPNowPlayingInfoPropertyElapsedPlaybackTime`)\n- [ ] Playback rate set (`MPNowPlayingInfoPropertyPlaybackRate`: 1.0 = playing, 0.0 = paused)\n- [ ] Artwork created with `MPMediaItemArtwork(boundsSize:requestHandler:)`\n- [ ] NOT using `playbackState` property (macOS only)\n- [ ] NOT updating elapsed time on a timer\n\n### Artwork\n- [ ] Image at least 600x600 pixels\n- [ ] MPMediaItemArtwork block never returns nil (return placeholder if needed)\n- [ ] Single source of truth prevents flickering\n- [ ] Previous artwork load cancelled on track change\n\n### Testing\n- [ ] Lock screen shows correct info\n- [ ] Control Center shows correct info\n- [ ] Play\u002Fpause buttons respond\n- [ ] Skip buttons show and respond\n- [ ] Progress bar moves correctly\n- [ ] Survives app background\u002Fforeground\n- [ ] Survives phone call interruption\n- [ ] Survives other app playing audio\n- [ ] Tested with Apple Music conflict\n- [ ] Tested with Spotify conflict\n\n### CarPlay (if applicable)\n- [ ] Added `com.apple.developer.carplay-audio` entitlement\n- [ ] CPNowPlayingTemplate configured at `templateApplicationScene(_:didConnect:)`\n- [ ] Custom buttons (if any) configured with CPNowPlayingButton\n- [ ] Tested on CarPlay simulator (I\u002FO → External Displays → CarPlay)\n- [ ] Tested in real vehicle (if available)\n- [ ] Tested both with and without debugger attached\n\n---\n\n## Resources\n\n**WWDC**: 2022-110338, 2017-251, 2019-501\n\n**Docs**: \u002Fmediaplayer\u002Fmpnowplayinginfocenter, \u002Fmediaplayer\u002Fmpremotecommandcenter, \u002Fmediaplayer\u002Fmpnowplayingsession\n\n**Skills**: axiom-avfoundation-ref, axiom-now-playing-carplay, axiom-now-playing-musickit\n\n---\n\n**Last Updated**: 2026-01-04\n**Status**: iOS 18+ discipline skill covering Now Playing, CarPlay, and MusicKit integration\n**Tested**: Based on WWDC 2019-501, WWDC 2022-110338 patterns\n\n","# Now Playing Integration Guide\n\n**Purpose**: Prevent the 4 most common Now Playing issues on iOS 18+: info not appearing, commands not working, artwork problems, and state sync issues\n\n**Swift Version**: Swift 6.0+\n**iOS Version**: iOS 18+\n**Xcode**: Xcode 16+\n\n## Core Philosophy\n\n> \"Now Playing eligibility requires THREE things working together: AVAudioSession activation, remote command handlers, and metadata publishing. Missing ANY of these silently breaks the entire system. 90% of Now Playing issues stem from incorrect activation order or missing command handlers, not API bugs.\"\n\n**Key Insight from WWDC 2022\u002F110338**: Apps must meet two system heuristics:\n1. Register handlers for at least one remote command\n2. Configure AVAudioSession with a non-mixable category\n\n## When to Use This Skill\n\n✅ **Use this skill when**:\n- Now Playing info doesn't appear on Lock Screen or Control Center\n- Play\u002Fpause\u002Fskip buttons are grayed out or don't respond\n- Album artwork is missing, wrong, or flickers between images\n- Control Center shows \"Playing\" when app is paused, or vice versa\n- Apple Music or other apps \"steal\" Now Playing status\n- Implementing Now Playing for the first time\n- Debugging Now Playing issues in existing implementation\n- Integrating CarPlay Now Playing (covered in Pattern 6)\n- Working with MusicKit\u002FApple Music content (covered in Pattern 7)\n\n### iOS 26 Note\n\niOS 26 introduces **Liquid Glass visual design** for Lock Screen and Control Center Now Playing widgets. This is **automatic system behavior** — no code changes required. The patterns in this skill remain valid for iOS 26.\n\n❌ **Do NOT use this skill for**:\n- Background audio configuration details (see AVFoundation skill)\n\n## Related Skills\n\n- **swift-concurrency** - For @MainActor patterns, weak self in closures, async artwork loading\n- **memory-debugging** - For retain cycles in command handlers\n- **avfoundation-ref** - For AVAudioSession configuration details\n\n---\n\n## Red Flags \u002F Anti-Patterns\n\n**If you see ANY of these, suspect Now Playing misconfiguration:**\n\n- Info appears briefly then disappears (AVAudioSession deactivated)\n- Commands work in simulator but not on device (simulator has different audio stack)\n- Artwork shows placeholder then updates (race condition, not necessarily wrong)\n- Artwork never appears (format\u002Fsize issue or MPMediaItemArtwork block returning nil)\n- Play\u002Fpause state incorrect after backgrounding (not updating on playback rate changes)\n- Another app \"steals\" Now Playing (didn't meet eligibility requirements)\n- `playbackState` property doesn't update (iOS doesn't have `playbackState`, macOS only!)\n\n**FORBIDDEN Assumptions:**\n- \"Just set nowPlayingInfo and it works\" - Must have AVAudioSession + command handlers\n- \"playbackState controls Control Center\" - iOS ignores playbackState, uses playbackRate\n- \"Artwork just needs an image\" - Needs proper MPMediaItemArtwork with size handler\n- \"Commands enable themselves\" - Must add target AND set isEnabled = true\n- \"Update elapsed time every second\" - System infers from rate, causes jitter\n\n## Mandatory First Steps (Pre-Diagnosis)\n\nRun this code to understand current state before debugging:\n\n```swift\n\u002F\u002F 1. Verify AVAudioSession configuration\nlet session = AVAudioSession.sharedInstance()\nprint(\"Category: \\(session.category.rawValue)\")\nprint(\"Mode: \\(session.mode.rawValue)\")\nprint(\"Options: \\(session.categoryOptions)\")\nprint(\"Is active: \\(try? session.setActive(true))\")\n\u002F\u002F Must be: .playback category, NOT .mixWithOthers option\n\n\u002F\u002F 2. Verify background mode\n\u002F\u002F Info.plist must have: UIBackgroundModes = [\"audio\"]\n\n\u002F\u002F 3. Check command handlers are registered\nlet commandCenter = MPRemoteCommandCenter.shared()\nprint(\"Play enabled: \\(commandCenter.playCommand.isEnabled)\")\nprint(\"Pause enabled: \\(commandCenter.pauseCommand.isEnabled)\")\n\u002F\u002F Must have at least one command with target AND isEnabled = true\n\n\u002F\u002F 4. Check nowPlayingInfo dictionary\nif let info = MPNowPlayingInfoCenter.default().nowPlayingInfo {\n    print(\"Title: \\(info[MPMediaItemPropertyTitle] ?? \"nil\")\")\n    print(\"Artwork: \\(info[MPMediaItemPropertyArtwork] != nil)\")\n    print(\"Duration: \\(info[MPMediaItemPropertyPlaybackDuration] ?? \"nil\")\")\n    print(\"Elapsed: \\(info[MPNowPlayingInfoPropertyElapsedPlaybackTime] ?? \"nil\")\")\n    print(\"Rate: \\(info[MPNowPlayingInfoPropertyPlaybackRate] ?? \"nil\")\")\n} else {\n    print(\"No nowPlayingInfo set!\")\n}\n```\n\n**What this tells you:**\n\n| Observation | Diagnosis | Pattern |\n|-------------|-----------|---------|\n| Category is .ambient or has .mixWithOthers | Won't become Now Playing app | Pattern 1 |\n| No commands have targets | System ignores app | Pattern 2 |\n| Commands have targets but isEnabled = false | UI grayed out | Pattern 2 |\n| Artwork is nil | MPMediaItemArtwork block returning nil | Pattern 3 |\n| playbackRate is 0.0 when playing | Control Center shows paused | Pattern 4 |\n| Background mode \"audio\" not in Info.plist | Info disappears on lock | Pattern 1 |\n\n## Decision Tree\n\n```\nNow Playing not working?\n├─ Info never appears at all?\n│  ├─ AVAudioSession category .ambient or .mixWithOthers?\n│  │  └─ Pattern 1a (Wrong Category)\n│  ├─ No remote command handlers registered?\n│  │  └─ Pattern 2a (Missing Handlers)\n│  ├─ Background mode \"audio\" not in Info.plist?\n│  │  └─ Pattern 1b (Background Mode)\n│  └─ AVAudioSession.setActive(true) never called?\n│     └─ Pattern 1c (Not Activated)\n│\n├─ Info appears briefly, then disappears?\n│  ├─ On lock screen specifically?\n│  │  ├─ AVAudioSession deactivated too early?\n│  │  │  └─ Pattern 1d (Early Deactivation)\n│  │  └─ App suspended (no background mode)?\n│  │     └─ Pattern 1b (Background Mode)\n│  └─ When switching apps?\n│     └─ Another app claiming Now Playing → Pattern 5\n│\n├─ Commands not responding?\n│  ├─ Buttons grayed out (disabled)?\n│  │  └─ command.isEnabled = false → Pattern 2b\n│  ├─ Buttons visible but no response?\n│  │  ├─ Handler not returning .success?\n│  │  │  └─ Pattern 2c (Handler Return)\n│  │  └─ Using wrong command center (session vs shared)?\n│  │     └─ Pattern 2d (Command Center)\n│  └─ Skip forward\u002Fbackward not showing?\n│     └─ preferredIntervals not set → Pattern 2e\n│\n├─ Artwork problems?\n│  ├─ Never appears?\n│  │  ├─ MPMediaItemArtwork block returning nil?\n│  │  │  └─ Pattern 3a (Artwork Block)\n│  │  └─ Image format\u002Fsize invalid?\n│  │     └─ Pattern 3b (Image Format)\n│  ├─ Wrong artwork showing?\n│  │  └─ Race condition between sources → Pattern 3c\n│  └─ Artwork flickering?\n│     └─ Multiple updates in rapid succession → Pattern 3d\n│\n├─ State sync issues?\n│  ├─ Shows \"Playing\" when paused?\n│  │  └─ playbackRate not updated → Pattern 4a\n│  ├─ Progress bar stuck or jumping?\n│  │  └─ elapsedTime not updated at right moments → Pattern 4b\n│  └─ Duration wrong?\n│     └─ Not setting playbackDuration → Pattern 4c\n│\n├─ CarPlay specific issues?\n│  ├─ App doesn't appear in CarPlay at all?\n│  │  └─ Missing entitlement → Pattern 6 (Add com.apple.developer.carplay-audio)\n│  ├─ Now Playing blank in CarPlay but works on iOS?\n│  │  └─ Same root cause as iOS → Check Patterns 1-4\n│  ├─ Custom buttons don't appear in CarPlay?\n│  │  └─ Wrong configuration timing → Pattern 6 (Configure at templateApplicationScene)\n│  └─ Works on device but not CarPlay simulator?\n│     └─ Debugger interference → Pattern 6 (Run without debugger)\n│\n└─ Using MusicKit (ApplicationMusicPlayer)?\n   ├─ Now Playing shows wrong info?\n   │  └─ Overwriting automatic data → Pattern 7 (Don't set nowPlayingInfo manually)\n   └─ Mixing MusicKit + own content?\n      └─ Hybrid approach needed → Pattern 7 (Switch between players)\n```\n\n---\n\n## Pattern 1: AVAudioSession Configuration (Info Not Appearing)\n\n**Time cost**: 10-15 minutes\n\n### Symptom\n- Now Playing info never appears on Lock Screen\n- Info appears briefly then disappears on lock\n- Works in foreground, disappears in background\n\n### BAD Code\n\n```swift\n\u002F\u002F ❌ WRONG — Category allows mixing, won't become Now Playing app\nclass PlayerService {\n    func setupAudioSession() throws {\n        try AVAudioSession.sharedInstance().setCategory(\n            .playback,\n            options: .mixWithOthers  \u002F\u002F ❌ Mixable = not eligible for Now Playing\n        )\n        \u002F\u002F Never called setActive()  \u002F\u002F ❌ Session not activated\n    }\n\n    func play() {\n        player.play()\n        updateNowPlaying()  \u002F\u002F ❌ Won't appear - session not active\n    }\n}\n```\n\n### GOOD Code\n\n```swift\n\u002F\u002F ✅ CORRECT — Non-mixable category, activated before playback\nclass PlayerService {\n    func setupAudioSession() throws {\n        try AVAudioSession.sharedInstance().setCategory(\n            .playback,\n            mode: .default,\n            options: []  \u002F\u002F ✅ No .mixWithOthers = eligible for Now Playing\n        )\n    }\n\n    func play() async throws {\n        \u002F\u002F ✅ Activate BEFORE starting playback\n        try AVAudioSession.sharedInstance().setActive(true)\n\n        player.play()\n        updateNowPlaying()  \u002F\u002F ✅ Now appears correctly\n    }\n\n    func stop() async throws {\n        player.pause()\n\n        \u002F\u002F ✅ Deactivate AFTER stopping, with notify option\n        try AVAudioSession.sharedInstance().setActive(\n            false,\n            options: .notifyOthersOnDeactivation\n        )\n    }\n}\n```\n\n### Info.plist Requirement\n\n```xml\n\u003Ckey>UIBackgroundModes\u003C\u002Fkey>\n\u003Carray>\n    \u003Cstring>audio\u003C\u002Fstring>\n\u003C\u002Farray>\n```\n\n### Verification\n- Lock screen shows Now Playing controls\n- Info persists when app backgrounded\n- Survives app switch (unless another app plays)\n\n---\n\n## Pattern 2: Remote Command Registration (Commands Not Working)\n\n**Time cost**: 15-20 minutes\n\n### Symptom\n- Play\u002Fpause buttons grayed out\n- Buttons visible but tapping does nothing\n- Skip buttons don't appear\n- Commands work once then stop\n\n### BAD Code\n\n```swift\n\u002F\u002F ❌ WRONG — Missing targets and isEnabled\nclass PlayerService {\n    func setupCommands() {\n        let commandCenter = MPRemoteCommandCenter.shared()\n\n        \u002F\u002F ❌ Added target but forgot isEnabled\n        commandCenter.playCommand.addTarget { _ in\n            self.player.play()\n            return .success\n        }\n        \u002F\u002F playCommand.isEnabled defaults to false!\n\n        \u002F\u002F ❌ Never added pause handler\n\n        \u002F\u002F ❌ skipForward without preferredIntervals\n        commandCenter.skipForwardCommand.addTarget { _ in\n            return .success\n        }\n    }\n}\n```\n\n### GOOD Code\n\n```swift\n\u002F\u002F ✅ CORRECT — Targets registered, enabled, with proper configuration\n@MainActor\nclass PlayerService {\n    private var commandTargets: [Any] = []  \u002F\u002F Keep strong references\n\n    func setupCommands() {\n        let commandCenter = MPRemoteCommandCenter.shared()\n\n        \u002F\u002F ✅ Play command - add target AND enable\n        let playTarget = commandCenter.playCommand.addTarget { [weak self] _ in\n            self?.player.play()\n            self?.updateNowPlayingPlaybackState(isPlaying: true)\n            return .success\n        }\n        commandCenter.playCommand.isEnabled = true\n        commandTargets.append(playTarget)\n\n        \u002F\u002F ✅ Pause command\n        let pauseTarget = commandCenter.pauseCommand.addTarget { [weak self] _ in\n            self?.player.pause()\n            self?.updateNowPlayingPlaybackState(isPlaying: false)\n            return .success\n        }\n        commandCenter.pauseCommand.isEnabled = true\n        commandTargets.append(pauseTarget)\n\n        \u002F\u002F ✅ Skip forward - set preferredIntervals BEFORE adding target\n        commandCenter.skipForwardCommand.preferredIntervals = [15.0]\n        let skipForwardTarget = commandCenter.skipForwardCommand.addTarget { [weak self] event in\n            guard let skipEvent = event as? MPSkipIntervalCommandEvent else {\n                return .commandFailed\n            }\n            self?.skip(by: skipEvent.interval)\n            return .success\n        }\n        commandCenter.skipForwardCommand.isEnabled = true\n        commandTargets.append(skipForwardTarget)\n\n        \u002F\u002F ✅ Skip backward\n        commandCenter.skipBackwardCommand.preferredIntervals = [15.0]\n        let skipBackwardTarget = commandCenter.skipBackwardCommand.addTarget { [weak self] event in\n            guard let skipEvent = event as? MPSkipIntervalCommandEvent else {\n                return .commandFailed\n            }\n            self?.skip(by: -skipEvent.interval)\n            return .success\n        }\n        commandCenter.skipBackwardCommand.isEnabled = true\n        commandTargets.append(skipBackwardTarget)\n    }\n\n    func teardownCommands() {\n        let commandCenter = MPRemoteCommandCenter.shared()\n        commandCenter.playCommand.removeTarget(nil)\n        commandCenter.pauseCommand.removeTarget(nil)\n        commandCenter.skipForwardCommand.removeTarget(nil)\n        commandCenter.skipBackwardCommand.removeTarget(nil)\n        commandTargets.removeAll()\n    }\n\n    deinit {\n        teardownCommands()\n    }\n}\n```\n\n### Verification\n- Buttons not grayed out in Control Center\n- Tapping play\u002Fpause actually plays\u002Fpauses\n- Skip buttons show with correct interval (15s)\n\n---\n\n## Pattern 3: Artwork Configuration (Artwork Problems)\n\n**Time cost**: 15-25 minutes\n\n### Symptom\n- Artwork never appears (generic placeholder)\n- Wrong artwork for current track\n- Artwork flickers between images\n- Artwork appears then disappears\n\n### BAD Code\n\n```swift\n\u002F\u002F ❌ WRONG — MPMediaItemArtwork block can return nil, no size handling\nfunc updateNowPlaying() {\n    var nowPlayingInfo = [String: Any]()\n    nowPlayingInfo[MPMediaItemPropertyTitle] = track.title\n\n    \u002F\u002F ❌ Storing UIImage directly (doesn't work)\n    nowPlayingInfo[MPMediaItemPropertyArtwork] = image\n\n    \u002F\u002F ❌ Or: Block that ignores requested size\n    let artwork = MPMediaItemArtwork(boundsSize: image.size) { _ in\n        return self.cachedImage  \u002F\u002F ❌ May be nil, ignores requested size\n    }\n\n    MPNowPlayingInfoCenter.default().nowPlayingInfo = nowPlayingInfo\n}\n\n\u002F\u002F ❌ WRONG — Multiple rapid updates cause flickering\nfunc loadArtwork(from url: URL) {\n    \u002F\u002F Request 1\n    loadImage(url) { image in\n        self.updateNowPlayingArtwork(image)  \u002F\u002F Update 1\n    }\n    \u002F\u002F Request 2 (cached) returns faster\n    loadCachedImage(url) { image in\n        self.updateNowPlayingArtwork(image)  \u002F\u002F Update 2 - flicker!\n    }\n}\n```\n\n### GOOD Code\n\n```swift\n\u002F\u002F ✅ CORRECT — Proper MPMediaItemArtwork with value capture (Swift 6 compliant)\n@MainActor\nclass NowPlayingService {\n    private var currentArtworkURL: URL?\n\n    func updateNowPlayingArtwork(_ image: UIImage, for trackURL: URL) {\n        \u002F\u002F ✅ Prevent race conditions - only update if still current track\n        guard trackURL == currentArtworkURL else { return }\n\n        \u002F\u002F ✅ Create MPMediaItemArtwork with VALUE CAPTURE (not stored property)\n        \u002F\u002F This is Swift 6 strict concurrency compliant — UIImage is immutable\n        \u002F\u002F and safe to capture across isolation domains\n        let artwork = MPMediaItemArtwork(boundsSize: image.size) { [image] requestedSize in\n            \u002F\u002F ✅ System calls this block from any thread\n            \u002F\u002F Captured value avoids \"Main actor-isolated property\" error\n            return image\n        }\n\n        \u002F\u002F ✅ Update only artwork key, preserve other values\n        var nowPlayingInfo = MPNowPlayingInfoCenter.default().nowPlayingInfo ?? [:]\n        nowPlayingInfo[MPMediaItemPropertyArtwork] = artwork\n        MPNowPlayingInfoCenter.default().nowPlayingInfo = nowPlayingInfo\n    }\n\n    \u002F\u002F ✅ Single entry point with priority: embedded > cached > remote\n    func loadArtwork(for track: Track) async {\n        currentArtworkURL = track.artworkURL\n\n        \u002F\u002F Priority 1: Embedded in file (immediate, no flicker)\n        if let embedded = await extractEmbeddedArtwork(track.fileURL) {\n            updateNowPlayingArtwork(embedded, for: track.artworkURL)\n            return\n        }\n\n        \u002F\u002F Priority 2: Already cached (fast)\n        if let cached = await loadFromCache(track.artworkURL) {\n            updateNowPlayingArtwork(cached, for: track.artworkURL)\n            return\n        }\n\n        \u002F\u002F Priority 3: Remote (slow, but don't flicker)\n        \u002F\u002F ✅ Set placeholder first, then update once with real image\n        if let remote = await downloadImage(track.artworkURL) {\n            updateNowPlayingArtwork(remote, for: track.artworkURL)\n        }\n    }\n}\n```\n\n**Why value capture, not `nonisolated(unsafe)`**: The closure passed to `MPMediaItemArtwork` may be called by the system from any thread. Under Swift 6 strict concurrency, accessing `@MainActor`-isolated stored properties from this closure would cause a compile error. Capturing the image value directly is cleaner than using `nonisolated(unsafe)` because UIImage is immutable and thread-safe for reads.\n\n### Artwork Size Guidelines\n- Lock Screen: 300x300 points (600x600 @2x, 900x900 @3x)\n- Control Center: Various sizes\n- **Best practice**: Provide image at least 600x600 pixels\n\n### Verification\n- Artwork appears on Lock Screen\n- Correct artwork for current track\n- No flickering when track changes\n- Artwork persists after backgrounding\n\n---\n\n## Pattern 4: Playback State Synchronization (State Sync Issues)\n\n**Time cost**: 10-20 minutes\n\n### Symptom\n- Control Center shows \"Playing\" when actually paused\n- Progress bar doesn't move or jumps unexpectedly\n- Duration shows wrong value\n- Scrubbing doesn't work correctly\n\n### BAD Code\n\n```swift\n\u002F\u002F ❌ WRONG — Using playbackState (macOS only, ignored on iOS)\nfunc updatePlaybackState(isPlaying: Bool) {\n    MPNowPlayingInfoCenter.default().playbackState = isPlaying ? .playing : .paused\n    \u002F\u002F ❌ iOS ignores this property! Only macOS uses it.\n}\n\n\u002F\u002F ❌ WRONG — Updating elapsed time on a timer (causes drift)\nTimer.scheduledTimer(withTimeInterval: 1.0, repeats: true) { _ in\n    var info = MPNowPlayingInfoCenter.default().nowPlayingInfo ?? [:]\n    info[MPNowPlayingInfoPropertyElapsedPlaybackTime] = self.player.currentTime().seconds\n    MPNowPlayingInfoCenter.default().nowPlayingInfo = info\n    \u002F\u002F ❌ Every second creates jitter, system already infers from timestamp\n}\n\n\u002F\u002F ❌ WRONG — Partial dictionary updates cause race conditions\nfunc updateTitle() {\n    var info = [String: Any]()\n    info[MPMediaItemPropertyTitle] = track.title\n    MPNowPlayingInfoCenter.default().nowPlayingInfo = info\n    \u002F\u002F ❌ Cleared all other values (artwork, duration, etc.)!\n}\n```\n\n### GOOD Code\n\n```swift\n\u002F\u002F ✅ CORRECT — Use playbackRate for iOS, update at key moments only\n@MainActor\nclass NowPlayingService {\n\n    \u002F\u002F ✅ Update when playback STARTS\n    func playbackStarted(track: Track, player: AVPlayer) {\n        var nowPlayingInfo = MPNowPlayingInfoCenter.default().nowPlayingInfo ?? [:]\n\n        \u002F\u002F ✅ Core metadata\n        nowPlayingInfo[MPMediaItemPropertyTitle] = track.title\n        nowPlayingInfo[MPMediaItemPropertyArtist] = track.artist\n        nowPlayingInfo[MPMediaItemPropertyAlbumTitle] = track.album\n        nowPlayingInfo[MPMediaItemPropertyPlaybackDuration] = player.currentItem?.duration.seconds ?? 0\n\n        \u002F\u002F ✅ Playback state via RATE (not playbackState property)\n        nowPlayingInfo[MPNowPlayingInfoPropertyElapsedPlaybackTime] = player.currentTime().seconds\n        nowPlayingInfo[MPNowPlayingInfoPropertyPlaybackRate] = 1.0  \u002F\u002F Playing\n\n        MPNowPlayingInfoCenter.default().nowPlayingInfo = nowPlayingInfo\n    }\n\n    \u002F\u002F ✅ Update when playback PAUSES\n    func playbackPaused(player: AVPlayer) {\n        var nowPlayingInfo = MPNowPlayingInfoCenter.default().nowPlayingInfo ?? [:]\n\n        \u002F\u002F ✅ Update elapsed time AND rate together\n        nowPlayingInfo[MPNowPlayingInfoPropertyElapsedPlaybackTime] = player.currentTime().seconds\n        nowPlayingInfo[MPNowPlayingInfoPropertyPlaybackRate] = 0.0  \u002F\u002F Paused\n\n        MPNowPlayingInfoCenter.default().nowPlayingInfo = nowPlayingInfo\n    }\n\n    \u002F\u002F ✅ Update when user SEEKS\n    func userSeeked(to time: CMTime, player: AVPlayer) {\n        var nowPlayingInfo = MPNowPlayingInfoCenter.default().nowPlayingInfo ?? [:]\n\n        nowPlayingInfo[MPNowPlayingInfoPropertyElapsedPlaybackTime] = time.seconds\n        \u002F\u002F ✅ Keep current rate (don't change playing\u002Fpaused state)\n\n        MPNowPlayingInfoCenter.default().nowPlayingInfo = nowPlayingInfo\n    }\n\n    \u002F\u002F ✅ Update when track CHANGES\n    func trackChanged(to newTrack: Track, player: AVPlayer) {\n        \u002F\u002F ✅ Full refresh of all metadata\n        var nowPlayingInfo = [String: Any]()\n\n        nowPlayingInfo[MPMediaItemPropertyTitle] = newTrack.title\n        nowPlayingInfo[MPMediaItemPropertyArtist] = newTrack.artist\n        nowPlayingInfo[MPMediaItemPropertyAlbumTitle] = newTrack.album\n        nowPlayingInfo[MPMediaItemPropertyPlaybackDuration] = player.currentItem?.duration.seconds ?? 0\n        nowPlayingInfo[MPNowPlayingInfoPropertyElapsedPlaybackTime] = 0.0\n        nowPlayingInfo[MPNowPlayingInfoPropertyPlaybackRate] = player.rate\n\n        MPNowPlayingInfoCenter.default().nowPlayingInfo = nowPlayingInfo\n\n        \u002F\u002F Then load artwork asynchronously\n        Task {\n            await loadArtwork(for: newTrack)\n        }\n    }\n}\n```\n\n### When to Update Now Playing Info\n\n| Event | What to Update |\n|-------|---------------|\n| Playback starts | All metadata + elapsed=current + rate=1.0 |\n| Playback pauses | elapsed=current + rate=0.0 |\n| User seeks | elapsed=newPosition (keep rate) |\n| Track changes | All metadata (new track) |\n| Playback rate changes (2x, 0.5x) | rate=newRate |\n\n### DO NOT Update\n- On a timer (system infers from elapsed + rate + timestamp)\n- Elapsed time continuously (causes jitter)\n- Partial dictionaries (loses other values)\n\n---\n\n## Pattern 5: MPNowPlayingSession (iOS 16+ Recommended Approach)\n\n**Time cost**: 20-30 minutes\n\n### When to Use MPNowPlayingSession\n- iOS 16+ (available since iOS 16, previously tvOS only)\n- Using AVPlayer for playback\n- Want automatic publishing of playback state\n- Multiple players (Picture-in-Picture scenarios)\n\n### BAD Code (Manual Approach - More Error-Prone)\n\n```swift\n\u002F\u002F ❌ Manual updates are error-prone, easy to miss state changes\nclass OldStylePlayer {\n    func play() {\n        player.play()\n        \u002F\u002F Must remember to:\n        updateNowPlayingElapsed()\n        updateNowPlayingRate()\n        \u002F\u002F Easy to forget one...\n    }\n}\n```\n\n### GOOD Code (MPNowPlayingSession)\n\n```swift\n\u002F\u002F ✅ CORRECT — MPNowPlayingSession handles automatic publishing\n@MainActor\nclass ModernPlayerService {\n    private var player: AVPlayer\n    private var session: MPNowPlayingSession?\n\n    init() {\n        player = AVPlayer()\n        setupSession()\n    }\n\n    func setupSession() {\n        \u002F\u002F ✅ Create session with player\n        session = MPNowPlayingSession(players: [player])\n\n        \u002F\u002F ✅ Enable automatic publishing of:\n        \u002F\u002F - Duration\n        \u002F\u002F - Elapsed time\n        \u002F\u002F - Playback state (rate)\n        \u002F\u002F - Playback progress\n        session?.automaticallyPublishNowPlayingInfo = true\n\n        \u002F\u002F ✅ Register commands on SESSION's command center (not shared)\n        session?.remoteCommandCenter.playCommand.addTarget { [weak self] _ in\n            self?.player.play()\n            return .success\n        }\n        session?.remoteCommandCenter.playCommand.isEnabled = true\n\n        session?.remoteCommandCenter.pauseCommand.addTarget { [weak self] _ in\n            self?.player.pause()\n            return .success\n        }\n        session?.remoteCommandCenter.pauseCommand.isEnabled = true\n\n        \u002F\u002F ✅ Try to become active Now Playing session\n        session?.becomeActiveIfPossible { success in\n            print(\"Became active Now Playing: \\(success)\")\n        }\n    }\n\n    func play(track: Track) async {\n        let item = AVPlayerItem(url: track.url)\n\n        \u002F\u002F ✅ Set static metadata on player item (title, artwork)\n        item.nowPlayingInfo = [\n            MPMediaItemPropertyTitle: track.title,\n            MPMediaItemPropertyArtist: track.artist,\n            MPMediaItemPropertyArtwork: await createArtwork(for: track)\n        ]\n\n        player.replaceCurrentItem(with: item)\n        player.play()\n        \u002F\u002F ✅ No need to manually update elapsed time, rate, duration\n        \u002F\u002F MPNowPlayingSession publishes automatically!\n    }\n}\n```\n\n### Multiple Sessions (Picture-in-Picture)\n\n```swift\nclass MultiPlayerService {\n    var mainSession: MPNowPlayingSession\n    var pipSession: MPNowPlayingSession\n\n    func pipDidExpand() {\n        \u002F\u002F ✅ Promote PiP session when it expands to full screen\n        pipSession.becomeActiveIfPossible { success in\n            \u002F\u002F PiP now controls Lock Screen, Control Center\n        }\n    }\n\n    func pipDidMinimize() {\n        \u002F\u002F ✅ Demote back to main session\n        mainSession.becomeActiveIfPossible { success in\n            \u002F\u002F Main player now controls Lock Screen, Control Center\n        }\n    }\n}\n```\n\n### Critical Gotcha\n\n**When using MPNowPlayingSession**: Use `session.remoteCommandCenter`, NOT `MPRemoteCommandCenter.shared()`\n\n```swift\n\u002F\u002F ❌ WRONG\nlet commandCenter = MPRemoteCommandCenter.shared()\ncommandCenter.playCommand.addTarget { _ in }\n\n\u002F\u002F ✅ CORRECT\nsession.remoteCommandCenter.playCommand.addTarget { _ in }\n```\n\n---\n\n## Pattern 6: CarPlay Integration\n\nFor CarPlay-specific integration patterns, invoke `\u002Fskill axiom-now-playing-carplay`.\n\n**Key insight**: CarPlay uses the SAME MPNowPlayingInfoCenter and MPRemoteCommandCenter as iOS. If your Now Playing works on iOS, it works in CarPlay with zero additional code.\n\n---\n\n## Pattern 7: MusicKit Integration (Apple Music)\n\nFor MusicKit-specific integration patterns and hybrid app examples, invoke `\u002Fskill axiom-now-playing-musickit`.\n\n**Key insight**: MusicKit's ApplicationMusicPlayer automatically publishes to MPNowPlayingInfoCenter. You don't need to manually update Now Playing info when playing Apple Music content.\n\n---\n\n## Pressure Scenarios\n\n### Scenario 1: Apple Music Keeps Taking Over (24-Hour Launch Deadline)\n\n#### Situation\n- App launching tomorrow\n- QA reports: \"Now Playing works, but when user opens Apple Music then returns to our app, our controls disappear\"\n- Product manager: \"This is a blocker, users will think our app is broken\"\n- You're 2 hours from code freeze\n\n#### Rationalization Traps (DO NOT)\n1. *\"Just tell users not to use Apple Music\"* - Unacceptable UX, will get 1-star reviews\n2. *\"Force our app to always be Now Playing\"* - Impossible, system controls eligibility\n3. *\"File a bug with Apple\"* - Won't help before launch\n\n#### Root Cause\nYour app loses eligibility because:\n- Using `.mixWithOthers` option (allows other apps to play simultaneously)\n- Not calling `becomeActiveIfPossible()` when returning to foreground\n- AVAudioSession deactivated when backgrounded\n\n#### Systematic Fix (30 minutes)\n\n```swift\n\u002F\u002F 1. Remove mixWithOthers\ntry AVAudioSession.sharedInstance().setCategory(.playback, options: [])\n\n\u002F\u002F 2. Reactivate when returning to foreground\nNotificationCenter.default.addObserver(\n    forName: UIApplication.willEnterForegroundNotification,\n    object: nil,\n    queue: .main\n) { [weak self] _ in\n    guard self?.isPlaying == true else { return }\n\n    do {\n        try AVAudioSession.sharedInstance().setActive(true)\n        self?.session?.becomeActiveIfPossible { _ in }\n    } catch {\n        print(\"Failed to reactivate audio session: \\(error)\")\n    }\n}\n\n\u002F\u002F 3. Handle interruptions (phone call, Siri)\nNotificationCenter.default.addObserver(\n    forName: AVAudioSession.interruptionNotification,\n    object: nil,\n    queue: .main\n) { [weak self] notification in\n    guard let info = notification.userInfo,\n          let typeValue = info[AVAudioSessionInterruptionTypeKey] as? UInt,\n          let type = AVAudioSession.InterruptionType(rawValue: typeValue) else {\n        return\n    }\n\n    if type == .ended {\n        \u002F\u002F ✅ Reactivate after interruption\n        try? AVAudioSession.sharedInstance().setActive(true)\n        self?.session?.becomeActiveIfPossible { _ in }\n    }\n}\n```\n\n#### Communication Template\n\n```\nTo PM: Found root cause - our audio session config allowed Apple Music to take over.\nFix implemented: 3 changes to audio session handling.\nTesting: Verified fix with Apple Music, Spotify, phone calls.\nETA: 20 more minutes for full regression test.\n\nTo QA: Please test this flow:\n1. Play audio in our app\n2. Open Apple Music, play a song\n3. Return to our app, tap play\n4. Lock screen should show OUR controls\n```\n\n#### Time Saved\n- 2-3 hours of debugging speculation\n- Launch delay avoided\n- QA confidence restored\n\n---\n\n### Scenario 2: Artwork Flickers Every Track Change\n\n#### Situation\n- User feedback: \"Album art keeps flashing when songs change\"\n- Analytics show 3-4 artwork updates per track change\n- Designer: \"This looks unprofessional\"\n\n#### Root Cause\nMultiple artwork sources racing:\n1. Cache check (async)\n2. Remote URL fetch (async)\n3. Embedded artwork extraction (async)\n\nAll three complete at different times, each updating Now Playing\n\n#### Fix (20 minutes)\n\n```swift\n\u002F\u002F ✅ Single-source-of-truth with cancellation\nprivate var artworkTask: Task\u003CVoid, Never>?\n\nfunc loadArtwork(for track: Track) {\n    \u002F\u002F Cancel previous artwork load\n    artworkTask?.cancel()\n\n    artworkTask = Task { @MainActor in\n        \u002F\u002F Clear previous artwork immediately (optional)\n        \u002F\u002F updateNowPlayingArtwork(nil)\n\n        \u002F\u002F Wait for best available artwork\n        let artwork = await loadBestArtwork(for: track)\n\n        \u002F\u002F Check if still current track\n        guard !Task.isCancelled else { return }\n\n        \u002F\u002F Single update\n        updateNowPlayingArtwork(artwork, for: track.artworkURL)\n    }\n}\n\nprivate func loadBestArtwork(for track: Track) async -> UIImage? {\n    \u002F\u002F Priority order: embedded > cached > remote\n    if let embedded = await extractEmbeddedArtwork(track) {\n        return embedded\n    }\n    if let cached = await loadFromCache(track.artworkURL) {\n        return cached\n    }\n    return await downloadImage(track.artworkURL)\n}\n```\n\n#### Communication Template\n\n```\nTo Designer: Fixed artwork flicker - reduced from 3-4 updates to 1 per track.\nRoot cause: Multiple async sources racing to update artwork.\nSolution: Task cancellation + priority order (embedded > cached > remote).\nTesting: Verified with 10 track changes, zero flicker.\n```\n\n#### Time Saved\n- 1-2 hours investigating image caching\n- Designer approval unblocked\n- Professional UX restored\n\n---\n\n## Common Gotchas\n\n| Symptom | Cause | Solution | Time to Fix |\n|---------|-------|----------|-------------|\n| Info never appears | Missing background mode | Add `audio` to UIBackgroundModes in Info.plist | 2 min |\n| Info never appears | AVAudioSession not activated | Call `setActive(true)` before playback | 5 min |\n| Info never appears | No command handlers | Add target to at least one command | 10 min |\n| Info never appears | Using `.mixWithOthers` | Remove .mixWithOthers option | 5 min |\n| Commands grayed out | `isEnabled = false` | Set `command.isEnabled = true` after adding target | 5 min |\n| Commands don't respond | Handler returns wrong status | Return `.success` from handler | 5 min |\n| Commands don't respond | Using shared command center with MPNowPlayingSession | Use `session.remoteCommandCenter` instead | 10 min |\n| Skip buttons missing | No preferredIntervals | Set `skipCommand.preferredIntervals = [15.0]` | 5 min |\n| Artwork never appears | MPMediaItemArtwork block returns nil | Ensure image is loaded before creating artwork | 15 min |\n| Artwork flickers | Multiple rapid updates | Single source of truth with cancellation | 20 min |\n| Wrong play\u002Fpause state | Using `playbackState` property | Use `playbackRate` (1.0 = playing, 0.0 = paused) | 10 min |\n| Progress bar stuck | Not updating on seek | Update `elapsedPlaybackTime` after seek completes | 10 min |\n| Progress bar jumps | Updating elapsed on timer | Don't update on timer; system infers from rate | 10 min |\n| Loses Now Playing to other apps | Session not reactivated on foreground | Call `becomeActiveIfPossible()` on foreground | 15 min |\n| `playbackState` doesn't work | iOS-only app | `playbackState` is macOS only; use `playbackRate` on iOS | 10 min |\n| Siri skip ignores preferredIntervals | Hardcoded interval in handler | Use `event.interval` from MPSkipIntervalCommandEvent | 5 min |\n| **CarPlay**: App doesn't appear | Missing entitlement | Add `com.apple.developer.carplay-audio` to entitlements | 5 min |\n| **CarPlay**: Custom buttons don't appear | Configured at wrong time | Configure at `templateApplicationScene(_:didConnect:)` | 5 min |\n| **CarPlay**: Works on device, not simulator | Debugger attached | Run without debugger for reliable testing | 1 min |\n| **MusicKit**: Now Playing wrong | Overwriting automatic data | Don't set `nowPlayingInfo` when using ApplicationMusicPlayer | 5 min |\n\n---\n\n## Expert Checklist\n\n### Before Implementing Now Playing\n- [ ] Added `audio` to UIBackgroundModes in Info.plist\n- [ ] AVAudioSession category is `.playback` without `.mixWithOthers`\n- [ ] Decided: Manual (MPNowPlayingInfoCenter) or Automatic (MPNowPlayingSession)?\n\n### AVAudioSession Setup\n- [ ] `setCategory(.playback)` called at app launch\n- [ ] `setActive(true)` called before playback starts\n- [ ] `setActive(false, options: .notifyOthersOnDeactivation)` on stop\n- [ ] Interruption notification handled (reactivate after phone call)\n- [ ] Foreground notification handled (reactivate after background)\n\n### Remote Commands\n- [ ] At least one command has target registered\n- [ ] All registered commands have `isEnabled = true`\n- [ ] Skip commands have `preferredIntervals` set\n- [ ] Handlers return `.success` on success\n- [ ] Using correct command center (session's vs shared)\n- [ ] Command targets stored to prevent deallocation\n- [ ] Commands removed in deinit\n\n### Now Playing Info\n- [ ] Title set (`MPMediaItemPropertyTitle`)\n- [ ] Duration set (`MPMediaItemPropertyPlaybackDuration`)\n- [ ] Elapsed time set at play\u002Fpause\u002Fseek (`MPNowPlayingInfoPropertyElapsedPlaybackTime`)\n- [ ] Playback rate set (`MPNowPlayingInfoPropertyPlaybackRate`: 1.0 = playing, 0.0 = paused)\n- [ ] Artwork created with `MPMediaItemArtwork(boundsSize:requestHandler:)`\n- [ ] NOT using `playbackState` property (macOS only)\n- [ ] NOT updating elapsed time on a timer\n\n### Artwork\n- [ ] Image at least 600x600 pixels\n- [ ] MPMediaItemArtwork block never returns nil (return placeholder if needed)\n- [ ] Single source of truth prevents flickering\n- [ ] Previous artwork load cancelled on track change\n\n### Testing\n- [ ] Lock screen shows correct info\n- [ ] Control Center shows correct info\n- [ ] Play\u002Fpause buttons respond\n- [ ] Skip buttons show and respond\n- [ ] Progress bar moves correctly\n- [ ] Survives app background\u002Fforeground\n- [ ] Survives phone call interruption\n- [ ] Survives other app playing audio\n- [ ] Tested with Apple Music conflict\n- [ ] Tested with Spotify conflict\n\n### CarPlay (if applicable)\n- [ ] Added `com.apple.developer.carplay-audio` entitlement\n- [ ] CPNowPlayingTemplate configured at `templateApplicationScene(_:didConnect:)`\n- [ ] Custom buttons (if any) configured with CPNowPlayingButton\n- [ ] Tested on CarPlay simulator (I\u002FO → External Displays → CarPlay)\n- [ ] Tested in real vehicle (if available)\n- [ ] Tested both with and without debugger attached\n\n---\n\n## Resources\n\n**WWDC**: 2022-110338, 2017-251, 2019-501\n\n**Docs**: \u002Fmediaplayer\u002Fmpnowplayinginfocenter, \u002Fmediaplayer\u002Fmpremotecommandcenter, \u002Fmediaplayer\u002Fmpnowplayingsession\n\n**Skills**: axiom-avfoundation-ref, axiom-now-playing-carplay, axiom-now-playing-musickit\n\n---\n\n**Last Updated**: 2026-01-04\n**Status**: iOS 18+ discipline skill covering Now Playing, CarPlay, and MusicKit integration\n**Tested**: Based on WWDC 2019-501, WWDC 2022-110338 patterns\n\n",{"name":5,"license":15,"metadata":44,"description":7,"compatibility":46},{"version":45},"1.1.0","iOS 18+, iPadOS 18+, CarPlay (iOS 14+)","main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002FCharlesWiltgen\u002FAxiom\u002Faxiom-now-playing",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":57,"prompt":67,"zipAvailable":68},[58,61,64],{"tool":59,"command":60},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill axiom-now-playing",{"tool":62,"command":63},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill axiom-now-playing",{"tool":65,"command":66},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill axiom-now-playing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FCharlesWiltgen\u002FAxiom\u002Faxiom-now-playing\u002FSKILL.md",true,[70,76,82,86,90,94,98,102,106,110,114,118,122,126,130,134,138,142,146,150,154,158,162,166,170,174,178,182,186,190,194,198,202,206,210,214,218,222,226,230,234,238,242,246,250,254,258,262,266,270,274,278,282,286,290,296,300,304,308,312,316,320,324,328,332,336,340,344,348,352,356,360,364],{"path":71,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":74,"sourceHtmlUrl":75},"checklist.md","REFERENCE","参考文档",13686,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fchecklist.md",{"path":77,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":80,"sourceHtmlUrl":81},"customize.toml","OTHER","其他",1551,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fcustomize.toml",{"path":83,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":84,"sourceHtmlUrl":85},"instructions.md",1131,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Finstructions.md",{"path":87,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":88,"sourceHtmlUrl":89},"nfr-report-template.md",13925,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fnfr-report-template.md",{"path":91,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":92,"sourceHtmlUrl":93},"resources\u002Fknowledge\u002Fadr-quality-readiness-checklist.md",25356,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Fadr-quality-readiness-checklist.md",{"path":95,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":96,"sourceHtmlUrl":97},"resources\u002Fknowledge\u002Fapi-request.md",17129,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Fapi-request.md",{"path":99,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":100,"sourceHtmlUrl":101},"resources\u002Fknowledge\u002Fapi-testing-patterns.md",26976,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Fapi-testing-patterns.md",{"path":103,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":104,"sourceHtmlUrl":105},"resources\u002Fknowledge\u002Fauth-session.md",16215,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Fauth-session.md",{"path":107,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":108,"sourceHtmlUrl":109},"resources\u002Fknowledge\u002Fburn-in.md",6503,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Fburn-in.md",{"path":111,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":112,"sourceHtmlUrl":113},"resources\u002Fknowledge\u002Fci-burn-in.md",22486,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Fci-burn-in.md",{"path":115,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":116,"sourceHtmlUrl":117},"resources\u002Fknowledge\u002Fcomponent-tdd.md",16149,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Fcomponent-tdd.md",{"path":119,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":120,"sourceHtmlUrl":121},"resources\u002Fknowledge\u002Fcontract-testing.md",38991,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Fcontract-testing.md",{"path":123,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":124,"sourceHtmlUrl":125},"resources\u002Fknowledge\u002Fdata-factories.md",15331,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Fdata-factories.md",{"path":127,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":128,"sourceHtmlUrl":129},"resources\u002Fknowledge\u002Femail-auth.md",24553,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Femail-auth.md",{"path":131,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":132,"sourceHtmlUrl":133},"resources\u002Fknowledge\u002Ferror-handling.md",22959,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Ferror-handling.md",{"path":135,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":136,"sourceHtmlUrl":137},"resources\u002Fknowledge\u002Ffeature-flags.md",23214,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Ffeature-flags.md",{"path":139,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":140,"sourceHtmlUrl":141},"resources\u002Fknowledge\u002Ffile-utils.md",13745,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Ffile-utils.md",{"path":143,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":144,"sourceHtmlUrl":145},"resources\u002Fknowledge\u002Ffixture-architecture.md",12414,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Ffixture-architecture.md",{"path":147,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":148,"sourceHtmlUrl":149},"resources\u002Fknowledge\u002Ffixtures-composition.md",11249,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Ffixtures-composition.md",{"path":151,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":152,"sourceHtmlUrl":153},"resources\u002Fknowledge\u002Fintercept-network-call.md",13489,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Fintercept-network-call.md",{"path":155,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":156,"sourceHtmlUrl":157},"resources\u002Fknowledge\u002Flog.md",11281,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Flog.md",{"path":159,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":160,"sourceHtmlUrl":161},"resources\u002Fknowledge\u002Fnetwork-error-monitor.md",12277,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Fnetwork-error-monitor.md",{"path":163,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":164,"sourceHtmlUrl":165},"resources\u002Fknowledge\u002Fnetwork-first.md",16327,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Fnetwork-first.md",{"path":167,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":168,"sourceHtmlUrl":169},"resources\u002Fknowledge\u002Fnetwork-recorder.md",15499,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Fnetwork-recorder.md",{"path":171,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":172,"sourceHtmlUrl":173},"resources\u002Fknowledge\u002Fnfr-criteria.md",26670,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Fnfr-criteria.md",{"path":175,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":176,"sourceHtmlUrl":177},"resources\u002Fknowledge\u002Foverview.md",9663,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Foverview.md",{"path":179,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":180,"sourceHtmlUrl":181},"resources\u002Fknowledge\u002Fpact-broker-webhooks.md",13376,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Fpact-broker-webhooks.md",{"path":183,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":184,"sourceHtmlUrl":185},"resources\u002Fknowledge\u002Fpact-consumer-di.md",12005,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Fpact-consumer-di.md",{"path":187,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":188,"sourceHtmlUrl":189},"resources\u002Fknowledge\u002Fpact-consumer-framework-setup.md",35846,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Fpact-consumer-framework-setup.md",{"path":191,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":192,"sourceHtmlUrl":193},"resources\u002Fknowledge\u002Fpact-mcp.md",8977,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Fpact-mcp.md",{"path":195,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":196,"sourceHtmlUrl":197},"resources\u002Fknowledge\u002Fpactjs-utils-consumer-helpers.md",16029,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Fpactjs-utils-consumer-helpers.md",{"path":199,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":200,"sourceHtmlUrl":201},"resources\u002Fknowledge\u002Fpactjs-utils-overview.md",10481,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Fpactjs-utils-overview.md",{"path":203,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":204,"sourceHtmlUrl":205},"resources\u002Fknowledge\u002Fpactjs-utils-provider-verifier.md",18180,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Fpactjs-utils-provider-verifier.md",{"path":207,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":208,"sourceHtmlUrl":209},"resources\u002Fknowledge\u002Fpactjs-utils-request-filter.md",7275,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Fpactjs-utils-request-filter.md",{"path":211,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":212,"sourceHtmlUrl":213},"resources\u002Fknowledge\u002Fplaywright-cli.md",14993,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Fplaywright-cli.md",{"path":215,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":216,"sourceHtmlUrl":217},"resources\u002Fknowledge\u002Fplaywright-config.md",21457,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Fplaywright-config.md",{"path":219,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":220,"sourceHtmlUrl":221},"resources\u002Fknowledge\u002Fprobability-impact.md",19200,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Fprobability-impact.md",{"path":223,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":224,"sourceHtmlUrl":225},"resources\u002Fknowledge\u002Frecurse.md",12936,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Frecurse.md",{"path":227,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":228,"sourceHtmlUrl":229},"resources\u002Fknowledge\u002Frisk-governance.md",20965,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Frisk-governance.md",{"path":231,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":232,"sourceHtmlUrl":233},"resources\u002Fknowledge\u002Fselective-testing.md",21846,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Fselective-testing.md",{"path":235,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":236,"sourceHtmlUrl":237},"resources\u002Fknowledge\u002Fselector-resilience.md",19784,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Fselector-resilience.md",{"path":239,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":240,"sourceHtmlUrl":241},"resources\u002Fknowledge\u002Ftest-healing-patterns.md",21388,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Ftest-healing-patterns.md",{"path":243,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":244,"sourceHtmlUrl":245},"resources\u002Fknowledge\u002Ftest-levels-framework.md",14756,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Ftest-levels-framework.md",{"path":247,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":248,"sourceHtmlUrl":249},"resources\u002Fknowledge\u002Ftest-priorities-matrix.md",11454,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Ftest-priorities-matrix.md",{"path":251,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":252,"sourceHtmlUrl":253},"resources\u002Fknowledge\u002Ftest-quality.md",24580,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Ftest-quality.md",{"path":255,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":256,"sourceHtmlUrl":257},"resources\u002Fknowledge\u002Ftiming-debugging.md",14021,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Ftiming-debugging.md",{"path":259,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":260,"sourceHtmlUrl":261},"resources\u002Fknowledge\u002Fvisual-debugging.md",17480,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Fvisual-debugging.md",{"path":263,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":264,"sourceHtmlUrl":265},"resources\u002Fknowledge\u002Fwebhook-module-setup.md",5834,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Fwebhook-module-setup.md",{"path":267,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":268,"sourceHtmlUrl":269},"resources\u002Fknowledge\u002Fwebhook-providers.md",6440,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Fwebhook-providers.md",{"path":271,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":272,"sourceHtmlUrl":273},"resources\u002Fknowledge\u002Fwebhook-risk-guidance.md",6474,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Fwebhook-risk-guidance.md",{"path":275,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":276,"sourceHtmlUrl":277},"resources\u002Fknowledge\u002Fwebhook-template-matchers.md",6011,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Fwebhook-template-matchers.md",{"path":279,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":280,"sourceHtmlUrl":281},"resources\u002Fknowledge\u002Fwebhook-testing-fundamentals.md",3185,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Fwebhook-testing-fundamentals.md",{"path":283,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":284,"sourceHtmlUrl":285},"resources\u002Fknowledge\u002Fwebhook-timeout-error.md",5726,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Fwebhook-timeout-error.md",{"path":287,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":288,"sourceHtmlUrl":289},"resources\u002Fknowledge\u002Fwebhook-waiting-querying.md",7074,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Fknowledge\u002Fwebhook-waiting-querying.md",{"path":291,"resourceType":292,"resourceTypeDesc":293,"sizeBytes":294,"sourceHtmlUrl":295},"resources\u002Ftea-index.csv","ASSET","资产文件",11002,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fresources\u002Ftea-index.csv",{"path":297,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":298,"sourceHtmlUrl":299},"steps-c\u002Fstep-01-load-context.md",3763,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fsteps-c\u002Fstep-01-load-context.md",{"path":301,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":302,"sourceHtmlUrl":303},"steps-c\u002Fstep-01b-resume.md",3326,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fsteps-c\u002Fstep-01b-resume.md",{"path":305,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":306,"sourceHtmlUrl":307},"steps-c\u002Fstep-02-define-thresholds.md",2588,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fsteps-c\u002Fstep-02-define-thresholds.md",{"path":309,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":310,"sourceHtmlUrl":311},"steps-c\u002Fstep-03-gather-evidence.md",3143,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fsteps-c\u002Fstep-03-gather-evidence.md",{"path":313,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":314,"sourceHtmlUrl":315},"steps-c\u002Fstep-04-evaluate-and-score.md",6989,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fsteps-c\u002Fstep-04-evaluate-and-score.md",{"path":317,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":318,"sourceHtmlUrl":319},"steps-c\u002Fstep-04a-subagent-security.md",3167,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fsteps-c\u002Fstep-04a-subagent-security.md",{"path":321,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":322,"sourceHtmlUrl":323},"steps-c\u002Fstep-04b-subagent-performance.md",1826,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fsteps-c\u002Fstep-04b-subagent-performance.md",{"path":325,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":326,"sourceHtmlUrl":327},"steps-c\u002Fstep-04c-subagent-reliability.md",1843,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fsteps-c\u002Fstep-04c-subagent-reliability.md",{"path":329,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":330,"sourceHtmlUrl":331},"steps-c\u002Fstep-04d-subagent-scalability.md",2020,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fsteps-c\u002Fstep-04d-subagent-scalability.md",{"path":333,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":334,"sourceHtmlUrl":335},"steps-c\u002Fstep-04e-aggregate-nfr.md",6937,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fsteps-c\u002Fstep-04e-aggregate-nfr.md",{"path":337,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":338,"sourceHtmlUrl":339},"steps-c\u002Fstep-05-generate-report.md",3171,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fsteps-c\u002Fstep-05-generate-report.md",{"path":341,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":342,"sourceHtmlUrl":343},"steps-e\u002Fstep-01-assess.md",1253,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fsteps-e\u002Fstep-01-assess.md",{"path":345,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":346,"sourceHtmlUrl":347},"steps-e\u002Fstep-02-apply-edit.md",1475,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fsteps-e\u002Fstep-02-apply-edit.md",{"path":349,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":350,"sourceHtmlUrl":351},"steps-v\u002Fstep-01-validate.md",1798,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fsteps-v\u002Fstep-01-validate.md",{"path":353,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":354,"sourceHtmlUrl":355},"validation-report-20260127-095021.md",2072,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fvalidation-report-20260127-095021.md",{"path":357,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":358,"sourceHtmlUrl":359},"validation-report-20260127-102401.md",3745,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fvalidation-report-20260127-102401.md",{"path":361,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":362,"sourceHtmlUrl":363},"workflow-plan.md",397,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fworkflow-plan.md",{"path":365,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":366,"sourceHtmlUrl":367},"workflow.yaml",1635,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.augment\u002Fskills\u002Fbmad-testarch-nfr\u002Fworkflow.yaml",[369,378,387,395,401,407],{"skillNo":370,"name":371,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":372,"categories":373,"keywords":374,"publishedAt":39},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[375,376,377],"model","model hierarchy","model hierarchy skill",{"skillNo":379,"name":380,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":381,"categories":382,"keywords":383,"publishedAt":39},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[384,385,386],"MCP","zoom","zoom mcp",{"skillNo":388,"name":389,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":390,"categories":391,"keywords":392,"publishedAt":39},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[393,394,26,385],"sdk","zoom apps sdk",{"skillNo":396,"name":397,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":398,"categories":399,"keywords":400,"publishedAt":39},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[397],{"skillNo":402,"name":403,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":404,"categories":405,"keywords":406,"publishedAt":39},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[403],{"skillNo":408,"name":409,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":410,"categories":411,"keywords":412,"publishedAt":39},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[409]]