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 yeaight7/agent-powerups --skill flaky-test-investigationgit clone --depth 1 https://github.com/yeaight7/agent-powerupsWrote 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/yeaight7/agent-powerups/flaky-test-investigation)<a href="https://agentmods.dev/skills/yeaight7/agent-powerups/flaky-test-investigation"><img src="https://agentmods.dev/badge/skills/yeaight7/agent-powerups/flaky-test-investigation/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/yeaight7/agent-powerups/flaky-test-investigation"><img src="https://agentmods.dev/badge/skills/yeaight7/agent-powerups/flaky-test-investigation.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.00030 | $0.00615 |
| Opus 5.5 | $0.00012 | $0.00246 |
| Sonnet 5.5 | $0.00006 | $0.00123 |
| Haiku 4.5 | $0.00003 | $0.00061 |
Grade A, and why
flaky-test-investigation 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 2mo 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 — 58 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Purpose
Flaky tests erode trust in CI. Do not just re-run them and hope for the best — isolate the flake vector, fix it, and prove the fix with a stress loop.
When to Use
- A test fails intermittently in CI but passes locally (or vice versa)
- A test passes alone but fails in the full suite
- A re-run "fixed" a failure and nobody knows why
Inputs
- The flaky test's name/path and the runner command for it
- Recent failing runs, if available, to estimate the failure rate
Workflow
-
Isolate the test. Run the specific failing test by itself. If it passes alone, the flake is likely an order dependency or state leakage from a previous test — run the suite up to and including it to confirm.
-
Stress test. Run the test in a tight loop to establish the failure rate before changing anything:
for i in {1..100}; do npm test -- -t "My Test" || echo "FAIL on run $i"; done(Adapt the inner command to the project's runner; some runners have repeat flags built in.)
-
Check the common vectors:
- Time — does the test rely on
Date.now()orsetTimeout? Mock the clock. - Async/Promises — asserting before a background task finishes? Ensure proper
awaitorwaitForusage. - Shared state — reusing database records, global singletons, or mutated variables between runs? Ensure clean teardowns in
afterEach. - Randomness — random IDs or sort orders? Force deterministic seeds or sort orders.
- Time — does the test rely on
-
Prove the fix. Do not just guess. The fix must be verified by running the stress test loop again and achieving a 100% pass rate.
Output
- The identified flake vector (order/state, time, async, randomness)
- The fix, plus stress-loop evidence (pre-fix failure rate vs post-fix 100% pass)
Verification
- Test run in isolation to separate order-dependency from intrinsic flake
- Stress loop run before the fix to establish a baseline failure rate
- Flake vector named explicitly
- Stress loop re-run after the fix with a 100% pass rate
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.
- 2mo ago First seen · 58 lines · 30 tokens per session scan A 66adc4d3a5e1
flaky-test-investigation is a skill published in the GitHub repository yeaight7/agent-powerups (10 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 30 tokens to every session and 615 once invoked, about $0.0001 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-09-14.
flaky-test-investigation compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| flaky-test-investigationyeaight7/agent-powerups | Skill | 10 | 2mo ago | Apache-2.0 | A | 30 | Claude Code |
| bmad-deep-reconalvin-reyes/better-agentic-ide | Skill | 38 | 11d ago | MIT | A | 161 | Claude Code |
| bmad-evalalvin-reyes/better-agentic-ide | Skill | 38 | 11d ago | MIT | A | 101 | Claude Code |
| bmad-buildalvin-reyes/better-agentic-ide | Skill | 38 | 11d ago | MIT | A | 91 | Claude Code |
| bmad-build-autoalvin-reyes/better-agentic-ide | Skill | 38 | 11d ago | MIT | A | 18 | Claude Code |
| bmad-prdalvin-reyes/better-agentic-ide | Skill | 38 | 11d ago | MIT | A | 30 | Claude Code |
| bmad-prfaqalvin-reyes/better-agentic-ide | Skill | 38 | 11d ago | MIT | A | 67 | Claude Code |