
Axiom audit foundation models
Audits Apple Foundation Models code for availability, error handling and structured output
Axiom audit foundation models 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 foundation models
This skill turns the agent into an auditor for Apple's on-device Foundation Models framework. It walks the project to map where LanguageModelSession instances are created and owned, how @Generable types and Tool implementations are used, and how availability and errors are handled, then checks the code against a fixed set of anti-patterns such as missing availability gates, concurrent requests on one session, and manual JSON parsing of model output.
Beyond pattern matching, it reviews for gaps like missing guardrail or context-size handling, unconstrained numeric properties, prompt injection from user text, and absent evaluation suites. Findings are grouped by severity, combined where issues compound, and summarized in a health score with recommended fixes and a test plan.
The skill expects a Swift codebase that imports FoundationModels, and it reads project and xcconfig settings to decide which iOS or macOS 27 checks apply. It uses search and file-read tools to scan source, and it is distributed as an MIT-licensed folder with a SKILL.md and one supporting reference file.
When your agent uses it
Use when the user mentions Foundation Models review, on-device AI audit, LanguageModelSession issues, or @Generable/guardrail problems — including missing availability checks, manual JSON parsing, and guardrail handling.
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 (34 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-foundation-models 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-foundation-models &&
cp -R "$tmp/axiom-codex/skills/axiom-audit-foundation-models" ~/.claude/skills/axiom-audit-foundation-models &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/axiom-audit-foundation-models inside it instead.
Copy the skill folder to ~/.agents/skills/axiom-audit-foundation-models 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-foundation-models &&
cp -R "$tmp/axiom-codex/skills/axiom-audit-foundation-models" ~/.agents/skills/axiom-audit-foundation-models &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/axiom-audit-foundation-models inside it instead.
Copy the skill folder to ~/.cursor/skills/axiom-audit-foundation-models 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-foundation-models &&
cp -R "$tmp/axiom-codex/skills/axiom-audit-foundation-models" ~/.cursor/skills/axiom-audit-foundation-models &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/axiom-audit-foundation-models inside it instead.
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-foundation-modelsOr copy the folder to ~/.gemini/skills/axiom-audit-foundation-models yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/axiom-audit-foundation-models:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/axiom-audit-foundation-models &&
cp -R "$tmp/axiom-codex/skills/axiom-audit-foundation-models" ~/.copilot/skills/axiom-audit-foundation-models &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/axiom-audit-foundation-models inside it instead.
Get the folder:
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.gitThen copy Axiom/axiom-codex/skills/axiom-audit-foundation-models into your agent's skills folder as axiom-audit-foundation-models. Agents that support SKILL.md read one folder per skill.
What it does
- Availability gate checks
- Finds session creation sites that lack a Foundation Models availability check and missing fallback UI.
- Error handling review
- Checks catch blocks for guardrail refusals, context-size overflow and the OS 27 error type migration.
- Generable schema audit
- Reviews @Generable types for @Guide constraints, nested type conformance and frozen enums.
- Session lifecycle review
- Looks for sessions recreated per tap and concurrent requests that ignore the isResponding state.
- Prompt injection detection
- Flags user-supplied text interpolated directly into prompts instead of passed as structured inputs.
- Health score report
- Produces a severity-sorted report with a hardening rating and a test plan.
Good for
- Check my Apple Intelligence integration for crashes on unsupported devices
- Review my @Generable structs for missing constraints
- Find places where I parse model output with JSONDecoder instead of structured generation
- Audit how my app handles guardrail and context-window errors
- Migrate my Foundation Models error handling to the OS 27 error types
Axiom audit foundation models FAQ
What does Axiom audit foundation models need to run?
It targets Swift projects that use the FoundationModels framework and relies on the agent's search and file-read tools to scan the codebase.
Does Axiom audit foundation models change my code?
The skill describes auditing and suggests fixes with code examples; it is framed as a review that reports findings rather than editing files.
When does Axiom audit foundation models trigger?
It is meant for requests about Foundation Models review, on-device AI audits, LanguageModelSession problems, or @Generable and guardrail issues.
Which licence applies?
The skill is released under the MIT license.
How do I install Axiom audit foundation models in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/axiom-audit-foundation-models to use it in all your projects, or to .claude/skills/axiom-audit-foundation-models in one project.
Does Axiom audit foundation models 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 foundation models?
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 foundation models?
The closest alternatives to Axiom audit foundation models are Axiom audit swiftdata, Axiom audit testing, Axiom audit accessibility, Axiom health check and Axiom audit icloud.
Where this comes from
- Description: from the skill's own SKILL.md.
More from CharlesWiltgen/Axiom

Finds the code patterns behind flaky Swift Testing failures and explains each root cause
- Open source
- 1.3K GitHub stars
- Developer tools

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

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

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

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

Audits Swift code for ARC, copy, generic and actor performance overhead
- Open source
- 1.3K GitHub stars
- Developer tools

