Skip to content
Skills Library
Programming · Testing

flaky-test-hunter

/flaky-test-hunter

Find flaky tests by comparing JUnit XML reports from several CI runs of the same code: pass/fail flips, flip rate, failure messages, and a quarantine shortlist, using a bundled stdlib script; then diagnose likely causes (timing, order, shared data, environment). Use when CI is red then green on retry, or the team stopped trusting the pipeline.

Licence
MIT
Last repository change
10.11.2026

Assessment and security

95/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content30 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
1
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 10.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 1 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/flaky_tests.py

What it does and when to use it

Find flaky tests by comparing JUnit XML reports from several CI runs of the same code: pass/fail flips, flip rate, failure messages, and a quarantine shortlist, using a bundled stdlib script; then diagnose likely causes (timing, order, shared data, environment). Use when CI is red then green on retry, or the team stopped trusting the pipeline.

Original author description

Find flaky tests by comparing JUnit XML reports from several CI runs of the same code: pass/fail flips, flip rate, failure messages, and a quarantine shortlist, using a bundled stdlib script; then diagnose likely causes (timing, order, shared data, environment). Use when CI is red then green on retry, or the team stopped trusting the pipeline.

How it works

  1. Collect
  2. Run
  3. Diagnose each flaky test
  4. Output
Original SKILL.md headings · 24 lines, 192 words
SKILL.md preview
---
name: flaky-test-hunter
description: "Find flaky tests by comparing JUnit XML reports from several CI runs of the same code: pass/fail flips, flip rate, failure messages, and a quarantine shortlist, using a bundled stdlib script; then diagnose likely causes (timing, order, shared data, environment). Use when CI is red then green on retry, or the team stopped trusting the pipeline."
---

# Flaky test hunter

## Collect
Download the JUnit XML of 5-20 runs (same commit ideally, or a recent range) into one folder, one sub-folder or file per run, named so they sort chronologically.

## Run
```bash
python "${CLAUDE_SKILL_DIR}/scripts/flaky_tests.py" runs/ --min-runs 3 --format md
```
It lists every test that both passed and failed, with runs, failures, flips (status changes between consecutive runs), flip rate, and the most frequent failure message.

## Diagnose each flaky test
| Clue | Likely cause | Fix |
|---|---|---|
| Timeout / "element not found" | Missing wait condition, slow env | Wait on state, not time |
| Fails only in full suite | Order dependence, shared data | Isolate data, reset state |
| Fails around midnight / month-end | Clock / time zone | Freeze the clock |
| Different message each time | Race condition in the product | Log a product bug |
| Only on one agent | Environment | Fix the agent image |

## Output
Script table, then per test: cause hypothesis, evidence, fix, and whether to **quarantine** (tag + ticket + owner + deadline), never silently skip.
Files in this package (2)
  • SKILL.md 1 KB
  • scripts/flaky_tests.py 5 KB

Versions

The database has no other skills named flaky-test-hunter.

Database snapshot: 13.11.2026 · package version da93ca0fe8a6 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100qa-flaky-test-hunter
    Diagnoses flaky tests — classifies the cause (timing / ordering / resource / external), quarantines the test safely, and lays out a fix plan. Output: per-test flakiness report, quarantine list, and remediation plan. Pulled by the `qa` specialist. TRIGGER: "this test is flaky",…
  • 95wicked-garden-qe-flaky-test-hunter
    Flake detection + root-cause specialist. Queries DomainStore for historical verdicts per scenario_id, computes flake rate over a rolling 14d window, reproduces locally with repeat runs, and classifies the cause under a fixed taxonomy (timing / order-dep / env / resource /…
  • 100flaky-test-management
    When the user wants to detect, triage, root-cause, quarantine, or eliminate flaky tests. Use when the user mentions "flaky tests," "intermittent failures," "test instability," "retry strategy," "test quarantine," "deflaking," "test reliability," "skip flaky test," "test that…
  • 90Flaky Test Detector
    Detect, analyze, and fix flaky tests across any test runner. Use when tests intermittently fail in CI, tests pass locally but fail on CI, tests fail non-deterministically, or need to stabilize a flaky test suite. Also for 'flaky test', 'flaky', 'intermittent failure', 'unstable…
  • 100analyzing-test-flakiness
    Find genuinely flaky tests in a Qase project — cases that both pass and fail — and separate them from tests that are simply broken. Use when the user asks which tests are flaky, unreliable, unstable, intermittent, or non-deterministic; about test stability, flakiness, or the…
  • 100flaky-test-diagnosis
    Diagnoses intermittently failing tests by reproducing them under controlled repetition, classifying the cause (async timing, order dependence, shared state, time and randomness, resource leaks, external services, environment), and applying a fix or a tracked quarantine. Use when…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.