test-flakiness
Skill1 starsChanged 24 days agoMITView on GitHub
Finds and fixes flaky tests: reruns suspects to measure flake rate, diagnoses causes (timing, shared state, order dependence, network, clocks, animations) and proposes root-cause fixes. Use when CI fails intermittently or a test passes on retry.
11 other projects use a version of this.
Adopted by
Most recently taken up by
- bullish0x/GameStudiotheir own version, first seen Nov 29, 2026
- chuanglibs/Claude-Code-Game-Studios-Codextheir own version, first seen Nov 15, 2026
- Donchitos/Claude-Code-Game-Studiostheir own version, first seen Nov 9, 2026
- striderZA/OpenCodeGameStudiostheir own version, first seen Nov 4, 2026
- venus2099/codex-game-studiostheir own version, first seen Oct 17, 2026
- HunLuanZhiZhu/Game-Studios-Plugintheir own version, first seen Oct 5, 2026
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 11
- Donchitos/Claude-Code-Game-Studios★ 39ksame name
- striderZA/OpenCodeGameStudios★ 124same name
- cenconq25/claude-code-app-studio★ 40same name
- bullish0x/GameStudio★ 29same name
- dawn840705/codex-code-studios★ 17same name
- lilangMax/ClaudeCodeGameStudios★ 8same name
- hongyuanc/codex-game-studios★ 5same name
- chuanglibs/Claude-Code-Game-Studios-Codex★ 1same name
- dawn840705/claude-code-studios★ 1same name
- HunLuanZhiZhu/Game-Studios-Plugin★ 1same name
1 more not listed
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 repository100 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- a11y-auditSkill
- add-ai-featureSkill
- add-authSkill
- add-cmsSkill
- add-i18nSkill
- add-paymentsSkill
- add-realtimeSkill
- adoptSkill
- analytics-planSkill
- api-contractSkill
- architecture-decisionSkill
- architecture-reviewSkill
- brainstormSkill
- brand-identitySkill
- bug-reportSkill
- bug-triageSkill
- changelogSkill
- ci-setupSkill
- client-demoSkill
- competitor-auditSkill
- consistency-checkSkill
- content-calendarSkill
- content-strategySkill
- create-architectureSkill
- create-epicsSkill
- create-storiesSkill
- cro-reviewSkill
- data-modelSkill
- db-migrationSkill
- dependency-auditSkill
- deploy-setupSkill
- design-reviewSkill
- design-systemSkill
- design-tokensSkill
- dev-storySkill
- e2eSkill
- email-flowsSkill
- estimateSkill
- experimentSkill
- feature-specSkill
- funnel-reviewSkill
- gate-checkSkill
- helpSkill
- hotfixSkill
- incidentSkill
- install-depsSkill
- launch-checklistSkill
- load-testSkill
- market-researchSkill
- milestone-reviewSkill
- observability-setupSkill
- onboardSkill
- perf-auditSkill
- personasSkill
- postmortemSkill
- privacy-auditSkill
- project-stage-detectSkill
- propagate-design-changeSkill
- prototypeSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Test config (retries, parallelism, timeouts)
- Very specific: line 43
Use the trace (npx playwright show-trace) for e2e failures.
- Very specific: line 50
If it cannot be fixed now: quarantine only with the user's approval, a TODO(owner, date) comment and a tech-debt entry (/tech-debt add).
“Common” is measured: kept by at least 6 in 10 of the 11 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
Test Flakiness
A flaky test is a bug in the test or in the product. It is never fixed by deleting it, skipping it silently, or bumping a timeout without a reason.
Inputs
- The suspect test(s), or CI history the user pastes
- Test config (retries, parallelism, timeouts)
- Playwright traces in
test-results/if present
Phases
Phase 1: Measure
Rerun the suspect N times in isolation and in the full suite, e.g.
npx playwright test <file> --repeat-each=20, npx vitest run <file> in a loop,
pytest -p no:randomly <file> vs pytest -p randomly, go test -count=20 -race.
Report the failure rate alone vs in the suite (suite-only failures point to shared state).
Phase 2: Diagnose
test-engineer checks the usual causes:
| Symptom | Likely cause | Fix |
| Passes alone, fails in suite | shared DB rows, global mocks, module state | per-test data, reset mocks, isolate workers |
| Fails on slow CI | fixed sleeps, racing async UI | web-first assertions, wait for network idle / response |
| Fails near midnight/month end | real clock | fake timers / fixed Date |
| Random order failures | order dependence | make each test self-sufficient |
| Animation/screenshot diffs | transitions, fonts | disable animations, wait for fonts |
| External calls | real network | mock at the boundary |
Use the trace (npx playwright show-trace) for e2e failures.
Phase 3: Fix
Propose the root-cause fix with the evidence. Ask before editing. Rerun the measurement; it must reach 0 failures in the same number of runs.
If it cannot be fixed now: quarantine only with the user's approval, a
TODO(owner, date) comment and a tech-debt entry (/tech-debt add).
Next step
Back to the work CI was blocking.
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.

