[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FEBYZD89K9B5CBAREYKH6T":3,"skill-same:01M6FEBYZD89K9B5CBAREYKH6T":48},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":21,"linkOnly":22,"markdownContent":23,"markdownBody":23,"frontMatter":24,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M6FEBYZD89K9B5CBAREYKH6T","ios-chaos-monkey",null,"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\u002Fpproenca\u002Fdot-skills\u002Fios-chaos-monkey\u002FSKILL.md",[],[18,19,20],"ios","chaos","ios chaos monkey","2026-11-10 10:12:30",false,"# iOS Chaos Monkey — Crash-Hunter Best Practices\n\nAdversarial crash-hunting guide for iOS and Swift applications. Contains 47 rules across 8 categories, prioritized by crash severity. Every rule follows TDD: dangerous code first, a failing test that proves the bug, then the fix that makes the test pass.\n\n\n## Clinic Architecture Contract (iOS 26 \u002F Swift 6.2)\n\nAll guidance in this skill assumes the clinic modular MVVM-C architecture:\n\n- Feature modules import `Domain` + `DesignSystem` only (never `Data`, never sibling features)\n- App target is the convergence point and owns `DependencyContainer`, concrete coordinators, and Route Shell wiring\n- `Domain` stays pure Swift and defines models plus repository, `*Coordinating`, `ErrorRouting`, and `AppError` contracts\n- `Data` owns SwiftData\u002Fnetwork\u002Fsync\u002Fretry\u002Fbackground I\u002FO and implements Domain protocols\n- Read\u002Fwrite flow defaults to stale-while-revalidate reads and optimistic queued writes\n- ViewModels call repository protocols directly (no default use-case\u002Finteractor layer)\n\n## When to Apply\n\nReference these guidelines when:\n- Hunting data races, deadlocks, and concurrency crashes in Swift\n- Auditing memory management for retain cycles and use-after-free\n- Reviewing async\u002Fawait code for cancellation and continuation leaks\n- Stress-testing file I\u002FO and CoreData\u002FSwiftData persistence layers\n- Writing proof-of-crash tests before implementing fixes\n\n## Rule Categories by Priority\n\n| Priority | Category | Impact | Prefix |\n|----------|----------|--------|--------|\n| 1 | Data Races & Thread Safety | CRITICAL | `race-` |\n| 2 | Memory Corruption & Leaks | CRITICAL | `mem-` |\n| 3 | Deadlocks & Thread Starvation | HIGH | `dead-` |\n| 4 | Async\u002FAwait & Structured Concurrency | HIGH | `async-` |\n| 5 | File I\u002FO & Persistence Corruption | MEDIUM-HIGH | `io-` |\n| 6 | Collection & State Mutation | MEDIUM | `mut-` |\n| 7 | Resource Exhaustion | MEDIUM | `exhaust-` |\n| 8 | Objective-C Interop Traps | LOW-MEDIUM | `objc-` |\n\n## Quick Reference\n\n### 1. Data Races & Thread Safety (CRITICAL)\n\n- [`race-dictionary-concurrent-write`](references\u002Frace-dictionary-concurrent-write.md) - Concurrent Dictionary mutation crashes with EXC_BAD_ACCESS\n- [`race-array-concurrent-append`](references\u002Frace-array-concurrent-append.md) - Concurrent Array append corrupts internal buffer\n- [`race-property-access`](references\u002Frace-property-access.md) - Unsynchronized property read-write across threads\n- [`race-lazy-initialization`](references\u002Frace-lazy-initialization.md) - Lazy property double-initialization under concurrency\n- [`race-singleton-initialization`](references\u002Frace-singleton-initialization.md) - Non-atomic singleton exposes partially constructed state\n- [`race-bool-flag`](references\u002Frace-bool-flag.md) - Non-atomic Bool flag creates check-then-act race\n- [`race-closure-capture-mutation`](references\u002Frace-closure-capture-mutation.md) - Closure captures mutable reference across threads\n- [`race-delegate-nilification`](references\u002Frace-delegate-nilification.md) - Delegate set to nil during active callback\n\n### 2. Memory Corruption & Leaks (CRITICAL)\n\n- [`mem-closure-retain-cycle`](references\u002Fmem-closure-retain-cycle.md) - Strong self capture in escaping closures creates retain cycle\n- [`mem-timer-retain-cycle`](references\u002Fmem-timer-retain-cycle.md) - Timer retains target creating undiscoverable retain cycle\n- [`mem-delegate-strong-reference`](references\u002Fmem-delegate-strong-reference.md) - Strong delegate reference prevents deallocation\n- [`mem-unowned-crash`](references\u002Fmem-unowned-crash.md) - Unowned reference crashes after owner deallocation\n- [`mem-notification-observer-leak`](references\u002Fmem-notification-observer-leak.md) - NotificationCenter observer retains closure after removal needed\n- [`mem-combine-sink-retain`](references\u002Fmem-combine-sink-retain.md) - Combine sink retains self without cancellable storage\n- [`mem-async-task-self-capture`](references\u002Fmem-async-task-self-capture.md) - Task captures self extending lifetime beyond expected scope\n\n### 3. Deadlocks & Thread Starvation (HIGH)\n\n- [`dead-sync-on-main`](references\u002Fdead-sync-on-main.md) - DispatchQueue.main.sync from main thread deadlocks instantly\n- [`dead-recursive-lock`](references\u002Fdead-recursive-lock.md) - Recursive lock acquisition on same serial queue\n- [`dead-actor-reentrancy`](references\u002Fdead-actor-reentrancy.md) - Actor reentrancy produces unexpected interleaving\n- [`dead-semaphore-in-async`](references\u002Fdead-semaphore-in-async.md) - Semaphore.wait() inside async context deadlocks thread pool\n- [`dead-queue-hierarchy`](references\u002Fdead-queue-hierarchy.md) - Dispatch queue target hierarchy inversion deadlocks\n- [`dead-mainactor-blocking`](references\u002Fdead-mainactor-blocking.md) - Blocking MainActor with synchronous heavy work\n\n### 4. Async\u002FAwait & Structured Concurrency (HIGH)\n\n- [`async-missing-cancellation`](references\u002Fasync-missing-cancellation.md) - Missing Task.isCancelled check wastes resources after navigation\n- [`async-detached-task-leak`](references\u002Fasync-detached-task-leak.md) - Detached task without cancellation handle leaks work\n- [`async-task-group-error`](references\u002Fasync-task-group-error.md) - TaskGroup silently drops child task errors\n- [`async-continuation-leak`](references\u002Fasync-continuation-leak.md) - CheckedContinuation never resumed leaks awaiting task\n- [`async-actor-hop-starvation`](references\u002Fasync-actor-hop-starvation.md) - Excessive MainActor hops in hot loop starve UI updates\n- [`async-unsafe-sendable`](references\u002Fasync-unsafe-sendable.md) - @unchecked Sendable hides data race from compiler\n\n### 5. File I\u002FO & Persistence Corruption (MEDIUM-HIGH)\n\n- [`io-concurrent-file-write`](references\u002Fio-concurrent-file-write.md) - Concurrent file writes corrupt data without coordination\n- [`io-coredata-cross-thread`](references\u002Fio-coredata-cross-thread.md) - CoreData NSManagedObject accessed from wrong thread\n- [`io-swiftdata-background`](references\u002Fio-swiftdata-background.md) - SwiftData model accessed from wrong ModelContext\n- [`io-plist-concurrent-mutation`](references\u002Fio-plist-concurrent-mutation.md) - UserDefaults concurrent read-write produces stale values\n- [`io-filemanager-race`](references\u002Fio-filemanager-race.md) - FileManager existence check then use is a TOCTOU race\n- [`io-keychain-thread-safety`](references\u002Fio-keychain-thread-safety.md) - Keychain access from multiple threads returns unexpected errors\n\n### 6. Collection & State Mutation (MEDIUM)\n\n- [`mut-enumerate-and-mutate`](references\u002Fmut-enumerate-and-mutate.md) - Collection mutation during enumeration crashes at runtime\n- [`mut-kvo-dealloc-crash`](references\u002Fmut-kvo-dealloc-crash.md) - KVO observer not removed before deallocation crashes\n- [`mut-index-out-of-bounds`](references\u002Fmut-index-out-of-bounds.md) - Array index access without bounds check crashes\n- [`mut-force-unwrap`](references\u002Fmut-force-unwrap.md) - Force unwrapping optional in production crashes on nil\n- [`mut-enum-future-cases`](references\u002Fmut-enum-future-cases.md) - Non-exhaustive switch crashes on unknown enum case\n\n### 7. Resource Exhaustion (MEDIUM)\n\n- [`exhaust-unbounded-task-spawn`](references\u002Fexhaust-unbounded-task-spawn.md) - Unbounded task spawning in loop exhausts memory\n- [`exhaust-thread-explosion`](references\u002Fexhaust-thread-explosion.md) - GCD creates unbounded threads under concurrent load\n- [`exhaust-urlsession-leak`](references\u002Fexhaust-urlsession-leak.md) - URLSession not invalidated leaks delegate and connections\n- [`exhaust-file-descriptor-leak`](references\u002Fexhaust-file-descriptor-leak.md) - File handle not closed leaks file descriptors\n- [`exhaust-memory-warning-ignored`](references\u002Fexhaust-memory-warning-ignored.md) - Low memory warning ignored triggers Jetsam kill\n\n### 8. Objective-C Interop Traps (LOW-MEDIUM)\n\n- [`objc-unrecognized-selector`](references\u002Fobjc-unrecognized-selector.md) - Missing @objc annotation crashes with unrecognized selector\n- [`objc-nsnull-in-json`](references\u002Fobjc-nsnull-in-json.md) - NSNull in decoded JSON collection crashes on access\n- [`objc-bridge-type-mismatch`](references\u002Fobjc-bridge-type-mismatch.md) - Swift\u002FObjC bridge type mismatch crashes at runtime\n- [`objc-dynamic-dispatch`](references\u002Fobjc-dynamic-dispatch.md) - Missing dynamic keyword breaks method swizzling\n\n## How to Use\n\nRead individual reference files for detailed explanations and code examples:\n\n- [Section definitions](references\u002F_sections.md) - Category structure and impact levels\n- [Rule template](assets\u002Ftemplates\u002F_template.md) - Template for adding new rules\n\n## Reference Files\n\n| File | Description |\n|------|-------------|\n| [references\u002F_sections.md](references\u002F_sections.md) | Category definitions and ordering |\n| [assets\u002Ftemplates\u002F_template.md](assets\u002Ftemplates\u002F_template.md) | Template for new rules |\n| [metadata.json](metadata.json) | Version and reference information |\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fpproenca\u002Fdot-skills\u002Fios-chaos-monkey",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":7,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill ios-chaos-monkey",{"tool":40,"command":41},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill ios-chaos-monkey",{"tool":43,"command":44},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill ios-chaos-monkey","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fpproenca\u002Fdot-skills\u002Fios-chaos-monkey\u002FSKILL.md",true,[],[49,58,67,76,82,88],{"skillNo":50,"name":51,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":21},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[55,56,57],"model","model hierarchy","model hierarchy skill",{"skillNo":59,"name":60,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":21},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[64,65,66],"MCP","zoom","zoom mcp",{"skillNo":68,"name":69,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":21},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[73,74,75,65],"sdk","zoom apps sdk","apps",{"skillNo":77,"name":78,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":21},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[78],{"skillNo":83,"name":84,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":21},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[84],{"skillNo":89,"name":90,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":21},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[90]]