flaky-test-fixes-skill

flaky-test-fixes-skill is a skill for Claude Code, Codex from LambdaTest/agent-skills. It costs 120 tokens per session (1,971 once invoked), scanned A, original, MIT.

A diagnosis-first procedure for tests that sometimes pass and sometimes fail on the same code. It covers common browser and test frameworks and requires reproducing the failure before changing the test.

In plain words
What is it for?
Use it to measure a flaky test, inspect failure evidence, classify its cause, fix that cause, and confirm the fix. It applies to Playwright, Selenium, Cypress, WebdriverIO, Jest, and pytest suites.
Why use it?
It prevents retries, sleeps, or longer timeouts from hiding the underlying cause of an unreliable test. It compares local, parallel, full-suite, and continuous-integration conditions to narrow down what differs.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to measure a flaky test, inspect failure evidence, classify its cause, fix that cause, and confirm the fix. It applies to Playwright, Selenium, Cypress, WebdriverIO, Jest, and pytest suites.

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

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-fixes-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/lambdatest/agent-skills/flaky-test-fixes-skill/github.svg)](https://agentmods.dev/skills/lambdatest/agent-skills/flaky-test-fixes-skill)
Your own site
<a href="https://agentmods.dev/skills/lambdatest/agent-skills/flaky-test-fixes-skill"><img src="https://agentmods.dev/badge/skills/lambdatest/agent-skills/flaky-test-fixes-skill/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-fixes-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/lambdatest/agent-skills/flaky-test-fixes-skill"><img src="https://agentmods.dev/badge/skills/lambdatest/agent-skills/flaky-test-fixes-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 120 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,971 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.00120 $0.01971
Opus 5.5 $0.00048 $0.00788
Sonnet 5.5 $0.00024 $0.00394
Haiku 4.5 $0.00012 $0.00197

Measured today against content hash 52218ec0c31e, 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-fixes-skill 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 today.

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.

flaky-test-fixes-skill/SKILL.md · 174 lines

How it starts

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

Flaky test fixes

A flaky test gives different results on the same code. Find the cause before you change anything. Adding a retry, a sleep or a longer timeout without a diagnosis hides the problem and usually moves it.

Step 1: Reproduce and measure

Run the test repeatedly and record the failure rate. You need a number to know later whether the fix worked.

npx playwright test path/to/spec.ts --repeat-each=30 --workers=4   # Playwright
pytest path/to/test.py --count=30 -p no:randomly                    # pytest-repeat
for i in $(seq 1 30); do npm test -- path/to/test || echo "FAIL $i"; done

Then run it under the conditions where it fails:

  • alone, then inside the full suite
  • with one worker, then with the CI worker count
  • with CPU throttled (Chrome DevTools CPU throttling, or a small container) to mimic a slow CI runner

If you cannot reproduce it locally, work from CI artifacts: trace, video, screenshot, console and network logs. If the suite does not save them on failure, turn that on first.

Step 2: Classify

Compare a failing run with a passing run and find the first point where they differ. Match it to one cause:

Signal Cause
Fails more on slow machines, passes when you step through Timing: the test acts before the app is ready
Passes alone, fails in the suite, or fails in a different order Shared state between tests
Fails only with more than one worker Collision on shared data or resources
Fails around midnight, month end, or only in CI's timezone Time and locale dependence
Failure follows a slow or failed network call External dependency
Element found, then stale, detached or covered Re-render, animation or overlay
Fails on one browser or one viewport Environment-specific rendering
Failure rate matches a backend error rate A real intermittent product bug

Take the last row seriously. A test that fails 3% of the time may be reporting a race that users hit 3% of the time. Check the app before you blame the test.

Read the full file on GitHub · 174 lines

Files

What ships with it

1 file 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.

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. today First seen · 174 lines · 120 tokens per session scan A 52218ec0c31e

Subscribe to this mod's changes

flaky-test-fixes-skill is a skill published in the GitHub repository LambdaTest/agent-skills (392 stars, last pushed yesterday), licensed MIT. It adds 120 tokens to every session and 1,971 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-11-18.

Related

flaky-test-fixes-skill compared with skills from other repositories

flaky-test-fixes-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
flaky-test-fixes-skillLambdaTest/agent-skillsSkill392yesterdayMITA120Claude Code, Codex
reproduce-buggoogleapis/mcp-toolboxSkill17ktodayApache-2.0A130Claude Code, Codex
verify-omnigentomnigent-ai/omnigentSkill11ktodayApache-2.0A100Claude Code, Codex
wiringparcadei/Continuous-Claude-v3Skill4.0k2d agoMITB6Claude Code
test-electron-appPostHog/posthogSkill41ktodaynoneA112Claude Code
reality-verificationtzachbon/smart-ralphSkill56621d agoMITA81Claude Code
quality-engineering-test-healingHoangNguyen0403/agent-skills-standardSkill586yesterdayMITA60Claude Code, Codex