flake-triage

Investigate intermittent test failures and classify them as test, environment, or product defects.

3|2|Updated Aug 24, 2026
One-click install
npx skills add https://github.com/hero-engine/hero --skill flake-triage-hero-engine
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: flake-triage
Source: https://github.com/hero-engine/hero/tree/main/domains/qa/skills/flake-triage
Command: npx skills add https://github.com/hero-engine/hero --skill flake-triage-hero-engine

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Intermittent test failures erode trust in CI pipelines and waste engineering time when teams retry blindly instead of diagnosing root causes. This Skill provides a structured method to investigate flaky failures and route them to the right fix. ## Core Features & Use Cases - Failure Signature Collection: Gathers frequency, first and last occurrence, environments, timing, data, retries, and recent changes to build a complete picture of the failure. - Root Cause Classification: Classifies the primary cause as a faulty test, unstable environment, or product defect, with a stated confidence level. - Disciplined Quarantine: Permits quarantining a test only with visible lost coverage, an assigned owner, a deadline, and an exit condition. - Use Case: A CI job fails roughly once in ten runs on the payment suite. Use this Skill to collect the failure signature, reproduce it under controlled conditions, and determine whether the test, the environment, or the product code is at fault. ## Quick Start Triage the intermittent failure in the checkout test suite and classify whether it is a test, environment, or product issue.

Frequently Asked Questions about flake-triage

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

FAQPage Schema
How do I triage a flaky test in CI?▼

Flaky test triage starts by collecting the failure signature: frequency, first and last occurrence, environments, timing, data, retries, and recent changes. Reproduce the failure under controlled conditions when practical, then classify the primary cause as a faulty test, unstable environment, or product defect with a stated confidence level.

How to tell if a test failure is a product bug or a bad test?▼

Compare the failure pattern against controlled reproduction runs and recent changes. If the failure reproduces only under specific timing or environment conditions, suspect the test or environment; if it reproduces consistently against real behavior, classify it as a product defect and state your confidence.

When should I quarantine a flaky test?▼

Quarantine only when you can show the lost coverage visibly, assign an owner, set a deadline, and define an exit condition. Quarantine without these controls hides risk rather than managing it.

Why is retrying a failing test not a fix?▼

Repeated retries are evidence about the failure, not a resolution. Retries mask the underlying instability, inflate pipeline pass rates, and delay diagnosis of whether the test, environment, or product is actually at fault.

What information should I collect before investigating an intermittent failure?▼

Collect the failure signature, frequency, first and last occurrence, affected environments, timing patterns, input data, retry behavior, and recent code or infrastructure changes. This context determines whether controlled reproduction is practical and guides root cause classification.