Skip to content
Back to skills

Review Change

ASecurity

Independent code review of a change by a fresh reviewer that didn't write it, keeping only findings a command, test or trace demonstrates. Use when asked to review a PR or diff, code review, check my changes, is this ready to merge, LGTM, or get a second opinion before landing. Not for walkthroughs (show-the-work), vulnerabilities (security-check) or deslop (subtract).

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentspythonrustgocode-reviewgitsecurity

Works with

  • claude code
  • cursor

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned December 2, 2026

npx -y skills add Ilexpwh/istack --skill review-change --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Review Change?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Review Change
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ilexpwh-review-change/badge)](https://www.skillsdirectory.com/skills/ilexpwh-review-change)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: review-change
description: Independent code review of a change by a fresh reviewer that didn't write it, keeping only findings a command, test or trace demonstrates. Use when asked to review a PR or diff, code review, check my changes, is this ready to merge, LGTM, or get a second opinion before landing. Not for walkthroughs (show-the-work), vulnerabilities (security-check) or deslop (subtract).
metadata:
  phase: review
---

# Review change

A merge verdict on one change, with run-proven findings by severity, from a reviewer that didn't write it.

## When to use
- A PR, branch or diff needs a verdict before merge, whoever wrote it.
- Your own change is ready to land and needs one independent read (`check-the-claim`).
- A playbook step says `review-change`.

**Not for:** explaining a change to someone who won't read code (`show-the-work`), a security pass (`security-check`, which step 5 calls when needed), or rewriting the change (`subtract`).

## Steps
1. **Pin the ref.** Resolve the change to a head commit and a base: `gh pr view <n> --json headRefOid,baseRefName,url`, or `git merge-base origin/<base> HEAD` for a branch. Check the head out in its own worktree so tests run on exactly what is reviewed: `git worktree add --detach ../.worktrees/review-<id> <head-sha>`. *Done when:* `git -C ../.worktrees/review-<id> status --short` is empty and its `rev-parse HEAD` equals the head commit you named.
2. **Gather the packet.** You, the parent, write `packet-<id>.md` to the evidence folder (the ledger's `run/evidence/` when a ledger is active, else a scratch folder outside the repo). It holds: head and base commits, `git diff --numstat <base> <head>`, the full diff as a file, the changed file paths, the intent quoted verbatim (issue, acceptance criteria, PR body), and the project's test, typecheck and lint commands (from `AGENTS.md` or CI config). Leave out the author's reasoning and any self-assessment. *Done when:* the packet has all six parts.
3. **Apply the size bar.** Count changed lines without lockfiles, generated files and snapshots (rubric bar D1). Over about 1,000, add a warning that recommends a split with a concrete cut, then review anyway. *Done when:* the count is in the packet.
4. **Start one fresh reviewer.** Spawn a new agent that has not seen the work on this change: the `reviewer` subagent in Claude Code, a new agent in Codex. Give it the reviewer brief from `references/rubric.md`, the packet path and the worktree path. It may run tests and read-only commands in the review worktree, and starts no agents of its own. If you wrote the change, you are never the reviewer. If the host cannot start an agent, label the verdict "self-review (degraded)" and recommend a second read before merge. *Done when:* the reviewer hands back findings in the rubric's output shape.
5. **Hand off security.** If the diff touches a trust boundary (rubric bar S1), run `../security-check/SKILL.md` on those files and add its confirmed findings under the security axis. *Done when:* security-check ran, or the review file lists the changed files and says no boundary was touched.
6. **Re-run every finding.** For each finding, run its command or walk its trace yourself in the review worktree. Keep it when the output shows the failure and the failure matters to the intent. Drop the rest and count them. Merge findings that share a root cause. Mark defects that already exist on the base as `pre-existing`. *Done when:* every kept finding has a command or trace and its observed output, and the dropped count is known.
7. **Decide and record.** Verdict: `approve` (no findings above note), `approve with notes` (notes only, or warnings the intent already accepts), `changes needed` (any critical, or a warning the author must answer), or `split first` (bar D1, and the size blocks a real read). Write `review-<id>.md` beside the packet. With an active ledger, run `python3 -I "$LEDGER" --root <workspace> decide --task <task> --decision 'Review <id>: <verdict>' --why '<n> critical, <n> warning' --evidence <review file>`, where `LEDGER` is `../ledger/scripts/ledger.py` from this skill (Claude Code: `${CLAUDE_SKILL_DIR}/../ledger/scripts/ledger.py`). Remove the review worktree with `git worktree remove ../.worktrees/review-<id>`. Posting comments is a separate step gated by the stake tier (`draft-message`). *Done when:* the review file exists, the ledger holds the decision, and the worktree is gone.

## Red flags
| If you're thinking | Do this instead |
|---|---|
| "I wrote it, but I'll review it carefully." | Spawn a fresh reviewer. An author confirms their own assumptions (`check-the-claim`). |
| "I'll give the reviewer my summary so it gets up to speed." | Pass the diff and the intent only. A conclusion in the brief comes back as agreement. |
| "This looks wrong, I'll list it." | Run it. No command, test or trace means drop it and count it. |
| "Tests pass, so approve." | Passing tests is one bar. Check intent coverage, swallowed errors and missing tests too. |
| "It's 3,000 lines, but it's all one feature." | Recommend a split with a concrete cut, then review anyway. |
| "Ten notes make the review look thorough." | Lead with criticals. Notes never block, and a few proven findings beat many guesses. |
| "I'll fix the findings while I'm here." | Report them. The fix is the author's change or a new slice (`smallest-change`). |

## Verify
- [ ] The reviewer was a fresh agent, or the verdict says "self-review (degraded)".
- [ ] The reviewed head commit is named and matches the worktree that ran the tests.
- [ ] Every kept finding has severity, axis, `file:line`, a command or trace, the observed output and a fix.
- [ ] The dropped count is stated.
- [ ] security-check ran, or the review file shows why no trust boundary was touched.
- [ ] The changed-line count is stated, with a split recommended when it is over about 1,000.

## Reply
```
Verdict: approve | approve with notes | changes needed | split first. Head <short sha>, reviewer: fresh agent | self-review (degraded)
Intent: <one line>

| Severity | Axis | Where | What breaks | Evidence | Fix |
|---|---|---|---|---|---|
(critical first, then warning, then note; "no findings" is a valid row)

Dropped: <n> findings without proof (<one-line reason>)
Tests: <command> -> <result>
Security: <security-check result> | no trust boundary touched
Size: <n> changed lines (excluding lockfiles and generated files)
Review file: <path>
```

## Credits
The five-axis review, change-size bands, reading tests first and the mutation check come from Addy Osmani's `code-review-and-quality` skill and `code-reviewer` agent in addyosmani/agent-skills. The parent-gathers, reviewer-judges split and the file-size and spaghetti bars come from Cursor team kit's `thermo-nuclear-code-quality-review`; the critical / warning / note scale from its `review-and-ship`. Keeping only run-proven findings and counting the dropped ones follows pstack's `interrogate` by Lauren Tan. Passing the artifact and the contract but not the author's claim follows Addy Osmani's `doubt-driven-development`.

Files in this skill

  • SKILL.md6.9 KB
  • agents/openai.yaml213 B
  • references/rubric.md6.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.