Skip to content
Skill

Ci forensics

Diagnoses red, flaky or slow CI pipelines by failure class before any fix

Ci forensics is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
19
Last commit
License
MIT
Listing updated

Similar skills

About Ci forensics

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.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (10 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

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.

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Ci forensics 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.

More from rpraharaj/forward-deployed-engineer

  1. Defines and tests the boundaries on what an AI agent's tool calls can do

    • Open source
    • 19 GitHub stars
    • Security
  2. Gives agents a procedure to test AI workflows against cases, thresholds and regression

    • Open source
    • 19 GitHub stars
    • Developer tools
  3. Turns access requests into a tracked, parallel critical path with workarounds

    • Open source
    • 19 GitHub stars
    • Productivity
  4. Plans how end users move to a new workflow, with barriers, pilot, support and measures

    • Open source
    • 19 GitHub stars
    • Productivity
  5. Maps what a proposed code change could break before you make it

    • Open source
    • 19 GitHub stars
    • Developer tools
  6. Maps an organization's change approval process so releases can be planned backwards from

    • Open source
    • 19 GitHub stars
    • Productivity