find-flaky-tests

find-flaky-tests is a skill for Claude Code from testingbot/mcp-server. It costs 42 tokens per session (263 once invoked), scanned A, original, MIT.

A flaky-test investigation workflow for TestingBot. A flaky test is one that sometimes passes and sometimes fails without a relevant code change.

In plain words
What is it for?
Use it to rank recent flaky tests, compare passed and failed runs, identify likely causes, and suggest changes that may make them reliable.
Why use it?
It shows which tests are unstable and examines common causes such as timing, test order, shared data, or a particular environment. This helps turn intermittent failures into specific stability work.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the testingbot plugin — 7 skills, 1 MCP server shipped together

Good fit Use it to rank recent flaky tests, compare passed and failed runs, identify likely causes, and suggest changes that may make them reliable.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/testingbot/mcp-server/find-flaky-tests
Install

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.

Any agent
npx skills add testingbot/mcp-server --skill find-flaky-tests
Clone the repo
git clone --depth 1 https://github.com/testingbot/mcp-server

Made for: Claude Code.

Or install testingbot, the plugin that ships this one along with the rest of its 7 skills, 1 MCP server.

Wrote 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.

agentmods badge for find-flaky-tests

README.md
[![agentmods](https://agentmods.dev/badge/skills/testingbot/mcp-server/find-flaky-tests/github.svg)](https://agentmods.dev/skills/testingbot/mcp-server/find-flaky-tests)
Your own site
<a href="https://agentmods.dev/skills/testingbot/mcp-server/find-flaky-tests"><img src="https://agentmods.dev/badge/skills/testingbot/mcp-server/find-flaky-tests/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.

agentmods 80×15 button for find-flaky-tests

Your own site · 80×15
<a href="https://agentmods.dev/skills/testingbot/mcp-server/find-flaky-tests"><img src="https://agentmods.dev/badge/skills/testingbot/mcp-server/find-flaky-tests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 263 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00042 $0.00263
Opus 5.5 $0.00017 $0.00105
Sonnet 5.5 $0.00008 $0.00053
Haiku 4.5 $0.00004 $0.00026

Measured 7d ago against content hash f92d76ae62ca, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

find-flaky-tests 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 7d 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.

plugins/testingbot/skills/find-flaky-tests/SKILL.md · 14 lines

What it actually says

Find flaky TestingBot tests

Needs the TestingBot MCP server (@testingbot/mcp-server). If a tool says no credentials are configured, call tb_login (it opens a browser sign-in) and continue; never ask the user to paste a key or secret.

  1. Read the resource testingbot://insights/flaky-tests (add ?time_range=7d for a shorter window; the default is 30 days). It lists test names with pass rate and run counts, most flaky first.
  2. For the top 5, call getTests, pick a recent failed and a recent passed run of each, and call getFailureLogs with failuresOnly: true on the failed one.
  3. Look for timing problems (timeouts, waits, animations), order dependence, shared test data, or one environment failing more often than the others.
  4. Report a ranked list: test name, pass rate, runs, the likely reason it is unstable, and a concrete change to make it stable.
Changes

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.

  1. 7d ago Changed f92d76ae62ca
  2. 11d ago First seen · 14 lines · 42 tokens per session scan A 69a1574af64a

Subscribe to this mod's changes

find-flaky-tests is a skill published in the GitHub repository testingbot/mcp-server (2 stars, last pushed 7d ago), licensed MIT. It adds 42 tokens to every session and 263 once invoked, about $0.0002 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-11-20.

Related

find-flaky-tests compared with skills from other repositories

find-flaky-tests next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
find-flaky-teststestingbot/mcp-serverSkill27d agoMITA42Claude Code
chrome-devtools-cliChromeDevTools/chrome-devtools-mcpSkill60kyesterdayApache-2.0A31Claude Code
n8n-error-handlingczlonkowski/n8n-mcpSkill23kyesterdayMITA128Claude Code, Codex
n8n-validation-expertczlonkowski/n8n-mcpSkill23kyesterdayMITA91Claude Code, Codex
agentcore-investigationawslabs/mcpSkill10.0ktodayApache-2.0A52Claude Code, Codex
openlore-analyze-codebaseclay-good/OpenLoreSkill371todayMITA48Claude Code, Codex
flutter-mcp-toolkit-intentcall-migrationArenukvern/mcp_flutterSkill4014d agoMITA58Claude Code