2

    flaky-test-detector

    by Timoranjes

    Detect, diagnose, and fix intermittent test failures to stabilize your CI pipeline and restore developer trust.

    Updated Jun 2026
    Security scanned
    Claude Code

    $5

    · or 25 credits

    30-day refund guarantee

    Secure checkout via Stripe

    Included in download

    • Eliminate 'sleep' calls and race conditions in async test suites.
    • Identify tests that fail only when run in parallel or specific orders.
    • terminal, browser, network automation included
    • Ready for Claude Code
    • Instant install

    Sample input

    Investigate why test_auth_flow is failing intermittently in the CI pipeline. Run a detection loop and provide a diagnosis.

    Sample output

    FLAKY TEST DETECTED: test_auth_flow Failure rate: 12% (6/50 runs) Root Cause: Race condition in async session store. Diagnosis: Fails under high load (-n auto) but passes in isolation. Recommended Fix: Replace time.sleep(2) with poll-based wait_for(condition).

    About This Skill

    What it does

    The Flaky Test Detector is a specialized diagnostic skill designed to stabilize your CI/CD pipeline by identifying and resolving non-deterministic test failures. It systematically hunts for the root causes of "intermittent" failures—tests that pass or fail without any code changes—across any language or framework including Python (pytest), JavaScript (Jest), Go, and Java (JUnit).

    Why use this skill

    Manually debugging flaky tests is a massive time sink. This skill automates the investigative heavy lifting: it runs stress tests with rerun loops, analyzes CI logs for environmental patterns, and scans your codebase for anti-patterns like hardcoded sleeps, shared mutable state, and unmocked external dependencies. It doesn't just find the flakiness; it provides standardized fixes and quarantine strategies to unblock your team immediately.

    Supported Features

    • Detection Loops: Automated execution of suspected tests (50+ runs) to calculate failure rates.
    • Isolation Testing: Detects shared state by running tests in isolation vs. parallel execution.
    • Pattern Scanning: Greps for problematic syntax like Math.random(), sleep(), or global fixtures.
    • Automatic Quarantining: Generates standard @skip or @mark.flaky wrappers and tracking registries.
    • CI Integration: Provides YAML configurations for GitHub Actions to detect and report flakes automatically.

    Use Cases

    • Eliminate 'sleep' calls and race conditions in async test suites.
    • Identify tests that fail only when run in parallel or specific orders.
    • Automate the quarantine of flaky tests to unblock the main merge pipeline.
    • Detect environment-specific failures caused by timezones or locale differences.

    Reviews

    No reviews yet - be the first to share your experience.

    Only users who have downloaded or purchased this skill can leave a review.

    Security Scanned

    Passed automated security review

    Permissions

    Terminal / Shell
    Browser
    Network Access

    Allowed Hosts

    api.example.com

    File Scopes

    flaky-test-detector/**

    Claude Code, Cursor, Aider, GitHub Copilot Workspace

    Creator

    Frequently Asked Questions

    More Premium Skills

    $5