OmniscioGuidesREVIEW.md for Claude Code Review
Teaching Claude Code Review your rules with REVIEW.md
This is the pull-request reviewer's instructions file. Which review route to use, what each one costs and what it misses is the Claude Code code review guide; this page starts once you have picked the GitHub one and want it to stop flagging the wrong things.
Last checked against Anthropic's documentation on November 24, 2026. By the Omniscio team. Updated .
Two files, and the command that reads only one
Reviews read two kinds of instruction. CLAUDE.md is the project instruction file Claude Code reads for every task, reviews included, so a change that violates one of its rules becomes a finding. REVIEW.md is for reviews alone: it says what your team wants flagged, at what severity, and what to skip.
The trap is the local command. The Code Review service and the /code-review command you run inside a session are two separate tools, and they read different files: the service reads both CLAUDE.md and REVIEW.md, while the local command reads CLAUDE.md and not REVIEW.md. Guidance you want applied in both places therefore belongs in CLAUDE.md, and REVIEW.md should hold only what is specific to pull request review.
A review reads the root CLAUDE.md plus the CLAUDE.md files in the parent directories of each changed file, and a subdirectory's CLAUDE.md when the pull request changes a file under that path.
What is actually worth writing in it
Anthropic frames the file as a fix for a specific complaint you are seeing, not a general style guide. It lists five example complaints, each mapping to a kind of instruction.
- The wrong things are marked Important. Redefine what Important means for your repository. The default calibration targets production code, and a docs, config or prototype repository probably wants a narrower definition — or a wider one, such as treating any
CLAUDE.mdviolation as Important. - Too many nits. Cap how many nit comments one review posts. Anthropic's example is five.
- Comments on generated files, or on what CI already checks. List the paths and categories to skip: generated code, lockfiles, vendored dependencies, lint and spelling that CI already enforces. For a path that deserves some review but not full scrutiny, raise the bar instead — "only report if near-certain and severe".
- A team rule nobody checks. Add it, such as "new API routes must have an integration test".
- Findings that turn out to be wrong. Require evidence before a class of finding is posted, such as a
file:linecitation rather than an inference from naming.
# Review instructions
## What Important means here
Reserve Important for findings that would break behavior, leak data,
or block a rollback: incorrect logic, unscoped database queries, PII
in logs or error messages, and migrations that aren't backward
compatible. Style, naming, and refactoring suggestions are Nit at
most.
## Cap the nits
Report at most five Nits per review.
## 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 don't include email addresses, user IDs, or request bodies
- Database queries are scoped to the caller's tenantThe file is freeform. It changes what a review finds and reports, and it does not change the format of the review itself.
The branch rule that explains most confusion
Code Review reads REVIEW.md from the pull request's base branch or from the default branch, and never from the pull request's own changes. If you edited the file in the branch you are reviewing, you changed nothing; merge the change first.
Which copy is read depends on protection, and Anthropic's own table is the shortest honest version of it:
| Branch protection | Copy read | Files read |
|---|---|---|
| The default branch is protected and the pull request targets it, or targets a branch no ruleset protects | Default branch | Root file, the files it includes, and most subdirectory files |
| The pull request targets another branch that a ruleset protects | That base branch | Root file, the files it includes, and most subdirectory files |
| The default branch is unprotected and the base branch has no protection of either kind | Default branch | Root file only |
| Protection settings cannot be confirmed, including an unprotected default branch with a base branch that has only a classic rule | None | None |
Read the last two rows together, because they hide a cliff: only a ruleset protects a non-default branch. Put a classic protection rule on the base branch of an unprotected default branch and the review reads no REVIEW.md at all, which is less than the row above it, where nothing is protected. Convert it to a ruleset.
Three kinds of instruction only take effect this way, from a root file read on a protected default branch: lowering a finding's severity, excluding paths, files or classes of issue, and capping nit comments. Write exclusions and caps in REVIEW.md itself or a file beside it, not in an included skill.
Anthropic counts two things as protection. For the default branch, a classic branch protection rule or a ruleset. For any other branch, a ruleset only — and a ruleset counts when it restricts updates or requires pull requests with at least one approval that is dismissed on a new push or required to come after the last push.
Subdirectory files, and the names that silently don't count
On a protected-branch setup you can also put a REVIEW.md in most subdirectories to add checks for changes under that path. "Most" is doing real work in that sentence: a subdirectory named on Anthropic's list is skipped whatever it holds, and the name matches whole, in any letter case and at any depth, so Tests matches and integration-tests does not.
The skipped names cover four groups: tests (test, tests, __tests__, testdata, fixtures, __fixtures__, golden, corpus, snapshots, __snapshots__), examples (example, examples, sample, samples, demo, demos), generated code (generated), and third-party code (vendor, third_party, third-party, thirdparty, node_modules, bower_components, external, extern, deps, godeps, pods, carthage, site-packages, contrib).
Checks for those directories go in the root file, or in a parent directory's file when neither that parent nor anything above it is on the list. The remaining subdirectory files on a pull request's changed paths also share a limit of 150,000 bytes, not counting the root file; if the check run says some did not fit, shorten them.
If the file grows long, it can pull other files in. A line in the root REVIEW.md holding only @ and a file name — @review-api.md — is replaced by that file's contents when the review reads it from a protected branch. The included files sit at the repository root beside REVIEW.md, and the limits behave differently. At most eight files can be included, and extra include lines past that are skipped with the count reported in the check run. REVIEW.md and everything it includes must stay under 150,000 bytes combined, and a file that would reach that limit is skipped whole, not cut short. The 64-link ceiling is the strict one: past it the review skips the whole root file. Checks can be pulled in this way, but exclusions and nit caps cannot come from an included skill — write those in REVIEW.md itself or in a file beside it.
Where these answers come from
- Customize Code Review, read November 24, 2026: the two files, the local command's difference, the five complaints and example file, the branch-protection table, the skipped subdirectory names, and the 150,000-byte limit.
- Code Review: what the service is and how a review runs.
- Review locally with /code-review: the command, its arguments and effort levels.
Common questions
Why are my REVIEW.md changes ignored on the pull request?
Because Code Review reads REVIEW.md from the base branch or the default branch, never from the pull request's own changes. Editing the file in the branch under review changes nothing until that file is merged, so put the change in its own pull request and merge it first.
Does the local /code-review command read REVIEW.md?
No. The Code Review service and the /code-review command you run inside a session are two separate tools, and they read different files: the service reads CLAUDE.md and REVIEW.md, while the local command reads your CLAUDE.md files and not REVIEW.md. Guidance you want in both places belongs in CLAUDE.md.
Why does a subdirectory REVIEW.md not apply?
Code Review skips a subdirectory REVIEW.md whose directory name is one of a fixed list of test, example, generated and third-party names, matched as a whole name in any letter case at any depth. Put those checks in the root REVIEW.md or in a parent directory's file instead. The remaining subdirectory files also share a 150,000 byte limit, not counting the root file.
Can REVIEW.md hide a finding or stop a merge?
It changes what a review finds and reports; it does not change the format of the review. Three instructions are honoured only from a root file read on a protected default branch: lowering a finding's severity, excluding paths or classes of issue, and capping nits.