axiom-audit-swiftdata
axiom-audit-swiftdata equips AI coding assistants with specialized knowledge to identify problematic patterns in SwiftData model definitions. It catches common pitfalls that lead to crashes, data corruption, and memory inefficiency—issues that are often difficult to spot during code review. By integrating this skill, you gain proactive validation that keeps your Apple OS projects stable and performant.
axiom-audit-swiftdata identifies anti-patterns and runtime crashes in SwiftData @Model definitions. It catches structural issues, relationship misconfigurations, and coding patterns that lead to crashes or data corruption—problems that are difficult to spot during manual code review.
AI-generated summary based on this skill's SKILL.md
Install
CharlesWiltgen/Axiom/axiom-audit-swiftdata · repository language: Go
git clone https://github.com/CharlesWiltgen/Axiom
cp -r Axiom/axiom-codex/skills/axiom-audit-swiftdata ~/.claude/skills/axiom-audit-swiftdataFrequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
What does axiom-audit-swiftdata detect in @Model definitions?
axiom-audit-swiftdata identifies anti-patterns and runtime crashes in SwiftData @Model definitions. It catches structural issues, relationship misconfigurations, and coding patterns that lead to crashes or data corruption—problems that are difficult to spot during manual code review.
How does axiom-audit-swiftdata help prevent data loss?
axiom-audit-swiftdata verifies schema migration safety and detects silent data loss scenarios. It validates migration paths to ensure data integrity during schema changes and flags configurations that could cause unintended data corruption or loss.
Can axiom-audit-swiftdata check for background context issues?
Yes. axiom-audit-swiftdata audits background context usage to prevent data races and threading violations. It identifies unsafe concurrent access patterns that could cause crashes or inconsistent state in multi-threaded SwiftData operations.
Does axiom-audit-swiftdata validate CloudKit sync compatibility?
axiom-audit-swiftdata checks CloudKit sync compatibility and relationship configurations. It ensures your model definitions conform to CloudKit requirements and flags relationship setups that could cause sync failures or data inconsistencies.
What performance issues can axiom-audit-swiftdata identify?
axiom-audit-swiftdata detects performance problems including N+1 queries, over-indexing, and inefficient batch operations. It analyzes query patterns and index configurations to help optimize SwiftData performance in Apple OS applications.
Is axiom-audit-swiftdata available under an open license?
axiom-audit-swiftdata is released under the MIT license, making it freely available for commercial and personal projects with minimal restrictions.
SKILL.md
rendered from the published skill — quoted content, verbatim
SwiftData Auditor Agent
You are an expert at detecting SwiftData violations — both known anti-patterns AND missing/incomplete patterns that cause crashes, data loss, silent corruption, sync failures, and performance degradation.
Tool Use Is Mandatory
Run every Glob, Grep, and Read this prompt lists. Do not reason from training data instead of scanning.
- Run each Grep pattern as written; do not collapse them into one mega-regex.
- Run the Read verifications each section calls for.
- "Build a mental model" / "map the architecture" means with tool output in hand, not from memory.
Files to Exclude
Skip: *Tests.swift, *Previews.swift, */Pods/*, */Carthage/*, */.build/*, */DerivedData/*, */scratch/*, */docs/*, */.claude/*, */.claude-plugin/*
Phase 1: Map SwiftData Architecture
Step 1: Identify the @Model Inventory
``
Glob: **/*.swift (excluding test/vendor paths)
Grep for:
-@Model\s+(final\s+)?class\s+\w+` — every @Model
(truncated - see the full file via the links below)
Read as markdown · JSON record · Browse the source repository
File tree — 2 files
axiom-codex/skills/axiom-audit-swiftdata/SKILL.md
axiom-codex/skills/axiom-audit-swiftdata/agents/openai.yaml