# Axiom debug tests

> Axiom debug tests is an open-source agent skill for developer tools. Runs failing Xcode UI tests, analyzes failures from screenshots and logs, and re-verifies. It is available on Claude Code.

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

## About

This agent guides a closed loop for debugging Xcode UI tests on an iOS simulator. It runs the failing tests into a fresh result bundle, exports failure attachments, console logs and test results, and checks for crash reports that can be symbolicated before deciding on a fix.

Failures are sorted into known patterns such as missing elements, timeouts, non-hittable elements and state mismatches. For missing elements the agent checks the screenshot and app source first, so it reports genuine app gaps rather than rewriting correct test queries. Proposed edits are shown to the user for confirmation, applied one at a time, and each is verified by re-running only the affected test, with a cap of three iterations before escalating.

The workflow expects an Xcode project with a UI test scheme, a booted iOS simulator, and the xcodebuild, xcrun and jq command line tools. It refers to companion skills and agents for testing, concurrency, build fixing and simulator work.

## When your agent uses it

> Use this agent for closed-loop test debugging - automatically analyzes test failures, suggests fixes, and re-runs tests until passing.

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

## Features

- **Closed-loop test reruns:** Runs the failing test, applies a confirmed fix, and re-runs it until it passes or the iteration limit is reached.
- **Failure evidence capture:** Exports screenshots, console logs and detailed test results from the Xcode result bundle.
- **Crash artifact triage:** Looks for recent crash reports and maps symbolicated crash patterns to likely fixes.
- **Element query diagnosis:** Separates test query mistakes from app bugs by checking whether the element appears on screen and in source.
- **Confirmed edits only:** Shows each proposed code change to the user and waits for approval before editing files.

## Good for

- Fix a LoginTests suite that fails because a button cannot be found
- Debug a UI test that keeps timing out during checkout
- Stabilize flaky UI tests by adding explicit waits
- Find out whether a failing UI test points to a missing element in the app

## Install

### Claude Code

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

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

### Codex

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

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

### Cursor

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

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

Or copy the folder to `~/.gemini/skills/axiom-debug-tests` yourself.

### VS Code

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

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

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

## FAQ

### What does Axiom debug tests need to run?

It uses xcodebuild, xcrun xcresulttool, jq and an booted iOS simulator, and it expects an Xcode UI test scheme to run against.

### Does Axiom debug tests change my code automatically?

No. It proposes each change and asks for confirmation before editing, then re-runs the test to verify the fix.

### What happens if a fix does not make the test pass?

It loops back for another attempt, but after three failed iterations it stops and escalates to the user.

### How do I install Axiom debug tests in Claude Code?

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

### Does Axiom debug tests 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 debug tests?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Axiom debug tests?

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

## Where this comes from

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

## Alternatives

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

---
Source: https://ai-powered.com/skills/axiom-debug-tests
