PROMPT · quality-cd
REVIEW.md: severity and noise control
A REVIEW.md for Claude Code's managed Code Review that recalibrates what Important means, caps nit volume, skips what CI already enforces, and adds the repo's always-check rules.
✓ verified 2026-07-18 · stack: claude-code, github · source
Managed Code Review reads two files: CLAUDE.md as project context (new
violations flagged as nits) and REVIEW.md, injected into every review
agent’s system prompt as the highest-priority instruction block
(code review). REVIEW.md is
where a team stops a reviewer being generically right and noisy, and makes
it specifically right and quiet. This one is tuned for a backend service;
edit the nouns, keep the shape.
# Review instructions
## What Important means here
Reserve Important for findings that would break behaviour, leak data,or block a rollback: incorrect logic, unscoped database queries, PII inlogs or error messages, and migrations that are not backward compatible.Style, naming, and refactoring suggestions are Nit at most.
## Cap the nits
Report at most five Nits per review. If you found more, say "plus Nsimilar items" in the summary instead of posting them inline. Ifeverything you found is a Nit, lead the summary with "No blockingissues."
## Do not report
- Anything CI already enforces: lint, formatting, type errors- Generated files under src/gen/ and any *.lock file- Test-only code that intentionally violates production rules
## Always check
- New API routes have an integration test- Log lines do not include email addresses, user IDs, or request bodies- Database queries are scoped to the caller's tenant
## Verification bar
Behaviour claims need a file:line citation in the source, not aninference from naming.
## Re-review convergence
After the first review, suppress new Nits and post Important findingsonly.What it does
- Severity recalibration is the highest-value line: the default calibration targets production code generally; naming your repo’s Important classes explicitly is what makes 🔴 mean “fix before merge” rather than “reviewer opinion”.
- The nit cap keeps reviews actionable; prose and config can be polished forever, and “at most five, count the rest” is the documented pattern.
- Skip rules remove double enforcement. Anything a linter or CI gate already fails is noise from a second reporter; the CI-as-outer-gate pattern owns those classes.
- The verification bar cuts false positives by requiring evidence (“a file:line citation, not an inference from naming”), which is the same code-over-opinion discipline the evals guidance applies to graders.
- Re-review convergence stops a one-line fix reaching round seven on style alone; the documented rule is verbatim here.
Failure modes
- REVIEW.md is pasted verbatim.
@import syntax is not expanded and referenced files are not read; every rule you want must be in this file. Length dilutes: keep it to instructions that change review behaviour. - The local
/code-reviewcommand does not read REVIEW.md. It follows CLAUDE.md like any session; the two reviewers can therefore disagree by design. Put rules both surfaces must share in CLAUDE.md, review-only tuning here. - Findings never block merges on their own. The check run completes
neutral. To gate on findings, parse the machine-readable severity tally
from the check run output in your own CI (
gh api ... check-runs) and fail on a non-zero Important count; the docs carry the exact jq recipe. - Availability and cost are plan realities. Managed Code Review is a research preview for Team/Enterprise plans, is unavailable under Zero Data Retention, and bills per review ($15 to $25 average) through usage credits; per-push triggering multiplies that. Choose the trigger mode with the cost engineering pillar’s hat on.
Verified against the REVIEW.md injection semantics, tuning patterns, example file, local-command exception, check-run gating recipe, and pricing at code.claude.com/docs/en/code-review, 2026-07-18.