# Test Failure Investigator

> Diagnose failing or flaky tests by classifying signal, reproducing deterministically, and narrowing to root cause. Use for red CI, unstable tests, or local test regressions. Use when this capability is needed.

- Skill: `tomevault-io/test-failure-investigator` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/test-failure-investigator`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/test-failure-investigator/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/test-failure-investigator

---

Treat failing tests as evidence, not noise.

1. Reproduce failures with minimal scope.
2. Separate deterministic failures from flakes.
3. Inspect fixture state, timing assumptions, and environment coupling.
4. Identify smallest code path that explains failure.
5. Validate fix with targeted reruns before broad suite reruns.

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/puukis) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-16 -->

