Skip to content
Back to skills

Review

ASecurity

Review a code change by proving it works for a user, then fix what matters. Runs the app like a user (screenshots, video, logs), sends parallel reviewers (correctness, tests, security, user flow, plus any the repo defines), has a skeptic try to disprove each finding, scores them 0 to 10, fixes the important ones and re-checks until it can ship. Use for "/review", "review this PR/branch/change", one lens like "/review security", or "/review setup" to study an app and decide which reviews and e...

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
ai-agentsshellgitapidatabasesecurity

Works with

  • cli
  • api

Security analysis

A100/100

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

Scanned December 4, 2026

npx -y skills add jerahsiegal-source/ai-implementation-skills --skill review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Review?

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

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

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
description: Review a code change by proving it works for a user, then fix what matters. Runs the app like a user (screenshots, video, logs), sends parallel reviewers (correctness, tests, security, user flow, plus any the repo defines), has a skeptic try to disprove each finding, scores them 0 to 10, fixes the important ones and re-checks until it can ship. Use for "/review", "review this PR/branch/change", one lens like "/review security", or "/review setup" to study an app and decide which reviews and end-to-end tests it needs.
---

# Review

A review passes only when the change is **proven to work the way a user would check it**, and no finding at or above the fix line is left. Code that reads well but was never run is not reviewed.

Lint, type checks and the existing test suite are assumed to run in CI. Run them if they are cheap, but they are not the point: a green suite with mocked tests does not prove a user can finish the task.

## Modes

- `/review` (default): proof run, every lens that fits the change, then fix and re-check until **Ship** or a stop.
- `/review <lens>`: one lens only, for example `/review security`, `/review flow`, `/review tests`. Same scoring and fix loop.
- `/review report` (or `/review <lens> report`): find and score, change nothing. Use it on someone else's PR, or when work-loop calls this skill.
- `/review compare`: after `/review report` ran separately in two or more tools or models, merge their packs into one verdict. See [cross-model.md](references/cross-model.md).
- `/review setup`: study the app and write its `REVIEW.md`: how to run it, which reviewers to turn on and why, and the end-to-end tests for its critical journeys. Follow [setup.md](references/setup.md) instead of the steps below.
- `$review ...` in Codex works the same.

Lenses live in [references/lenses/](references/lenses/): `proof`, `correctness`, `tests`, `security`, `flow`, `intent`, `structure`, plus [repo lenses](references/lenses/repo-lens.md) defined in the repo's `REVIEW.md`.

## Ground rules

- **Proof is captured, never typed.** A proof is real command output, a screenshot, a video, or a log line produced in this session by a tool. Never write what you expect a command to print.
- **Reviewers start fresh.** Each lens runs as its own subagent that did not write the code and did not see the author's reasoning. Reviewers are read-only: no edits, commits, pushes or PR comments.
- **Every finding has to survive a skeptic** before it can make you change code ([skeptic brief](references/skeptic.md)).
- **One score, 0 to 10**, from the [scoring guide](references/scoring.md). The fix line is **5** unless `REVIEW.md` sets `fix_at`. A finding with no repro and no traced path scores at most 4.
- **Reviewers run in parallel, fixes do not.** One fixer applies fixes in order, so two fixes never fight over the same file.
- **Never** deploy to production, touch production data, merge, force-push, or spend past the budget in `REVIEW.md`. Staging and local only.
- **Smallest fix.** Fix the case that happened. Prefer deleting or narrowing code over new options, caches or guards. Review must not grow the change beyond its intent.

## 1. Scope (orchestrator)

