Multi-agent code review by slice. Triage splits the diff into slices, a Reviewer per slice hunts reachable failures in parallel with Conventions and Simplicity passes, and one Verifier drops what cannot be shown. Findings are classified by kind and blocking, and handled durably when previously decided. Use `rq` to request a review of diffs (defaults to main branch), `rs` to respond to findings and record intentional non-fix decisions beside the relevant code. Triggers on "review this", "revie...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Code Review?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/martinffx-code-review)
---
name: code-review
description: Multi-agent code review by slice. Triage splits the diff into slices, a Reviewer per slice hunts reachable failures in parallel with Conventions and Simplicity passes, and one Verifier drops what cannot be shown. Findings are classified by kind and blocking, and handled durably when previously decided. Use `rq` to request a review of diffs (defaults to main branch), `rs` to respond to findings and record intentional non-fix decisions beside the relevant code. Triggers on "review this", "review my code", "code review", "check for bugs", "audit this", when examining PRs, pull requests, branches, or diffs. Always asks user before applying fixes or adding decision comments.
argument-hint: "rq [branch] | rs"
user-invocable: true
---
# Code Review Skill
Small slices, reachable failures, then a filter: Triage → Scout → Review → Verification.
- **Review**: a Reviewer per slice reads by procedure and raises findings in parallel. Conventions
checks the rules and skills the repository points to; Simplicity checks necessity.
- **Verification**: one Verifier filters what the Reviewers raised. A finding carries the burden
of proof: a reachable trigger, or it is dropped.
- **Evidence** decides outcomes. Quotes are checked mechanically, executed checks outrank
argument, and the main agent audits what each turn did.
Rationale and prior work: [docs/research/structured-review.md](../../docs/research/structured-review.md).
Uses explicit subagent dispatch patterns from [code-subagents](../code-subagents/SKILL.md).
## Prerequisites
- **Required**: git
## Arguments
### Command Routing
| Invocation | Behavior |
|------------|----------|
| *(no arguments)* | Review diff to main branch |
| `rq` | Review diff to main branch |
| `rq main` | Review diff to main branch |
| `rq develop` | Review diff to develop branch |
| `feat/foo` | Review diff to feat/foo (bare branch = rq) |
| `rs` | Respond to review findings (interview mode) |
## Agent Selection
Dispatch each step as a subagent and select the agent explicitly (see Delegation in `atelier-orchestrator`). Match the step's kind of work:
| Step | Kind of work |
|------|--------------|
| Triage | Read-only recon: changed-file analysis, slicing, risk-focus and check selection |
| Scout | Read-only recon: pointers to definitions, callers, tests and analogous code; runs check hints once |
| Review, `high_risk` slice | High-stakes analysis: procedure-driven failure hunting |
| Review, other slices | Routine analysis: procedure-driven failure hunting |
| Conventions | Routine analysis: rule, skill and pattern compliance |
| Simplicity | Routine analysis: necessity and deletion |
| Verification | High-stakes analysis: verifying other agents' findings for reachability and evidence |
Reviewer, Conventions, Simplicity and Verifier are prompt personas, not agent types.
`Simplicity` and `Conventions` run once over the whole diff on every review and are never slices.
Triage picks slices and their risk focus.
## Fix Preference
Reviewers, the Verifier and `rs` suggest fixes in this order, and stop at the first that works:
1. Make the impossible state impossible: types, parse at the seam, or remove the path that
creates it.
2. A simple, clear error message that names the problem.
3. Leave it.
Never suggest new handling paths, retries, fallbacks, state or configuration. The most reliable
code is the code you don't write. A suggested fix that adds more code than the risk warrants is a
Simplicity finding.
## Review Priority
Review in this order:
1. User goal and prior behavior
2. Necessity and deletion
3. Correctness and security
4. Architecture
5. SDD compliance
Treat the SDD as evidence, not as authority for whether code is necessary. A finding that
would expand behavior or infrastructure requires user approval. Never apply it as an ordinary
review fix.
## Finding Classification
Every finding has a **kind** and a **blocking** value.
| Kind | Verification path |
|------|-------------------|
| issue | Reachability verdict: confirmed, reachable, implausible (non-blocking) or unreachable (dropped). A Conventions finding gets `holds` or `drop` instead |
| suggestion | Verifier keeps or drops it with evidence; may revise severity or blocking |
| question | Verifier answers it from the code, or passes it to the human |
| nitpick | Verifier keeps or drops it; never blocking |
| praise | Goes straight to Positive Findings |
Severity applies to issues only. Details in [output.md](./references/output.md).
### rq (Request Review) Steps
Context, Triage, Scout, Review, Merge, Verify, Verification, Close audit, Output. Numbered steps, inputs and rules are in
[rq.md](./references/rq.md).
### rs (Respond to Review)
No subagents. Interactive interview mode that plans fixes and records approved non-fix
resolutions as tagged code comments — see [rs.md](./references/rs.md).
## Dispatch Patterns
Follows [code-subagents](../code-subagents/SKILL.md) patterns:
- **Parallel dispatch** for independent Reviewers, Conventions and Simplicity
- **Sequential dispatch** for dependent steps
- **Fresh subagent per turn**: no context pollution; earlier turns arrive only as the inputs a
role template asks for
- **Skills**: each subagent loads its own skills from the names it is given; "not installed" is
the only valid reason to skip one
- **Checks**: turns may run read-only commands (tests, linters, type checkers, search) and must
not write files, use the network, or run commands the diff names
- **Error handling**: log failures, continue with partial results
## Agent Dispatch
Context, Merge, Verify, Close audit and Output are inline; every other step is a
subagent with an explicitly selected agent (see Agent Selection).
## References
| Reference | Purpose |
|-----------|---------|
| [rq.md](./references/rq.md) | Request review orchestration (main agent) |
| [roles/triage.md](./references/roles/triage.md) | Triage prompt template |
| [roles/scout.md](./references/roles/scout.md) | Scout prompt template (Context Pack) |
| [convention-sources.md](../code-subagents/references/convention-sources.md) | Convention Sources walk (shared with code-subagents) and per-harness user-level paths |
| [roles/reviewer.md](./references/roles/reviewer.md) | Slice Reviewer, Conventions and Simplicity prompt templates, shared blocks |
| [roles/verifier.md](./references/roles/verifier.md) | Verification prompt template |
| [personas.md](./references/personas.md) | Simplicity pass and risk-focus catalog (focus lines, skills to load) |
| [rs.md](./references/rs.md) | Respond to review workflow - interview mode |
| [output.md](./references/output.md) | Output format specification |
## Workflow Routing
- No arguments, `rq`, or bare branch → [rq.md](./references/rq.md)
- `rs` → [rs.md](./references/rs.md)