# Axiom optimize build

> Axiom optimize build is an open-source agent skill for developer tools. Finds Xcode build bottlenecks and recommends settings and script fixes to speed up builds. 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-optimize-build
- **Repository:** https://github.com/charleswiltgen/axiom
- **GitHub stars:** 1,278
- **License:** MIT
- **Skill name:** axiom-optimize-build
- **Collection:** https://github.com/CharlesWiltgen/Axiom
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill acts as a build performance auditor for Xcode projects. It scans build settings for Debug and Release configurations, checks whether compilation mode, optimization level, debug symbol format and link-time optimization are set sensibly, and reviews build phase scripts for expensive steps that run in every configuration.

The workflow also covers Swift type-checking cost, suggesting temporary compiler flags that report slow function bodies and expressions, and points out Swift package prebuilt plugins that can invalidate caches. It includes a guide to reading Xcode's build timeline and a check of available CPU cores for parallelism. Findings are grouped by impact with current values, fixes and verification commands.

It expects an Xcode workspace or project and relies on the Axiom xcproject helper for reading settings, with an npx fallback. The skill treats any change to project files as something to recommend rather than apply on its own, and it asks for a backup before any project file is edited.

## When your agent uses it

> Use when the user mentions slow builds, build performance, or build time optimization.

## 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-optimize-build)
- [License: MIT](https://github.com/CharlesWiltgen/Axiom/tree/HEAD/axiom-codex/skills/axiom-optimize-build)

## Features

- **Build settings review:** Compares Debug and Release compilation mode, optimization level, architecture and debug format settings against recommended values.
- **Build phase script audit:** Flags expensive scripts such as symbol uploads and signing that run in every configuration when they could be conditional.
- **Type checking diagnostics:** Suggests compiler flags that report slow Swift function bodies and expressions, and how to read the resulting timing output.
- **Package plugin check:** Looks for Swift package prebuilt plugins that can cause cache invalidation on every build.
- **Build timeline guidance:** Explains how to read Xcode's build timeline to find long tasks and sequential work that could run in parallel.

## Good for

- Why are my Xcode builds so slow and how do I fix them?
- Check my Debug and Release build settings for performance problems
- Find which Swift files take the longest to type-check
- Review my build phase scripts for steps that slow down every build
- Audit whether my Swift package plugins are invalidating the build cache

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/axiom-optimize-build` 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-optimize-build &&
cp -R "$tmp/axiom-codex/skills/axiom-optimize-build" ~/.claude/skills/axiom-optimize-build &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/axiom-optimize-build` inside it instead.

### Codex

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

For one repository only, put the folder in `.agents/skills/axiom-optimize-build` inside it instead.

### Cursor

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

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

Or copy the folder to `~/.gemini/skills/axiom-optimize-build` yourself.

### VS Code

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

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

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

## FAQ

### What does Axiom optimize build need to run?

It targets Xcode projects and workspaces and uses the Axiom xcproject helper to read settings, with an npx fallback. Some checks need an authorized Xcode capture to confirm effective values.

### Does Axiom optimize build change my project files automatically?

No. It analyzes and recommends changes, and it warns to confirm a backup exists before any edit to a project file.

### When does Axiom optimize build trigger?

It is meant for requests that mention slow builds, build performance or build time optimization.

### How do I install Axiom optimize build in Claude Code?

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

### Does Axiom optimize build 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 optimize build?

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 optimize build?

The closest alternatives to Axiom optimize build are Axiom fix build, Axiom health check, Axiom build, Axiom analyze swift performance and Axiom audit testing.

## Where this comes from

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

## Alternatives

- [Axiom fix build](https://ai-powered.com/skills/axiom-fix-build): Axiom fix build 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.
- [Axiom build](https://ai-powered.com/skills/axiom-build-charleswiltgen-2): Axiom build is an open-source agent skill for developer tools.
- [Axiom analyze swift performance](https://ai-powered.com/skills/axiom-analyze-swift-performance): Axiom analyze swift 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 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 performance](https://ai-powered.com/skills/axiom-performance-charleswiltgen-2): Axiom performance is an open-source agent skill for developer tools.
- [Axiom run tests](https://ai-powered.com/skills/axiom-run-tests): Axiom run tests is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/axiom-optimize-build