1. Find the change: the PR, branch or path the user named; otherwise the current branch against its base (`git merge-base HEAD origin/<default>`), plus uncommitted work.
2. Find the **intent**: `INTENT.md`, the PR description, linked issue, commit messages, or the user's words. Write it in 1 to 2 sentences: what should a user be able to do now? If there is no intent anywhere, infer it from the diff and label it inferred.
3. Read the repo's `REVIEW.md` (root, `.claude/`, `.agents/` or `docs/`), plus `CLAUDE.md` / `AGENTS.md`. If there is no `REVIEW.md`, work out how to run the app from the README and package files, note what you guessed, and offer at the end to run `/review setup`.
4. Make a state folder `.review/<branch>/<model>/` (add `.review/` to `.git/info/exclude`, never commit it): `ledger.json`, `proofs/`, `pack.md`. One folder per model keeps reviews from different models independent.

## 2. Risk map

1. List the changed areas and the user-facing behaviors they touch.
2. Pick lenses. `REVIEW.md`'s proof map wins; otherwise:

| Changed | Lenses |
|---|---|
| Anything | proof, correctness, tests |
| Auth, sessions, permissions, APIs, input handling, file or shell access, secrets, dependencies, data deletes, migrations | + security |
| Any screen, form, page or copy a user sees | + flow |
| An `INTENT.md` or work-loop `loop/` folder exists | + intent |
| New files, modules, routes or shared helpers, or more than about 50 changed lines | + structure |
| Paths a repo lens names | + that repo lens |

3. Set the **risk tier**. **High:** auth, billing, deleting data, migrations, any security finding scored 5+, or paths `REVIEW.md` marks `owner`. High raises the round cap to 5 and always ends with the owner's eyes on the pack. Otherwise **Normal**.
4. Print the map in a few lines: areas, lenses, tier, what will be run and where (local or staging).

## 3. Proof run (one agent, first)

Run the [proof lens](references/lenses/proof.md) before the other reviewers. It drives the real app, so it runs alone to avoid two agents fighting over one browser, server or database.

This is an independent check, so prove each behavior again yourself, even when work-loop's `loop/done.json` already has evidence for it. Its evidence tells you where to look, not what to believe.

It writes `proofs/results.md`: each changed behavior marked **Proven**, **Failed** (with the repro), or **Not run** (with the reason), linking its screenshots, video and logs. Every Failed behavior becomes a finding. Every Not run behavior blocks a Ship verdict until it is proven or the owner accepts it.

## 4. Lenses in parallel

Start one subagent per chosen lens (not proof, which already ran), all at once. Give each: the intent, the diff command, `proofs/results.md`, `REVIEW.md`, its lens file, and [the scoring guide](references/scoring.md). Each returns findings in this shape:

```
F<n> | <lens> | <title, under 10 words>
where: <file:line>
user impact: <what a user sees or loses>
evidence: <repro steps and observed result, or a traced path with file:line for each hop>
score: <0-10, per the scoring guide>
fix: <smallest fix>
```

Or `No findings.` Reviewers report only what they can point to.

**Small change?** One area, about 50 changed lines or fewer, Normal tier: you may run the lenses one after another in this session instead of as subagents, to save time and tokens. Still do every lens and the skeptic pass, and label the pack "single-context review". Anything bigger, or High tier, uses subagents.

**No subagents?** (Some Codex setups.) Run the lenses one at a time in this session. Before each, re-read only its inputs, and label the pack "single-context review".

## 5. Merge, disprove, score

1. **Dedupe:** findings with the same root cause become one, keeping the best evidence and the highest lens score.
2. **Disprove:** for every finding scored 5 or more, start a [skeptic](references/skeptic.md) subagent, all in parallel. It tries to kill the finding, and returns REAL or NOT REAL with the deciding file:line, plus a final score.
3. **Score:** the orchestrator sets the final score with the scoring guide, using the skeptic's evidence. NOT REAL becomes 0.
4. **Ledger:** give each finding a stable id in `ledger.json` (`id, model, round, lens, title, where, score, status, evidence, reason`). `model` is the model and tool that found it (for example `claude-code/opus` or `codex/gpt`), so a [cross-model compare](references/cross-model.md) can tell who caught what. Status is `open`, `fixed`, `declined`, `follow-up` or `disproved`. A later finding with the same root cause as a closed one is matched to it, not re-opened, unless new code brought it back.

