# Ci forensics

> Ci forensics is an open-source agent skill for developer tools. Diagnoses red, flaky or slow CI pipelines by failure class before any fix. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/rpraharaj/forward-deployed-engineer/tree/main/fde-operate/skills/ci-forensics
- **Repository:** https://github.com/rpraharaj/forward-deployed-engineer
- **GitHub stars:** 19
- **License:** MIT
- **Skill name:** ci-forensics
- **Collection:** https://github.com/rpraharaj/forward-deployed-engineer
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill guides an agent through triaging a failing, intermittently failing or slow CI pipeline. Before changing anything, it asks the agent to sort the problem into one of five classes: a genuine break, a flake, environment drift, an ordering dependency, or resource contention. Each class has a different signature and fix direction, and the workflow includes a check for whether the same commit both passes and fails.

The workflow reads build history for when failures started, their rate and whether they cluster, then compares local and CI environments across toolchain versions, environment variables, timezone and locale, resources, network access, test order and filesystem case sensitivity. For flakes it walks through common nondeterminism sources such as time, shared state, concurrency, external services, unseeded randomness and tight resource limits. It also separates temporary stopgaps like quarantines or retries from real fixes, and asks that any stopgap be recorded with an owner and removal date.

The skill expects read access to CI logs and build history, plus a working local build to compare against. It writes a dated forensics note to the engagement workspace summarising failure classes, root causes, stopgaps and the verification impact on release evidence.

## When your agent uses it

> Diagnose a red, flaky, or slow pipeline by identifying the failure class first - genuine break, flake, environment drift, ordering dependency, or resource contention - before attempting fixes, and distinguishing making it green from making it right. Use when the build is failing, when tests pass locally but not in CI, when a suite is intermittently red, when the pipeline is too slow to be useful, or when someone says "just re-run it". A pipeline nobody trusts provides no signal, which is worse than having no pipeline.

## What it can access

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

- [Instructions only, no scripts](https://github.com/rpraharaj/forward-deployed-engineer/tree/HEAD/fde-operate/skills/ci-forensics)
- [License: MIT](https://github.com/rpraharaj/forward-deployed-engineer/tree/HEAD/fde-operate/skills/ci-forensics)

## Features

- **Failure class triage:** Sorts a red build into genuine break, flake, environment drift, ordering dependency or resource contention before any fix.
- **Build history analysis:** Looks at when failures began, their rate, clustering across tests and correlation with time or agent identity.
- **Local versus CI comparison:** Checks toolchain versions, environment variables, locale, resources, network access and clean-checkout differences.
- **Flake root-cause checklist:** Works through time, order, concurrency, external dependencies, randomness and resource limits as nondeterminism sources.
- **Stopgap tracking:** Distinguishes making the build green from making it right and requires owners and dates for quarantines.
- **Forensics note output:** Writes a structured CI notes file covering pass rate, failure classes, root causes and verification impact.

## Good for

- Diagnose why tests pass locally but fail in the CI pipeline
- Figure out why a test suite is intermittently red
- Investigate a pipeline that takes too long for developers to wait on
- Decide whether a failing build is a real regression or a flake
- Review quarantined tests and plan their removal

## Install

### Claude Code

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

```sh
/plugin marketplace add rpraharaj/forward-deployed-engineer
/plugin install fde-operate@fde-skills
```

Or copy only this skill to `~/.claude/skills/ci-forensics`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/rpraharaj/forward-deployed-engineer.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/ci-forensics &&
cp -R "$tmp/fde-operate/skills/ci-forensics" ~/.claude/skills/ci-forensics &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/ci-forensics` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/ci-forensics` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/rpraharaj/forward-deployed-engineer.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/ci-forensics &&
cp -R "$tmp/fde-operate/skills/ci-forensics" ~/.agents/skills/ci-forensics &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/ci-forensics` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/ci-forensics` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/rpraharaj/forward-deployed-engineer.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/ci-forensics &&
cp -R "$tmp/fde-operate/skills/ci-forensics" ~/.cursor/skills/ci-forensics &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/ci-forensics` 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/rpraharaj/forward-deployed-engineer.git --path fde-operate/skills/ci-forensics
```

Or copy the folder to `~/.gemini/skills/ci-forensics` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/ci-forensics`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/rpraharaj/forward-deployed-engineer.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/ci-forensics &&
cp -R "$tmp/fde-operate/skills/ci-forensics" ~/.copilot/skills/ci-forensics &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/ci-forensics` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/rpraharaj/forward-deployed-engineer.git
```

Then copy `forward-deployed-engineer/fde-operate/skills/ci-forensics` into your agent's skills folder as `ci-forensics`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Ci forensics apply?

When the build is failing without an obvious cause, tests pass locally but fail in CI, a suite is intermittently red, the pipeline is too slow to be useful, or the team has started relying on re-running builds.

### What does Ci forensics need to work?

A working local build to compare against CI, plus access to CI logs and build history, which the skill treats as the primary evidence.

### Does Ci forensics add blanket retries to fix flaky tests?

No. The skill explicitly warns against blanket retries and asks that any temporary quarantine or retry be recorded with an owner and a removal date.

### Where does its output go?

It writes a CI notes file into the engagement workspace, with failure classes, root causes, stopgaps and verification impact.

### How do I install Ci forensics in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/ci-forensics to use it in all your projects, or to .claude/skills/ci-forensics in one project. Or install the fde-operate plugin, which includes it: /plugin marketplace add rpraharaj/forward-deployed-engineer, then /plugin install fde-operate@fde-skills.

### Does Ci forensics 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 Ci forensics?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Ci forensics?

The closest alternatives to Ci forensics are Ci, Diagnose ci gate, Rea ci tests audit, Ci cd and Fix ci.

## Where this comes from

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

## Alternatives

- [Ci](https://ai-powered.com/skills/ci-chachamaru127): Ci is an open-source agent skill for developer tools.
- [Diagnose ci gate](https://ai-powered.com/skills/diagnose-ci-gate): Diagnose ci gate is an open-source agent skill for developer tools.
- [Rea ci tests audit](https://ai-powered.com/skills/rea-ci-tests-audit): Rea ci tests audit is an open-source agent skill for developer tools.
- [Ci cd](https://ai-powered.com/skills/ci-cd): Ci cd is an open-source agent skill for developer tools.
- [Fix ci](https://ai-powered.com/skills/fix-ci): Fix ci is an open-source agent skill for developer tools.
- [Observability gap](https://ai-powered.com/skills/observability-gap): Observability gap 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.
- [Incident triage](https://ai-powered.com/skills/incident-triage-rpraharaj): Incident triage is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/ci-forensics
