flaky-test-triage
Skill0 starsChanged 2 months agoMITView on GitHub
Use when a test fails intermittently or only on CI. Decide quarantine vs fix, then stabilize with determinism (fake clocks, isolation, retries at the right layer) — never by sprinkling sleeps.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- Indium-AI-Labs/indium-agentkittheir own version, first seen Nov 1, 2026
- godhiraj-code/greenbuild-plugintheir own version, first seen Nov 1, 2026
- ruslanlap/agent-maintenance-skillsettheir own version, first seen Oct 25, 2026
- Ionate-Technologies/indium-agentkittheir own version, first seen Oct 20, 2026
- SUDARSHANCHAUDHARI/QACrafttheir own version, first seen Jul 21, 2026
Used with
Projects with it also use accessibility-audit.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
GitHubSkillaccessibility-audit
Audits actual components and routes against applicable WCAG 2.2 A/AA criteria using consumer-owned design-system evidence and repository tools. Use when asked for an accessibility audit, a11y check, keyboard or focus review, contrast check, or screen-reader verification.
Also in 3 projects that use this
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- Indium-AI-Labs/indium-agentkit★ 18same name
- Ionate-Technologies/indium-agentkit★ 17same name
- ruslanlap/agent-maintenance-skillset★ 2same name
- SUDARSHANCHAUDHARI/QACraft★ 2same name
- godhiraj-code/greenbuild-plugin★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository9 other files it gives its agents.
- adversarial-reviewSkill
- api-compatSkill
- incident-hotfixSkill
- perf-measure-firstSkill
- repro-firstSkill
- secrets-hygieneSkill
- skill-authorSkill
- test-plan-firstSkill
- yagni-sliceSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 27
Do not disable large swaths of the suite or delete tests without confirmation.
- Very specific: line 28
Do not merge with --no-verify to bypass red CI without explicit approval.
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Flaky Test Triage
When to use
- A test fails sometimes locally or on CI and passes on retry.
- CI is red due to known intermittent failures blocking merges.
- The user asks to "fix the flake", "quarantine", or "stabilize CI".
When not to use
- Deterministic failures that reproduce every run (use repro-first).
- Production incidents unrelated to the test suite (use incident-hotfix).
- Rewriting the entire test framework as the first response.
Assumptions
- Access to CI logs, test runner, and ability to re-run targeted tests.
- Quarantine mechanisms may exist (skip annotations, quarantine lists, issue links).
- Do not disable large swaths of the suite or delete tests without confirmation.
- Do not merge with
--no-verifyto bypass red CI without explicit approval.
Workflow
- Confirm flakiness: fail rate, environments, and whether order/parallelism matters.
- Decide: fix now (default if bisectable) vs quarantine with a tracked issue (if blocking many engineers).
- Root-cause toward non-determinism: time, randomness, shared state, network, ordering.
- Fix with fakes/isolation/idempotent setup — not
sleep. - Prove stability with repeated runs; remove quarantine when green.
Steps
- Characterize — Capture failing assertion, seed, CI node, and whether
--repeat/ reruns flake. - Isolate — Run the single test file repeatedly; try serial vs parallel to detect crosstalk.
- Decide — Fix-now if cause is clear within a tight time box; else quarantine one test with owner + issue, not the whole file unless confirmed.
- Determinism toolkit — Fake timers/clocks; seed RNGs; unique temp dirs; wait on conditions/events, not fixed sleeps; mock network; reset DB/fixtures per test.
- Guardrails — Prefer explicit readiness checks (
waitFor, polling with timeout) over arbitrary delay. - Verify — Re-run enough iterations to be confident; document the root cause in the PR/issue.
Success criteria
- Flake is classified (time/random/shared state/network/order) or honestly unknown.
- Either a real fix lands, or a narrow quarantine with tracking issue and owner.
- No new fixed
sleep/setTimeoutdelays used as the primary "fix". - Repeated runs pass (or quarantine is verified to unblock CI intentionally).
- Broad test deletions or suite-wide skips were confirmed or avoided.
Out of scope
- Permanent lowering of coverage goals to hide flakes.
- Infrastructure replacement (new CI vendor) as the first step.
- Load testing production from the test suite.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

