Use when pinning before/after sources and collecting PR or commit context for a regression investigation.
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 instructionsInstall 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
- 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. - 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. - Run snapshot.py via
uv run --no-projectwith
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. - Write and seal
prepare.jsonwith 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:
completeorblocked, matching the record. - Record: sealed
prepare.jsonpath, 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- Variant AnalysisHunts for the other instances of a bug already found — the variants of one root cause across a codebase. Use…
- Modern CppGuides C++ code toward modern idioms (C++20/23/26). Use when writing new C++ code, modernizing legacy patterns, or…
- Graph EvolutionCompares Trailmark code graphs at two source code snapshots (git commits, tags, or directories) to surface…
- Firebase Apk ScannerScans Android APKs for Firebase security misconfigurations including open databases, storage buckets, authentication…
- codeqlScans a codebase for security vulnerabilities using CodeQL's interprocedural data flow and taint tracking analysis.…
- Dimensional AnalysisAudits code for unit and decimal-scaling bugs and annotates it with dimensional comments recording the units of each…
Security
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.
[](https://skills-hub.ai/skills/trail-of-bits-prepare-regression)<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.