ios-chaos-monkey

ios-chaos-monkey is a skill for Claude Code, Codex from pproenca/dot-skills. It costs 86 tokens per session (2,138 once invoked), scanned A, original, MIT.

A crash-hunting guide for iOS apps written in Swift. It explains how to find concurrency errors, memory leaks, unsafe SwiftData use, and failures during data synchronisation, then fix them with TDD—writing a failing test before the fix.

In plain words
What is it for?
Use it to investigate data races, deadlocks, retain cycles, actor-isolation problems, SwiftData context errors, and sync failures.
Why use it?
It helps expose crashes and timing-dependent bugs that may be difficult to reproduce during normal use.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to investigate data races, deadlocks, retain cycles, actor-isolation problems, SwiftData context errors, and sync failures.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pproenca/dot-skills/ios-chaos-monkey
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add pproenca/dot-skills --skill ios-chaos-monkey
Clone the repo
git clone --depth 1 https://github.com/pproenca/dot-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ios-chaos-monkey

README.md
[![agentmods](https://agentmods.dev/badge/skills/pproenca/dot-skills/ios-chaos-monkey/github.svg)](https://agentmods.dev/skills/pproenca/dot-skills/ios-chaos-monkey)
Your own site
<a href="https://agentmods.dev/skills/pproenca/dot-skills/ios-chaos-monkey"><img src="https://agentmods.dev/badge/skills/pproenca/dot-skills/ios-chaos-monkey/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ios-chaos-monkey

Your own site · 80×15
<a href="https://agentmods.dev/skills/pproenca/dot-skills/ios-chaos-monkey"><img src="https://agentmods.dev/badge/skills/pproenca/dot-skills/ios-chaos-monkey.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,138 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 92
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • medium Rogue Agent · line 90
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00086 $0.02138
Opus 5 $0.00043 $0.01069
Sonnet 5 $0.00017 $0.00428
Haiku 4.5 $0.00009 $0.00214

Measured 5d ago against content hash 7dc6c7b9cb5c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

ios-chaos-monkey scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/.experimental/ios-chaos-monkey/SKILL.md · 131 lines

How it starts

The opening of the file, as written. The whole thing — 131 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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:

  • Feature modules import Domain + DesignSystem only (never Data, never sibling features)
  • App target is the convergence point and owns DependencyContainer, concrete coordinators, and Route Shell wiring
  • Domain stays pure Swift and defines models plus repository, *Coordinating, ErrorRouting, and AppError contracts
  • Data owns SwiftData/network/sync/retry/background I/O and implements Domain protocols
  • Read/write flow defaults to stale-while-revalidate reads and optimistic queued writes
  • ViewModels call repository protocols directly (no default use-case/interactor layer)

When to Apply

Reference these guidelines when:

  • Hunting data races, deadlocks, and concurrency crashes in Swift
  • Auditing memory management for retain cycles and use-after-free
  • Reviewing async/await code for cancellation and continuation leaks
  • Stress-testing file I/O and CoreData/SwiftData persistence layers
  • Writing proof-of-crash tests before implementing fixes

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

Read the full file on GitHub · 131 lines

Files

What ships with it

50 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 131 lines · 86 tokens per session scan A 7dc6c7b9cb5c

Subscribe to this mod's changes

ios-chaos-monkey is a skill published in the GitHub repository pproenca/dot-skills (205 stars, last pushed 24d ago), licensed MIT. It adds 86 tokens to every session and 2,138 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.