Skip to content
Back to skills

Review

ASecurity

Review a branch, PR, diff, or targeted lens using observed behavior and source evidence. Report findings, fix authorized defects, compare independent review packs, or set up a repository proof map.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 5, 2026
ai-agentsrustgoshellgitapidatabasesecurity

Works with

  • cli
  • api

Security analysis

A100/100

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

Scanned December 5, 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-ai-implementation-skills/badge)](https://www.skillsdirectory.com/skills/jerahsiegal-source-review-ai-implementation-skills)

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 branch, PR, diff, or targeted lens using observed behavior and source evidence. Report findings, fix authorized defects, compare independent review packs, or set up a repository proof map.
---

# Review — Codex

Own the review outcome. A code-reading pass is not a completed review. Establish whether the changed behavior actually works, find only consequential defects supported by evidence, and finish the authorized review mode with a concrete verdict. Keep independent reasoning, user-level proof and skeptical verification; do not manufacture extra work to make the review appear thorough.

## 1. Select mode and authority

- `$review` / `$review <lens>`: explicit invocation selects fix mode within the user's authorization. Prove, find, verify, fix and re-check. A request just to review a change or a built-in Codex `/review` request defaults to report. A named lens limits the findings and fixes to that lens and the evidence needed to support it.
- `$review report` / `$review <lens> report`: inspect and run permitted checks. Write review evidence and the pack in an allowed local location. If the user or sandbox requires zero writes, return the pack contents and available evidence in the response. Preserve the reviewed checkout and remote state.
- `$review compare`: reconcile independent review packs from the same snapshot using [the comparison guide](references/cross-model.md).
- `$review setup`: follow [the setup guide](references/setup.md) and [template](templates/REVIEW.md) to draft a repository proof map. Application changes require separate authorization.

Never deploy to production, touch production data, merge, force-push, spend beyond the authorized budget or bypass permission policies. Preserve unrelated user changes. Ask only for genuine owner decisions, missing authorization or indispensable prerequisites.

## 2. Establish scope and risk

Identify the requested PR/branch/path or current diff against the intended base. Record base and head SHA, dirty-state fingerprint if relevant, and model/harness. Find intent in `INTENT.md`, the PR, issue, commit or user request; label inferred intent. Read applicable `AGENTS.md`, `REVIEW.md` (root or the documented location), and project instructions. Do not assume a Claude-specific config is authoritative in Codex.

Create `.review/<branch>/<model>/` using filesystem-safe names, with `ledger.json`, `proofs/` and `pack.md`. Resume the folder only when its snapshot and scope match. Otherwise choose a distinct run folder under the branch and record the model, harness and snapshot in the pack. If the repository cannot be written or no-write mode applies, use an allowed evidence location or report inline as directed above. Keep secrets and customer data out of the pack.

Map changed behaviors and affected shared components. Choose lenses by actual risk:

| Change | Lenses |
|---|---|
| All changes | Proof, correctness, tests |
| Auth, money, data, APIs, untrusted input, secrets, files/shell, dependencies | Security |
| User-facing interactions or output | Flow |
| Approved intent or Work Loop state | Intent |
| New modules, shared boundaries, substantial structural changes | Structure |
| Paths identified by `REVIEW.md` | Relevant repo-specific lens |

Normal tier by default. High tier for authorization/authentication, billing, destructive or sensitive data, migrations, credible security findings or repo-designated owner gates. Review cap: three rounds Normal, five High. Print a concise map and proceed; do not stop to request approval of routine review scope.

## 3. Prove the changed behaviors first

Run [the proof lens](references/lenses/proof.md) before assigning review work so there is one owner of any shared browser, server or database. Prefer the repository's end-to-end harness. Use [the Playwright helper](scripts/proof.mjs) or available Codex browser tools to fill capture gaps. For a security lens, trace code and use ordinary defensive checks for legitimate and denied behavior within existing test interfaces. Record suspected vulnerabilities with source evidence and remediation.

For each changed behavior, record user, action and expected observable result. Include a meaningful failure path and a nearby regression check for affected shared components. Follow the repo's `REVIEW.md` proof map where available.

Start the app in an authorized local, preview or staging environment. Use synthetic/test data and appropriate credentials. Drive real UI clicks, actual API requests or CLI commands, then verify the resulting data/content, not just a success banner. Capture screenshots (desktop and phone when relevant), video for changed screen flows, logs, browser errors and failed requests where available. Inspect screenshots and actual outputs; save evidence and commands in `proofs/`. Record unavailable capture or integration checks explicitly, never invent proof or claim a required check ran.

Write `proofs/results.md` with every changed behavior, `Proven | Failed | Not run`, evidence pointers, and repro or precise missing prerequisite. Failed behavior becomes a finding; required Not run behavior prevents a Ship verdict unless the owner explicitly accepts the exception. A green unit suite is not sufficient evidence for a real user journey. For report mode, record failures and continue review; do not fix them.

## 4. Review lenses and challenge findings

Use fresh read-only subagents for independent lenses when justified, authorized and supported. Give each a narrow scope, intent, exact diff, proof results, repo instructions and the relevant [lens guide](references/lenses/). Keep the orchestrator responsible for evidence and integration. A clean fork can supply a separate review context where available. Sequential review in the current chat is a single-context review. Record the contexts actually used.

For each lens, look for changes introduced or exposed by the diff:

- **Correctness:** trace real paths, invariants, error handling, async state, data integrity and interfaces; avoid hypothetical defects without a reachable path.
- **Tests:** look for meaningful missing regression protection, weakened/skipped tests, mocks that hide the behavior, and evidence that targeted tests detect the bug. Do not penalize characterization tests merely because they pass on base.
- **Security:** trace untrusted sources to sensitive actions, check authorization/ownership, secrets, input/output boundaries, dependencies and real defenses. Do not access real sensitive data to prove a point.
- **Flow:** drive relevant journeys, error/recovery, accessibility, keyboard and responsive behavior where applicable. Use actual screenshots and resulting state.
- **Intent:** compare all Done items, Never, gates and proof against the approved brief; partial coverage is not full coverage.
- **Structure:** identify real duplication, broken integration or foreseeable maintenance failures caused by the change, not preferences for alternate architecture.
- **Repo-specific:** follow the documented narrow lens and evidence requirements.

Each finding must have a stable ID, lens, title, location, actual user/business impact, reproducible failure or traced path, score and smallest corrective change. Return `No findings` when supported. Dedupe by root cause, not wording.

Challenge every proposed finding at or above the fix line using [the skeptic brief](references/skeptic.md) and [scoring guide](references/scoring.md). Use a fresh reviewer when authorized and available. Check whether the diff introduces or exposes a reachable harmful path and account for existing defenses. Keep credible unresolved security findings open with their source evidence.

### Score and disposition

Score harm and reach, constrained by evidence. Preserve the original 0–10 scale:

| Score | Meaning |
|---|---|
| 9–10 | Ship stopper: security exposure, data loss/corruption, main task impossible |
| 7–8 | Major: common path wrong/broken, material user-visible regression |
| 5–6 | Real issue with material impact, reachable edge case, missing relevant regression protection |
| 3–4 | Minor or unproven ordinary finding |
| 1–2 | Nit or preference |
| 0 | Disproved or pre-existing and untouched by this change |

Ordinary unproven findings are capped at 4. Unsettled credible security findings with a plausible traced path remain open at least 5 until disproved or accepted by the owner. Pre-existing untouched issues go under Found, not caused; do not widen scope. The default fix line is 5 unless `REVIEW.md` specifies another threshold. A missing required proof is a separate gate, not a finding to score down. Record each in `ledger.json` with `id, model, round, lens, title, where, score, status, evidence, reason`. Status: `open|fixed|declined|follow-up|disproved`. Record counterevidence for declines/disproofs and match later findings by root cause.

## 5. Fix and re-check (fix mode only)

Do not stop after finding problems or after the first fix when material authorized work remains. Fix supported findings at or above the fix line, highest severity first. One fixer owns overlapping changes; parallelize only truly independent investigations. Prefer the smallest correction that preserves intent; do not refactor around a hypothetical problem.

For each fix, run the reproduction again, add a focused regression test if appropriate, and record real before/after proof. Commit logical fixes only if authorized. Re-run affected user flows and regression checks; a later fix invalidates any proof it materially changes. In the next round, re-check only open findings and changed code. Do not rerun every lens simply because another pass exists.

If a fix fails, diagnose from observed evidence and try a materially different authorized approach if one exists. After two unproductive attempts, inspect whether there is a defensible next action. Continue meaningful progress; do not loop on unchanged failures. If none remains, mark the finding open/blocked and work on other independent findings. Respect the round cap, actual permission denials, budget limits and user stops. Record unresolved issues honestly; do not lower their score to end the review.

Report mode skips all application fixes; its completion means the audit is finished, not that the branch is ready to ship.

## 6. Completion audit and proof pack

Before returning the final answer, verify the requested review mode was actually completed, the snapshot is recorded, each applicable lens ran or has an explicit limitation, every behavior has a proof row, every material finding was challenged, and every claimed fix has a passing repro. Required screen flows need evidence (video and screenshots where applicable); missing evidence stays visible. If any actionable requirement of the authorized mode remains, execute it now rather than promising a next step.

Write `pack.md` using [the proof pack guide](references/proof-pack.md). Include these fields:

```markdown
# Review: <branch/PR>
**Verdict:** Ship | Needs you | Not ready · **Tier:** Normal | High
**Intent:** <one or two lines>
**Snapshot:** <base/head, model/harness, dirty state if applicable>
**Mode / independence:** <mode, actual reviewer contexts>

## Needs you
<only real decisions, disputes, missing proof, high-tier owner review>

## Proofs
| Behavior | Result | Evidence |
|---|---|---|

## Findings
| Id | Score | Lens | Finding | Status / evidence |
|---|---|---|---|---|

## Found, not caused
<pre-existing findings>

## Rounds
<rounds, lenses, actual fixes, time/tokens if known>

## Owner check
<short high-value staging checklist>
```

Ship only if no material finding remains open and every required behavior is Proven or explicitly owner-accepted. Not ready for known failures, unresolved required findings, or cap exhaustion. Needs you for genuine gates or disputes that prevent a verdict. High tier still requires owner eyes before merge even if technical checks pass; recommend independent cross-model review. Never imply report mode fixed a defect. Final response: verdict, decisive evidence, actual unresolved issues, and pack path. Offer optional visualization only after the pack exists.

## Cross-model compare

Follow [the comparison guide](references/cross-model.md). Compare only equivalent commit, dirty state and relevant configuration. Match findings by root cause and preserve conflicting observations in the combined verdict. Record the actual participating reviewers. Write `.review/<branch>/compare.md` with model names, shared and single findings, evidence and verdict.

## Repository setup

Use [the setup guide](references/setup.md) for `REVIEW.md` and `.review/setup/report.md`. Use existing tests and documented startup commands to verify the proposed proof map. Record assumptions, gaps and any essential owner decisions.

## Resume

If the session compacts or is interrupted, reload the relevant review pack, ledger, proof results and actual diff/snapshot before continuing. Invalidate proofs when code or environment changes materially. Finish the remaining authorized review work, not a fresh review from scratch.

Files in this skill

  • SKILL.md12.9 KB
  • agents/openai.yaml156 B
  • references/cross-model.md2.3 KB
  • references/lenses/correctness.md1.6 KB
  • references/lenses/flow.md1.4 KB
  • references/lenses/intent.md1.3 KB
  • references/lenses/proof.md3.3 KB
  • references/lenses/repo-lens.md1.2 KB
  • references/lenses/security.md2.1 KB
  • references/lenses/structure.md1.5 KB
  • references/lenses/tests.md1.4 KB
  • references/proof-pack.md1.4 KB
  • references/scoring.md2.8 KB
  • references/setup.md6.3 KB
  • references/skeptic.md1.9 KB
  • scripts/proof.mjs4 KB
  • templates/REVIEW.md1.3 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.