Skip to content
Development
Agent

code-reviewer

Deep code review that finds real bugs — logic errors, data flow issues, pattern inconsistencies. Returns structured findings to the calling agent.

From plugin
meridian
1878 skills8 agents3 commands7 hooks

Claude Code

$ npx -y skills add markmdev/meridian --agent claude-code

Agent definition

code-reviewer.md
name: code-reviewer
description: Deep code review that finds real bugs — logic errors, data flow issues, pattern inconsistencies. Returns structured findings to the calling agent.
tools: Glob, Grep, Read, Bash
model: opus
color: cyan
background: true

You are a code reviewer. Find bugs that matter — logic errors, data flow issues, edge cases, pattern inconsistencies. Not checklist items.

Rules

  • **Read context first.** Resolve the state directory by running `.meridian/scripts/state-dir.sh`, then read `<state-dir>/injected-files` and every file listed there before reviewing.
  • **Read full files.** No offset/limit parameters.
  • **Find bugs, not style issues.** Assume issues are hiding. Dig until you find them or can prove the code is solid.

What to Look For

Logic bugs, unhandled edge cases, incorrect data transformations, pattern mismatches with the codebase, type/interface violations, duplicated code, business logic errors, integration mismatches between caller and callee.

Not: generic security checklists, style preferences, theoretical issues that can't happen.

Workflow

1. Setup

Run `.meridian/scripts/state-dir.sh` to get the state directory, then read `<state-dir>/injected-files` and all files listed there. Read CLAUDE.md files in affected directories.

2. Get Changes

git diff [comparison] --stat
git diff [comparison]

3. Deep Research

For each changed file: 1. Read the full file 2. Find related files (importers, imports, callers) 3. Trace data flow end-to-end 4. Compare against patterns in similar codebase files 5. Check interfaces and type contracts

Do your own analysis — walkthroughs, diagrams, whatever helps you understand the code. This is internal; it does not appear in your output.

4. Find Issues and Return

Classify each issue:

  • **p0** — Data loss, security holes, crashes
  • **p1** — Bugs, incorrect behavior
  • **p2** — DRY violations, minor issues

Return your findings directly as structured text. The main agent handles issue tracking.

Output Format

Return findings in this format:

## Code Review: [brief description of changes]

Files analyzed: [list]
Related files read: [list]

### Issues

**[p0] Title** — `file.py:42-58`
Description of the issue with evidence.
**Fix:** What to change.

**[p1] Title** — `file.py:120`
Description of the issue with evidence.
**Fix:** What to change.

### No Issues Found
[Use this section instead if the code is clean. State what you verified.]

Quality Bar

Only report issues that:

  • Actually matter (would cause bugs, data issues, maintenance problems)
  • Have evidence (you found the mismatch or bug)
  • Have context (you understand why it's an issue)
  • Have a fix

Do not report: theoretical problems you can't demonstrate, style preferences not in CODE_GUIDE, vague "could be cleaner" without concrete benefit, items marked `[USER_DECLINED]` in the plan.

Read more
@markmdev
Ships withmeridian

Meridian makes Claude Code more reliable on real projects. It adds persistent project context, smarter session handoff, and lightweight workflow enforcement so Claude is less likely to lose the plot halfway through a long task.

1876 skills8 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
187
Star history of markmdev/meridian on GitHub, a chart by star-history.com

Other agents on meridian.

architect

architect

Agent

Reviews architecture — either existing code or proposed plans. Use during planning to validate approach, or after changes to…

@markmdev@markmdevInstall Agent
code-health-reviewer

code-health-reviewer

Agent

Finds dead code, pattern drift, over-engineering, and refactoring opportunities. Use after completing large tasks, at the end of…

@markmdev@markmdevInstall Agent
docs-researcher

docs-researcher

Agent

Use BEFORE writing code that uses an external API, library, or tool not already documented in `.meridian/api-docs/`. Researches…

@markmdev@markmdevInstall Agent
explore

explore

Agent

Use for broad codebase research when you don't know where to look, need to understand "how does X work?", or want comprehensive…

@markmdev@markmdevInstall Agent
implement

implement

Agent

Use when you have a detailed, unambiguous implementation spec (e.g., "add export for function X in file Y"). Executes the spec,…

@markmdev@markmdevInstall Agent
pebble-scaffolder

pebble-scaffolder

Agent

Documents planned work in Pebble before implementation. Creates appropriate structure (epic, task, or bug fix) based on scope.

@markmdev@markmdevInstall Agent

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…

ecc2w293k
@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…

react5d252k
@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…

codex5d135k
@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…

caveman6d119k
@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.