Senior Code Reviewer
Get a staff-engineer-level review of any diff or file, ranked by severity.
by Community pattern
A Claude Code subagent defined in `.claude/agents/` that specializes in code review. It runs with its own context window and system prompt, so a review never pollutes your main conversation, and it can be invoked automatically or on demand to critique the current diff for bugs, security issues, and style.
MCP servers, subagents, skills, slash commands, and hooks.
Setup steps with copy-paste config. Sources are cited under each method.
Requires: Claude Code installed · A project with a git repo
Create the agents directory
Subagents live in `.claude/agents/` at your project root (or `~/.claude/agents/` for all projects).
mkdir -p .claude/agentsDefine the reviewer
Create `code-reviewer.md` with frontmatter and a focused system prompt.
---
name: code-reviewer
description: Reviews the current diff for bugs, security, and style. Use before committing.
tools: Read, Grep, Bash
---
You are a meticulous senior code reviewer. Review ONLY the changed lines.
Report issues grouped by severity (blocker, warning, nit) with file:line refs.
Never rewrite the code — describe the fix. Praise nothing; be terse.Invoke it
Ask Claude Code to use it by name, or let it auto-delegate when the description matches.
> use the code-reviewer subagent on my staged changesCopy-paste prompts written to exercise this plugin, with what to expect.
You've finished a feature and want a review before committing.
Use the code-reviewer subagent to review my staged changes. Focus on error handling and any security implications.
What to expect: The subagent reads the diff in its own context and returns a severity-grouped list of issues with file:line references, without touching your main conversation.
Real prompts from the IterPrompt library you can copy or run.
Get a staff-engineer-level review of any diff or file, ranked by severity.
Turn any AI chat into a code reviewer with this community persona prompt.
Turn any AI chat into a code review assistant with this community persona prompt.
Turn any AI chat into a code review agent with this community persona prompt.
Turn any AI chat into a code review expert with this community persona prompt.
Turn any AI chat into a code review specialist 2 with this community persona prompt.
A subagent runs in a separate context window with its own system prompt, so the review is consistent and doesn't consume or clutter your main conversation's context.
Only if you give it write tools. Limiting `tools:` to Read, Grep, and Bash keeps it advisory — it describes fixes rather than applying them.
The facts on this page and where they come from. Anything unverified is labeled — we'd rather say "unknown" than guess.
Install steps, pricing, and availability change often. Always confirm on the official page before relying on setup details.