## 6. Fix (one fixer, in order)

Skip in report mode.

1. Fix open findings at or above the fix line, highest score first, one at a time.
2. For each: make the smallest fix, re-run the finding's repro and show it now passes, then add one focused test that fails without the fix when the repo has a test setup. Commit as `review: F<n> <title>`.
3. Below the fix line: `follow-up`, listed in the pack, never fixed in this loop.
4. If you disagree with a finding after looking, mark it `declined` with evidence. Do not agree just to end the loop.
5. Re-run the proof run for every behavior a fix touched.

## 7. Re-check

Next round only while a finding at or above the fix line is open, or a fix changed behavior code. Re-run only the lenses that had open findings, and give them only the code changed since the last round plus the open ids. They mark each id `resolved` or `still open: <why>`, and may raise new findings only in the new code.

**Stop** when one of these is true:
- **Ship:** no open finding at or above the fix line, and every changed behavior is Proven.
- **Round cap:** 3 rounds (5 for High). Stop and report.
- **Dispute:** a finding is still argued after two exchanges. Put both sides in 2 to 3 lines each for the owner.
- **Can't prove:** a behavior can't be run here (no staging, no test account, over budget). Say exactly what is missing.

## 8. Proof pack

Write `.review/<branch>/<model>/pack.md` using [the pack format](references/proof-pack.md), then give the user:

- **Verdict:** Ship, Needs you, or Not ready, with the tier.
- **Needs you:** only what a person must decide or look at (High tier, disputes, Not run behaviors, taste calls).
- **Proofs:** each behavior with its screenshot, video or log.
- **Findings:** each with score, lens and status: fixed (with proof), declined (why), follow-up.
- **Rounds and cost.**

On High tier, recommend a [cross-model check](references/cross-model.md) under Needs you if one hasn't run. If `visualize` is installed, offer to turn the pack into a page. If a PR is open and the user asked to update it, put a short **Review** section in the PR description: verdict, rounds, the score table, and how it was proven. Never post screenshots that might show secrets or real customer data.

## Before you reply

Check each, and fix what's missing before you answer:
- `.review/<branch>/<model>/pack.md` exists and follows the pack format.
- Every changed behavior has a row in Proofs. Every screen flow has a video and screenshots from `scripts/proof.mjs` (desktop, plus phone if a screen changed).
- `ledger.json` lists every finding with its score and status.
- Every fixed finding has its repro passing after the fix.

These hold for small changes too. Small changes may skip subagents, never the proof.

## Teach the repo

When the same kind of finding shows up in two reviews, or a proof needed setup you had to discover, offer to add one line to `REVIEW.md` (a "failure looks like" item, a proof map row, or a how-to-run step). Show the line; the owner commits it.

Files in this skill

  • README.md2.9 KB
  • SKILL.md9.8 KB
  • agents/openai.yaml156 B
  • evals/bench/README.md2.6 KB
  • evals/bench/app/README.md386 B
  • evals/bench/app/lib/report.js583 B
  • evals/bench/app/package.json160 B
  • evals/bench/app/public/index.html2.1 KB
  • evals/bench/app/public/project.html1.8 KB
  • evals/bench/app/public/style.css945 B
  • evals/bench/app/public/util.js535 B
  • evals/bench/app/server.js4.8 KB
  • evals/bench/app/tests/unit.test.js530 B
  • evals/bench/app/worker.js1 KB
  • evals/bench/cases/delete/case.json159 B
  • evals/bench/cases/delete/files/public/project.html2.1 KB
  • evals/bench/cases/delete/files/server.js5.2 KB
  • evals/bench/cases/double-run/case.json302 B
  • evals/bench/cases/double-run/files/public/project.html2 KB
  • evals/bench/cases/double-run/files/public/style.css992 B

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.