Skip to main content
skill CX Codex

prepare-regression — Claude Code skill for regression prep

prepare-regression — a skill for Claude Code that pins source revisions and gathers commit or PR context for a regression investigation. It runs during investigation setup.

CC-BY-SA-4.0 670 installs ★ 8,341 updated 2026-10-24

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add trailofbits/skills --skill prepare-regression -a claude-code
Open on GitHub

What prepare-regression does

The skill records the change boundaries and gathers material for a regression investigation. It takes a PR plus a registry assignment, or a repository with a commit or range. For an open PR, it uses the merge base and frozen head; for a merged PR, the boundary depends on how it was merged. An unclear range or missing baseline blocks preparation.

It preserves PR titles and discussion, reviews, inline comments, or commit messages, with URLs and collection times. It runs snapshot.py through uv run --no-project, or uses Git commands for special source needs. Dependency, submodule, and LFS revisions are retained; builds use separate copies. The sealed package contains prepare.json and source artifacts. It requires uv and Git, along with a PR or a repository and commit range, plus a registry assignment.

What it helps with

  • pin the full change boundary for a regression investigation
  • collect PR discussion, reviews, and inline comments
  • preserve source and dependency revisions for comparison
  • record evidence and blockers in prepare.json

Example prompts for the agent

  • Prepare the evidence for a regression investigation from this PR and registry assignment.
  • Gather regression context for this repository and commit range.
  • Pin the source revisions and create the prepare.json package.

How to install prepare-regression

1Skills CLI (Vercel)

npx skills add trailofbits/skills --skill prepare-regression -a claude-code

2Manually: put the files in place

~/.claude/skills/prepare-regression/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/prepare-regression/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about prepare-regression

How do I install prepare-regression in Claude Code?

Run npx skills add trailofbits/skills --skill prepare-regression -a claude-code. The skill file is at ~/.claude/skills/prepare-regression/SKILL.md.

What does prepare-regression do?

It establishes the change boundaries, collects PR or commit context, and stores source artifacts with a sealed prepare.json.

What does prepare-regression need to run?

It needs uv and Git, plus a PR and registry assignment, or a repository with a commit or range and registry assignment.

Similar skills

All skills for Testing and QA →

From the same set95

The whole set →
prove-patch prove-patch — a skill for Claude Code validates a local security patch with scoped cases and a three-arm comparison. It runs when a patch commit needs independent proof. CX Codex +1 676installs hunt-regressions hunt-regressions — a skill for Claude Code that discovers potential regressions before reproduction. Runs when analyzing code changes and their callers. CX Codex +1 675installs 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. CX Codex +1 671installs report-regressions report-regressions — a skill for Claude Code builds regression reports from saved campaign decisions and links findings to evidence. It runs when a campaign report is created or refreshed. CX Codex +1 670installs adjudicate-regression adjudicate-regression — a skill for Claude Code and Codex that reviews reproduction evidence to confirm whether a flaw is a true regression or an exclusion. It evaluates live artifacts before logging issues. CX Codex +1 669installs replay-regression The replay-regression Claude Code skill independently tests a supplied PoC against fresh builds from before and after a change. It runs the same input on S0 and S1, then records what happened. CX Codex +1 668installs cvss-scoring The cvss-scoring Claude Code skill turns a vulnerability description into a CVSS v4.0 vector. It activates for requests to score a finding or estimate its severity. CX Codex +1 304installs taint-trace The taint-trace Claude Code skill adjusts a project's static taint-analysis models, then runs its analyzer. It addresses missed data paths, unresolved framework calls, and false positives caused by imprecise models. CX Codex +1 130installs

Project sponsors

Companies that keep this analytics open