Skip to main content

Build

Prepare Regression

Trail of BitsOfficialCertified

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

  • New
  • v1.0.0
  • Reviewed Oct 21
  • No reviews yet

Capabilities

  • When NOT to Use

    The same inputs have a verified preparation record; reuse it

  • Prepare

    PRs; merge first parent to merge commit, squash parent to squash, or the complete

  • Report Back

    Keep detailed evidence in the sealed package

Getting started

Full instructions

Install the skill, then ask your AI tool for the task in plain words. The full SKILL.md below shows what it covers.

Instructions: SKILL.mdv1.0.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.

Explore more skills

Browse all
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Signing

SignedSLSA L2
Signed by
skills-hub.ai distributor
Method
Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
Key
skills-hub-ed25519-2026-11
Signed

Reviews (0)

More from Trail of Bits

View source →

Frequently asked questions about prepare-regression

What does the prepare-regression skill do?

Use when pinning before/after sources and collecting PR or commit context for a regression investigation. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the prepare-regression skill?

Run `npx @skills-hub-ai/cli install trail-of-bits-prepare-regression` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/trail-of-bits-prepare-regression/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does prepare-regression work with?

prepare-regression runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the prepare-regression skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use prepare-regression after installing it?

In Claude Code, type `/trail-of-bits-prepare-regression` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the prepare-regression skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.

Badge for your README

Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.

Install on Skills Hub badge preview
Markdown
[![Install on Skills Hub](https://skills-hub.ai/api/badges/skill/trail-of-bits-prepare-regression)](https://skills-hub.ai/skills/trail-of-bits-prepare-regression)
HTML
<a href="https://skills-hub.ai/skills/trail-of-bits-prepare-regression"><img src="https://skills-hub.ai/api/badges/skill/trail-of-bits-prepare-regression" alt="Install on Skills Hub"></a>

More options in the badge docs.