What problem does it solve? Flaky tests that randomly pass or fail erode trust in CI: real regressions get buried in noise and teams mask failures with retries. This Skill provides a systematic method to find, reproduce, and eliminate flakiness caused by nondeterministic coordination between processes—concurrency races and inter-test ordering/state leakage. ## Core Features & Use Cases - Race detection and containment: Amplify race windows with high parallelism and repetition (vitest --repeat, --no-isolate), then serialize shared-state access via locks, queues, or await chains. - Order/shuffle analysis: Expose state leakage between tests using --sequence.shuffle with varying seeds, and fix it with beforeEach/afterEach initialization and teardown discipline. - Mechanical completion gates: Defines concrete pass criteria (e.g., 200 consecutive green repeats, 30 shuffle seeds green) so containment is closed by evidence, not by a single lucky green run. - Use Case: A CI pipeline fails intermittently on a counter test. Use this Skill to reproduce the race with 1000 parallel invocations, serialize the read-modify-write section, and verify with 200 consecutive green runs. ## Quick Start Ask the AI to diagnose why a specific vitest test is flaky and apply the concurrency and state-leakage containment steps from this Skill.