Review Agent
Role: worker. This skill performs the actual review using the agent
definition as its specification.
You have been invoked with the /review-agent skill. Run a single named review agent.
This command is executed under orchestrator direction. Pass the named
agent's model:/effort: frontmatter as declared — the harness resolves
both fields natively before dispatch, per Model/Effort Resolution in
.claude/agents/orchestrator.md (ADR 0026).
Worker constraints
- Follow the agent definition exactly. The agent file is your
specification — detect what it says to detect, skip what it says
to skip.
- Respect context needs. When reviewing uncommitted changes or
--since,
honor the agent's Context needs field (diff-only, full-file, or
project-structure).
- Do not add findings beyond the agent's scope. If the agent
says "Ignore: naming, tests" — do not flag naming or test issues.
- The structured JSON result (step 3) is the canonical output.
In --json mode it is the only thing written to stdout — no
formatted summary, no report, no prose (see step 3c). Otherwise it is
also rendered as a formatted summary (step 4) and written to the durable
report (step 4b).
- Be concise. Issue messages should be one sentence. Suggested
fixes should be actionable, not explanatory. No preambles or
filler.
Parse Arguments
Arguments: $ARGUMENTS
Required: agent name ($0, e.g., test-review, js-fp-review, security-review)
Optional:
--since <ref>: Review files changed since a git ref--path <dir>: Target directory (default: current working directory)--internal: This is an orchestrator-internal dispatch (e.g./build's
Phase 3 inline checkpoints) — skip the .dev-team-reports/ report write in
step 4b. /build is the only sanctioned caller of this flag today.
--json: Machine-readable mode. Emit only the step-3 JSON result to
stdout and nothing else — skip the formatted summary (step 4), skip the
.dev-team-reports/ report write (step 4b), and print no confirmation line,
preamble, or trailing prose. Used by subprocess callers such as
/agent-eval --calibrate that parse stdout and need a deterministic,
model-independent result. See step 3c.
Steps
1. Load agent definition
Read .claude/agents/<name>.md. If the file doesn't exist, list available
review agents from .claude/agents/ (the Review Agents section of
knowledge/agent-registry.md is the roster) and ask the user to pick one.
2. Determine target files
Same auto-scope logic as /code-review:
- If uncommitted changes exist: review those files
- If working tree is clean: review all source files
--since <ref>:git diff --name-only <ref>...HEAD--path <dir>: review files in that directory
3. Run review
Follow the agent definition to review each target file. Produce a JSON result
per the shared contract in