A review tool that comments on everything teaches people to ignore it. Claude Code Review, the hosted reviewer from Anthropic that comments on GitHub pull requests, starts with a focus on correctness, meaning bugs that would break production. That is a sane default. It is also a generic one, and generic reviewers produce generic noise: nits on style, comments on files nobody wrote by hand, and silence on the one rule your team actually cares about.
REVIEW.md is how you narrow that gap. It is a Markdown file at the root of your repository that holds instructions for reviews alone. The steps below follow Anthropic’s Code Review documentation, checked on December 1, 2026. This article does not claim a live run against a real repository of its own.
What You Will Build or Learn
You will build a review instruction file that travels with your repository and shapes every review Claude Code Review runs on it. You will learn where the file has to live, which instructions only count when the branch is protected, and how to test the result with a pull request you control.
The split between files matters. CLAUDE.md holds project instructions that Claude Code reads for every task, reviews included. REVIEW.md holds review instructions alone. Anthropic’s guidance is plain: keep REVIEW.md to instructions that change review behaviour, and leave general project context in CLAUDE.md. For a related guardrail setup, see our tutorial on auditing Claude Code with a second model.
A REVIEW.md file is plain Markdown. The craft is in choosing few rules and stating them sharply. Illustration: Dirty Static
Before You Begin
Confirm that Code Review is already set up for the repository. An Owner of your Claude organization turns it on in Organization settings under Claude Ship on claude.ai, connects GitHub, and installs the Claude GitHub App. Reviews run on Anthropic infrastructure, so there are no workflow files to add. If no review has ever appeared on a pull request in the repository, fix that first. A REVIEW.md file tunes a working reviewer. It does not switch one on.
Step 1: Write the Root File
Action: create REVIEW.md at the root of your repository. Start from the shape in Anthropic’s documentation, which recalibrates severity for a backend service, caps nits, skips generated files, and adds checks the team cares about. Replace the example rules with your own.
# 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
in logs 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.
## Do not report
- Anything CI already enforces: lint, formatting, type errors
- Generated files under `src/gen/` and any `*.lock` file
- Test code that intentionally breaks production rules
## Always check
- New API routes have an integration test
- Log lines never include email addresses or request bodies
- Database queries are scoped to the caller's tenant
## Evidence
Behaviour claims need a `file:line` citation in the source,
not an inference from naming.
Expected result: the file states five kinds of instruction, and each one maps to a problem teams actually hit. Severity rules fix findings marked Important that should not be. A nit cap fixes volume. A skip list fixes comments on generated files and on ground your CI already covers. Always check rules add the scrutiny the default review lacks. An evidence rule pushes back on findings that turn out to be wrong.
Step 2: Commit and Merge the File
Action: put the file on your default branch through your normal review process.
git checkout -b add-review-md
git add REVIEW.md
git commit -m "Add REVIEW.md review instructions"
git push -u origin add-review-md
Expected result: the branch is pushed and ready for a pull request. Open that pull request, get it approved, and merge it. The file only starts shaping reviews once it sits on the branch reviews read from.
Step 3: Protect the Default Branch
Action: protect the default branch in GitHub, through Settings and then Branches, with a classic branch protection rule or a ruleset. For a ruleset to count as protection, Anthropic says it must restrict updates, or require pull requests with at least one approval, with that approval dismissed on a new push or required after the last push.
Branch protection is what gives the quieter instructions force. The rules sit on a branch a pull request cannot rewrite. Illustration: Dirty Static
Expected result: with the root file on a protected default branch, a review honours the instructions that make it quieter: lowering a finding’s severity, excluding paths, files, or classes of issue, and capping nit comments. Without protection, a review reads only the root file, and includes and subdirectory files fall away. That detail is the whole design. The rules that reduce scrutiny are the rules an author would most want to smuggle into their own pull request, so those are the ones gated on protection.
Step 4: Add a Subdirectory File Only Where It Earns Its Place
Action: if one part of the tree needs extra checks, add a second REVIEW.md inside that subdirectory, on top of the root file. The agents that find issues and the agents that verify them receive its contents for changes under that path.
Expected result: the subdirectory file adds checks for its own subtree and changes nothing elsewhere. If the check run reports that some files did not fit, shorten them.
Step 5: Split a Long File With Includes
Action: when the root file grows long, move rule sets into separate files at the repository root and pull each one in with a line that holds only @ and the file name.
# Review instructions
Report at most five Nits per review.
@security-rules.md
@api-rules.md
Expected result: on a protected branch, a review puts each included file’s contents in place of its @ line. The limits are strict. Include at most eight files, keep REVIEW.md and its includes under 150,000 bytes combined, keep Markdown links at 64 or fewer across all of them, and list every file in the root file, since an @ line inside an included file stays as plain text. A skill file can be included too, at .claude/skills/<folder>/SKILL.md, with its own limit of 30,000 bytes.
Step 6: Open a Test Pull Request
Action: open a small pull request that should trigger one of your rules, for example a new API route with no integration test, in a repository where reviews run after creation or on each push. If the repository is set to Manual, comment @claude review on the pull request to request one.
Expected result: a check run named Claude Code Review appears, with inline comments and a summary. A review never approves or blocks a pull request, so the merge decision stays with your team either way.
Verification
Check three things on the test pull request. First, the rule you planted fires: the missing test, or whatever you set up, is named in a comment. Second, the noise you banned stays absent: no comments on the generated files or lock files in the change, and no more than five Nits in total. Third, open the check run and read any note that mentions REVIEW.md. The documentation points there when instructions were skipped or only partly applied, and the note says which limit or branch condition caused it.
If the planted rule does not fire, do not rewrite the file at random. Confirm the merged file is on the branch the review reads, confirm that branch is protected, and only then adjust the wording of the rule itself.
Troubleshooting
| Problem | Likely cause | Fix |
|---|---|---|
| No review runs at all | Code Review is off, or the repository is set to Manual | Have an Owner check Claude Ship settings, or comment @claude review |
| Skip rules and nit cap are ignored | The default branch is not protected | Add a branch protection rule or a qualifying ruleset |
| A rule change has no effect on the current pull request | Reviews read the base or default branch, never the pull request itself | Merge the REVIEW.md change first, then retest |
| A subdirectory file never applies | Its directory name is on the skipped list, such as tests or vendor | Move those checks into the root file or a parent file |
| An included file stays as plain text | The file is not at the repository root, or the branch is unprotected | Move it beside REVIEW.md and protect the branch |
| The check run says instructions were not applied | A limit was passed: eight includes, 150,000 bytes, or 64 links | Shorten the files and cut links until the totals fit |
Next Steps
Start small and let real reviews teach you the next rule. Every false alarm your team argues about is a candidate line for the evidence section. Every comment a reviewer should never have made is a candidate for the skip list. Resist the urge to write a constitution on day one. A short file that matches how your team actually judges code beats a long file nobody maintains, and a stale REVIEW.md is worse than none, since it teaches the reviewer to enforce rules the team has already dropped. Pair this with our guide to stopping Claude Code from leaking secrets to GitHub if your reviews touch code that handles credentials.
Sources
- Anthropic, Claude Code documentation: Customize Code Review, covering
REVIEW.mdandCLAUDE.md, branch rules, includes, and limits. https://code.claude.com/docs/en/code-review-customize - Anthropic, Claude Code documentation: Set up Code Review, covering Owner setup, the Claude GitHub App, review levels, and when reviews run. https://code.claude.com/docs/en/code-review-setup
- Illustrations: Dirty Static.
END OF TRANSMISSION
Stay curious. Question everything.


