Skip to content
Skill

Axiom analyze test failures

Finds the code patterns behind flaky Swift Testing failures and explains each root cause

Axiom analyze test failures is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
1.3K
Last commit
License
MIT
Listing updated

Similar skills

About Axiom analyze test failures

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.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 2 files (16 KB) on GitHub on 2 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/axiom-analyze-test-failures to use it in every repository:

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.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/axiom-analyze-test-failures to use it in every project:

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.

Cursor docs on skills

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

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.

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Axiom analyze test failures 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.

More from CharlesWiltgen/Axiom

  1. Audits Swift test suites for flaky patterns, slow setups and Swift Testing migration gaps

    • Open source
    • 1.3K GitHub stars
    • Developer tools
  2. Drives iOS Simulator tests: UI input, screenshots, location, push and accessibility checks

    • Open source
    • 1.3K GitHub stars
    • Developer tools
  3. Guides an agent through Swift unit, UI and async tests, flaky-test fixes and test speed

    • Open source
    • 1.3K GitHub stars
    • Developer tools
  4. Interprets iOS and macOS crash logs and points the agent to the likely fix

    • Open source
    • 1.3K GitHub stars
    • Developer tools