Skip to main content
skill CX Codex

prove-patch — Claude Code skill: what it does, install

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.

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

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

What prove-patch does

The skill tests a security patch against the original baseline and the final patch commit, keeping the harness, inputs, and command consistent between both trees. Cases inside the declared scope should fail before the fix and pass after it; valid controls should pass on both sides. Raw output, exit status, timing, commands, and harness source go into receipts/.

It also checks the reverted tree: baseline must fail, the patch must pass, and a complete revert must fail again. Project checks are retained, then prove.json and a manifest are created and validated with uv run --no-project <script>. An uncommitted tree is not validated; setup errors, timeouts, missing markers, and ambiguous observations become evidence gaps.

What it helps with

  • verify a fix across baseline and patch commits
  • compare failing cases with a valid control
  • confirm behavior after a complete patch revert
  • retain raw test output and harness commands
  • create and validate the proof manifest

Example prompts for the agent

  • Check this local security patch against the baseline and patch commits, and keep every receipt in receipts/.
  • Run the three-arm proof: baseline should fail, the patch should pass, and the reverted tree should fail again.
  • Create prove.json, build the manifest, and validate it with uv run --no-project <script>.

How to install prove-patch

1Skills CLI (Vercel)

npx skills add trailofbits/skills --skill prove-patch -a claude-code

2Manually: put the files in place

~/.claude/skills/prove-patch/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/prove-patch/

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

Questions about prove-patch

How do I install prove-patch in Claude Code?

Run npx skills add trailofbits/skills --skill prove-patch -a claude-code, then use ~/.claude/skills/prove-patch/SKILL.md.

What does prove-patch do?

It checks a scoped security patch on the baseline and patched trees, runs relevant project checks, and stores raw evidence in receipts/. It also compares the original, patched, and fully reverted states.

How does prove-patch perform the three-arm check?

The baseline must fail, the patch must pass, and the fully reverted tree must fail again. The skill also checks build identity and that the reverted tree matches the original baseline tree.

Similar skills

All skills for Security →

From the same set95

The whole set →
reproduce-bug The reproduce-bug Claude Code skill checks whether a named compiler or runtime bug can be reproduced in a local repository. It runs against the project baseline before any edits. CX Codex +1 692installs validate-bug validate-bug — a skill for Claude Code that runs an independent rerun and judgment of a bug PoC package before patching. CX Codex +1 691installs regression-hunt regression-hunt — a skill for Claude Code that investigates regressions in PRs and commits. It coordinates error-hunting campaigns and resumes saved progress. CX Codex +1 685installs implement-patch implement-patch — a Claude Code skill for fixing confirmed bugs at the invariant level. Enforces variant searches, upfront regression tests, and isolated patch records. CX Codex +1 677installs 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 prepare-regression 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. CX Codex +1 670installs

Project sponsors

Companies that keep this analytics open