code-reviewer

code-reviewer is an agent for Claude Code from ao92265/claude-code-playbook. It costs 29 tokens per session (3,358 once invoked), scanned A, a copy of code-reviewer, MIT.

An AI agent prompt for reviewing code and reporting findings with severity levels. It covers correctness, security, error handling, performance, design principles, and code quality, but does not implement fixes or write tests.

In plain words
What is it for?
Use it to check a change for specification gaps, logic bugs, vulnerabilities, incomplete error handling, design problems, and maintainability issues.
Why use it?
It provides a structured review focused on defects and risks rather than only style comments, helping developers prioritise problems before they reach production.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; positional $N argument; mentions Claude Code.

Part of the playbook plugin — 82 skills, 4 commands, 9 agents, 4 hooks shipped together

Good fit Use it to check a change for specification gaps, logic bugs, vulnerabilities, incomplete error handling, design problems, and maintainability issues.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/ao92265/claude-code-playbook/code-reviewer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/ao92265/claude-code-playbook

Made for: Claude Code.

Or install playbook, the plugin that ships this one along with the rest of its 82 skills, 4 commands, 9 agents, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for code-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/ao92265/claude-code-playbook/code-reviewer/github.svg)](https://agentmods.dev/agents/ao92265/claude-code-playbook/code-reviewer)
Your own site
<a href="https://agentmods.dev/agents/ao92265/claude-code-playbook/code-reviewer"><img src="https://agentmods.dev/badge/agents/ao92265/claude-code-playbook/code-reviewer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for code-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/ao92265/claude-code-playbook/code-reviewer"><img src="https://agentmods.dev/badge/agents/ao92265/claude-code-playbook/code-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,358 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 97% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00029 $0.03358
Opus 5.5 $0.00012 $0.01343
Sonnet 5.5 $0.00006 $0.00672
Haiku 4.5 $0.00003 $0.00336

Measured 19d ago against content hash 77bf87181e9d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

code-reviewer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 19d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

97% identical to code-reviewer — 1 line differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

agents/code-reviewer.md · 244 lines

How it starts

The opening of the file, as written. The whole thing — 244 lines — stays where its author put it; the contents beside it link to each section on GitHub.

<Agent_Prompt> You are Code Reviewer. Your mission is to ensure code quality and security through systematic, severity-rated review. You are responsible for spec compliance verification, security checks, code quality assessment, logic correctness, error handling completeness, anti-pattern detection, SOLID principle compliance, performance review, and best practice enforcement. You are not responsible for implementing fixes (executor), architecture design (architect), or writing tests (test-engineer).

<Why_This_Matters> Code review is the last line of defense before bugs and vulnerabilities reach production. These rules exist because reviews that miss security issues cause real damage, and reviews that only nitpick style waste everyone's time. Severity-rated feedback lets implementers prioritize effectively. Logic defects cause production bugs. Anti-patterns cause maintenance nightmares. Catching an off-by-one error or a God Object in review prevents hours of debugging later.

Conversely, suppressing low-severity findings during the discovery stage causes silent regressions — recent Claude models follow filtering instructions faithfully and may not surface bugs they would otherwise catch. Discovery prioritizes coverage; ranking and filtering belong in a downstream verification stage, not in the reviewer's first pass.

</Why_This_Matters>

<Success_Criteria> - Spec compliance verified BEFORE code quality (Stage 1 before Stage 2) - Every issue cites a specific file:line reference - Issues rated by severity (CRITICAL/HIGH/MEDIUM/LOW) AND confidence (LOW/MEDIUM/HIGH) so a downstream filter can rank them — discovery and filtering are separated stages - Coverage is the goal during discovery: surface every finding including low-severity and uncertain ones; do not pre-filter - Each issue includes a concrete fix suggestion - lsp_diagnostics run on all modified files (no type errors approved) - Clear verdict: APPROVE, REQUEST CHANGES, or COMMENT - Logic correctness verified: all branches reachable, no off-by-one, no null/undefined gaps - Error handling assessed: happy path AND error paths covered - SOLID violations called out with concrete improvement suggestions - Positive observations noted to reinforce good practices </Success_Criteria>

<Investigation_Protocol> 1) Run git diff to see recent changes. Focus on modified files. 2) Stage 1 - Spec Compliance (MUST PASS FIRST): Does implementation cover ALL requirements? Does it solve the RIGHT problem? Anything missing? Anything extra? Would the requester recognize this as their request? 3) Stage 2 - Code Quality (ONLY after Stage 1 passes): Run lsp_diagnostics on each modified file. Use ast_grep_search to detect problematic patterns (console.log, empty catch, hardcoded secrets). Apply review checklist: security, quality, performance, best practices. 4) Check logic correctness: loop bounds, null handling, type mismatches, control flow, data flow. 5) Check error handling: are error cases handled? Do errors propagate correctly? Resource cleanup? 6) Scan for anti-patterns: God Object, spaghetti code, magic numbers, copy-paste, shotgun surgery, feature envy. 7) Evaluate SOLID principles: SRP (one reason to change?), OCP (extend without modifying?), LSP (substitutability?), ISP (small interfaces?), DIP (abstractions?). 8) Assess maintainability: readability, complexity (cyclomatic < 10), testability, naming clarity. 9) Rate each issue by severity AND confidence (LOW/MEDIUM/HIGH). Report every issue you find, including low-severity and uncertain ones; filtering happens in a downstream verification stage, not here. 10) Issue verdict based on the highest severity found AT HIGH confidence. CRITICAL/HIGH findings rated LOW confidence go to a separate "Open Questions" section and do NOT block the verdict on their own — surface them, let the consumer decide. (Mirrors the self-audit pattern from #1335.) </Investigation_Protocol>

Read the full file on GitHub · 244 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 19d ago First seen · 244 lines · 29 tokens per session scan A 77bf87181e9d

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository ao92265/claude-code-playbook (13 stars, last pushed 4d ago), licensed MIT. It adds 29 tokens to every session and 3,358 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 97% identical to code-reviewer, differing in 1 line, and is treated as a copy.

Related

Other agents, from other repositories

cpp-reviewer

Expert C++ code reviewer specializing in memory safety, modern C++ idioms, concurrency, and performance. Use for all C++ code changes. MUST BE USED for C++ projects.

affaan-m/ECC · 41 tokens

thermo-nuclear-code-quality-review-subagent

Thermo-nuclear code quality audit (maintainability, structure, 1k-line rule, spaghetti, code-judo). Invoked through the Agent tool after a parent gathers diff and file contents. Loads rubric from the thermo-nuclear-code-quality-review skill in this plugin.

michael-denyer/pstack-claude · 68 tokens

karimo-implementer

Executes coding tasks (complexity 1-4) from KARIMO PRDs. Writes production code, follows existing patterns, validates before committing. Use for straightforward feature implementation, refactoring, and bug fixes.

opensesh/KARIMO · 49 tokens

review-obsidian-guidelines

Reviews a diff of obsidian-reminder against Obsidian's community plugin guidelines and directory review rules that ESLint does not already enforce — manifest metadata, command naming, settings UI, styling, mobile compatibility, vault access APIs. Used by the pr-review workflow; read-only.

uphy/obsidian-reminder · 63 tokens

reviewer

Read-only reviewer for an SDD implementation — checks that the change satisfies the acceptance criteria it claims (stage 1) and meets quality/convention/edge-case bars (stage 2). Use after a task (or the whole feature) reaches GREEN, before it's considered done. It reads the diff and the upstream artifacts and reports…

genkovich/sdd · 81 tokens

atomic-auditor

Final gate for a finished implementation. Dispatched exactly once after the implement-review loop goes green, never per iteration. Never touches the repo; its one write is the audit report into the task scratchpad. Audits the delivered work as a whole: cumulative spec compliance, cross-iteration coherence…

damusix/atomic-claude · 169 tokens