Flaky Test Analyzer

Analyze test code and failure patterns to categorize flaky test root causes.

9|1|Updated Mar 15, 2026
One-click install
npx skills add https://github.com/Notysoty/openagentskills --skill flaky-test-analyzer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Flaky Test Analyzer
Source: https://github.com/Notysoty/openagentskills/tree/main/skills/flaky-test-analyzer
Command: npx skills add https://github.com/Notysoty/openagentskills --skill flaky-test-analyzer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Flaky Test Analyzer helps you identify why tests pass inconsistently and provides concrete, actionable fixes to make your test suite deterministic.

Core Features & Use Cases

  • Analyzes test code, test setup, and failure patterns to categorize flakiness (timing, shared state, ordering, external dependencies, randomness) and suggest targeted remedies.
  • Produces step-by-step recovery plans and guardrails to reduce CI failures and improve reliability across environments.
  • Works across common test frameworks (e.g., Jest, Vitest) and supports both local development and CI pipelines.

Quick Start

Paste the flaky test code and failure details to receive a diagnostic and recommended fixes.

Frequently Asked Questions about Flaky Test Analyzer

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

FAQPage Schema
Why do my Jest and Vitest tests pass locally but fail in CI pipelines?

Flaky tests in CI pipelines often stem from timing issues, shared state, or external dependencies. Analyzing your test code and failure patterns helps categorize this flakiness and identifies targeted remedies to make your test suite deterministic.

How do I diagnose the root cause of intermittent test failures?

To diagnose intermittent test failures, you analyze the flaky test code, the code under test, and recent failure patterns. This process isolates specific root causes like improper async handling, shared state leakage, or non-deterministic test data.

What is the best way to fix flaky tests caused by timing and shared state?

The best way to fix flaky tests caused by timing and shared state is to implement concrete guardrails like proper async handling and isolated test state. Step-by-step recovery plans ensure your test suite remains reliable across both local development and CI environments.

Can I use this to analyze flakiness across different test frameworks?

Yes, you can analyze flakiness across different test frameworks. The process works with common frameworks like Jest and Vitest, supporting both local development environments and CI pipelines to help teams reproduce and fix intermittent failures.

How do I get a diagnostic and recommended fixes for a flaky test?

To get a diagnostic and recommended fixes for a flaky test, simply paste the flaky test code and its failure details. The analyzer evaluates the inputs to produce actionable remedies, including mocking external calls and ensuring deterministic test data.

What are the limitations of analyzing flaky tests without proper test isolation?

Without proper test isolation, analyzing flaky tests remains limited because shared state and ordering issues obscure the true root cause. Enforcing isolated test state and deterministic test data is required to accurately reproduce failures and apply effective guardrails.