# Axiom analyze test failures

> Axiom analyze test failures is an open-source agent skill for developer tools. Finds the code patterns behind flaky Swift Testing failures and explains each root cause. 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-test-failures
- **Repository:** https://github.com/charleswiltgen/axiom
- **GitHub stars:** 1,278
- **License:** MIT
- **Skill name:** axiom-analyze-test-failures
- **Collection:** https://github.com/CharlesWiltgen/Axiom
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill turns the agent into a reviewer of Swift test suites that hunt for the causes of intermittent failures. It walks the test files and checks for async callbacks that are not wrapped in confirmation, UI-touching tests missing main actor isolation, shared mutable state across parallel suites, sleep-based waits, suites that need the serialized trait, and wall-clock date assertions. Each finding is graded by severity and comes with a corrected code example.

The workflow also covers test runs that crash the process. When a crash report exists, the agent reads the .ips file first, identifies the faulting thread, and routes the cause using a set of crash pattern tags, with a note on Swift runtime traps that leave no message in the report. Output is a structured report with a risk score, root causes, fixes and commands for repeating tests to confirm stability.

The skill expects a Swift project using the Swift Testing framework, with XCTest patterns included as a secondary legacy check. It works by reading and searching source files, so it does not run commands itself, though it suggests a crash symbolication tool when one is available.

## When your agent uses it

> Use when the user mentions flaky tests, tests that pass locally but fail in CI, race conditions in tests, or needs to diagnose WHY a specific test fails.

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

## Features

- **Async confirmation checks:** Finds callback-based async tests that assert before the callback has fired.
- **Actor isolation review:** Flags UI-touching tests and types missing main actor annotations.
- **Shared state detection:** Locates static mutable variables in test suites that parallel runs can race on.
- **Timing wait audit:** Identifies sleep-based waits and suggests condition-based alternatives.
- **Crash report triage:** Reads crash reports from test runs and maps them to likely causes in the tests.
- **Severity-ranked report:** Groups findings by severity with root causes, fixes and verification commands.

## Good for

- Why does my test pass locally but fail on CI?
- Find race conditions in my Swift Testing suites
- Review my async tests for missing confirmation blocks
- Diagnose a test that crashes the process during a run
- Check whether my suites need the serialized trait

## Install

### Claude Code

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

For one project only, put the folder in `.claude/skills/axiom-analyze-test-failures` inside it instead.

### Codex

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

For one repository only, put the folder in `.agents/skills/axiom-analyze-test-failures` inside it instead.

### Cursor

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

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

Or copy the folder to `~/.gemini/skills/axiom-analyze-test-failures` yourself.

### VS Code

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

```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-test-failures &&
cp -R "$tmp/axiom-codex/skills/axiom-analyze-test-failures" ~/.copilot/skills/axiom-analyze-test-failures &&
rm -rf "$tmp"
```

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

## FAQ

### What does Axiom analyze test failures need to run?

It targets Swift test files using the Swift Testing framework, with XCTest checks as a legacy addition. It reads and searches source files and crash reports.

### Does Axiom analyze test failures change my code?

No. It produces an analysis report with suggested fixes and example code, and it does not modify files itself.

### When does Axiom analyze test failures trigger?

When you mention flaky tests, tests that pass locally but fail in CI, race conditions in tests, or ask why a specific test fails.

### How do I install Axiom analyze test failures in Claude Code?

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

### Does Axiom analyze test failures 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 test failures?

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 test failures?

The closest alternatives to Axiom analyze test failures are Axiom audit testing, Axiom testing, Axiom audit concurrency, Axiom run tests and Axiom debug tests.

## Where this comes from

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

## Alternatives

- [Axiom audit testing](https://ai-powered.com/skills/axiom-audit-testing): Axiom audit testing 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 concurrency](https://ai-powered.com/skills/axiom-audit-concurrency): Axiom audit concurrency 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 debug tests](https://ai-powered.com/skills/axiom-debug-tests): Axiom debug tests 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 analyze crash](https://ai-powered.com/skills/axiom-analyze-crash): Axiom analyze crash is an open-source agent skill for developer tools.
- [Axiom audit camera](https://ai-powered.com/skills/axiom-audit-camera): Axiom audit camera is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/axiom-analyze-test-failures
