Dokumentationerreichbar
Anthropic, Customize Code Review
code.claude.com (externe Seite)
Die Dokumentation dazu, wie REVIEW.md und CLAUDE.md steuern, was Code Review meldet. Dazu gehört, aus welchem Branch die Dateien gelesen werden und welche Anweisungen einen geschützten Standardbranch brauchen.
geprüft 22.11.2026
Worauf sich diese Seite beruft, wörtlich, abgerufen am 17.10.2026:
A change that violates one of their rules becomes a finding at whichever severity level fits the issue.
bestätigt 22.11.2026The step that writes the final review consults it before settling severity and writing the summary.
bestätigt 22.11.2026you can also add a REVIEW.md in most subdirectories to add checks for changes under that subdirectory, on top of the root file.
bestätigt 22.11.2026Report at most five Nits per review.
bestätigt 22.11.2026list paths and finding categories where Claude should skip findings
bestätigt 22.11.2026Keep REVIEW.md to instructions that change review behavior, and leave general project context in CLAUDE.md.
bestätigt 22.11.2026Code Review reads REVIEW.md from the pull request’s base branch or from the default branch, never from the pull request’s own changes.
bestätigt 22.11.2026To change review behavior, merge the REVIEW.md change first.
bestätigt 22.11.2026Some of these instructions need the root file on a protected default branch.
bestätigt 22.11.2026Code Review can’t confirm the protection settings.
bestätigt 22.11.2026Code Review doesn’t apply a REVIEW.md in or below a subdirectory with one of these names
bestätigt 22.11.2026add a line to the root REVIEW.md with only @ and the file name on it
bestätigt 22.11.2026Code Review includes the files when it reads REVIEW.md from a protected branch
bestätigt 22.11.2026include at most eight different files, and keep REVIEW.md and the files it includes under 150,000 bytes combined
bestätigt 22.11.2026Code Review doesn’t run skills.
bestätigt 22.11.2026a review gets the body of SKILL.md and nothing else from the skill
bestätigt 22.11.2026Code Review doesn’t accept a skill’s text as the reason for either.
bestätigt 22.11.2026Where a rule depends on one of those characters, state it in words too.
bestätigt 22.11.2026Put checks for those subdirectories in the root REVIEW.md, or in a parent subdirectory’s REVIEW.md when neither that parent nor anything above it is on the list.
bestätigt 22.11.2026The remaining subdirectory REVIEW.md files on the paths a pull request changes share a limit of 150,000 bytes, not counting the root file.
bestätigt 22.11.2026