Flaky Test Analyzer

Flaky Test Analyzer is a skill for Claude Code, Codex from Notysoty/openagentskills. It costs 25 tokens per session (1,790 once invoked), scanned A, original, MIT.

A tool that investigates tests that sometimes pass and sometimes fail without code changes. It looks for causes such as timing, shared data, test order, network behaviour, or randomness.

In plain words
What is it for?
Use it to diagnose unreliable tests and suggest changes that make their results consistent.
Why use it?
It helps explain failures that are difficult to reproduce, including tests that pass locally but fail in a continuous integration server.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for cline. Also seen: mentions Claude Code; mentions Codex; built for cline.

Good fit Use it to diagnose unreliable tests and suggest changes that make their results consistent.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/notysoty/openagentskills/flaky-test-analyzer
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 Notysoty/openagentskills --skill flaky-test-analyzer
Clone the repo
git clone --depth 1 https://github.com/Notysoty/openagentskills

Made for: Claude Code, Codex.

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 Flaky Test Analyzer

README.md
[![agentmods](https://agentmods.dev/badge/skills/notysoty/openagentskills/flaky-test-analyzer/github.svg)](https://agentmods.dev/skills/notysoty/openagentskills/flaky-test-analyzer)
Your own site
<a href="https://agentmods.dev/skills/notysoty/openagentskills/flaky-test-analyzer"><img src="https://agentmods.dev/badge/skills/notysoty/openagentskills/flaky-test-analyzer/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 Flaky Test Analyzer

Your own site · 80×15
<a href="https://agentmods.dev/skills/notysoty/openagentskills/flaky-test-analyzer"><img src="https://agentmods.dev/badge/skills/notysoty/openagentskills/flaky-test-analyzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,790 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.00025 $0.01790
Opus 5.5 $0.00010 $0.00716
Sonnet 5.5 $0.00005 $0.00358
Haiku 4.5 $0.00003 $0.00179

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

Security

Grade A, and why

Flaky Test Analyzer 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 3mo 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.

skills/flaky-test-analyzer/SKILL.md · 212 lines

How it starts

The opening of the file, as written. The whole thing — 212 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Flaky Test Analyzer

What this skill does

This skill directs the agent to diagnose flaky tests — tests that sometimes pass and sometimes fail without any code changes. It examines the test code, the code under test, and the failure patterns to identify the root cause category (timing, shared state, ordering, network, randomness, etc.) and then suggests targeted fixes that make the test deterministic.

Use this when a test is unreliable in CI, when a test passes locally but fails on the CI server, or when a test fails intermittently with no obvious pattern.

How to use

Claude Code / Cline

Copy this file to .agents/skills/flaky-test-analyzer/SKILL.md in your project root.

Then ask:

  • "Use the Flaky Test Analyzer skill on tests/checkout.test.ts — it fails about 1 in 5 runs in CI."
  • "This test passes locally but fails in CI. Use the Flaky Test Analyzer skill to diagnose it."

Provide:

  1. The test file (or the specific test that's flaky)
  2. The failure message when it does fail
  3. How often it fails (every time? 1 in 10? only in CI?)
  4. Any observations about when it fails (after a specific other test? at a specific time of day?)

Cursor

Add the instructions below to your .cursorrules or paste them into the Cursor AI pane. Provide the test code and failure output.

Codex

Paste the test file, the failure message, and any relevant context. Ask Codex to follow the instructions below.

The Prompt / Instructions for the Agent

When asked to diagnose a flaky test, follow this process:

Step 1 — Gather information

Before analyzing, ensure you have:

  • The full test code, including beforeEach, afterEach, beforeAll, and afterAll hooks
  • The code under test (the function or module being tested)
  • The error message when the test fails (not just "test failed")
  • The failure frequency pattern (always, sometimes, CI only, etc.)
  • The test framework and any relevant configuration (jest.config.js, vitest.config.ts, etc.)

If any of these are missing, ask for them.

Read the full file on GitHub · 212 lines

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. 3mo ago First seen · 212 lines · 25 tokens per session scan A f1f870b7d0e8

Subscribe to this mod's changes

Flaky Test Analyzer is a skill published in the GitHub repository Notysoty/openagentskills (9 stars, last pushed 3mo ago), licensed MIT. It adds 25 tokens to every session and 1,790 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-08-31.

Related

Flaky Test Analyzer compared with skills from other repositories

Flaky Test Analyzer next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Flaky Test AnalyzerNotysoty/openagentskillsSkill93mo agoMITA25Claude Code, Codex
Flaky Test DoctorPramodDutta/qaskillsSkill25328d agoMITA54Claude Code, Codex
create-chatgpt-mockupgooseworks-ai/goose-skillsSkill1.4k2d agoMITA90Claude Code, Codex
review-finished-adgooseworks-ai/goose-skillsSkill1.4k2d agoMITA200Claude Code, Codex
render-cosmic-mythology-voiceovergooseworks-ai/goose-skillsSkill1.4k2d agoMITA225Claude Code, Codex
render-mosaic-grid-revealgooseworks-ai/goose-skillsSkill1.4k2d agoMITA132Claude Code, Codex
research-competitors-category-passgooseworks-ai/goose-skillsSkill1.4k2d agoMITA50Claude Code, Codex