Claude Code REVIEW.md
Where Claude Code reads REVIEW.md, what to put in it, and how to check your rules with a sample change. Includes a full web team example.
Published

If your web team keeps asking the same question in review, put it in REVIEW.md. A developer can then run /code-review before opening a pull request and get a review guided by the team's rules. Since Claude Code 2.1.333, the local command follows the root file on the repository's default branch. That last detail matters the first time you try it.
Where Claude Code reads REVIEW.md
Save REVIEW.md at the top level of the repository and merge it into the default branch. The root is the folder that contains the whole project. The default branch is the one the repository designates as its main line of development, often called main.
Suppose your checkout is on checkout-retry and you add a rule asking the reviewer to flag a payment form that loses a customer's entries after an error. If the rule exists only on checkout-retry, running the command there won't activate that edit to the root file. Merge the rule into the default branch first. The feature branch supplies the work being inspected. The default branch supplies the team's agreed root instructions.

The November 30 changelog for version 2.1.333 gives the change in one line:
Added REVIEW.md support to
/code-review: local reviews now follow the root REVIEW.md on your repository's default branch
There is a discrepancy in Anthropic's documentation. As of December 3, its local review and customization guides still say the command skips REVIEW.md. The dated releases record the change, including folder-level rules above a committed change in 2.1.334. Check your installed version with claude --version. The root file is the place to start for a rule the whole team shares.
A complete REVIEW.md for a web team
Write ordinary Markdown. Give the reviewer a condition it can recognize in the changed code and a reason the finding matters. “Check checkout quality” leaves the reviewer guessing. “Flag a failed submission that clears the customer's entries” gives it a specific path through the form to inspect.
Here is a complete example for a team that owns checkout and account pages. Adapt the paths and the checks to your application. The headings are for the people maintaining the file. The suggested severity, exclusions and evidence requests follow the patterns in Anthropic's customization guide.
# Web team review rules
## Customer-facing behavior
- Flag a checkout error that clears the customer's form entries.
- For a new API route, check for an integration test that exercises the route.
- Treat a change that exposes another account's records as Important.
## Security checklist
- Check that account queries are scoped to the signed-in customer's account.
- Flag log statements that include an email address or a request body.
- For each finding, point to the changed line and explain what data is at risk.
## Keep the review focused
- Skip formatting and import order. Our CI already checks both.
- Skip generated client files under src/gen/. Review the source schema instead.
- Report at most two minor suggestions. Give correctness findings first.The exclusions are as specific as the checks. If your formatter sorts imports, another comment about import order costs the author a decision someone has already made. If your CI (the automated checks that run on a change) only formats whitespace, remove import order from the exclusion. A skip rule should have an owner elsewhere.
How to check whether the rule is being followed
Use a harmless example with a known answer. First merge the rule about retaining form entries into the default branch. On a disposable feature branch, change a sample form so its error handler clears an entry. Leave the security and logging code alone. At the Claude Code prompt, type:
/code-reviewWith no target, the command reviews the branch changes, including uncommitted edits. In a terminal session the review runs in the background and returns findings to the conversation. Look for a finding that points to the reset and explains that someone retrying the submission would need to retype their entry. Read the line yourself. Then remove the sample change. The local command guide covers targets, findings and the optional --fix flag. For this check, leave the flag off so you're asking for a report.

A match is a useful signal. Claude could also notice the bug on its own. For a stronger check, compare findings on the same sample change before and after the rule lands, keeping the review target and effort level the same. If it misses, check the installed version, filename, location and merged copy before rewriting the rule. A quiet review gives you no assurance that the code is safe. Keep a test for behavior you need to guarantee.
Which team rules earn their place?
Start with a repeated finding that requires knowledge of your product. Those rules save a senior reviewer from having to explain the same failure to each new author. Five places to look, in priority order:
REVIEW.md, CLAUDE.md and pull requests
Use CLAUDE.md for context Claude needs throughout the project, such as which command runs the integration suite. Put “flag each new route lacking an integration test” in REVIEW.md. One helps someone work in the repository. The other tells a reviewer what merits a comment. For a wider team agreement about who checks findings and approves changes, see the AI-generated code review policy.
The local command runs in your session on any plan. The managed GitHub service runs on Anthropic infrastructure after an organization Owner enables it for a Team or Enterprise repository. It can post inline findings, a summary and a check on the pull request. By itself, that review neither approves nor blocks the merge. Compare Anthropic's review options.
For the managed service, branch protection matters. It reads review instructions from the base or default branch according to the protection settings. The pull request's own changes cannot supply its rules. For exclusions, lower severities and caps on minor comments, Anthropic documents the root file on a protected default branch. Keep these hosted-service conditions in mind before promising that a GitHub review will look like your local one.
If you're setting up the terminal, start with the Claude Code CLI guide. Teams that own their CI workflow can use the GitHub Actions walkthrough. For an action that must run at a particular event, consult the Claude Code hooks and events guide.
For an assessment of the whole product, read our Claude Code review.
Two things a team could build
The stronger opportunity is a checklist calibration kit. A platform lead supporting several web teams could buy a small set of harmless sample changes, a candidate rule for each and a worksheet of expected findings. Start with a form reset, an untested API route and a logging change with synthetic data. Let the lead run the samples and decide which rules earn a place in each repository. Searches for code review checklists and checklist templates suggest an audience for a starting point. The part worth paying for would be examples that distinguish a useful rule from a vague one. A pack of generic rules alone is easy to copy.
A security review template service could serve teams with shared account infrastructure. Start with a workshop in which the security lead chooses one data boundary, writes a review instruction and pairs it with an existing automated check. Deliver the short file and a sample diff the team can use after its next policy change. People look specifically for security code review checklists, but that interest alone doesn't establish a budget. A team with a mature internal checklist would only gain something if the service helped translate its own rules into findings it could verify.
Frequently asked questions
What belongs in a software code review checklist?
Choose failure modes your team recognizes. For a web service, a new route lacking an integration test or an account lookup without an ownership check gives the reviewer a concrete question. Add the evidence a human needs to verify the finding.
Can I start with a code review checklist template?
Yes. Copy the example above, replace its paths and delete any exclusions your CI doesn't cover. Merge the file and try one rule against a change with a known outcome.
Where does the code review checklist go on GitHub?
For the shared local rules in this guide, commit the root file as REVIEW.md on your repository's default branch. If you also use the managed pull-request service, check the protection settings for the branch the pull request targets.
If your next decision is which reviewer to use across repositories, compare the best AI code review tools for small teams.
- Published
- Category
- Build







