Skip to content
Skillpedia
Security8.0k · #12696

hunt-regressions

What it does

This skill has the agent read a frozen code change, trace how it affects other code, and list possible regressions. It is for security researchers checking whether a change broke earlier behavior.

When to use it

  • ✓When you want to find possible bugs introduced by a pull request or commit.
  • ✓When you have a list of code changes and need a first pass of suspect spots.
  • ✓When you need a written list of leads with notes on what still has to be proven.

Skill link

https://github.com/trailofbits/skills/blob/main/plugins/regression-hunt/skills/hunt-regressions/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/trailofbits/skills/blob/main/plugins/regression-hunt/skills/hunt-regressions/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“I want you to review this pull request and tell me which changes could have broken behavior that worked before.”

5 new skills a week. 1 minute to read.

How it works

The agent reads the full change, follows the changed code through the places that call it, and writes down each possible problem with the reasons for and against it. Proof comes later in a separate step.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Discover candidates

When to Use

Input: sealed preparation, frozen S0/S1, change context and registry assignment. On retry, include this assignment's prior candidate-ID mapping. The caller supplies these, including for independent use. Follow project guidance before target work.

When NOT to Use

Proving a known candidate; use reproduction. Discovery cannot confirm findings.

Hunt

  1. Read the standard and file contract. Verify preparation; read frozen change messages, PR discussion and security documentation for intent and supported use.
  2. Review the entire diff; trace changed behavior through callers to real interfaces. Use frozen sources and supplied context, not later fixes, advisories or other reviews.
  3. Record each lead's changed code, previously supported behavior, reachable trigger, proposed new defect, false-positive checks and required proof. Retain supplied leads suggesting old bugs or incomplete fixes for adjudication. Leave PoC construction to reproduction.
  4. Reserve each lead's ID through registry.py candidate using its stable hypothesis key and assigned agent handle. Reuse the key on retry. Write candidate files and hunt.json with IDs, file mappings, coverage and limitations. An empty list is valid. If blocked, record partial coverage and uninspected areas. Seal the package.

Report Back

Keep detailed evidence in the sealed package. Return only:

  • Status: complete or blocked, matching the record.
  • Record: sealed hunt.json path, or why none was produced.
  • Result: candidate count and material coverage gaps.
  • Blocker: missing prerequisite or required caller action, if blocked.

Rationalizations to Reject

  • “A helper fails on invented input”: show a supported interface that reaches it.
FAQ

Does this skill prove that a regression exists?

No. It only finds candidates. Another step is needed to build and run a test that confirms each one.

What should I give the agent to start?

A fixed version of the code change, its earlier version, and any notes on what the change was meant to do.

Can it review a change that is still open?

The change needs to be pinned to exact versions first, so the review looks at a fixed snapshot.

Details

Original description by the author

Use when discovering possible regressions from a pinned change and its callers before reproduction.

repo: trailofbits/skills

Popularity

GitHub stars
8.0k
Ranking position
#12696
License
CC-BY-SA-4.0
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills