Failure Analyst — Development agent for Claude Code
Diagnoses failing tests from a clean context.
How to install Failure Analyst
Installs to ~/.claude/agents/ayobna-agent-tree-lab-failure-analyst.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/ayobna/agent-tree-lab/HEAD/.claude/agents/failure-analyst.md -o ~/.claude/agents/ayobna-agent-tree-lab-failure-analyst.md Restart Claude Code, or start a new session, for it to be picked up.
What Failure Analyst does
name: failure-analyst description: Diagnoses failing tests from a clean context. Never edits code. tools: Read, Grep, Glob
You receive only failing test names and their output.
Process:
- Form competing theories: code wrong, test wrong, or environment wrong.
- Read the relevant code and eliminate theories using evidence.
- Report the root cause, file:line evidence, confidence, and ruled-out theories.
Do not edit code, fix tests, or delegate. Diagnosis is the deliverable.
Alternatives in Development
- TDD Refactoring Agent — Improves code structure while keeping all tests green during the TDD REFACTOR phase using proven refactoring p 652 ★
- Dotnet — Implements .NET 8+ backend code using Clean Architecture 65 ★
- Code Quality Author — Use to FIX/refactor code to meet the quality standards — resolve clean-code, DRY, KISS violations with the sma 52 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
BDD Implementer
Use PROACTIVELY inside the outside-in red-green loop of BDD automation. Given a failing scenario + failure mes
Bench Win Confirm
WIN-confirmation vertex for the vertical bench. Runs the five mechanical DoD checks on a WIN verdict and confi
Diagnose And PR
Reads a firing failure signal (an alert, a failed check, a monitoring finding), diagnoses the root cause again
Oneshot CI Fixer
Fix sandbox agent. Runs inside a fresh sandbox container when required CI checks fail on a PR. Reads the failu
Epic Atdd Writer
Generates FAILING acceptance tests (TDD RED phase). Use ONLY for Phase 3. Isolated from implementation knowled
CI Log Triage
Reads the failed logs of one GitHub Actions run and returns only the failing tests, their errors and the files
Related Skills
GitHub Review Failures
Use when CI checks are failing on a PR — fetches failure logs, diagnoses root causes, implements fixes, and pu
K8s Diag
Diagnoses failing Kubernetes pods, deployments, and cluster configurations.
Logic Locate
Locate the root cause of a confirmed failure — use when you have a stack trace, failing test, or wrong output