Skill v1.0.1
Automated scan100/100+4 new
version: "1.0.1" name: code-review-protocol description: Structured, report-only review across correctness, safety, patterns, coverage, and scope with host-native reviewer routing.
Code Review Protocol
Review is an evidence-producing operation, not standing permission to edit. Read ../../references/workflows/protocol.md, then review the requested diff across the five dimensions below.
Dimensions
- Correctness — Does it work? Logic errors, race conditions, off-by-one, type mismatches.
- Safety — Edge cases, auth bypass, data leakage, injection, money-path errors.
- Patterns — Follows project conventions? Naming, error handling, logging, module structure.
- Coverage — Declared test policy and acceptance evidence satisfied? Relevant failure cases covered?
- Scope — Touches only declared files? No drive-by changes.
See references/review-dimensions.md for full rubric.
Procedure
- Resolve the declared scope, intent/spec, base ref, target ref, changed files,
and focused outcomes. Compute the diff from refs when possible.
- Read project instructions and every changed file needed to understand the
diff. Do not widen into unrelated cleanup.
- Inspect the full declared scope across all five dimensions before deciding
the verdict. Send any urgent blocker to the conductor promptly, then finish the remaining safe inspection on the same scope and refs. Report every distinct, evidence-backed, actionable issue together; do not invent issues to fill a list. If any declared scope could not be inspected, identify it and the reason in the summary, and score affected dimensions NEEDS_REVIEW.
- Score each dimension
PASS,NEEDS_FIX, orNEEDS_REVIEWusing
references/review-dimensions.md.
- For each issue, identify
file:line, a reachable failure path, the violated
requirement, and evidence still missing to accept or dismiss it. Explain impact in description and give a concrete suggested_fix. Emit the structured verdict below and route it through references/verdict-routing.md. Pass the JSON through scripts/review-batch-render.py --validate-only before recording a pass. This accepts one verdict or a {"reviews": [...]} batch; validation failure leaves the review gate pending. For a final planctl PASS, write one verdict to a JSON file and include reviewed with the full commit SHAs for base_ref and target_ref, every exact repository-relative scope file, and "integration_reviewed": true only after inspecting the joins across the completed run. planctl review pass --verdict-file validates that same file against its captured refs and scope before recording acceptance.
- Stop. Only an explicit
--fixor user go-word authorizes a separate
remediation pass. A NEEDS_FIX score does not authorize edits or a commit.
Verdict
{"verdict": "PASS | CONDITIONAL_PASS | FAIL","confidence": 0.9,"blast_radius": "isolated | file | module | cross-cutting | dependency-graph","dimensions": {"correctness": "PASS | NEEDS_FIX | NEEDS_REVIEW","safety": "PASS | NEEDS_FIX | NEEDS_REVIEW","patterns": "PASS | NEEDS_FIX | NEEDS_REVIEW","coverage": "PASS | NEEDS_FIX | NEEDS_REVIEW","scope": "PASS | NEEDS_FIX | NEEDS_REVIEW"},"issues": [{"severity": "critical | high | medium | low","file": "path","line": 1,"title": "short title","description": "evidence and impact","failure_path": "entry point → changed contract → observed failure","violated_requirement": "specific requirement or invariant","missing_evidence": "specific proof needed to accept or dismiss the finding","suggested_fix": "specific remediation"}],"summary": "concise result"}
Final acceptance adds "reviewed": {"base_ref": "<full SHA>", "target_ref": "<full SHA>", "scope": ["path/to/file.py"], "integration_reviewed": true} to the single verdict. Ordinary task reviews and batch rendering do not require this final-acceptance field.
PASS means no substantive issue. CONDITIONAL_PASS means bounded, non-critical issues with a safe disposition. FAIL means a critical/high issue or an unresolved concern that makes acceptance unsafe. Zero issues is valid.
Reviewer adapter
- Native Codex review defaults to the configured
gpt-6-sol, high-effort
route. Do not spawn an external reviewer unless the user explicitly selects one.
- Claude Code retains its command/agent/project reviewer configuration. The
protocol does not declare a universal Opus reviewer.
- An external reviewer is an additional explicit lens. Record its identity and
keep its evidence distinct from the native verdict.