axiom-debug-tests

axiom-debug-tests is a skill for Codex from CharlesWiltgen/Axiom. It costs 30 tokens per session (3,204 once invoked), scanned C, original, MIT.

A test-failure assistant that runs tests, examines the results, applies suggested fixes, and runs the tests again. It is aimed at Xcode projects and iOS simulator tests.

In plain words
What is it for?
It helps debug failing unit or UI tests by collecting build results, analyzing failures, making fixes, and verifying the outcome.
Why use it?
It removes much of the repeated work of finding why a test failed, changing the code, and checking whether the change worked.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit It helps debug failing unit or UI tests by collecting build results, analyzing failures, making fixes, and verifying the outcome.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/charleswiltgen/axiom/axiom-debug-tests
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-debug-tests
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-debug-tests

README.md
[![agentmods](https://agentmods.dev/badge/skills/charleswiltgen/axiom/axiom-debug-tests/github.svg)](https://agentmods.dev/skills/charleswiltgen/axiom/axiom-debug-tests)
Your own site
<a href="https://agentmods.dev/skills/charleswiltgen/axiom/axiom-debug-tests"><img src="https://agentmods.dev/badge/skills/charleswiltgen/axiom/axiom-debug-tests/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-debug-tests

Your own site · 80×15
<a href="https://agentmods.dev/skills/charleswiltgen/axiom/axiom-debug-tests"><img src="https://agentmods.dev/badge/skills/charleswiltgen/axiom/axiom-debug-tests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,204 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00030 $0.03204
Opus 5.5 $0.00012 $0.01282
Sonnet 5.5 $0.00006 $0.00641
Haiku 4.5 $0.00003 $0.00320

Measured 1mo ago against content hash 6abfa93e53a4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

axiom-debug-tests scanned grade C with 1 finding 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 1mo 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

Before deleting `.xcresult` test results with `rm -rf`, warn: "About to delete test results". These are explicit agent instructions, not automated permission checks.
axiom-codex/skills/axiom-debug-tests/SKILL.md · 366 lines

How it starts

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

Note: This audit may use Bash commands to run builds, tests, or CLI tools.

Test Debugger Agent

You are an expert at closed-loop test debugging - running tests, analyzing failures, applying fixes, and iterating until tests pass.

Before State-Changing Actions

Before deleting .xcresult test results with rm -rf, warn: "About to delete test results". These are explicit agent instructions, not automated permission checks.

Core Principle

Closed-loop debugging flow:

RUN → CAPTURE → ANALYZE → SUGGEST → FIX → VERIFY → REPORT
  ↑                                              |
  └──────────────── (if still failing) ─────────┘

Phase 1: Run Tests

# Inventory running builds first (exit 1 = none, 0 = listed, 2/3 = inventory failed)
pgrep -lx xcodebuild; echo "pgrep exit=$?"

# Get booted simulator; print it, because shell variables do not persist between tool calls
BOOTED_UDID=$(xcrun simctl list devices -j | jq -r '.devices | to_entries[] | .value[] | select(.state == "Booted") | .udid' | head -1)
echo "BOOTED_UDID=$BOOTED_UDID"

# Fresh run directory: xcodebuild refuses an existing result bundle, and concurrent runs must
# not share files. Shell variables do not persist between tool calls; reuse the printed paths.
RUN_DIR=$(mktemp -d "${TMPDIR:-/tmp}/axiom-debug.XXXXXX")
RESULT_PATH="$RUN_DIR/result.xcresult"

# Run specific failing tests
xcodebuild test \
  -scheme "<SCHEME_NAME>UITests" \
  -destination "platform=iOS Simulator,id=$BOOTED_UDID" \
  -resultBundlePath "$RESULT_PATH" \
  -only-testing:"<TARGET>/<TestClass>/<testMethod>" \
  > "$RUN_DIR/xcodebuild.log" 2>&1
# Redirect to a file — never pipe xcodebuild through `tee`/`grep`/`tail` (a pipe orphans
# the build if interrupted). Structured results come from $RESULT_PATH below.

echo "Log: $RUN_DIR/xcodebuild.log  Results: $RESULT_PATH"

Phase 2: Capture Evidence

# Export failure attachments
ATTACHMENTS_DIR=$(mktemp -d "${TMPDIR:-/tmp}/axiom-debug-failures.XXXXXX")

xcrun xcresulttool export attachments \
  --path "$RESULT_PATH" \
  --output-path "$ATTACHMENTS_DIR" \
  --only-failures

# Read manifest
cat "$ATTACHMENTS_DIR/manifest.json" | jq '.attachments[] | {name, testName, uniformTypeIdentifier}'

# Get console logs
xcrun xcresulttool get log --path "$RESULT_PATH" --type console > "$ATTACHMENTS_DIR/console.log"

# Get detailed test results
xcrun xcresulttool get test-results tests --path "$RESULT_PATH" > "$ATTACHMENTS_DIR/test-results.txt"

Read the full file on GitHub · 366 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. 1mo ago Changed · +4 lines scan A → C 6abfa93e53a4
  2. 1mo ago Changed 687da9d8a094
  3. 1mo ago Changed · +7 lines ef3a6aff1330
  4. 2mo ago Changed · +25 lines 9b6052e51468
  5. 2mo ago First seen · 330 lines · 30 tokens per session scan A ed7608a6a928

Subscribe to this mod's changes

axiom-debug-tests is a skill published in the GitHub repository CharlesWiltgen/Axiom (1,280 stars, last pushed yesterday), licensed MIT. It adds 30 tokens to every session and 3,204 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-06.

Related

axiom-debug-tests compared with skills from other repositories

axiom-debug-tests next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
axiom-debug-testsCharlesWiltgen/AxiomSkill1.3kyesterdayMITC30Codex
eval-dataset-designbojieli/ai-agent-bookSkill61k2d agoApache-2.0A138Claude Code, Codex
create-verification-skillYeachan-Heo/oh-my-claudecodeSkill41ktodayMITA45Claude Code
verify-omnigentomnigent-ai/omnigentSkill12ktodayApache-2.0A100Claude Code, Codex
test-masterJeffallan/claude-skillsSkill13ktodayMITA104Claude Code
dogfoodcallstack/agent-deviceSkill5.6ktodayMITA55Claude Code
cua-driverdavidondrej/skillsSkill4.4kyesterdayMITA68Claude Code, Codex