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.
npx skills add mwd1234/ios-agentic-skills --skill crash-safetygit clone --depth 1 https://github.com/mwd1234/ios-agentic-skillsWrote 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.
[](https://agentmods.dev/skills/mwd1234/ios-agentic-skills/crash-safety)<a href="https://agentmods.dev/skills/mwd1234/ios-agentic-skills/crash-safety"><img src="https://agentmods.dev/badge/skills/mwd1234/ios-agentic-skills/crash-safety/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.
<a href="https://agentmods.dev/skills/mwd1234/ios-agentic-skills/crash-safety"><img src="https://agentmods.dev/badge/skills/mwd1234/ios-agentic-skills/crash-safety.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00048 | $0.01732 |
| Opus 5.5 | $0.00019 | $0.00693 |
| Sonnet 5.5 | $0.00010 | $0.00346 |
| Haiku 4.5 | $0.00005 | $0.00173 |
Grade A, and why
crash-safety 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 224 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Crash & Error Resilience Audit
Find risky unwraps, missing guards, and unhandled errors. Add safe fallbacks and user-friendly error states.
When to use this skill
- Before App Store submission
- After adding new async/error-prone code
- When reviewing PRs with optional handling
- After crash reports from TestFlight
Quick Reference: Risk Levels
| Pattern | Risk | Fix |
|---|---|---|
fatalError() |
🔴 Critical | Remove or guard with #if DEBUG |
! force unwrap |
🔴 High | Use guard let, if let, or ?? |
try! |
🔴 High | Use do/catch or try? with fallback |
preconditionFailure() |
🔴 High | Remove from production paths |
Implicit unwrap (Type!) |
🟡 Medium | Convert to optional with safe access |
Missing @MainActor |
🟡 Medium | Add for UI-updating code |
Step 1: Fatal Crash Patterns
1.1 fatalError / preconditionFailure / assertionFailure
# These crash in production!
rg --type swift -g '!*Tests*' -g '!*UITests*' 'fatalError\(|preconditionFailure\(|assertionFailure\(' YourApp/
Fix: Remove or wrap in #if DEBUG:
#if DEBUG
fatalError("Unimplemented")
#else
return defaultValue
#endif
1.2 Force Unwraps (!)
# Force unwraps - tighter pattern to reduce false positives
rg --type swift -g '!*Tests*' -g '!*UITests*' '[a-zA-Z_][a-zA-Z0-9_]*\s*!' YourApp/ | grep -v '!=' | grep -v '//' | head -40
Exceptions (OK to skip):
@IBOutlet(UIKit pattern)NSImage(named:)!with known system imagesURL(string: "https://...")!with hardcoded valid URLs- Code inside
#Preview { }blocks - Code inside
*Tests*/directories
1.3 Force Try (try!)
rg --type swift -g '!*Tests*' -g '!*UITests*' 'try!' YourApp/
Note:
try!is acceptable in tests and previews where failure should crash during development.
Fix: Replace with do/catch or try? with default:
// ❌ Crashes on failure
let data = try! encoder.encode(object)
// ✅ Safe with error handling
let data = try? encoder.encode(object) ?? Data()
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.
- 2mo ago First seen · 224 lines · 48 tokens per session scan A 9ecf77cc7734
crash-safety is a skill published in the GitHub repository mwd1234/ios-agentic-skills (50 stars, last pushed 9mo ago), licensed MIT. It adds 48 tokens to every session and 1,732 once invoked, about $0.0002 per session on Opus 5.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-08-30.
crash-safety compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| crash-safetymwd1234/ios-agentic-skills | Skill | 50 | 9mo ago | MIT | A | 48 | Claude Code, Codex |
| autoreviewopenclaw/clawhub | Skill | 9.5k | yesterday | MIT | A | 17 | Claude Code, Codex |
| agent-teams-simplify-and-hardenLeoYeAI/openclaw-master-skills | Skill | 2.2k | 5d ago | MIT | A | 115 | Claude Code, Codex |
| omh-code-reviewrlaope/oh-my-hermes | Skill | 5.2k | yesterday | MIT | A | 48 | Claude Code, Codex |
| revdiff-planumputun/revdiff | Skill | 945 | yesterday | MIT | A | 84 | Claude Code |
| explore-unknownsdzhng/skills | Skill | 1.4k | 2d ago | MIT | A | 162 | Claude Code, Codex |
| re0-mergeLilMGenius/paperthin | Skill | 1.4k | 4d ago | MIT | A | 70 | Claude Code |