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 | $0.00024 | $0.00866 |
| Sonnet 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 12d 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.
- 12d 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 7mo ago), licensed MIT. It adds 48 tokens to every session and 1,732 once invoked, about $0.0002 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-08-30.
Other skills, from other repositories
autoreview
Pre-commit/ship code review: Codex default; optional Claude or Pi.
omh-code-review
This is a Hermes-native code-review workflow skill.
revdiff-plan
Review the last Codex assistant message (plan, analysis, or proposal) with inline annotations in a TUI overlay. Extracts the most recent response from Codex rollout files and opens it in revdiff for review and annotation. Activates on "revdiff-plan", "review plan with revdiff", "annotate plan", "review last response"…
code-reviewer
Code review specialist focused on patterns, bugs, security, and performance.
full-repo-review
Comprehensive four-wave review of all repo source files, producing a prioritized issue backlog.
agent-teams-simplify-and-harden
Implementation + audit loop using parallel agent teams with structured simplify, harden, and document passes. Spawns implementation agents to do the work, then audit agents to find complexity, security gaps, and spec deviations, then loops until code compiles cleanly, all tests pass, and auditors find zero issues or…