Skip to content

docs: add the files Claude Code Review reads - #419

Open
aronstrandberg wants to merge 3 commits into
mainfrom
aronstrandberg/claude-review-files
Open

aronstrandberg wants to merge 3 commits into
mainfrom
aronstrandberg/claude-review-files

Conversation

@aronstrandberg

@aronstrandberg aronstrandberg commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Add CLAUDE.md and REVIEW.md, the two files Claude Code Review reads, so that its reviews here know the rules in AGENTS.md and stay off what CI already checks and off fixtures that are wrong on purpose. CLAUDE.md only imports AGENTS.md, and REVIEW.md adds no rule of its own.

Claude Fable 5.2, max

Why. Claude Code Review has run on this repository's pull requests since 1 December. It takes a repository's rules from CLAUDE.md and its review instructions from REVIEW.md (Customize Code Review). Neither file existed here: the rules are in AGENTS.md, and the service's documentation names CLAUDE.md only.

CLAUDE.md is one line, @AGENTS.md, the import the Claude Code documentation gives for a repository whose rules live in AGENTS.md (Share one file with other coding tools). The rules stay in one file. Claude Code versions that do not read AGENTS.md by themselves get the rules through it too.

REVIEW.md has four short sections, each taken from what the repository already says:

  • Severity: the review's own judgement stands, with two changes. A break of a rule under "Rules" or "Anti-Patterns" in AGENTS.md is Important. A remark on naming or a comment's wording, and a suggestion to restructure code that is correct, are Nit at most.
  • Always check: a test that asserts, with no test deleted or tagged manual (AGENTS.md, Testing); a changelog.d/ fragment when the pull request changes what a rule, a tool, Gazelle or CI does, under ### Breaking with the consumer's edit for a break (CONTRIBUTING.md); and the page under docs/ for a public API change (CONTRIBUTING.md). The last two are there because the review does not read CONTRIBUTING.md. The fragment is asked for by what a pull request changes, so a bump of a development dependency and the release workflow's .bcr/ update need none, which is what main does today.
  • Do not report: what .github/workflows/ci.yml already fails a pull request on, and a fixture source under tests/ that is wrong on purpose, unless the test over it does not expect the failure.
  • Evidence: a finding about behaviour cites the file:line it rests on.

It caps no nits. Lockfiles stay in scope: here they are the default compiler's pin and the fixtures the npm reader is tested against.

When it takes effect. The review reads REVIEW.md from the default branch, never from a pull request's own changes. So this PR is reviewed without it, and later ones with it. main has a branch protection rule, which the service requires before it honours exclusions and lowered severities from the file.

Checked. bazel test //tools/changelog/... passes, bazel run //tools/changelog prints the entry, and tools/ci/check_retired_names.sh passes. The three files are Markdown, and nothing builds from them.

Claude Code Review now runs on this repository's pull requests. It reads
a repository's rules from CLAUDE.md and its review instructions from
REVIEW.md, and there was neither: the rules are in AGENTS.md.

CLAUDE.md imports AGENTS.md, so the rules stay in one file and every
version of Claude Code reads them too.

REVIEW.md adds no rule. It says which findings count as Important, lists
the three checks a pull request gets from AGENTS.md and CONTRIBUTING.md
(a test that asserts, a changelog fragment, the docs page), and keeps a
review off what CI already fails on, lockfiles and fixture sources that
are wrong on purpose. The review reads REVIEW.md from the default
branch, never from a pull request, so it takes effect once merged.
@aronstrandberg
aronstrandberg requested a review from mikn as a code owner December 1, 2026 21:34

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Findings marked 🟡 are optional suggestions and need no follow-up push.

Comment thread REVIEW.md Resolved
Comment thread REVIEW.md Resolved
Comment thread REVIEW.md Resolved
Comment thread REVIEW.md Resolved
The first review of this file found four places where it took more away
than it meant to.

"Reserve Important for" two kinds of finding capped every other kind,
security findings among them. The review's own judgement of severity now
stands, with one kind raised (a break of a rule in AGENTS.md) and one
lowered (naming, comment wording, restructuring of correct code).

The exemption from the changelog fragment covered every dependency bump,
though a bump that raises a compatibility floor is a breaking change
with a fragment of its own. It now covers a bump that changes nothing
for a consumer.

Lockfiles are out of "Do not report": here they are the default
compiler's pin and the fixtures the npm reader is tested against.

"The checks under tools/ci/" included check_tools_lock.sh, which runs on
a release tag and not on a pull request. The bullet now names what
ci.yml fails a pull request on.

Fixture sources are skipped only under tests/ and only where the test
over them expects the failure. e2e/ and examples/ hold working examples.
@aronstrandberg

Copy link
Copy Markdown
Member Author

@claude review

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing blocking. The comments below are optional suggestions. There is no need to push a fix for them before merging.

Comment thread REVIEW.md Resolved
REVIEW.md asked every pull request for a fragment and listed one
exception, a dependency bump. A list of exceptions is never complete:
the release workflow's own pull request, which rewrites .bcr/source.json
and nothing else, would get a finding it cannot satisfy.

The check now names when a fragment is due: when the pull request
changes what a rule, a tool, Gazelle or CI does. A bump of a development
dependency and the BCR metadata update change none of those. A bump that
raises a compatibility floor is still a breaking change with a fragment.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant