Ios chaos monkey

From pproenca/dot-skills · View interactive version

Ios chaos monkey is an AI agent skill from the GitHub repository pproenca/dot-skills. Crash-hunter skill for iOS 26 / Swift 6.2 clinic-architecture codebases that finds and fixes concurrency, memory, and I/O bugs using TDD. Covers data races, actor isolation, retain cycles, SwiftData context misuse, and sync-related failures in Domain/Data/App boundaries. Use when debugging crashes o

How to use this skill

Skill file

iOS Chaos Monkey — Crash-Hunter Best Practices

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

Clinic Architecture Contract (iOS 26 / Swift 6.2)

All guidance in this skill assumes the clinic modular MVVM-C architecture:

When to Apply

Reference these guidelines when:

Rule Categories by Priority

| Priority | Category | Impact | Prefix |

|----------|----------|--------|--------|

| 1 | Data Races & Thread Safety | CRITICAL | race- |

| 2 | Memory Corruption & Leaks | CRITICAL | mem- |

| 3 | Deadlocks & Thread Starvation | HIGH | dead- |

| 4 | Async/Await & Structured Concurrency | HIGH | async- |

| 5 | File I/O & Persistence Corruption | MEDIUM-HIGH | io- |

| 6 | Collection & State Mutation | MEDIUM | mut- |

| 7 | Resource Exhaustion | MEDIUM | exhaust- |

| 8 | Objective-C Interop Traps | LOW-MEDIUM | objc- |

Quick Reference

1. Data Races & Thread Safety (CRITICAL)

2. Memory Corruption & Leaks (CRITICAL)

3. Deadlocks & Thread Starvation (HIGH)

4. Async/Await & Structured Concurrency (HIGH)

5. File I/O & Persistence Corruption (MEDIUM-HIGH)

6. Collection & State Mutation (MEDIUM)

7. Resource Exhaustion (MEDIUM)

8. Objective-C Interop Traps (LOW-MEDIUM)

How to Use

Read individual reference files for detailed explanations and code examples:

Reference Files

| File | Description |

|------|-------------|

| references/_sections.md | Category definitions and ordering |

| assets/templates/_template.md | Template for new rules |

| metadata.json | Version and reference information |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.