Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add pnakhat/qa-ai-repo --skill flaky-test-triagegit clone --depth 1 https://github.com/pnakhat/qa-ai-repoWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/pnakhat/qa-ai-repo/flaky-test-triage)<a href="https://agentmods.dev/skills/pnakhat/qa-ai-repo/flaky-test-triage"><img src="https://agentmods.dev/badge/skills/pnakhat/qa-ai-repo/flaky-test-triage/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/pnakhat/qa-ai-repo/flaky-test-triage"><img src="https://agentmods.dev/badge/skills/pnakhat/qa-ai-repo/flaky-test-triage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00125 | $0.03524 |
| Opus 5.5 | $0.00050 | $0.01410 |
| Sonnet 5.5 | $0.00025 | $0.00705 |
| Haiku 4.5 | $0.00013 | $0.00352 |
Grade A, and why
flaky-test-triage scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 207 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Flaky Test Triage
A flaky test passes and fails on the same code. It is worse than a failing test: it trains the team to ignore red, so real regressions slip through. Treat flake as a defect in the test, with a rate you measure, a cause you name, and a fix you land — never a nuisance you retry away.
Evidence-driven execution
Read verification.md before selecting the workflow or reporting results. It defines domain-specific failure probes, evidence requirements, and limits on what a passing run proves.
How to run
- Classify the failure pattern. Reproduce on the exact commit. A consistent failure can be a product or test defect; investigate the evidence. A flake is not automatically a test defect: races in the product (double submit, unawaited write, non-atomic counter) show up as flaky tests first. Rule out a product concurrency bug before "fixing" the test.
- Quantify. Compute the suite flake rate and a per-test flake score from reruns + CI history (formulas below). Rank by score × blast radius.
- Reproduce the non-determinism. Rerun the suspect many times; shuffle order; vary the axis supported by the evidence within a stated run/time budget. If it does not reproduce, report the evidence limit and next hypothesis.
- Classify against the taxonomy — match the tell-tale signal to a cause.
- Fix at the root using the per-cause playbook, or quarantine with an SLA if the release owner accepts the resulting coverage gap. A critical unresolved product risk may need to keep blocking the release.
- Verify. Re-run the original reproduction with retries disabled. Report N, failures, conditions, and uncertainty; require root-cause evidence and the agreed observation window before closure or removing quarantine.
Taxonomy — cause → tell-tale signal → fix direction
Grounded in Luo et al., An Empirical Analysis of Flaky Tests (FSE 2014), whose top three root causes were async wait, concurrency, and test-order dependency, plus browser-specific causes.
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · +6 lines b24a96a380f9
- 1mo ago Changed · +43 lines 844492d3c720
- 1mo ago Changed · +2 lines cfd4759b90fa
- 3mo ago First seen · 156 lines · 125 tokens per session scan A b7a003bc7973
flaky-test-triage is a skill published in the GitHub repository pnakhat/qa-ai-repo (2 stars, last pushed 1mo ago), licensed MIT. It adds 125 tokens to every session and 3,524 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
flaky-test-triage compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| flaky-test-triagepnakhat/qa-ai-repo | Skill | 2 | 1mo ago | MIT | A | 125 | Claude Code |
| testinggarrytan/gbrain | Skill | 34k | today | MIT | A | 63 | Claude Code |
| verifyYeachan-Heo/oh-my-claudecode | Skill | 41k | today | MIT | A | 12 | Claude Code |
| detect-static-dependenciesdotnet/skills | Skill | 6.4k | today | MIT | A | 135 | Claude Code |
| dart-downstream-fixdartsim/dart | Skill | 1.2k | yesterday | BSD-2-Clause | A | 25 | Claude Code |
| experiment-iterative-coderEvoScientist/EvoSkills | Skill | 488 | 17d ago | Apache-2.0 | A | 145 | Claude Code |
| mockito-stale-mock-silent-trycatch-failuredivinevideo/divine-mobile | Skill | 263 | today | MPL-2.0 | A | 186 | Claude Code, Codex |