# Post patch validation

> Post patch validation is an open-source agent skill. Validates security patches with reproducible baseline-versus-patched evidence, including original exploits, root-cause variants, behavior pr. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/trailofbits/skills/tree/main/plugins/post-patch-validation/skills/post-patch-validation
- **Repository:** https://github.com/trailofbits/skills
- **GitHub stars:** 8,243
- **License:** CC-BY-SA-4.0
- **Skill name:** post-patch-validation
- **Collection:** https://github.com/trailofbits/skills
- **Listing updated:** 2026-11-17

## About

Validates security patches with reproducible baseline-versus-patched evidence, including original exploits, root-cause variants, behavior preservation, regressions, and newly introduced security failures. Use after a patch exists and before accepting, merging, or reporting it as fixed; also use when an AI-generated patch, remediation commit, pull request, or proposed upstream fix needs adversarial post-patch validation across any language.

## When your agent uses it

> Validates security patches with reproducible baseline-versus-patched evidence, including original exploits, root-cause variants, behavior preservation, regressions, and newly introduced security failures. Use after a patch exists and before accepting, merging, or reporting it as fixed; also use when an AI-generated patch, remediation commit, pull request, or proposed upstream fix needs adversarial post-patch validation across any language.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs Python scripts](https://github.com/trailofbits/skills/tree/HEAD/plugins/post-patch-validation/skills/post-patch-validation)
- [Asks for: Read, Write, Edit, Grep, Glob, Bash, Workflow](https://github.com/trailofbits/skills/blob/HEAD/plugins/post-patch-validation/skills/post-patch-validation/SKILL.md)
- [No network calls found in its scripts](https://github.com/trailofbits/skills/tree/HEAD/plugins/post-patch-validation/skills/post-patch-validation)
- [License: CC-BY-SA-4.0](https://github.com/trailofbits/skills/tree/HEAD/plugins/post-patch-validation/skills/post-patch-validation)

## Install

### Claude Code

This skill ships in the `post-patch-validation` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add trailofbits/skills
/plugin install post-patch-validation@trailofbits
```

Or copy only this skill to `~/.claude/skills/post-patch-validation`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/trailofbits/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/post-patch-validation &&
cp -R "$tmp/plugins/post-patch-validation/skills/post-patch-validation" ~/.claude/skills/post-patch-validation &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/post-patch-validation` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/post-patch-validation` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/trailofbits/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/post-patch-validation &&
cp -R "$tmp/plugins/post-patch-validation/skills/post-patch-validation" ~/.agents/skills/post-patch-validation &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/post-patch-validation` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/post-patch-validation` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/trailofbits/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/post-patch-validation &&
cp -R "$tmp/plugins/post-patch-validation/skills/post-patch-validation" ~/.cursor/skills/post-patch-validation &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/post-patch-validation` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/trailofbits/skills.git --path plugins/post-patch-validation/skills/post-patch-validation
```

Or copy the folder to `~/.gemini/skills/post-patch-validation` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/post-patch-validation`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/trailofbits/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/post-patch-validation &&
cp -R "$tmp/plugins/post-patch-validation/skills/post-patch-validation" ~/.copilot/skills/post-patch-validation &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/post-patch-validation` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/trailofbits/skills.git
```

Then copy `skills/plugins/post-patch-validation/skills/post-patch-validation` into your agent's skills folder as `post-patch-validation`. Agents that support SKILL.md read one folder per skill.

## FAQ

### How do I install Post patch validation in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/post-patch-validation to use it in all your projects, or to .claude/skills/post-patch-validation in one project. Or install the post-patch-validation plugin, which includes it: /plugin marketplace add trailofbits/skills, then /plugin install post-patch-validation@trailofbits.

### Does Post patch validation run scripts?

Yes. It runs Python scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Post patch validation?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

---
Source: https://ai-powered.com/skills/post-patch-validation
