AI code review went mainstream this autumn, and teams found each reviewer reads its own file: Claude Code Review reads REVIEW.md from the default branch (never from the PR), Bugbot reads .cursor/BUGBOT.md and ignores .cursor/rules, and Copilot uses instruction files with applyTo and excludeAgent. This loadout gives your agent the map of who reads what, rules for writing review instructions that cut noise, and a skill that writes all three files from one evidence-based list.
What's in it
- Who reads what: REVIEW.md, .cursor/BUGBOT.md, Copilot instruction files
- Severity, nit cap, do-not-report and always-check sections
- Rules come from evidence: past false positives and real misses
- Reminder that REVIEW.md changes apply only after merging to a protected default branch
- Copilot review-only file with excludeAgent
You'll need
- Tools:
gh
Verification
| Check | Result | What we found |
|---|---|---|
| Listinglisting.yaml matches the schema and declares every file in the folder. | Pass | Schema valid; 6 files declared, none missing or extra
|
| Files parseJSON parses; SKILL.md and .mdc front matter is valid YAML with the fields each agent needs; code fences are closed. | Pass | All 6 files parse; front matter valid |
| AdaptersCLAUDE.md imports @AGENTS.md, GEMINI.md imports @./AGENTS.md, and both match the generator. | Pass | CLAUDE.md and GEMINI.md import AGENTS.md and are up to date
|
| Install pathsEvery file lands where each agent documents it, with no collisions, and the laid-out project is re-discovered correctly. | Pass | Correct paths for all 6 agents; layouts re-discovered
|
| MCP configmcp.json is structurally valid, converts to each agent's format, declares no literal secrets, and referenced packages exist on npm/PyPI. | Not applicable | No MCP servers in this loadout |
| Safety scanThe intake scanner finds no credentials, risky shell, hidden Unicode or prompt-injection wording, and the listing's network flag is honest. | Pass | Clean: no credentials, risky shell or hidden text
|
| ReferencesLinks and file paths between the loadout's files resolve, including for each agent's installed layout. | Pass | 4 references between files resolve for every agent |
| Size limitsFile count and sizes are within the submission limits; SKILL.md bodies stay under 500 lines. | Pass | 6 files, 5.3 KB total; largest AGENTS.md 1.8 KB
|
| LicenceA recognised SPDX licence, with the licence text available. | Pass | MIT, by Agent Loadout; text in the repository LICENSE |
| Starter buildA minimal fixture project with the loadout applied installs and builds or type-checks, and the loadout's own code examples compile. | Not applicable | Not applicable: review-rule templates for hosted reviewers
|
What this means: a script checked the files themselves: they parse, they install where each agent looks, any MCP config is sound, the safety scan is clean, references between files resolve, and, where a free and repeatable fixture exists, a small starter project builds with the loadout applied. No AI agent was run. Per-agent results ("tested with agent") are separate and stay untested until an agent actually runs.
Install
Choose your agent. Run the commands from your project root, or download a zip already laid out in the right folders.
Claude Code reads CLAUDE.md (imports AGENTS.md with @AGENTS.md) and skills from .claude/skills/.
curl -fsSL --create-dirs -o AGENTS.md https://loadout.jnw-it.com/raw/ai-code-review-rules/1.0.0/AGENTS.md curl -fsSL --create-dirs -o CLAUDE.md https://loadout.jnw-it.com/raw/ai-code-review-rules/1.0.0/CLAUDE.md curl -fsSL --create-dirs -o .claude/skills/set-up-review-rules/SKILL.md https://loadout.jnw-it.com/raw/ai-code-review-rules/1.0.0/skills/set-up-review-rules/SKILL.md curl -fsSL --create-dirs -o .claude/skills/set-up-review-rules/references/review-rules-template.md https://loadout.jnw-it.com/raw/ai-code-review-rules/1.0.0/skills/set-up-review-rules/references/review-rules-template.md curl -fsSL --create-dirs -o .claude/skills/set-up-review-rules/references/copilot-review-instructions.md https://loadout.jnw-it.com/raw/ai-code-review-rules/1.0.0/skills/set-up-review-rules/references/copilot-review-instructions.md
| File | Goes to |
|---|---|
AGENTS.md | AGENTS.md |
CLAUDE.md | CLAUDE.md |
skills/set-up-review-rules/SKILL.md | .claude/skills/set-up-review-rules/SKILL.md |
skills/set-up-review-rules/references/review-rules-template.md | .claude/skills/set-up-review-rules/references/review-rules-template.md |
skills/set-up-review-rules/references/copilot-review-instructions.md | .claude/skills/set-up-review-rules/references/copilot-review-instructions.md |
Already have an AGENTS.md or CLAUDE.md? The commands above overwrite it — download the file instead and merge the sections you want.
Codex CLI reads AGENTS.md and skills from .agents/skills/.
curl -fsSL --create-dirs -o AGENTS.md https://loadout.jnw-it.com/raw/ai-code-review-rules/1.0.0/AGENTS.md curl -fsSL --create-dirs -o .agents/skills/set-up-review-rules/SKILL.md https://loadout.jnw-it.com/raw/ai-code-review-rules/1.0.0/skills/set-up-review-rules/SKILL.md curl -fsSL --create-dirs -o .agents/skills/set-up-review-rules/references/review-rules-template.md https://loadout.jnw-it.com/raw/ai-code-review-rules/1.0.0/skills/set-up-review-rules/references/review-rules-template.md curl -fsSL --create-dirs -o .agents/skills/set-up-review-rules/references/copilot-review-instructions.md https://loadout.jnw-it.com/raw/ai-code-review-rules/1.0.0/skills/set-up-review-rules/references/copilot-review-instructions.md
| File | Goes to |
|---|---|
AGENTS.md | AGENTS.md |
skills/set-up-review-rules/SKILL.md | .agents/skills/set-up-review-rules/SKILL.md |
skills/set-up-review-rules/references/review-rules-template.md | .agents/skills/set-up-review-rules/references/review-rules-template.md |
skills/set-up-review-rules/references/copilot-review-instructions.md | .agents/skills/set-up-review-rules/references/copilot-review-instructions.md |
Already have an AGENTS.md or CLAUDE.md? The commands above overwrite it — download the file instead and merge the sections you want.
Cursor reads AGENTS.md + .cursor/rules/*.mdc and skills from .agents/skills/.
curl -fsSL --create-dirs -o AGENTS.md https://loadout.jnw-it.com/raw/ai-code-review-rules/1.0.0/AGENTS.md curl -fsSL --create-dirs -o .agents/skills/set-up-review-rules/SKILL.md https://loadout.jnw-it.com/raw/ai-code-review-rules/1.0.0/skills/set-up-review-rules/SKILL.md curl -fsSL --create-dirs -o .agents/skills/set-up-review-rules/references/review-rules-template.md https://loadout.jnw-it.com/raw/ai-code-review-rules/1.0.0/skills/set-up-review-rules/references/review-rules-template.md curl -fsSL --create-dirs -o .agents/skills/set-up-review-rules/references/copilot-review-instructions.md https://loadout.jnw-it.com/raw/ai-code-review-rules/1.0.0/skills/set-up-review-rules/references/copilot-review-instructions.md
| File | Goes to |
|---|---|
AGENTS.md | AGENTS.md |
skills/set-up-review-rules/SKILL.md | .agents/skills/set-up-review-rules/SKILL.md |
skills/set-up-review-rules/references/review-rules-template.md | .agents/skills/set-up-review-rules/references/review-rules-template.md |
skills/set-up-review-rules/references/copilot-review-instructions.md | .agents/skills/set-up-review-rules/references/copilot-review-instructions.md |
Already have an AGENTS.md or CLAUDE.md? The commands above overwrite it — download the file instead and merge the sections you want.
Gemini CLI reads GEMINI.md (imports AGENTS.md with @./AGENTS.md) and skills from .agents/skills/.
curl -fsSL --create-dirs -o AGENTS.md https://loadout.jnw-it.com/raw/ai-code-review-rules/1.0.0/AGENTS.md curl -fsSL --create-dirs -o GEMINI.md https://loadout.jnw-it.com/raw/ai-code-review-rules/1.0.0/GEMINI.md curl -fsSL --create-dirs -o .agents/skills/set-up-review-rules/SKILL.md https://loadout.jnw-it.com/raw/ai-code-review-rules/1.0.0/skills/set-up-review-rules/SKILL.md curl -fsSL --create-dirs -o .agents/skills/set-up-review-rules/references/review-rules-template.md https://loadout.jnw-it.com/raw/ai-code-review-rules/1.0.0/skills/set-up-review-rules/references/review-rules-template.md curl -fsSL --create-dirs -o .agents/skills/set-up-review-rules/references/copilot-review-instructions.md https://loadout.jnw-it.com/raw/ai-code-review-rules/1.0.0/skills/set-up-review-rules/references/copilot-review-instructions.md
| File | Goes to |
|---|---|
AGENTS.md | AGENTS.md |
GEMINI.md | GEMINI.md |
skills/set-up-review-rules/SKILL.md | .agents/skills/set-up-review-rules/SKILL.md |
skills/set-up-review-rules/references/review-rules-template.md | .agents/skills/set-up-review-rules/references/review-rules-template.md |
skills/set-up-review-rules/references/copilot-review-instructions.md | .agents/skills/set-up-review-rules/references/copilot-review-instructions.md |
Already have an AGENTS.md or CLAUDE.md? The commands above overwrite it — download the file instead and merge the sections you want.
Antigravity CLI reads AGENTS.md (read natively; GEMINI.md is also read) and skills from .agents/skills/.
curl -fsSL --create-dirs -o AGENTS.md https://loadout.jnw-it.com/raw/ai-code-review-rules/1.0.0/AGENTS.md curl -fsSL --create-dirs -o .agents/skills/set-up-review-rules/SKILL.md https://loadout.jnw-it.com/raw/ai-code-review-rules/1.0.0/skills/set-up-review-rules/SKILL.md curl -fsSL --create-dirs -o .agents/skills/set-up-review-rules/references/review-rules-template.md https://loadout.jnw-it.com/raw/ai-code-review-rules/1.0.0/skills/set-up-review-rules/references/review-rules-template.md curl -fsSL --create-dirs -o .agents/skills/set-up-review-rules/references/copilot-review-instructions.md https://loadout.jnw-it.com/raw/ai-code-review-rules/1.0.0/skills/set-up-review-rules/references/copilot-review-instructions.md
| File | Goes to |
|---|---|
AGENTS.md | AGENTS.md |
skills/set-up-review-rules/SKILL.md | .agents/skills/set-up-review-rules/SKILL.md |
skills/set-up-review-rules/references/review-rules-template.md | .agents/skills/set-up-review-rules/references/review-rules-template.md |
skills/set-up-review-rules/references/copilot-review-instructions.md | .agents/skills/set-up-review-rules/references/copilot-review-instructions.md |
Already have an AGENTS.md or CLAUDE.md? The commands above overwrite it — download the file instead and merge the sections you want.
GitHub Copilot reads AGENTS.md and skills from .agents/skills/.
curl -fsSL --create-dirs -o AGENTS.md https://loadout.jnw-it.com/raw/ai-code-review-rules/1.0.0/AGENTS.md curl -fsSL --create-dirs -o .agents/skills/set-up-review-rules/SKILL.md https://loadout.jnw-it.com/raw/ai-code-review-rules/1.0.0/skills/set-up-review-rules/SKILL.md curl -fsSL --create-dirs -o .agents/skills/set-up-review-rules/references/review-rules-template.md https://loadout.jnw-it.com/raw/ai-code-review-rules/1.0.0/skills/set-up-review-rules/references/review-rules-template.md curl -fsSL --create-dirs -o .agents/skills/set-up-review-rules/references/copilot-review-instructions.md https://loadout.jnw-it.com/raw/ai-code-review-rules/1.0.0/skills/set-up-review-rules/references/copilot-review-instructions.md
| File | Goes to |
|---|---|
AGENTS.md | AGENTS.md |
skills/set-up-review-rules/SKILL.md | .agents/skills/set-up-review-rules/SKILL.md |
skills/set-up-review-rules/references/review-rules-template.md | .agents/skills/set-up-review-rules/references/review-rules-template.md |
skills/set-up-review-rules/references/copilot-review-instructions.md | .agents/skills/set-up-review-rules/references/copilot-review-instructions.md |
Already have an AGENTS.md or CLAUDE.md? The commands above overwrite it — download the file instead and merge the sections you want.
Files
Rules AGENTS.md Where AI reviewers read rules and how to write them. 26 lines
# AGENTS.md: rules for AI code reviewers
This repository is reviewed by AI reviewers (Claude Code Review, Cursor Bugbot, GitHub Copilot code review) as well as people.
Review rules live in review-only files, separate from coding instructions, and are kept short and testable.
## Which file each reviewer reads
| Reviewer | Reads | Notes |
|---|---|---|
| Claude Code Review (service) | `REVIEW.md` (root, plus subdirectory files) and CLAUDE.md files | Read from the base or default branch, never from the PR. Merge rule changes first. Protect the default branch or subdirectory files and severity overrides are ignored |
| Claude Code `/code-review` (local) | CLAUDE.md only | Does not read `REVIEW.md` |
| Cursor Bugbot | `.cursor/BUGBOT.md` (root always; nested ones for changed paths) | `.cursor/rules` does not apply to Bugbot |
| Copilot code review | `.github/copilot-instructions.md`, `.github/instructions/*.instructions.md` | Use `excludeAgent: "coding-agent"` for review-only instruction files |
## Writing review rules
- Define severity for this repo: what counts as blocking (wrong behaviour, data leak, unsafe migration) and what is a nit at most.
- Cap nits (for example "at most five per review").
- List what not to report: anything CI enforces (lint, format, types), generated paths, lockfiles, vendored code.
- List what to always check, as concrete, checkable rules ("new API routes have an integration test").
- Require evidence: behaviour claims must cite `path:line`, not infer from names.
- One rule per line. No style essays. Under ~60 lines per file.
- When a reviewer is repeatedly wrong about something, add a rule; when a rule never fires, delete it.
## When you are the author
Before opening a PR, read the review files above and check your diff against the "always check" rules yourself.
Use the `set-up-review-rules` skill to create or change these files. Adapter CLAUDE.md Imports AGENTS.md for Claude Code. 10 lines
# CLAUDE.md
@AGENTS.md
## Claude Code notes
- Skills from this loadout live in `.claude/skills/`: `set-up-review-rules`. Use them when their description matches the task.
- Follow AGENTS.md above; where this file and AGENTS.md disagree, AGENTS.md wins.
<!-- From the Agent Loadout "AI code review rules" v1.0.0 — https://loadout.jnw-it.com/loadouts/ai-code-review-rules/ --> Adapter GEMINI.md Imports AGENTS.md for Gemini CLI. 10 lines
# GEMINI.md
@./AGENTS.md
## Gemini CLI notes
- Skills from this loadout live in `.agents/skills/`: `set-up-review-rules`. Use them when their description matches the task.
- Follow AGENTS.md above; where this file and AGENTS.md disagree, AGENTS.md wins.
<!-- From the Agent Loadout "AI code review rules" v1.0.0 — https://loadout.jnw-it.com/loadouts/ai-code-review-rules/ --> Skill skills/set-up-review-rules/SKILL.md Write review files for each reviewer from one rule list. 21 lines
---
name: set-up-review-rules
description: Create or tune review-only instruction files for Claude Code Review, Cursor Bugbot and Copilot code review from one rule list. Use when setting up AI code review or when reviews are noisy or miss team rules.
---
# Set up review rules
1. **Collect evidence.** Read the last 10–20 AI review comments if available (`gh pr list --state merged --limit 20`,
then `gh pr view <n> --comments`). Note false positives, noise categories and real misses.
2. **Write one rule list** with four sections: severity definitions, nit cap, do not report, always check.
Start from `references/review-rules-template.md`. Every rule must come from evidence or a known team requirement.
3. **Generate the files** for the reviewers the team uses:
- Claude Code Review: root `REVIEW.md`; subdirectory `REVIEW.md` only for path-specific checks.
- Cursor Bugbot: `.cursor/BUGBOT.md` with the same content.
- Copilot: `.github/instructions/code-review.instructions.md` using `references/copilot-review-instructions.md`.
4. **Keep coding rules out.** Rules that also apply while writing code belong in `AGENTS.md`, not in review files.
5. **Land it.** Open a PR with only these files. Remind the human that Claude Code Review reads `REVIEW.md` from the
default branch, so the new rules apply to PRs opened after the merge, and that branch protection is needed for
subdirectory files and severity overrides to count.
6. **Re-check** after a week of reviews: delete rules that never fired, sharpen rules that were misapplied. Skill file skills/set-up-review-rules/references/review-rules-template.md Shared review rule template. 22 lines
# Review instructions
## What blocking means here
Blocking: incorrect logic, unscoped database queries, secrets or personal data in code, logs or errors, migrations that are not
backward compatible, removed authorisation checks. Style, naming and refactoring suggestions are nits at most.
## Cap the nits
Report at most five nits per review.
## Do not report
- Anything CI already enforces: lint, formatting, type errors, spelling
- Generated files under `<generated paths>` and lockfiles
- Test code that deliberately breaks production rules
## Always check
- <New API routes have an integration test>
- <Log lines do not include email addresses, user IDs or request bodies>
- <Database queries are scoped to the caller's tenant>
## Evidence
Behaviour claims need a path:line citation from the source, not an inference from a name. Skill file skills/set-up-review-rules/references/copilot-review-instructions.md Copilot review-only instruction file. 14 lines
# Copilot review-only instructions
Save as `.github/instructions/code-review.instructions.md`. `applyTo` limits which files the rules attach to;
`excludeAgent: "coding-agent"` keeps the file away from the Copilot coding agent so it is used for review only.
```markdown
---
applyTo: "**"
excludeAgent: "coding-agent"
---
<paste the same four sections as the shared rule list>
``` All files: source zip · Licence MIT · By Agent Loadout · First listed
Credits
Public work that inspired this loadout. The wording here is our own; follow the links for the originals.
Installing and testing
How do I install AI code review rules in Claude Code?
From your project root, put AGENTS.md, CLAUDE.md, skills/set-up-review-rules/SKILL.md at .claude/skills/set-up-review-rules/SKILL.md, skills/set-up-review-rules/references/review-rules-template.md at .claude/skills/set-up-review-rules/references/review-rules-template.md, skills/set-up-review-rules/references/copilot-review-instructions.md at .claude/skills/set-up-review-rules/references/copilot-review-instructions.md. The "Claude Code" tab on this page has the curl commands, or download https://loadout.jnw-it.com/download/ai-code-review-rules/claude-code.zip, which is already laid out. Do not overwrite an existing AGENTS.md or CLAUDE.md; merge it.
How do I install AI code review rules in Codex CLI?
From your project root, put AGENTS.md, skills/set-up-review-rules/SKILL.md at .agents/skills/set-up-review-rules/SKILL.md, skills/set-up-review-rules/references/review-rules-template.md at .agents/skills/set-up-review-rules/references/review-rules-template.md, skills/set-up-review-rules/references/copilot-review-instructions.md at .agents/skills/set-up-review-rules/references/copilot-review-instructions.md. The "Codex CLI" tab on this page has the curl commands, or download https://loadout.jnw-it.com/download/ai-code-review-rules/codex.zip, which is already laid out. Do not overwrite an existing AGENTS.md or CLAUDE.md; merge it.
How do I install AI code review rules in Cursor?
From your project root, put AGENTS.md, skills/set-up-review-rules/SKILL.md at .agents/skills/set-up-review-rules/SKILL.md, skills/set-up-review-rules/references/review-rules-template.md at .agents/skills/set-up-review-rules/references/review-rules-template.md, skills/set-up-review-rules/references/copilot-review-instructions.md at .agents/skills/set-up-review-rules/references/copilot-review-instructions.md. The "Cursor" tab on this page has the curl commands, or download https://loadout.jnw-it.com/download/ai-code-review-rules/cursor.zip, which is already laid out. Do not overwrite an existing AGENTS.md or CLAUDE.md; merge it.
How do I install AI code review rules in Gemini CLI?
From your project root, put AGENTS.md, GEMINI.md, skills/set-up-review-rules/SKILL.md at .agents/skills/set-up-review-rules/SKILL.md, skills/set-up-review-rules/references/review-rules-template.md at .agents/skills/set-up-review-rules/references/review-rules-template.md, skills/set-up-review-rules/references/copilot-review-instructions.md at .agents/skills/set-up-review-rules/references/copilot-review-instructions.md. The "Gemini CLI" tab on this page has the curl commands, or download https://loadout.jnw-it.com/download/ai-code-review-rules/gemini-cli.zip, which is already laid out. Do not overwrite an existing AGENTS.md or CLAUDE.md; merge it.
How do I install AI code review rules in Antigravity CLI?
From your project root, put AGENTS.md, skills/set-up-review-rules/SKILL.md at .agents/skills/set-up-review-rules/SKILL.md, skills/set-up-review-rules/references/review-rules-template.md at .agents/skills/set-up-review-rules/references/review-rules-template.md, skills/set-up-review-rules/references/copilot-review-instructions.md at .agents/skills/set-up-review-rules/references/copilot-review-instructions.md. The "Antigravity CLI" tab on this page has the curl commands, or download https://loadout.jnw-it.com/download/ai-code-review-rules/antigravity-cli.zip, which is already laid out. Do not overwrite an existing AGENTS.md or CLAUDE.md; merge it.
How do I install AI code review rules in GitHub Copilot?
From your project root, put AGENTS.md, skills/set-up-review-rules/SKILL.md at .agents/skills/set-up-review-rules/SKILL.md, skills/set-up-review-rules/references/review-rules-template.md at .agents/skills/set-up-review-rules/references/review-rules-template.md, skills/set-up-review-rules/references/copilot-review-instructions.md at .agents/skills/set-up-review-rules/references/copilot-review-instructions.md. The "GitHub Copilot" tab on this page has the curl commands, or download https://loadout.jnw-it.com/download/ai-code-review-rules/copilot.zip, which is already laid out. Do not overwrite an existing AGENTS.md or CLAUDE.md; merge it.
Has AI code review rules been tested?
It passed the Level 1 automated install checks on 2026-10-17: the files parse, install to each agent's documented paths, and pass the safety scan. No AI agent has run it yet, so no agent pass or fail is claimed.
More for Claude Code, Codex, Cursor, Gemini CLI, Antigravity CLI and GitHub Copilot.