reviewing-security
Installation
SKILL.md
Security Review
Target
- The request names the diff: a PR number or URL, a branch, a commit range, a path to a
.diffor.patchfile, or a path that limits the diff. - A diff already in the conversation resolves to the refs it was taken from, or else to its text, passed verbatim.
- Never ask the user to restate it.
- No target named: the working tree against its merge base with the base branch (
git diff --merge-base origin/<base>), plus untracked files that git does not ignore (git ls-files --others --exclude-standard). - Branch: the branch against its merge base with the base branch.
- Commit range: the range as given.
- PR number or URL:
gh pr diff <n>, which GitHub computes against the PR's own base. .diffor.patch, or text: its text, verbatim.- Only the no-target-named case carries untracked paths; its staged and unstaged edits count together.
- The base branch is the branch's PR base (
gh pr view <branch> --json baseRefName, whenghis installed), else the branch thatorigin/HEADnames, elsemain. - The merge base uses
origin/<base>when it exists, else the local base branch.
Each of these stops ends the run with no reviewer and no verdict: