flaky-test-diagnosis

Diagnose flaky tests by analyzing failure patterns and root causes.

Updated Mar 22, 2026
One-click install
npx skills add https://github.com/Burburton/amazing_agent_specialist --skill flaky-test-diagnosis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: flaky-test-diagnosis
Source: https://github.com/Burburton/amazing_agent_specialist/tree/main/.opencode/skills/tester/flaky-test-diagnosis
Command: npx skills add https://github.com/Burburton/amazing_agent_specialist --skill flaky-test-diagnosis

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Diagnoses and fixes flaky tests to ensure CI/CD results are trustworthy and repeatable.

Core Features & Use Cases

  • Systematic flaky test diagnosis workflow that identifies failure patterns
  • Root-cause classification across timing, state leakage, resource contention, order dependency, and external dependencies
  • Quarantine and verification guidance to stabilize test suites and prevent regressions

Quick Start

Begin by running the flaky test multiple times to confirm flakiness and then follow the diagnosis workflow to identify root causes.

Frequently Asked Questions about flaky-test-diagnosis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find the root cause of a flaky test in my CI/CD pipeline?

To find the root cause of a flaky test, run the test multiple times to confirm flakiness, then analyze failure patterns to classify the issue across timing, state leakage, resource contention, order dependency, or external dependencies. This isolates the exact trigger for remediation.

What are the common types of flaky tests I need to look for?

Common types of flaky tests include failures caused by timing issues, test state leakage, resource contention, order dependency, and external dependencies. Identifying which of these patterns is causing the failure is the first step in systematic diagnosis and stabilization.

What is the best way to isolate flaky tests without breaking my test suite?

The best way to isolate flaky tests without breaking your suite is to follow a quarantine and verification workflow. This approach stabilizes the overall test suite by removing the unstable tests, allowing you to fix the root cause and prevent future regressions safely.

How do I verify a fix actually resolved a flaky test?

To verify a fix resolved a flaky test, perform post-fix validation through repeated test runs. Running the test suite multiple times after applying the remediation ensures the failure pattern is gone and CI/CD reliability is restored.

Why does my test pass locally but fail in CI/CD due to order dependency?

Order dependency causes tests to pass locally but fail in CI/CD when tests rely on execution sequence or shared state from previous runs. Diagnosing this failure pattern helps isolate the state leakage and document the root cause for remediation.