# Axiom fix build

> Axiom fix build is an open-source agent skill for developer tools. Diagnoses Xcode build failures by checking the environment before code. 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-fix-build
- **Repository:** https://github.com/charleswiltgen/axiom
- **GitHub stars:** 1,278
- **License:** MIT
- **Skill name:** axiom-fix-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 guides an agent through diagnosing Xcode build failures with environment checks first: confirming the project directory, inspecting running xcodebuild processes, reviewing Derived Data size and simulator states. It then points the agent to a specific fix such as clearing a single project's Derived Data, resetting Swift Package Manager caches, shutting down or erasing a stuck simulator, or forcing a clean rebuild, depending on the symptom.

The workflow is built around a decision tree that maps symptoms like "No such module", intermittent failures, old code running, or stuck simulators to a matching remediation. It also includes CI/CD-aware adjustments, such as skipping simulator checks and focusing on package resolution and signing problems. Destructive steps such as removing caches or erasing devices require the agent to stop and report the evidence for approval first.

The skill expects a Mac with Xcode and command-line tools, plus jq for parsing simulator output. It uses an axbuild helper when one is available and falls back to saving build logs when it is not.

## When your agent uses it

> Use when the user mentions Xcode build failures, build errors, or environment issues.

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

## Features

- **Environment-first checks:** Runs directory, build process, Derived Data and simulator checks before any code investigation.
- **Scoped cache cleanup:** Removes only the affected project's Derived Data rather than the entire shared cache.
- **SwiftPM resolution recovery:** Clears package build state and resets Swift Package Manager caches when dependencies fail to resolve.
- **Simulator troubleshooting:** Shuts down or erases a specific stuck simulator identified by its UDID, with approval.
- **Symptom-to-fix decision tree:** Maps errors such as missing modules, stale builds and failing tests to the matching fix.
- **CI/CD adjustments:** Changes diagnostics for CI runners, focusing on package caches, Xcode versions and signing.

## Good for

- Diagnose why my Xcode build fails with BUILD FAILED and no details
- Fix a 'No such module' error after updating Swift packages
- Figure out why tests fail without any code changes
- Get an app that runs old code to pick up the latest build
- Recover a simulator stuck on Booting or during launch

## Install

### Claude Code

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

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

### Codex

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

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

### Cursor

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

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

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

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/axiom-fix-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-fix-build &&
cp -R "$tmp/axiom-codex/skills/axiom-fix-build" ~/.copilot/skills/axiom-fix-build &&
rm -rf "$tmp"
```

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

## FAQ

### When does Axiom fix build trigger?

It triggers when the user mentions Xcode build failures, build errors, or environment issues.

### Does Axiom fix build delete files on its own?

No. Destructive steps such as removing Derived Data or the SwiftPM cache, erasing simulators or stopping processes require authorization; the agent reports the evidence and command first.

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

It assumes Xcode with xcodebuild and xcrun simctl, and uses jq to parse simulator output.

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

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

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

The closest alternatives to Axiom fix build are Axiom build, Axiom run tests, Axiom optimize build, Axiom debug tests and Axiom analyze test failures.

## Where this comes from

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

## Alternatives

- [Axiom build](https://ai-powered.com/skills/axiom-build-charleswiltgen-2): Axiom build 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.
- [Axiom optimize build](https://ai-powered.com/skills/axiom-optimize-build): Axiom optimize build is an open-source agent skill for developer tools.
- [Axiom debug tests](https://ai-powered.com/skills/axiom-debug-tests): Axiom debug tests is an open-source agent skill for developer tools.
- [Axiom analyze test failures](https://ai-powered.com/skills/axiom-analyze-test-failures): Axiom analyze test failures is an open-source agent skill for developer tools.
- [Axiom resolve spm](https://ai-powered.com/skills/axiom-resolve-spm): Axiom resolve spm is an open-source agent skill for developer tools.
- [Axiom analyze crash](https://ai-powered.com/skills/axiom-analyze-crash): Axiom analyze crash is an open-source agent skill for developer tools.
- [Axiom test simulator](https://ai-powered.com/skills/axiom-test-simulator): Axiom test simulator is an open-source agent skill for developer tools.

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