microsoft/debug-test-failures
Systematic debugging workflow for test failures. Use when tests are failing, a CI build is red, or when asked to debug test issues.
npx skills add https://github.com/microsoft/haste --skill debug-test-failures
A systematic process for diagnosing and fixing test failures. Use this skill when tests fail, CI is red, or someone reports a broken build. The key principle: find the root cause, not just the symptom.
Step 1: Reproduce
Run the failing test in isolation:
# Python tests
cd hastelib && hatch run test:pytest
# UI lint
cd ui && npm run lint
Run it 2-3 times. If intermittent, it's likely flaky.
Step 2: Analyze
Step 3: Investigate
Step 4: Fix
cd hastelib && hatch run test:pytestStep 5: Report
Summarize: root cause, fix applied, verification that all tests pass.
| Symptom | Likely Cause | Action |
|---------|-------------|--------|
| Test always fails | Code bug or outdated test | Read both, fix the wrong one |
| Test passes locally, fails in CI | Environment difference | Check paths, deps, permissions |
| Test fails intermittently | Timing, shared state, or ordering | Add isolation, remove shared state |
| Many tests fail at once | Breaking change in shared code | Find the common dependency |
Take microsoft/debug-test-failures from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.