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

Claude Code REVIEW.md

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.

Two tracks bring the default branch's REVIEW.md and the working branch's changes to a local review.
You can review a feature branch using a rule that was merged separately.

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.

Markdown
# 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:

Text
/code-review

With 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 rule, a known issue and a finding arranged in sequence inside an inspection hall.
Decide what a correct finding would identify before you run the review.

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:

Who owns the changeWhat their rule could ask the reviewer to inspectWhy it pays
Account security leadFollow a changed account lookup and identify where it restricts results to the signed-in account.The human reviewer gets a specific access decision to verify.
Checkout developerTrace the form's failure path and flag discarded entries.The author can catch a costly retry experience before asking design to review it.
API maintainerFind the integration test for each new route and flag a route without one.The team can discuss a concrete coverage gap before other services depend on the route.
On-call engineerInspect new log lines for customer emails and request bodies.The author can remove sensitive fields before they reach a shared log.
Build leadSkip generated clients and checks the formatter owns. Ask for the source line behind a behavior claim.The review thread can concentrate on decisions an author can act on.

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
Related Articles
Claude Code Auto Compact

Claude Code Auto Compact

Check why Claude Code compacted near 400K, what survived the summary, and when to use /autocompact 1M for a long codebase review.Dec 3, 2026Build
Ponytail Claude Code Plugin: How It Works and When to Turn It Off

Ponytail Claude Code Plugin: How It Works and When to Turn It Off

See how Ponytail chooses a smaller patch, install it in Claude Code or Codex, and compare the project’s code savings with JetBrains’ independent test.Dec 3, 2026Build
Building a Voice Agent With the Gemini Live API

Building a Voice Agent With the Gemini Live API

Choose a thinking level, open an audio session, and keep callers talking during a lookup. Includes Gemini 4 Live pricing, phone integrations and limits.Dec 3, 2026Build
Vercel MCP

Vercel MCP

Connect Claude Code or Codex to Vercel, diagnose a failed build, call a second model, and set up team access with Claude Enterprise-managed auth.Dec 3, 2026Build
LobeChat Is Now LobeHub: What It Does, What It Costs, and How to Start

LobeChat Is Now LobeHub: What It Does, What It Costs, and How to Start

Connect multiple models in LobeHub, add a provider key, and start a local Docker install. Check the license before distributing a modified app.Dec 3, 2026Build
AWS Kiro: What It Is, What It Costs, and How to Start

AWS Kiro: What It Is, What It Costs, and How to Start

How AWS Kiro turns a feature request into a spec, which models and plans you can use, and how to start in the IDE or terminal.Dec 3, 2026Build
What Is OpenRouter? How It Works and How to Start

What Is OpenRouter? How It Works and How to Start

Get an OpenRouter API key, make your first request, and see how provider fallback and data settings change which models your app can use.Dec 3, 2026Build
Antigravity CLI: What It Is, What It Costs, and How to Start

Antigravity CLI: What It Is, What It Costs, and How to Start

Install Google’s agy terminal agent, review your first edit, and run a headless prompt. See who moved from Gemini CLI and what Google’s terms permit.Dec 3, 2026Build
Newsletter

One letter, every Sunday.Working systems, not hot takes.

Weekly. No spam. Unsubscribe anytime.