OmniscioGuidesClaude Code code review output style
Claude Code code review output style, copy-ready
Asking Claude to “review this” gets you a summary of what the change does, a compliment, and a rewrite. What a review actually needs is the opposite order: the problems, where they are, how bad each one is, and nothing else unless you ask.
Here is that as a file, the fields that make it load, and the scope limit that surprises people the first time they put a review in a subagent.
Checked against Anthropic’s output styles documentation. By the Omniscio team. Updated .
The file
Save this as review.md.
---
name: review
description: "Review code as a reviewer: findings first, by severity, no rewriting."
keep-coding-instructions: true
---
Act as the reviewer of this change, not its author.
- Lead with findings. Nothing comes before them: not a summary, not praise, not what the change does.
- One entry per finding: severity, `path:line`, what breaks, and the smallest change that fixes it.
- Severity is `blocker`, `should-fix`, or `nit`. If you cannot name the input or the state that produces the failure, it is a nit, not a blocker.
- Read the code the change calls, not only the diff. Say which file you checked to confirm the behaviour you are describing.
- Check the boundaries that usually break: authorization on every new entry point, unvalidated input from outside the process, and a query or a network call inside a loop.
- Never rewrite the change. You may show the three lines that fix a finding; anything larger waits until I ask for it.
- When I ask something that is not a review - a build error, a question about the code - answer it normally. This file governs how you review, not how you answer every message.
- When there is nothing to report, say "No findings" and list what you covered, so I know what was actually read.
- If a question cannot be answered by reading, name the command or test that would answer it.That field only matters on the full system prompt, which Haiku 4.5, Sonnet 5, Opus 4.7 and earlier models in those families use by default; newer models get a shorter prompt with no engineering section, so the field changes nothing there. Set CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT to 0 to select the full prompt on any model.
The rule about severity is the one that changes the output most. Without it, everything that reads oddly tends to arrive at the same severity; forced to name the failing input, the review separates a real defect from a preference.
What each field does
| In the file | What it changes |
|---|---|
name: review | The name in the /config picker, and the argument to /output-style. Without it the style takes the file name, which is already review. |
description: | The line under the name in the picker. Behaviour does not depend on it. |
keep-coding-instructions: true | Keeps Claude Code’s software engineering instructions alongside your text. Default false. A reviewer that cannot read code carefully, or check what it claims, is not a reviewer; keep the field. |
| the body | The instructions, as plain Markdown. The list is a checklist Claude reads, not something the interface renders. |
All fields are optional and a misspelled one is ignored without an error, so keep-coding-instructions spelled with a capital or a space silently falls back to false. Check the spelling before you check anything else.
One field is not in that table: force-for-plugin. It belongs to styles shipped inside a plugin, where it applies the style whenever the plugin is enabled. Leave it out of a file you saved yourself.
Where the file goes
| Location | Reaches | Choose it when |
|---|---|---|
~/.claude/output-styles/review.md | You, in every project | You review in more than one repository and want the same standard everywhere |
.claude/output-styles/review.md | Everyone in the project, once committed | The team should review to one standard, and the file is worth reviewing itself in a pull request |
.claude/output-styles/ in the managed settings directory | Every machine an organisation deploys to | Policy, usually paired with outputStyle in the same managed settings |
Project styles load from every .claude/output-styles/ folder between the working directory and the repository root, and the folder closest to the working directory wins when two define the same name. In a monorepo that lets the payments package and the marketing site carry different review standards without renaming anything.
Committing the file does not select it. The choice is stored in .claude/settings.local.json, which Claude Code keeps out of git when it writes it, so each person still picks the style once.
Switch to it, and confirm it is active
- Create
~/.claude/output-stylesif it is not there yet, save the file inside it, then restart the session if it was already open. In the terminal, styles are read at startup, so an already-running session cannot see a file it did not see at launch. - Run
/output-style review, or/configand pick it under Output style. - Run
/output-stylewith no argument to see it marked as current. - Ask for a review of a change you already know well. If the first line is a finding rather than a summary, the style is active.
To make the choice stick without the command, set it in a settings file. The value is case-sensitive:
{
"outputStyle": "review"
}A value that matches no style gives you the Default style. The command ignores case; the setting does not. The switch applies from your next message, and on v2.1.251 or later that is true mid-session too — before that, the new style waited for /clear or a fresh session.
Set outputStyle in ~/.claude/settings.json to make it your default everywhere. A project’s own settings files take precedence, so a repository that wants its own review voice can have it.
The common mistake
Expecting it to work inside a review subagent. A style applies to the main conversation and to a fork of it, which inherits the parent’s conversation and system prompt. Every other subagent runs its own system prompt, so a subagent you created for reviews ignores this file entirely and goes back to summarising the diff and offering a rewrite.
There are two fixes, and they are different tools. If you want the review in the main conversation, use the style and keep it there. If you want a separate reviewer with its own context, model and tool access, define a subagent and put the review instructions in its definition — that is what carries into a subagent, and it is the only one of the two that also keeps the review out of your working conversation.
One thing to know before you switch: the style is on for the whole session. A question about a build error gets answered in the same voice, which is why the file itself says to answer non-review questions normally. Switch back with /output-style default when the review is over.
The second mistake is asking for a review and a fix in the same breath. “Review this and fix what you find” competes with the rule about not rewriting, and the direct request usually wins, because a style is an instruction Claude follows rather than something enforced. Review in one message, then ask for the fix.
The third is trusting a review as proof. A style is an instruction, not a check that ran. If the review says the tests pass, that is a claim about the conversation, not a test result.
Pairing it with a reviewer that has its own context
The reason to move a review into a subagent is context: the review reads the diff and the code it calls, and none of that has to stay in your main conversation afterwards. The cost is that the style does not follow it there.
The usual setup is therefore two parts: this style for reviews you read as they happen, and the same bullet list inside a subagent definition for reviews you want run and summarised. The two share a house style; only the delivery differs.
The subagents guide covers the definition file, and the output styles guide covers the rest of what a style does and does not reach.
Where these answers come from
- The frontmatter fields, the defaults and the silent ignore: Anthropic, Output styles, frontmatter reference. Read November 25, 2026.
- That a style applies to the main conversation and a fork but not to other subagents: the same page, how output styles work.
- The three file locations and the nested-folder rule: the same page, create a custom output style.
- Switching, case sensitivity and the settings key: the same page, change your output style, and Settings files and precedence.
- Which models get the full system prompt by default, and the switch that selects it: Environment variables, the
CLAUDE_CODE_SIMPLE_SYSTEM_PROMPTrow.
Common questions
Can a Claude Code output style make Claude review code instead of writing it?
Yes. A style is a standing instruction for every reply in a session, so a review style makes findings the default output. It is still an instruction Claude follows rather than a mode, so a later request to fix the findings overrides it.
Why does my review subagent ignore the style?
Because a style applies to the main conversation and to a fork of it, and other subagents run their own system prompt. Put the review instructions in the subagent’s own definition instead.
Can I keep the style on while I fix the findings?
You can, but the rule against rewriting will fight the fix. The usual pattern is to review in the style, then pick another one — /output-style default, or the same choice under Output style in /config — and ask for the changes.
Does the style run the tests it mentions?
No. A style changes the instructions Claude works from; it is not a check that ran. If a review must run a command, that is a hook or an explicit request, not a style.