Flaky test fixer
Measures your flaky tests and fixes the root cause without retries or sleeps, so CI stops failing at random.
What we improved
Made the skill work on its own. The original ran a shared engine file from a wider command suite, which in turn pointed at files not included (work.md, execution-model.md, verification-framework.md) and at a config file (.absolute.config.js
Improved by YourAISkill from the original by dhruvjainin, under its MIT licence. The download includes the author's licence and a CHANGES.md listing every change. Both Claude reviews read the improved version.
Claude's review
8/10 Rigorous deflake workflow with per runner repeat, shuffle and parallel flags, a run count table from failure rate, a cause and fix matrix and a no retries rule.
We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.
In detail
Flaky test fixes: detect nondeterministic tests empirically (repeat/shuffle/parallel runs), diagnose the root cause, fix it — never retry/skip/sleep — and verify across many randomized runs. Triggers on "absolute deflake", "fix flaky tests", "CI is flaky", "this test fails randomly/intermittently".
How you use it
- Add it to your pack, then download your pack (1 credit).
- In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
- Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide
Safety check
Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: absolute-deflake
version: 0.5.0
description: "Fix flaky tests at the root. Measures each suspect test's failure rate with repeated, shuffled and parallel runs, proves the cause (shared state, test order, clocks, async races, randomness, network, unordered collections, leaked resources), fixes it without retries, sleeps or skips, and verifies with enough randomized runs to be statistically confident the flake is gone. Covers Jest, Vitest, pytest, Go, Playwright and JUnit. Use when CI is flaky, a test fails randomly or intermittently, passes locally but fails in CI, or when clearing a backlog of retry or skip annotations that hide flakiness."
category: workflow
tags:
- workflow
- testing
- flaky-tests
- maintenance
platforms:
- claude-code
- gemini-cli
- openai-codex
- mcp
user-invocable: true
argument-hint: "[target]"
license: MIT
maintainers:
- github: maddhruv
---
<!-- Modified by YourAISkill (youraiskill.com) on 2 December 2026 from the original by dhruvjainin. See CHANGES.md. -->
# Absolute Deflake
Find tests that pass and fail nondeterministically, diagnose the **root cause** of each, and fix it: not by retrying or skipping, but by removing the source of nondeterminism. The output is evidence (failure rate per test), then cause, then fix, verified by repeated runs.
```
DETECT -> MEASURE -> DIAGNOSE -> TRIAGE (gate) -> FIX (one cause at a time) -> VERIFY -> REPORT
```
## When to use
- "Our CI is flaky", "this test fails randomly", "fix the intermittent failures".
- A test passes locally but fails in CI (or the reverse), or fails about 1 in N runs.
- Burning down a backlog of `retry`, `flaky` or `skip` marked tests that mask real flakiness.
Not for tests that fail **every** time. That is a real bug or a real regression: fix it directly.
## Ground rules
...From dhruvjainin's repository, MIT licence.
Related skills
-
Checked
React Native testing
Writes React Native Testing Library tests the right way for v13 and v14, so tests stay fast and reliable.
8/101 credit -
Checked
JUnit and Mockito tests
Writes and fixes Java tests with JUnit, AssertJ and Mockito that are deterministic and keep failures visible.
8/101 credit -
Checked
Test code review
Reviews new or changed tests in pytest, Jest, Go and more, so weak tests are caught before merge.
7/101 credit -
Checked
Go table driven tests
Writes Go tests with table cases, fakes, fuzzing, benchmarks and golden files that stay fast and reliable.
8/101 credit -
Checked
MSTest Unit Testing
Writes modern C# unit tests with current MSTest APIs, assertions, data driven tests and lifecycle patterns.
8/101 credit -
Checked
Quarkus Testing
Writes and fixes Quarkus tests using Dev Services containers, with the right profiles, mocks and run commands.
7/101 credit