code-reviewer

code-reviewer is an agent for Claude Code from Yassinello/claude-plugin-prd-workflow. It costs 14 tokens per session (2,453 once invoked), scanned A, original, MIT.

A checker that examines code for quality, security, speed, readability, testing, and documentation problems.

In plain words
What is it for?
Use it to review pull requests, find security weaknesses and performance problems, check tests and documentation, and enforce coding conventions.
Why use it?
It can expose common defects and maintenance risks before code reaches human reviewers or production.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Good fit Use it to review pull requests, find security weaknesses and performance problems, check tests and documentation, and enforce coding conventions.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/yassinello/claude-plugin-prd-workflow/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/Yassinello/claude-plugin-prd-workflow

Made for: Claude Code.

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/yassinello/claude-plugin-prd-workflow/code-reviewer/github.svg)](https://agentmods.dev/agents/yassinello/claude-plugin-prd-workflow/code-reviewer)
Your own site
<a href="https://agentmods.dev/agents/yassinello/claude-plugin-prd-workflow/code-reviewer"><img src="https://agentmods.dev/badge/agents/yassinello/claude-plugin-prd-workflow/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/yassinello/claude-plugin-prd-workflow/code-reviewer"><img src="https://agentmods.dev/badge/agents/yassinello/claude-plugin-prd-workflow/code-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,453 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 original No closer match found 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.00014 $0.02453
Opus 5.5 $0.00006 $0.00981
Sonnet 5.5 $0.00003 $0.00491
Haiku 4.5 $0.00001 $0.00245

Measured 1mo ago against content hash cc5c79e6484c, 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 1mo 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.

.claude/agents/code-reviewer.md · 401 lines

How it starts

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

Code Reviewer Agent

You are a senior code reviewer with 10+ years of experience across multiple languages, frameworks, and architectural patterns. Your role is to perform automated code reviews that catch issues before they reach human reviewers, saving 30+ minutes per PR while improving code quality.

Your Expertise

  • Code quality and best practices (SOLID, DRY, KISS)
  • Security vulnerabilities (OWASP Top 10, CWE)
  • Performance anti-patterns
  • Maintainability and readability
  • Language-specific idioms (JavaScript/TypeScript, Python, Go, Java, Rust)
  • Framework conventions (React, Vue, Angular, Django, FastAPI, Express)
  • Testing best practices

Core Responsibilities

  1. Static Analysis: Identify code smells, anti-patterns, complexity
  2. Security Review: Catch vulnerabilities before they ship
  3. Performance Review: Flag performance bottlenecks
  4. Style & Consistency: Ensure code follows team conventions
  5. Testing Coverage: Verify tests exist and are meaningful
  6. Documentation: Check for missing docs, unclear naming

Review Checklist (Auto-Applied)

1. Code Quality ✨

Check for:

  • Functions > 50 lines (should be split)
  • Cyclomatic complexity > 10 (too complex)
  • Duplicate code blocks (DRY violation)
  • Magic numbers/strings (should be constants)
  • Deep nesting (> 3 levels)
  • Long parameter lists (> 4 parameters)

Example Issue:

// ❌ BAD: Complex function, magic numbers
function calculatePrice(items) {
  let total = 0;
  for (let i = 0; i < items.length; i++) {
    if (items[i].type === 'premium') {
      total += items[i].price * 1.2;
    } else if (items[i].type === 'standard') {
      total += items[i].price * 1.1;
    } else {
      total += items[i].price;
    }
  }
  return total;
}

// ✅ GOOD: Clear, extracted constants
const PREMIUM_MULTIPLIER = 1.2;
const STANDARD_MULTIPLIER = 1.1;

function calculatePrice(items) {
  return items.reduce((total, item) => {
    const multiplier = getPriceMultiplier(item.type);
    return total + item.price * multiplier;
  }, 0);
}

function getPriceMultiplier(type) {
  const multipliers = {
    premium: PREMIUM_MULTIPLIER,
    standard: STANDARD_MULTIPLIER,
    default: 1
  };
  return multipliers[type] || multipliers.default;
}

Read the full file on GitHub · 401 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. 1mo ago First seen · 401 lines · 14 tokens per session scan A cc5c79e6484c

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository Yassinello/claude-plugin-prd-workflow (12 stars, last pushed 11mo ago), licensed MIT. It adds 14 tokens to every session and 2,453 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

code-reviewer

Reviews completed implementation for governing-source compliance, scope economy, repository quality policy, and material code correctness. Use after implementation or when review/implementation check/compliance is requested.

shinpr/claude-code-workflows · 38 tokens

code-verifier

Verifies repository-backed claims and implementation feasibility in PRDs, Design Docs, or Work Plans. Use before document review, after implementation, or for reverse-engineered artifact verification.

shinpr/claude-code-workflows · 39 tokens

quality-fixer

Specialized agent for verifying software projects and fixing quality failures within the current task scope. Use proactively after code changes or for quality, test, build, lint, format, correctness, or fix requests.

shinpr/claude-code-workflows · 44 tokens

investigator

Comprehensively collects problem-related information and creates evidence matrix. Use PROACTIVELY when bug/error/issue/defect/not working/strange behavior is reported. Reports observations and evidence for downstream cause verification.

shinpr/claude-code-workflows · 46 tokens

security-reviewer

Reviews completed implementation against governing security requirements and the reachable trust model. Use after implementation or when security review/security check/vulnerability check is requested. Returns only must-fix findings with the smallest sufficient corrections.

shinpr/claude-code-workflows · 44 tokens

solver

Derives multiple solutions for verified causes and analyzes tradeoffs. Use when root cause verification has concluded, or when "solution/how to fix/fix method/remedy" is mentioned. Focuses on solutions from given conclusions without investigation.

shinpr/claude-code-workflows · 48 tokens