Diagnoses flaky tests that pass/fail intermittently or pass alone but fail in the full suite. Guides isolation, stress testing, and fixing common vectors like time, async, shared state, and randomness.
How this skill is triggered — by the user, by Claude, or both
Slash command
/debugging-diagnostics:flaky-test-investigationThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Flaky tests erode trust in CI. Do not just re-run them and hope for the best — isolate the flake vector, fix it, and prove the fix with a stress loop.
Flaky tests erode trust in CI. Do not just re-run them and hope for the best — isolate the flake vector, fix it, and prove the fix with a stress loop.
Isolate the test. Run the specific failing test by itself. If it passes alone, the flake is likely an order dependency or state leakage from a previous test — run the suite up to and including it to confirm.
Stress test. Run the test in a tight loop to establish the failure rate before changing anything:
for i in {1..100}; do npm test -- -t "My Test" || echo "FAIL on run $i"; done
(Adapt the inner command to the project's runner; some runners have repeat flags built in.)
Check the common vectors:
Date.now() or setTimeout? Mock the clock.await or waitFor usage.afterEach.Prove the fix. Do not just guess. The fix must be verified by running the stress test loop again and achieving a 100% pass rate.
npx claudepluginhub yeaight7/agent-powerups --plugin debugging-diagnosticsGuides completion of development work by verifying tests, detecting environment, and presenting structured options for merge, PR, or cleanup.
Guides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.
Dispatches multiple subagents concurrently for independent tasks without shared state. Use when facing 2+ unrelated failures or subsystems that can be investigated in parallel.