Skip to content
Back to skills

Code Review

ASecurity

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...

  • 53 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added May 28, 2026
ai-agentsgocode-reviewgitsecurity

Security analysis

A100/100

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

Scanned December 3, 2026

npx -y skills add martinffx/atelier --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/martinffx-code-review/badge)](https://www.skillsdirectory.com/skills/martinffx-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: 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)

Files in this skill

  • SKILL.md2.9 KB
  • references/output.md5.2 KB
  • references/reviewers.md15.8 KB
  • references/rq.md9.1 KB
  • references/rs.md1.1 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.