# Vibe flake root cause

> Vibe flake root cause is an open-source agent skill for developer tools. Turns intermittent test and deploy failures into reproducible, measured root causes. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/ash1794/vibe-engineering/tree/master/plugins/vibe-engineering/skills/vibe-flake-root-cause
- **Repository:** https://github.com/ash1794/vibe-engineering
- **GitHub stars:** 163
- **License:** MIT
- **Skill name:** vibe-flake-root-cause
- **Collection:** https://github.com/ash1794/vibe-engineering
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill guides an agent through investigating a failure that comes and goes, such as a test that passes on rerun, a timing threshold that trips on some runs, or a CI-only deploy failure. It insists on a stated cause rather than the label "flaky": the agent records the exact failure, runs the check in isolation, and lists candidate variables like network latency, CPU load, shared ports, data ordering or server mode.

The workflow has the agent force each candidate variable in turn and measure how often the failure occurs under each condition, so a root cause is only claimed once a reproduction rate exists. After the fix, the forced condition is rerun a set number of times and the new rate is reported. Any retry, quarantine or clip has to be disclosed with a reason why it does not hide a defect.

The skill expects a project with a test, performance check or deploy step that can be rerun, and it asks the agent to log machine load alongside timing measurements. It ships as a single markdown file with no bundled scripts, and it defers to other skills for race conditions in test code and for checking rationalized threshold changes.

## When your agent uses it

> Refuses "flaky" as a diagnosis. Turns an intermittent failure into a reproduction by isolating it from the environment, naming the variable that controls it, forcing that variable, and measuring before and after with enough runs to count. Separates real defects from environment contention with evidence, and never retries to green or widens a threshold. Use when a test, performance check, or deploy step fails intermittently or passes on rerun.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/ash1794/vibe-engineering/tree/HEAD/plugins/vibe-engineering/skills/vibe-flake-root-cause)
- [License: MIT](https://github.com/ash1794/vibe-engineering/tree/HEAD/plugins/vibe-engineering/skills/vibe-flake-root-cause)

## Features

- **Refuses vague flaky diagnoses:** Requires the agent to name a controlling variable instead of ending the investigation with the word flaky.
- **Variable isolation and forcing:** Guides the agent through isolating the failure from the environment and forcing candidate variables one at a time.
- **Measured reproduction rates:** Asks for failure rates over a stated number of runs before and after any change.
- **Contention versus real defects:** Helps separate environment contention such as CPU, ports or shared databases from genuine code defects.
- **Disclosed mitigations only:** Requires any retry, clip or quarantine to be disclosed with reasons, and forbids widening thresholds to pass.
- **Structured investigation report:** Provides an output template with symptom, isolated-run result, variable table, root cause and after-fix counts.

## Good for

- Find out why a test passes on rerun but fails in CI
- Investigate a performance check that fails on some runs
- Diagnose an intermittent deploy step failure
- Determine whether a timeout failure comes from CPU contention or a real defect
- Measure whether a fix actually removed an intermittent failure across many runs

## Install

### Claude Code

This skill ships in the `vibe-engineering` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add ash1794/vibe-engineering
/plugin install vibe-engineering@vibe-plugins
```

Or copy only this skill to `~/.claude/skills/vibe-flake-root-cause`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ash1794/vibe-engineering.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/vibe-flake-root-cause &&
cp -R "$tmp/plugins/vibe-engineering/skills/vibe-flake-root-cause" ~/.claude/skills/vibe-flake-root-cause &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/vibe-flake-root-cause` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/vibe-flake-root-cause` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ash1794/vibe-engineering.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/vibe-flake-root-cause &&
cp -R "$tmp/plugins/vibe-engineering/skills/vibe-flake-root-cause" ~/.agents/skills/vibe-flake-root-cause &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/vibe-flake-root-cause` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/vibe-flake-root-cause` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ash1794/vibe-engineering.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/vibe-flake-root-cause &&
cp -R "$tmp/plugins/vibe-engineering/skills/vibe-flake-root-cause" ~/.cursor/skills/vibe-flake-root-cause &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/vibe-flake-root-cause` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/ash1794/vibe-engineering.git --path plugins/vibe-engineering/skills/vibe-flake-root-cause
```

Or copy the folder to `~/.gemini/skills/vibe-flake-root-cause` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/vibe-flake-root-cause`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ash1794/vibe-engineering.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/vibe-flake-root-cause &&
cp -R "$tmp/plugins/vibe-engineering/skills/vibe-flake-root-cause" ~/.copilot/skills/vibe-flake-root-cause &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/vibe-flake-root-cause` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ash1794/vibe-engineering.git
```

Then copy `vibe-engineering/plugins/vibe-engineering/skills/vibe-flake-root-cause` into your agent's skills folder as `vibe-flake-root-cause`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When should I not use Vibe flake root cause?

Not when the failure reproduces every time, since you should debug it directly. It also points race conditions in test code to a separate concurrency skill, and says a single re-run is fine when the job died before any test ran.

### What does the skill ask the agent to produce?

A flake investigation report with the symptom, the result of an isolated run, load at failure, a table of forced variables with failure rates, the root cause, the fix with its after-fix rate, and any mitigations disclosed.

### Does Vibe flake root cause change thresholds or add retries?

No. It says never to retry to green or widen a threshold or budget to pass, and any clip, retry or quarantine has to be disclosed with a reason.

### What tools does Vibe flake root cause need?

The skill does not set an allowed-tools list and includes no scripts. It is a single SKILL.md file for Claude Code plugin marketplaces.

### How do I install Vibe flake root cause in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/vibe-flake-root-cause to use it in all your projects, or to .claude/skills/vibe-flake-root-cause in one project. Or install the vibe-engineering plugin, which includes it: /plugin marketplace add ash1794/vibe-engineering, then /plugin install vibe-engineering@vibe-plugins.

### Does Vibe flake root cause run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Vibe flake root cause?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Vibe flake root cause?

The closest alternatives to Vibe flake root cause are Vibe anti rationalization check, Ci, Debug, Ci forensics and Axiom analyze test failures.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Vibe anti rationalization check](https://ai-powered.com/skills/vibe-anti-rationalization-check): Vibe anti rationalization check is an open-source agent skill for developer tools.
- [Ci](https://ai-powered.com/skills/ci-chachamaru127): Ci is an open-source agent skill for developer tools.
- [Debug](https://ai-powered.com/skills/debug-jasgujral): Debug is an open-source agent skill for developer tools.
- [Ci forensics](https://ai-powered.com/skills/ci-forensics): Ci forensics is an open-source agent skill for developer tools.
- [Axiom analyze test failures](https://ai-powered.com/skills/axiom-analyze-test-failures): Axiom analyze test failures is an open-source agent skill for developer tools.
- [Principle fix root causes](https://ai-powered.com/skills/principle-fix-root-causes): Principle fix root causes is an open-source agent skill for developer tools.
- [Agent introspection debugging](https://ai-powered.com/skills/agent-introspection-debugging): Agent introspection debugging is an open-source agent skill for developer tools.
- [Debug hypothesis](https://ai-powered.com/skills/debug-hypothesis): Debug hypothesis is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/vibe-flake-root-cause
