In short.
Axiom Analyze Test Failures is an AI assistant skill for Swift developers diagnosing unreliable tests, but its pattern matches and severity labels require careful review. It guides an assistant through source searches, surrounding-code inspection and crash triage, then asks for file-specific causes and proposed fixes. Its strongest feature is the distinction between callback completion, parallel execution problems and some compiler errors. However, its severity template partly contradicts those distinctions, and its examples do not establish diagnostic accuracy or reliable fixes. Installation compatibility, execution results and total operating cost are unknown.
Researched and written by an AI model and checked by a second AI model. How it works
Covers the complete supplied folder axiom-codex/skills/axiom-analyze-test-failures, comprising SKILL.md and agents/openai.yaml, plus the repository-root LICENSE notice at revision ffafd3b3e0dbaaa60b753ca4a835ae6603b873e1. The rest of Axiom, external tools such as xcsym and any user's project are outside this scope. Installation, compilation, test execution, crash symbolication, diagnostic accuracy and present-day compatibility have not been assessed through execution.
The overview
Identity
The resource is the axiom-analyze-test-failures skill folder in CharlesWiltgen/Axiom. The supplied folder contains SKILL.md, which defines the diagnostic procedure, and agents/openai.yaml, which provides the display name Analyze Test Failures and invocation metadata. It is material an assistant loads, rather than a standalone test runner or executable analyzer.
The original source location is [https://github.com/CharlesWiltgen/Axiom/tree/main/axiom-codex/skills/axiom-analyze-test-failures]. The supplied files come from revision ffafd3b3e0dbaaa60b753ca4a835ae6603b873e1.
Assessment
This is a useful checklist for investigating Swift tests that fail intermittently, particularly failures involving callbacks, UI-related actor isolation or resources shared by parallel tests. It requires the assistant to inspect surrounding code and check whether a fix is already present, which helps distinguish a suspicious search match from an actual problem.
Its severity labels are less dependable than its detailed explanations. The document correctly distinguishes some actor-isolation and shared-state compiler errors from runtime races, but later labels critical findings as definite intermittent failures. Treat the generated severity and overall risk score as judgments requiring review. No measured accuracy, false-positive rate or demonstrated reduction in flaky tests is supplied.
Users
The intended users are Swift developers whose tests fail randomly, pass locally but fail in continuous integration, or pass alone but fail alongside other tests. It is especially relevant to projects using Swift Testing, with a smaller set of suggestions for XCTest.
Beginners get examples connecting symptoms to possible causes, such as an assertion running before a callback finishes. Experienced developers get more specific review prompts around Swift language modes, main-actor isolation, suite state and crash artifacts. It is not a general diagnostic guide for other programming languages or every possible Swift test failure.
Capabilities
The skill covers seven areas: callbacks that finish after a test checks its result, missing actor isolation, mutable state shared between tests, fixed sleeps used to await work, shared resources accessed concurrently, test-process crashes and assertions against the moving current time. It also discusses XCTest expectation timeouts and waiting for UI elements to appear.
For crashes, it describes reading .ips reports, finding the crashed thread and interpreting output from xcsym. Its requested findings include file locations, relevant code, a root-cause explanation, proposed corrections and follow-up verification steps. These are instructions for an assistant; the supplied files do not contain a separate implementation that guarantees those capabilities.
Using it
Requirements
The procedure expects an assistant that can discover, search and read project files. Diagnosing a particular failure also requires relevant test code and surrounding application code; compiler output, failing-test logs and CI details can help distinguish the failure types described.
The document labels its focus as iOS 18+ and Swift Testing and discusses both Swift 5 and Swift 6 language modes. A complete minimum Swift, Xcode or host-version matrix is not supplied. Crash investigation may additionally need .ips or other crash artifacts, matching symbols and output from xcsym. That tool's installation, availability and compatibility are not established by this folder.
Mechanism
The assistant is directed to discover Swift test files, search for recognizable code patterns and inspect roughly 20 lines of surrounding context for each match. It should check annotations, existing waiting mechanisms and previous fixes before reporting an issue. Dependency, build-output, documentation, scratch and assistant-configuration directories are excluded by the stated scan rules.
Crash analysis takes precedence over source-pattern analysis when a crash artifact exists. The document explains two .ips layouts and routes symbolicated crash classifications toward likely causes. It describes the analyzer as read-and-search only, so missing symbolication output may need to come from the user or another environment capable of running the relevant tool.
Setup
The folder consists of SKILL.md and agents/openai.yaml. Preserve their relative paths when acquiring the skill. The supplied material does not give an installation command, a required installation directory or a verified supported-host version, so those details remain unknown.
The interface metadata sets allow_implicit_invocation to false and supplies a default prompt invoking $axiom-analyze-test-failures. Plan to invoke it explicitly after the host has loaded the skill; mentioning flaky tests alone should not be assumed to activate it. The skill document also presents axiom-analyze-test-failures as a direct invocation name.
Example
Consider a test that starts a callback-based fetch and immediately checks whether its result exists. The skill would look for the possibility that the assertion runs before the callback. Its proposed pattern uses confirmation together with a checked continuation so the callback finishes before the confirmation body returns. The document explicitly explains that confirmation checks an event count rather than waiting for a later callback by itself.
This is an illustrative scenario, not an observed diagnosis. The shown continuation bridge has no explicit timeout, so a callback that never arrives could leave it waiting. A developer should review the callback's completion contract and failure path before adopting the example. No compiled example or successful test result accompanies it.
Assessment & evidence
Limitations
Pattern searches can identify places to investigate without proving the cause of a failure. Finding Task.sleep, a singleton or a date comparison does not by itself establish a bug. Likewise, the absence of these patterns does not establish that a suite is stable.
The file-inclusion description includes Swift files beneath test directories, but the later discovery step lists only filenames ending in Tests.swift or Test.swift. That difference could affect coverage in projects with other naming conventions. The serialization example also does not demonstrate shared-resource cleanup, isolation from other suites or removal of order dependencies.
The severity definitions conflict with some of the document's compiler-error explanations, and the examples and command options have no supplied execution results. Comprehensive failure coverage, compatibility and diagnostic reliability remain unassessed.
Reasoning
The skill's central diagnostic distinction is useful: a test can assert too early, compete with another test, violate actor-isolation rules or crash before producing a normal assertion failure. Each situation calls for different evidence and a different correction. In particular, it explains why a confirmation wrapper alone is insufficient if the operation finishes after that wrapper returns.
The strongest findings would connect a specific code path or crashed frame to the observed failure. A generic match and severity label provide weaker support. This follows from the document's own requirement to read context and reject false positives; it is not evidence that the skill consistently makes that distinction in practice.
Alternatives
For a known failing test, a narrower approach is direct examination of its compiler diagnostics, test log or symbolicated crash instead of a broad source scan. The skill itself prioritizes crash evidence when available.
The document also suggests repeated Swift test execution, parallel testing and Xcode's Repeat Until Failure option as complementary ways to investigate stability. Those approaches exercise a project, while this skill organizes an assistant's review. The supplied evidence does not establish command compatibility or compare this skill with other diagnostic products.
Evidence
The diagnostic procedure and examples are in the captured SKILL.md: [https://raw.githubusercontent.com/CharlesWiltgen/Axiom/ffafd3b3e0dbaaa60b753ca4a835ae6603b873e1/axiom-codex/skills/axiom-analyze-test-failures/SKILL.md]. It contains explanatory text and illustrative Swift and shell snippets, with no accompanying project execution results or benchmark data.
Invocation metadata is captured at [https://raw.githubusercontent.com/CharlesWiltgen/Axiom/ffafd3b3e0dbaaa60b753ca4a835ae6603b873e1/axiom-codex/skills/axiom-analyze-test-failures/agents/openai.yaml]. The applicable root license is captured at [https://raw.githubusercontent.com/CharlesWiltgen/Axiom/ffafd3b3e0dbaaa60b753ca4a835ae6603b873e1/LICENSE]. These files establish the instructions, interface settings and stated permissions, rather than observed effectiveness.
Access & freshness
Costs
The MIT license grants the stated software rights free of charge. The supplied files do not establish assistant subscription costs, API charges, model usage, xcsym pricing or CI operating costs. Total cost is unknown.
The document recommends repeated test execution, including an example with 100 repetitions. It supplies no measurements of the time or computing resources required for those checks.
Rights
SKILL.md declares MIT licensing, and the supplied repository LICENSE names Charles Wiltgen with a 2025 copyright notice. The license permits use, copying, modification, distribution, sublicensing and sale, subject to retaining the copyright and permission notices in copies or substantial portions.
The software is supplied without warranty. An unchanged copy of the skill can be redistributed with the applicable notice preserved. These files do not establish the licensing or data-handling terms of any assistant service or external crash-analysis tool used alongside it.
Freshness
The supplied snapshot was captured on 2026-11-17 at 11:39:56.720 UTC and identifies revision ffafd3b3e0dbaaa60b753ca4a835ae6603b873e1. No separate release version or date of the latest source change is established by these files.
The findings apply to that revision. Later changes to the main branch and compatibility with a developer's current Swift, Xcode and assistant environment are unknown.
Actions
Use an explicit invocation with the failing test, its observed behavior, relevant logs and the project's Swift language mode. For process crashes, include the crash artifact and available symbols or symbolication output. Ask for explanations tied to specific files and observed symptoms.
Before applying a proposed change, check callback completion and timeout behavior, actor annotations and the actual scope of shared resources. Confirm the skill found all relevant test files, then verify any correction in the project's own environment with appropriate repetition and parallel execution. The supplied material contains no completed verification of those outcomes.
