Skip to content
Skill

Axiom analyze swift performance

Audits Swift code for ARC, copy, generic and actor performance overhead

Axiom analyze swift performance 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 analyze swift performance

This skill guides an agent through a structured performance review of Swift code. It starts by mapping value types, reference types, actors and loops to find where costs would actually matter, then checks for known anti-patterns such as unnecessary copies, excessive weak or self captures, existential types where concrete or opaque types would do, and actor hops inside loops.

Findings are judged by context. The agent is told to separate hot paths from one-shot code, bump severity when several issues compound inside a loop, and skip false positives like small structs passed by value. The output is a hotspot map, a summary by severity, a health rating from optimized to bottlenecked, and recommendations that end with profiling in Instruments.

The skill is written for Swift codebases and assumes the agent can search and read project files. It excludes tests, previews and vendored folders, and defers SwiftUI view performance to a separate analyzer. It is MIT licensed.

When your agent uses it

Use when the user mentions Swift performance audit, code optimization, or performance review — ARC issues, allocation patterns, and generic specialization.

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 (15 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-analyze-swift-performance 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-analyze-swift-performance &&
cp -R "$tmp/axiom-codex/skills/axiom-analyze-swift-performance" ~/.claude/skills/axiom-analyze-swift-performance &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/axiom-analyze-swift-performance inside it instead.

Claude Code docs on skills

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

For one repository only, put the folder in .agents/skills/axiom-analyze-swift-performance inside it instead.

Codex docs on skills

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

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

Or copy the folder to ~/.gemini/skills/axiom-analyze-swift-performance yourself.

Gemini CLI docs on skills

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

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

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

The SKILL.md format

What it does

Hot path mapping
Identifies large value types, tight loops and actor boundaries before judging any code.
ARC overhead checks
Flags unnecessary weak references, broad self captures and avoidable reference counting.
Generic specialization review
Looks for existential types and generics in hot code where specialization would help.
Copy and COW analysis
Checks large struct passing and copy-on-write mutation for unnecessary copying.
Actor isolation costs
Finds actor calls inside loops and async functions that never suspend.
Severity and health score
Ranks findings by severity and rates overall code as optimized, overhead or bottlenecked.

Good for

  • Audit my Swift project for performance problems in data processing code
  • Check whether my actor calls inside loops should be batched
  • Review my code for unnecessary copies and ARC traffic
  • Find existential protocol types that slow down iteration in hot paths

Axiom analyze swift performance FAQ

When does Axiom analyze swift performance trigger?

It triggers when the user mentions a Swift performance audit, code optimization or performance review, including ARC issues, allocation patterns and generic specialization.

Does Axiom analyze swift performance cover SwiftUI performance?

No. SwiftUI view files are excluded, and the skill points to a separate SwiftUI performance analyzer for those.

Which files does Axiom analyze swift performance skip?

It skips test files, previews, Pods, Carthage, build output, DerivedData, docs and Claude configuration folders.

Does Axiom analyze swift performance run any scripts?

No scripts are included. It works by instructing the agent to run Glob and Grep searches and to read files.

How do I install Axiom analyze swift performance in Claude Code?

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

Does Axiom analyze swift performance 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 analyze swift performance?

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 analyze swift performance?

The closest alternatives to Axiom analyze swift performance are Axiom analyze swiftui performance, Axiom audit testing, Axiom audit concurrency, Axiom audit codable and Axiom performance.

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