Skip to content
Skill

Axiom audit swiftdata

Audits SwiftData code for migration, relationship, context and performance defects

Axiom audit swiftdata is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
1.3K
Last commit
License
MIT
Listing updated

Similar skills

About Axiom audit swiftdata

This skill turns the agent into an auditor for SwiftData code in Apple-platform projects. It first maps the app's @Model classes, model containers, contexts, schema versions, migration plan and sync or storage setup, then checks the code against a set of known anti-patterns such as unregistered models in a VersionedSchema, array relationships without defaults, fetches placed in didMigrate, detached tasks using the main context, and missing saves.

Beyond pattern matching, it asks the agent to reason about gaps: whether migration stages cover every supported version, whether CloudKit-synced models meet sync requirements, whether predicates and sort orders still match current property names, and whether a recovery path exists for failed migrations. Findings are grouped by severity and confidence, and combined issues are escalated. The output is a structured report with a health rating of SAFE, FRAGILE or DANGEROUS, plus recommendations.

The skill relies on the agent running its Glob and Grep searches and reading the matched Swift files, so it expects a local Swift project to scan. It skips test, preview, vendored and build directories, and it points to related auditors for Core Data, CloudKit, database schema and SwiftUI performance concerns.

When your agent uses it

Use when the user mentions SwiftData review, @Model issues, SwiftData migration safety, or SwiftData performance checking.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 2 files (16 KB) on GitHub on 2 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

Copy the skill folder to ~/.claude/skills/axiom-audit-swiftdata to use it in all your projects:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/axiom-audit-swiftdata &&
cp -R "$tmp/axiom-codex/skills/axiom-audit-swiftdata" ~/.claude/skills/axiom-audit-swiftdata &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/axiom-audit-swiftdata inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/axiom-audit-swiftdata to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/axiom-audit-swiftdata &&
cp -R "$tmp/axiom-codex/skills/axiom-audit-swiftdata" ~/.agents/skills/axiom-audit-swiftdata &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/axiom-audit-swiftdata inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/axiom-audit-swiftdata to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/axiom-audit-swiftdata &&
cp -R "$tmp/axiom-codex/skills/axiom-audit-swiftdata" ~/.cursor/skills/axiom-audit-swiftdata &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/axiom-audit-swiftdata inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/CharlesWiltgen/Axiom.git --path axiom-codex/skills/axiom-audit-swiftdata

Or copy the folder to ~/.gemini/skills/axiom-audit-swiftdata yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/axiom-audit-swiftdata:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/axiom-audit-swiftdata &&
cp -R "$tmp/axiom-codex/skills/axiom-audit-swiftdata" ~/.copilot/skills/axiom-audit-swiftdata &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/axiom-audit-swiftdata inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git

Then copy Axiom/axiom-codex/skills/axiom-audit-swiftdata into your agent's skills folder as axiom-audit-swiftdata. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

SwiftData architecture map
Summarizes @Model classes, containers, contexts, schema versions and sync setup before checks run.
Known anti-pattern detection
Runs nine defined checks covering migrations, relationships, context isolation, saves, indexes and batching.
Completeness reasoning
Looks for gaps such as unregistered models, incomplete migration paths and stale predicates.
Compound issue escalation
Raises severity when related findings combine into larger data loss or performance risks.
Health score and report
Rates the codebase as SAFE, FRAGILE or DANGEROUS and outputs a severity-sorted report.

Good for

  • Check my SwiftData models for relationship and default value problems
  • Review my schema migration plan before shipping an app update
  • Find background work that accidentally runs on the main context
  • Audit SwiftData code for save discipline and batch insert performance
  • Verify that CloudKit-synced SwiftData models meet sync requirements

Axiom audit swiftdata FAQ

When does Axiom audit swiftdata trigger?

It is meant for requests that mention SwiftData review, @Model issues, SwiftData migration safety or SwiftData performance checking.

Which files does Axiom audit swiftdata scan?

It scans Swift files in the project while skipping test, preview, Pods, Carthage, build and docs folders.

Does Axiom audit swiftdata change my code?

The skill describes a read-only audit that reports findings and suggested fixes; it does not itself describe editing files.

Does Axiom audit swiftdata need any scripts or extra tools?

No scripts are included. It relies on the agent's file search and read capabilities.

How do I install Axiom audit swiftdata in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/axiom-audit-swiftdata to use it in all your projects, or to .claude/skills/axiom-audit-swiftdata in one project.

Does Axiom audit swiftdata run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Axiom audit swiftdata?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Axiom audit swiftdata?

The closest alternatives to Axiom audit swiftdata are Axiom audit core data, Axiom audit database schema, Axiom audit testing, Axiom audit codable and Axiom audit foundation models.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from CharlesWiltgen/Axiom

  1. Finds the code patterns behind flaky Swift Testing failures and explains each root cause

    • Open source
    • 1.3K GitHub stars
    • Developer tools
  2. Audits Swift test suites for flaky patterns, slow setups and Swift Testing migration gaps

    • Open source
    • 1.3K GitHub stars
    • Developer tools
  3. Drives iOS Simulator tests: UI input, screenshots, location, push and accessibility checks

    • Open source
    • 1.3K GitHub stars
    • Developer tools
  4. Guides an agent through Swift unit, UI and async tests, flaky-test fixes and test speed

    • Open source
    • 1.3K GitHub stars
    • Developer tools
  5. Interprets iOS and macOS crash logs and points the agent to the likely fix

    • Open source
    • 1.3K GitHub stars
    • Developer tools