axiom-analyze-test-failures

axiom-analyze-test-failures is a skill for Codex from CharlesWiltgen/Axiom. It costs 41 tokens per session (3,946 once invoked), scanned A, original, MIT.

A test-failure analysis guide for Swift and Swift Testing. It focuses on tests that fail intermittently, including tests that pass on one machine but fail in continuous integration (CI), the automated system that runs checks for code changes.

In plain words
What is it for?
Use it to diagnose flaky asynchronous tests, parallel test conflicts, incorrect waits, and failures involving MainActor or Swift 6 concurrency.
Why use it?
It helps identify timing mistakes, concurrency races, shared state, and missing waits that make test results unreliable.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions .claude-plugin; positional $N argument.

Good fit Use it to diagnose flaky asynchronous tests, parallel test conflicts, incorrect waits, and failures involving MainActor or Swift 6 concurrency.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/charleswiltgen/axiom/axiom-analyze-test-failures
About the project

Axiom is a toolkit of instructions, agents, commands, and development tools that give coding assistants specialized guidance for Apple operating-system development. It covers Swift, SwiftUI, interface design, data, concurrency, performance, networking, accessibility, logging, crash analysis, simulator testing, and profiling for iOS, iPadOS, watchOS, and tvOS. The catalogue contains 42 agents, 16 commands, and one plugin from this toolkit.

CharlesWiltgen/Axiom · 1,280 stars · on GitHub · charleswiltgen.github.io

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add CharlesWiltgen/Axiom --skill axiom-analyze-test-failures
Clone the repo
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for axiom-analyze-test-failures

README.md
[![agentmods](https://agentmods.dev/badge/skills/charleswiltgen/axiom/axiom-analyze-test-failures/github.svg)](https://agentmods.dev/skills/charleswiltgen/axiom/axiom-analyze-test-failures)
Your own site
<a href="https://agentmods.dev/skills/charleswiltgen/axiom/axiom-analyze-test-failures"><img src="https://agentmods.dev/badge/skills/charleswiltgen/axiom/axiom-analyze-test-failures/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for axiom-analyze-test-failures

Your own site · 80×15
<a href="https://agentmods.dev/skills/charleswiltgen/axiom/axiom-analyze-test-failures"><img src="https://agentmods.dev/badge/skills/charleswiltgen/axiom/axiom-analyze-test-failures.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,946 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.03946
Opus 5.5 $0.00016 $0.01578
Sonnet 5.5 $0.00008 $0.00789
Haiku 4.5 $0.00004 $0.00395

Measured 2d ago against content hash 4e402e35b884, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

axiom-analyze-test-failures scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

axiom-codex/skills/axiom-analyze-test-failures/SKILL.md · 461 lines

How it starts

The opening of the file, as written. The whole thing — 461 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Test Failure Analyzer Agent

You are an expert at diagnosing WHY tests fail, especially intermittent/flaky failures in Swift Testing.

Your Mission

Analyze the codebase to find patterns that cause flaky tests, focusing on:

  • Swift Testing async patterns (missing confirmation, wrong waits)
  • Swift 6 concurrency issues (@MainActor missing)
  • Parallel execution races (shared state, missing .serialized)
  • Timing-dependent assertions

Files to Scan

Include: *Tests.swift, *Test.swift, **/*Tests/*.swift Skip: */Pods/*, */Carthage/*, */.build/*, */DerivedData/*, */scratch/*, */docs/*, */.claude/*, */.claude-plugin/*

Flaky Test Patterns (Swift Testing Focus)

Pattern 1: Missing await confirmation (CRITICAL)

Issue: Async work without proper waiting Why flaky: Test completes before async callback fires Rule: confirmation does not wait — it checks the count when its closure returns, so the operation under test must complete inside the closure. A callback that fires after the closure returns is recorded as zero confirmations. Detection: Closures/callbacks without confirmation {}

// ❌ FLAKY - Test may complete before callback
@Test func fetchData() async {
    var result: Data?
    service.fetch { data in
        result = data  // May not run before assertion
    }
    #expect(result != nil)  // FAILS intermittently
}

// ✅ CORRECT - The callback completes inside the confirmation body
@Test func fetchData() async {
    await confirmation { confirm in
        await withCheckedContinuation { (continuation: CheckedContinuation<Void, Never>) in
            service.fetch { data in
                #expect(data != nil)
                confirm()
                continuation.resume()
            }
        }
    }
}

Pattern 2: @MainActor Missing on UI Tests (CRITICAL)

Issue: Swift 6 requires explicit actor isolation Why it fails: Calling a main actor-isolated member from a non-isolated test is a compile error in every language mode — Swift 5 (minimal or complete checking) and Swift 6 alike — so it breaks the build rather than flaking. Construction depends on the mode: an explicit init() is rejected off-actor too, while Swift 6 accepts the implicit one. A runtime race is possible only when the UI-touching type is not isolated (an unannotated ObservableObject); that is the shape to flag as flaky. Detection: Tests accessing UI types without @MainActor

Read the full file on GitHub · 461 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago Changed 4e402e35b884
  2. 1mo ago Changed 3b85324d63c9
  3. 2mo ago Changed 005904c38f1e
  4. 2mo ago Changed · +17 lines 04ca06bde6ce
  5. 2mo ago Changed · +35 lines 94a68fbac296
  6. 2mo ago First seen · 409 lines · 41 tokens per session scan A f80b72cc0673

Subscribe to this mod's changes

axiom-analyze-test-failures is a skill published in the GitHub repository CharlesWiltgen/Axiom (1,280 stars, last pushed yesterday), licensed MIT. It adds 41 tokens to every session and 3,946 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-06.

Related

axiom-analyze-test-failures compared with skills from other repositories

axiom-analyze-test-failures next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
axiom-analyze-test-failuresCharlesWiltgen/AxiomSkill1.3kyesterdayMITA41Codex
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82ktodayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15ktodayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill332k5d agoMITA21Claude Code