/debugging-diagnostics:flaky-test-investigationfrom debugging-diagnostics
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.
Ships in debugging-diagnostics. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole 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.
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.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
8 skills in this plugin
/bug-huntUse when reproducing, isolating, and fixing a bug with the smallest safe change./failure-triageUse when confronted with an unknown failure in CI or production, before committing to a deep debugging approach./incident-readoutUse when a bug fix or complex debugging session concludes and a blameless post-mortem summary is needed for human review./log-driven-diagnosisUse when debugging complex runtime failures, distributed systems, or issues where a local debugger cannot be attached./minimal-reproductionUse when a bug must be isolated from a large application into a standalone, runnable script or single test case./regression-bisectingUse when a bug was recently introduced but you don't know which commit caused it.npx claudepluginhub yeaight7/agent-powerups --plugin debugging-diagnosticsOther plugins' skills for the same job