# reproduce-regression

The reproduce-regression Claude Code skill reproduces a regression candidate on live systems before and after a change. It builds a PoC and compares both versions using the same input.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 671 installs · ★ 8341 repo stars
- Author: trailofbits
- License: CC-BY-SA-4.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/trailofbits/skills/tree/HEAD/plugins/regression-hunt/skills/reproduce-regression/SKILL.md
- Updated: 2026-10-24
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/reproduce-regression

## What it does

The skill deploys S0 and S1, traces the candidate to a real user or attacker entry point, and tests the reported regression. It follows the project guidance, regression standard, and evidence file requirements before working on the target.

It creates a portable PoC and runs it against both deployments with identical input and comparable configuration. The test uses live systems, not mocks, extracted functions, or simulations. `reproduce.json` records the setup, tool and dependency versions, commands, revisions, logs, observations, and false-positive checks.

Builds and deployments stay inside the attempt directory, and every build directory is listed in `build_dirs`. Temporary resources are released while evidence is kept in a sealed package. A finished experiment does not itself confirm a regression.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add trailofbits/skills --skill reproduce-regression -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/reproduce-regression/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/reproduce-regression/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add trailofbits/skills --skill reproduce-regression -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/reproduce-regression/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add trailofbits/skills --skill reproduce-regression -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/reproduce-regression/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install trailofbits/skills plugins/regression-hunt/skills/reproduce-regression
```

2. **Manually: put the files in place**
- File: `.github/skills/reproduce-regression/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add trailofbits/skills --skill reproduce-regression -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/trailofbits/skills --path plugins/regression-hunt/skills/reproduce-regression
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/reproduce-regression/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add trailofbits/skills --skill reproduce-regression -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/trailofbits/skills/tree/HEAD/plugins/regression-hunt/skills/reproduce-regression/SKILL.md

## When to use it
- compare system behavior before and after a change
- test a regression candidate through a real entry point
- create a repeatable PoC for two deployments
- record experiment conditions and check for false positives

## Example prompts
- Reproduce this regression candidate on S0 and S1 and save the results.
- Build a PoC for this regression against both live deployments using identical input.
- Check whether the reported failure reproduces and record it in `reproduce.json`.

## Similar
- [mantis-reproduce](https://affpapa.org/en/nevibecode/skills/mantis-reproduce.md) — skill · 1600 installs
- [reproduce-and-fix-issues](https://affpapa.org/en/nevibecode/skills/reproduce-and-fix-issues.md) — skill · 865 installs
- [gui-reproduce-bug-report-local](https://affpapa.org/en/nevibecode/skills/gui-reproduce-bug-report-local.md) — skill · ★ 720 repo stars
- [ai-regression-testing](https://affpapa.org/en/nevibecode/skills/ai-regression-testing.md) — skill · 6400 installs
- [visual-regression-testing](https://affpapa.org/en/nevibecode/skills/visual-regression-testing.md) — skill · 741 installs
- [regression-suite](https://affpapa.org/en/nevibecode/skills/regression-suite.md) — skill · 641 installs

From the same set: [trailofbits/skills](https://affpapa.org/en/nevibecode/by/trailofbits/skills.md) — 95 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
