Software DevelopmentOfficial · trailofbits

Prepare Regression skill for Claude

Use when pinning before/after sources and collecting PR or commit context for a regression investigation.

Prepare Regression SKILL.md

The full skill file from trailofbits/skills (CC-BY-SA-4.0).

Prepare a change

When to Use

Input: PR URL or repository plus commit/range, and registry assignment. Follow project guidance after resolving the target commit.

When NOT to Use

The same inputs have a verified preparation record; reuse it.

Prepare

  1. Read the standard and file contract. Pin the complete change as S0/S1: commit parent or explicit range baseline; merge base to frozen head for unmerged PRs; merge first parent to merge commit, squash parent to squash, or the complete rebased series for merged PRs. Ambiguous ranges and missing root baselines block preparation.
  2. Freeze commit titles/messages or PR title, body, discussion, reviews and inline comments with URLs and collection time. Paginate APIs; record limits and lifecycle. Locate security/threat-model documents in both states; record paths or search limitations.
  3. Run snapshot.py via uv run --no-project with repository, S0, S1 and a new directory, or equivalent Git commands for special source needs. Preserve dependency/submodule/LFS revisions. Exclude later history; keep exports pristine and build in separate copies.
  4. Write and seal prepare.json with boundary explanations, frozen context and source artifacts. If blocked, preserve collected evidence and name the prerequisite.

Report Back

Keep detailed evidence in the sealed package. Return only:

  • Status: complete or blocked, matching the record.
  • Record: sealed prepare.json path, or why none was produced.
  • Result: selected S0/S1 and material collection limitations.
  • Blocker: missing prerequisite or required caller action, if blocked.

Rationalizations to Reject

  • “The PR is merged”: that does not identify the complete change boundary.

How to install Prepare Regression

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit trailofbits/skills/plugins/regression-hunt/skills/prepare-regression#main ~/.claude/skills/prepare-regression

Codex

npx degit trailofbits/skills/plugins/regression-hunt/skills/prepare-regression#main ~/.codex/skills/prepare-regression

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the Prepare Regression skill do?

Use when pinning before/after sources and collecting PR or commit context for a regression investigation.

+How do I install Prepare Regression in Claude Code?

Copy the skill folder into ~/.claude/skills/prepare-regression, for example with "npx degit trailofbits/skills/plugins/regression-hunt/skills/prepare-regression#main ~/.claude/skills/prepare-regression". Claude Code loads it automatically and uses it when a task matches.

+Does Prepare Regression work with ChatGPT or Codex?

Yes. Prepare Regression uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/prepare-regression. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Prepare Regression free?

Prepare Regression is published on GitHub by trailofbits under the CC-BY-SA-4.0 license, which allows free use.

Related software development skills

  1. Code Review

    Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards (does the code follow this repo's…

    mattpocock/skills★ 327k
  2. Using Agent Skills

    Discovers and invokes agent skills. Use when starting a session, or when you need to decide which skill or workflow applies to the piece of…

    addyosmani/agent-skills★ 119k
  3. Build

    Fully automate a coding task with make-plan, do, and babysit.

    thedotmack/claude-mem★ 118k
  4. Prove Patch

    Official

    Use when a local security patch commit needs independent scoped and three-arm proof.

    trailofbits/skills★ 8.3k
  5. Regression Hunt

    Official

    Use when investigating regressions in PRs or commits, coordinating a regression campaign, or resuming saved progress.

    trailofbits/skills★ 8.3k
  6. Report Regressions

    Official

    Use when assembling or refreshing an evidence-linked regression report from saved campaign decisions.

    trailofbits/skills★ 8.3k
  7. Reproduce Bug

    Official

    Use when a named runtime or compiler bug in a local repository needs independent reproduction.

    trailofbits/skills★ 8.3k
  8. Rust Review

    Official

    Performs comprehensive Rust security review for safe/unsafe boundary issues, memory safety in unsafe blocks, concurrency hazards,…

    trailofbits/skills★ 8.3k
  9. Second Opinion

    Official

    Gets independent code reviews from Codex or Antigravity for uncommitted changes, branch diffs, and commits.

    trailofbits/skills★ 8.3k

See all software development skills →

More skills from trailofbits

  1. Property Based Testing

    Official

    Writes, reviews, and debugs property-based tests — Hypothesis, fast-check, proptest, jqwik, rapid, and Echidna or Medusa for Solidity…

    trailofbits/skills★ 8.3k

All skills by trailofbits →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.