What problem does it solve?
Flaky tests that pass and fail on the same commit erode trust in CI and waste developer time on reruns. This Skill diagnoses the nondeterminism behind a named flaky test and applies the smallest fix that makes it deterministic without weakening or deleting any assertion.
Core Features & Use Cases
- Four allowed fix strategies: raise timeout or poll budgets, replace fixed sleeps with explicit condition waits, make randomness and time deterministic via seeded RNG or fake timers, and isolate shared resources like ports or tempdirs.
- Strict guardrails: never skips, deletes, or loosens a test; if the failure looks like a real product bug, it writes a failure report and stops for human review.
- Verification loop: reruns the test file repeatedly with vitest to prove determinism, then runs the standard build, typecheck, and lint gate.
- Use Case: A vitest test times out under CI contention because it polls with a fixed count of setImmediate turns; the Skill replaces the loop with a real wall-clock budget and confirms the test passes on repeated runs.
Quick Start
Ask the agent to deflake the named failing test from the issue, keeping every assertion intact and verifying it passes on repeated runs.