Test stabilizer

From Community-Tech-UK/ai-orchestrator · View interactive version

Test stabilizer is an AI agent skill from the GitHub repository Community-Tech-UK/ai-orchestrator. Find flaky tests, fix their root cause, and prove stability with repeated runs.

How to use this skill

Skill file

Test Stabilizer Loop

A convergence loop: pick one flaky test, fix its root cause, and prove it is

stable before stopping. Best run in loop mode so each iteration tackles one test

until the suite is reliable.

Loop contract

Behavior

  1. Identify a candidate flaky test (intermittent failures, order-dependence, timing).
  2. Reproduce the flake — run the file repeatedly until you observe both pass and fail.
  3. Diagnose the underlying cause: timing/races, shared mutable state, test ordering, leaky mocks, real clock/network use.
  4. Apply a targeted fix at the root cause, not the symptom.
  5. Verify by re-running the file many times; require an unbroken pass streak.

Output

A concise summary of the flaky test found, the root cause, the fix applied, the

repeat-run evidence, and any blockers.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.