Skip to content
Skill

Axiom audit memory

Audits Swift code for memory leaks, retain cycles and unreleased timers or observers

Axiom audit memory 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 memory

This skill turns the agent into a memory leak auditor for Swift codebases. It first maps which classes own long-lived resources such as timers, observers, stored tasks and delegates, and where each one is cleaned up. It then runs a fixed set of search patterns for known leak shapes, including repeating timers without invalidation, observers without removal, closures capturing self strongly, non-weak delegates, view callbacks and image requests that are never cancelled, and checks each match by reading the surrounding code.

The audit also looks for missing cleanup, such as objects that create resources but only release some of them, or collections that grow without bounds. Findings are ranked by severity, compound problems are escalated, and the result is a health rating with counts, per-issue fixes and suggested Instruments profiling steps. Test, preview, vendored and build folders are excluded from the scan.

The skill expects read and search access to the project files. Optionally, symbolicated field crash reports can be supplied, and the skill notes that it cannot run the xcsym tool itself, so that output must be provided or run manually.

When your agent uses it

Use when the user mentions memory leak prevention, code review for memory issues, or proactive leak checking — retain cycles, leaks, and Timer/observer patterns.

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 (13 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-memory 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-memory &&
cp -R "$tmp/axiom-codex/skills/axiom-audit-memory" ~/.claude/skills/axiom-audit-memory &&
rm -rf "$tmp"

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

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/axiom-audit-memory 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-memory &&
cp -R "$tmp/axiom-codex/skills/axiom-audit-memory" ~/.agents/skills/axiom-audit-memory &&
rm -rf "$tmp"

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

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/axiom-audit-memory 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-memory &&
cp -R "$tmp/axiom-codex/skills/axiom-audit-memory" ~/.cursor/skills/axiom-audit-memory &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/axiom-audit-memory 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-memory

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

Gemini CLI docs on skills

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

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

For one project only, put the folder in .github/skills/axiom-audit-memory 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-memory into your agent's skills folder as axiom-audit-memory. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Resource ownership mapping
Identifies which classes own timers, observers, tasks and delegates and where cleanup occurs.
Known leak pattern detection
Searches for repeating timers, unremoved observers, strong closure captures and delegate cycles.
Completeness reasoning
Looks for partial cleanup, unbounded collections and inconsistent lifecycle handling.
Compound severity ranking
Raises severity when several risky patterns combine in the same class.
Memory health score
Summarizes resource pairing and cleanup coverage as clean, needs attention or leaking.
Crash report correlation
Uses symbolicated jetsam, heap corruption and bad access crash data to focus the audit.

Good for

  • Check my Swift code for memory leaks
  • Review this view model for retain cycles
  • Find timers that are never invalidated
  • Audit closures that capture self strongly
  • Find observers that are never removed

Axiom audit memory FAQ

What does the skill need to run?

It needs read and search access to the Swift project files, since the procedure is built around Glob, Grep and Read scans.

Does Axiom audit memory change my code?

No. It reads and searches the codebase and reports findings with suggested fixes.

Which files are skipped?

Test files, preview files, Pods, Carthage, build output, DerivedData, docs and the .claude folders are excluded.

Can Axiom audit memory use crash logs?

Yes, if symbolicated crash output is provided. It cannot run the xcsym tool itself, so that output must be supplied or generated manually.

How do I install Axiom audit memory in Claude Code?

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

Does Axiom audit memory 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 memory?

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 memory?

The closest alternatives to Axiom audit memory are Axiom audit testing, Axiom health check, Axiom audit energy, Axiom audit spritekit and Axiom audit camera.

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