# Axiom analyze swift performance

> Axiom analyze swift performance is an open-source agent skill for developer tools. Audits Swift code for ARC, copy, generic and actor performance overhead. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/CharlesWiltgen/Axiom/tree/main/axiom-codex/skills/axiom-analyze-swift-performance
- **Repository:** https://github.com/charleswiltgen/axiom
- **GitHub stars:** 1,278
- **License:** MIT
- **Skill name:** axiom-analyze-swift-performance
- **Collection:** https://github.com/CharlesWiltgen/Axiom
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/CharlesWiltgen/Axiom/tree/HEAD/axiom-codex/skills/axiom-analyze-swift-performance)
- [License: MIT](https://github.com/CharlesWiltgen/Axiom/tree/HEAD/axiom-codex/skills/axiom-analyze-swift-performance)

## Features

- **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

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/axiom-analyze-swift-performance` to use it in all your projects:

```sh
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.

### Codex

Copy the skill folder to `~/.agents/skills/axiom-analyze-swift-performance` to use it in every repository:

```sh
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.

### Cursor

Copy the skill folder to `~/.cursor/skills/axiom-analyze-swift-performance` to use it in every project:

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Axiom analyze swiftui performance](https://ai-powered.com/skills/axiom-analyze-swiftui-performance): Axiom analyze swiftui performance is an open-source agent skill for developer tools.
- [Axiom audit testing](https://ai-powered.com/skills/axiom-audit-testing): Axiom audit testing is an open-source agent skill for developer tools.
- [Axiom audit concurrency](https://ai-powered.com/skills/axiom-audit-concurrency): Axiom audit concurrency is an open-source agent skill for developer tools.
- [Axiom audit codable](https://ai-powered.com/skills/axiom-audit-codable): Axiom audit codable is an open-source agent skill for developer tools.
- [Axiom performance](https://ai-powered.com/skills/axiom-performance-charleswiltgen-2): Axiom performance is an open-source agent skill for developer tools.
- [Axiom audit swiftui architecture](https://ai-powered.com/skills/axiom-audit-swiftui-architecture): Axiom audit swiftui architecture is an open-source agent skill for developer tools.
- [Axiom swift simplifier](https://ai-powered.com/skills/axiom-swift-simplifier): Axiom swift simplifier is an open-source agent skill for developer tools.
- [Axiom health check](https://ai-powered.com/skills/axiom-health-check): Axiom health check is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/axiom-analyze-swift-performance
