Skip to content
Back to skills

Code Review

ASecurity

Review completed code over 1,500 changed lines, or a plan, with right-sized specialist agents.

  • 19 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 9, 2026
ai-agentsrustgoshellcode-reviewsecurityperformance

Works with

  • cli

Security analysis

A100/100

Scanned December 6, 2026

npx -y skills add wsauret/flywheel --skill code-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Code Review?

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

Security grade badge for Code Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/wsauret-code-review/badge)](https://www.skillsdirectory.com/skills/wsauret-code-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: Code Review
description: Review completed code over 1,500 changed lines, or a plan, with right-sized specialist agents.
dependencies:
  - elegance-review-principles
agents:
  - reviewer-code-quality
  - reviewer-code-performance
  - reviewer-code-data-integrity
  - reviewer-code-security
  - reviewer-code-elegance
  - reviewer-uat
  - reviewer-code-design
  - reviewer-plan-quality
  - reviewer-plan-performance
  - reviewer-plan-data-integrity
  - reviewer-plan-security
  - reviewer-plan-elegance
  - reviewer-plan-design
  - reviewer-mechanism
---

# Code Review

Review a completed code change, or an implementation plan before code exists, against the request or settled design with a reviewer set sized to the actual target. This is the canonical review method after every implementation route, and for a plan that descends from a settled design.

Each reviewer's read-only evidence and findings contract comes from the individual method it composes: `code-review-method` for `reviewer-code-*`, `plan-review` for `reviewer-plan-*`. This parent skill owns dispatch and synthesis. During review, do not edit target implementation files or dispatch agents to change them. Complete and synthesize the review first.

Reviewer dispatch is mandatory for every target above the no-reviewer tier, and the one review of a diff above 1,500 changed lines is never skipped.

## Determine the review target

1. Read the request or settled design. Record required behavior, non-goals, constraints, acceptance criteria, and applicable project context paths. Find the authorities that bind the change: read the root instructions file and the instructions file or README nearest to each changed path, and follow each authority they name for the changed area. Skip a document marked superseded or draft. Record the binding authorities as project context paths. When the repository names none, the request or settled design is the only intent source; search no further. If no intent source exists, report that blocker instead of inventing intent. The target is a first draft: the implementation recorded where it deviated from the plan or assignment, and the dispatching agent revises it into the design after this review. Reviewers report; the dispatching agent decides acceptance.
2. Get the actual diff. A directory listing, file list, or implementation report is not a diff. When branch diff data is unavailable or includes unrelated concurrent work, use the current task's tracked changed files and tool write evidence, and state that limitation. For a plan target, read the complete plan instead.
3. Read changed files where hunks hide context. Trace changed public surfaces through callers, imports, registrations, and tests. Inspect deletions for live paths whose logic disappeared rather than moved.
4. Apply `elegance-review-principles` first and throughout. Additional specialist reviewers add constraints; they do not replace this method, severity model, or result contract.
5. List the target's material factual claims verbatim with their locations: version pins, artifact-content assertions, registry or feed availability, live-route statements, tool and file existence, and runtime-behavior premises the target depends on. Assign each claim to a selected reviewer; in the no-reviewer tier, verify each one yourself. Every claim ends with one verdict from the reviewer protocol's vocabulary, and the result states exactly what the evidence supports.

## Select the reviewer set

Size the reviewer set by tier before dispatching. A code change takes `reviewer-code-*` personas and a plan takes `reviewer-plan-*` personas; never mix the families.

- **No-reviewer tier:** your own code diff of 1,500 changed lines or fewer, even when a trigger matches. Dispatch no reviewer: check the diff yourself against the intent and prove it with fresh verification.
- **Single tier:** a plan with one milestone, a handful of files, no new abstraction, and no runtime-behavior claim. Dispatch `reviewer-plan-quality` alone, plus each optional reviewer whose trigger below matches. With one reviewer, synthesis is integrate-or-defer per finding.
- **Standard tier:** a code diff of more than 1,500 changed lines or one that a person asks you to review, and every other plan. Dispatch `reviewer-code-quality` and `reviewer-code-elegance`, or `reviewer-plan-quality` and `reviewer-plan-elegance`. Add each optional reviewer whose named trigger matches, and no other:
- `reviewer-code-performance` or `reviewer-plan-performance`: hot paths, loops over unbounded data, queries, large data volumes, latency-sensitive code, or heavy I/O; also a plan of three or more milestones.
- `reviewer-code-data-integrity` or `reviewer-plan-data-integrity`: migrations, schemas, data models, persistence, durable state, or transactional logic; also a plan of three or more milestones.
- `reviewer-code-security` or `reviewer-plan-security`: secrets or credentials, authentication or authorization, untrusted input, command, subprocess, or shell execution, or path and file handling.
- `reviewer-code-design` or `reviewer-plan-design`: a rendered interface, including webview or TUI components, style sheets, layout, theming, interaction states, or user-facing copy. The plan variant judges design coverage in the plan and needs no pre-implementation render.
- `reviewer-uat`, code only: an explicit acceptance requirement needs direct observation, or verification leaves a specific user-facing behavior unproven. A changed CLI, UI, HTTP route, or output format alone is not a trigger. A live acceptance check requires fresh observation; past captures guide the scenario but do not prove the current behavior.

## Dispatch reviewers

Dispatch every selected reviewer in parallel.
{{if:workflow}}
Dispatch them as subagents and never launch a workflow for the review.
{{end}}
{{if:type:general}}
Use self-contained prompts and never `fork: true`. Inline the target, project context paths, design rationale, constraints, assigned claims, and location format. Include this instruction; for a plan target, name the plan and plan-scope locations instead:
{{else}}
Use self-contained prompts. Inline the target, project context paths, design rationale, constraints, assigned claims, and location format. Include this instruction; for a plan target, name the plan and plan-scope locations instead:
{{end}}

```text
Review this completed change.

CHANGE:
[diff or changed-file paths]

PROJECT CONTEXT PATHS:
[applicable paths or none]

ASSIGNED CLAIMS (verify each with the narrowest tool you already hold before writing findings; report the check-derived evidence; add material claims this list missed):
[the claims assigned to this reviewer, verbatim, with locations, or none assigned]

DESIGN CONTEXT:
- Design intent (fixed): use the approved intent and decisions that the runtime carries from the parent's checkpoint.
- implementation design (revisable): [the spec shape, illustrative detail, and planned approach the author could revise]
- patterns: [established patterns]
- constraints: [user requirements, rejected alternatives, and Deferred entries]
- recorded deviations: [the implementation's recorded deviations from the plan or assignment, each with its stated reason, or none]

Check the change against the Design intent and the authorities in PROJECT CONTEXT PATHS as well as for defects. A contradiction with an authority is drift; cite its file and line. Classify each recorded deviation and each discrepancy you find as consistent with the Design intent or as drift, with evidence; a deviation from implementation design alone is not drift. Report the classification and do not decide whether a deviation is acceptable.

Use code-scope locations: <repo-relative-path> or <repo-relative-path>:<line>.
Investigate ambiguous, incomplete, or unverified evidence with targeted commands or mechanism verification before reporting it. If evidence remains unavailable, name the checks attempted, the missing proof, and the concrete failure mode. Do not leave the evidence gap for the repair to close. Do not write files. Return prose findings, one block each with Title, Severity, Location, Failure, and Fix, or state No findings.

Apply the constraint rules in the reviewer protocol block to the supplied user requirements, rejected alternatives, and Deferred entries.

Failure must state a recognized principle, intended behavior, observed discrepancy, and concrete consequence. A hardening finding must name the reachable producer or requirement that triggers the risk. Preserve runtime claims that remain unresolved with an UNVERIFIED tag.
```

For `reviewer-uat`, provide changed paths without source content, acceptance criteria, and runnable verification commands. Do not ask it to write evidence into your scratchpad: it can write only in its own, and it returns evidence in its handoff.

Investigate ambiguous runtime evidence within the review budget. If an acceptance criterion still cannot be verified, report the missing evidence and the narrowest command or probe attempted. Do not defer an unverified acceptance claim to the repair.

{{ref:reviewer-protocol}}

## Synthesize

Extract and validate every finding, then deduplicate by failure meaning rather than wording. Preserve the strongest concrete evidence and one complete failure statement.

A reviewer hunts; it does not judge. Treat each finding as a lead, and give no weight to the severity, priority, or urgency that the reviewer assigned or to the size of its proposed fix. Rank each finding yourself: how a person or an external producer reaches the case, how often, what breaks, and what the fix costs against the intent. A real finding about a rare or unreachable case ranks low or is dropped, whatever the reviewer called it. Check a finding against the code only as far as your decision needs; one that would drive a large or risky change gets a focused look first.

Your ranking uses these severities:

- **P1:** blocks acceptance because required behavior is broken, reachable regression or data loss exists, a security boundary fails, or a required criterion is unmet.
- **P2:** a concrete defect or structural debt that must be corrected now, including missing tests for changed behavior or an unsafe assumption with a real trigger.
- **P3:** a bounded correctness or elegance improvement with concrete evidence.

## Remedy arbitration

Explicit requirements and verified correctness, security, data-integrity, performance, and runtime constraints are hard gates. Among remedies that satisfy those gates, choose the simplest feature-complete correction with the fewest owners, states, layers, abstractions, and failure branches.

Do not union reviewer fixes or count votes. A reviewer's proposal that adds scope or a larger design earns no scope by itself: it needs a causal link to an approved outcome, in the smallest sufficient form.

## Drift arbitration

For a finding outside the tracked changed files, first prove that the current change modified that file. Reading or using a file is not modification evidence. Then classify the change as:

- **Principled extension:** required reuse, cohesive ownership, shared helper, test fixture, or explicit uptake of a documented deferral. Judge the finding on its merits.
- **Scope creep:** unrelated behavior, speculative abstraction, or drive-by refactor. Keep the finding and add a P2 finding titled `Out-of-scope file: <path>`.

## Review result and continuation

Conclude with one of:

- `Findings:` actionable findings ordered by severity, each with Title, Severity, Location, Failure, and Fix.
- `Clean:` the reviewed target and evidence when no actionable finding remains.
- `Blocked:` the missing intent, diff, repository access, or decisive evidence and the narrowest action that unblocks review.

After the result, list under `Set aside:` each finding that a reviewer rated P1 or P2 and that you dropped, deferred, or downgraded, with a one-line reason.

P1 findings block acceptance. For a review-only request, report and stop without editing. When the original request authorizes implementation, resume that task after the review result is complete: fix the findings that your ranking keeps and verify each correction with the smallest complete check. A change gets one review. Verify the fixes instead of reviewing the change again. A correction that replaces the reviewed design, such as a reshape in the `design` skill, is a new change with its own review under the same size rule. A fix for a review finding is never such a correction.

Group actionable findings by shared structural cause, not by file. Fix the structure once, then re-evaluate the remaining findings, which often dissolve. Do not apply reviewer fixes as isolated patches.

{{ref:plan-review-orchestration}}

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.