core-data-auditor
Automatically scans Core Data code for safety violations that cause production crashes and permanent data loss.
How to Use This Agent
Natural language (automatic triggering):
- "Can you check my Core Data code for safety issues?"
- "I'm about to ship an app with Core Data, can you review it?"
- "Review my code for Core Data migration risks"
- "Check for thread-confinement violations in my persistence layer"
Explicit command:
bash
/axiom:audit-core-dataWhat It Checks
- Schema Migration Safety (CRITICAL) — Missing lightweight migration options
- Thread-Confinement Violations (CRITICAL) — NSManagedObject accessed from wrong threads
- N+1 Query Patterns (MEDIUM) — Relationship access in loops without prefetching
- Production Risk Patterns (CRITICAL) — Hard-coded store deletion, try! on migration
- Performance Issues (LOW) — Missing fetchBatchSize, no faulting controls
Model & Tools
- Model: haiku
- Tools: Glob, Grep, Read
- Color: orange
Related Skills
- core-data-diag skill — Comprehensive Core Data diagnostics with production crisis defense