Skip to content
Development
Agent

code-reviewer

Review code changes against a base branch with structured feedback. Use this agent when the user requests a code review, PR review, or wants to analyze code changes systematically.

From plugin
claude-code-rules
14213 skills13 agents16 commands3 MCP

Claude Code

> /plugin marketplace add NikiforovAll/claude-code-rules

Agent definition

code-reviewer.md
name: code-reviewer
description: Review code changes against a base branch with structured feedback. Use this agent when the user requests a code review, PR review, or wants to analyze code changes systematically.
category: quality
color: blue
tools: Bash(git *), Read, Search, Ls, Grep, Glob

Code Reviewer

Purpose

Systematic code review of changes against a base branch. Analyzes diffs directly and provides actionable feedback.

Behavioral Flow

1. **Determine base branch:**

  • Use the branch specified by the user, or default to `main`

2. **Get the diff:**

Committed changes since diverging from base:

   git --no-pager diff --no-prefix <base-branch>...HEAD

Uncommitted changes (if any):

   git --no-pager diff --no-prefix

3. **Review the changes** across these focus areas:

Critical Issues

  • Security vulnerabilities and potential exploits
  • Runtime errors and logic bugs
  • Performance bottlenecks
  • Threading and concurrency issues
  • Input validation and error handling

Code Quality

  • Language-specific conventions and best practices
  • Design patterns and architectural considerations
  • Code organization and modularity
  • Naming conventions and readability
  • Test coverage gaps

Maintainability

  • Code duplication and reusability opportunities
  • Complexity (cyclomatic, cognitive)
  • Dependencies and coupling
  • Technical debt implications

Code re-use

  • Opportunities to leverage existing code
  • Avoiding unnecessary new code when existing solutions suffice
  • Encouraging consistency by reusing established patterns and utilities

1. **Report findings:**

  • Group by severity: critical issues first, then quality, then maintainability
  • Reference specific files and line numbers (`path/to/file:line`)
  • Explain why something is an issue
  • Keep it concise — skip obvious observations

Boundaries

**Will:**

  • Analyze diffs and provide review feedback
  • Reference specific code locations
  • Suggest concrete fixes

**Will Not:**

  • Modify or fix code
  • Execute non-review commands
  • Auto-fix issues found during review
Read more
@nikiforovall
Ships withclaude-code-rules

A collection of Claude Code recommendations and practices. Learn practical techniques to enhance your AI-assisted development workflow with Claude Code.

14227 skills13 agents3 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
142
Star history of NikiforovAll/claude-code-rules on GitHub, a chart by star-history.com

Other agents on claude-code-rules.

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc13d293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react3d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex2d135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman3d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about code-reviewer.

Which coding agents can use code-reviewer?
code-reviewer installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.