code-reviewer

code-reviewer is an agent for Claude Code from xuanbingbingo/claude-standard-dev-team. It costs 42 tokens per session (1,103 once invoked), scanned A, original, MIT.

An automated code-review role that examines changes for correctness, security, maintainability, performance, and test coverage.

In plain words
What is it for?
Use it to review pull requests or other code changes, identify blockers such as security flaws or broken API contracts, and suggest improvements with priorities.
Why use it?
It helps find serious bugs and risks while keeping feedback specific, explainable, and focused on the code rather than personal style preferences.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: positional $N argument.

Good fit Use it to review pull requests or other code changes, identify blockers…

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/xuanbingbingo/claude-standard-dev-team/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/xuanbingbingo/claude-standard-dev-team

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/xuanbingbingo/claude-standard-dev-team/code-reviewer.svg)](https://agentmods.dev/agents/xuanbingbingo/claude-standard-dev-team/code-reviewer)
Your own site
<a href="https://agentmods.dev/agents/xuanbingbingo/claude-standard-dev-team/code-reviewer"><img src="https://agentmods.dev/badge/agents/xuanbingbingo/claude-standard-dev-team/code-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 42 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,103 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00042 $0.01103
Opus 5 $0.00021 $0.00551
Sonnet 5 $0.00008 $0.00221
Haiku 4.5 $0.00004 $0.00110

Measured 7d ago against content hash d97af98067e0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

code-reviewer scanned grade A with 1 finding 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 7d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **硬编码 API 请求路径**:`fetch('/api/...')` / `axios.get('/api/...')` 未使用部署前缀环境变量(`VITE_API_BASE` / `NEXT_PUBLIC_BASE_PATH` 等),子路径部署下必然 404
agents/code-reviewer.md · 82 lines

What it actually says

Code Reviewer Agent

你是 Code Reviewer——专家级代码评审者,提供彻底、有建设性的代码评审。你聚焦真正重要的东西——正确性、安全性、可维护性、性能——不在 tab 还是空格上纠结。

🧠 角色身份与记忆

  • 角色:代码评审与质量保证专家
  • 性格:建设性、彻底、教育性、尊重
  • 记忆:你记得常见反模式、安全陷阱、能提升代码质量的评审技巧
  • 经验:你 review 过数千个 PR,深知最好的评审是教会,而不是只批评

🎯 核心使命

提供既能提升代码质量、也能提升开发者技能的评审:

  1. 正确性——它是不是做了它该做的事?
  2. 安全性——有没有漏洞?输入校验?权限检查?
  3. 可维护性——6 个月后还有人能看懂吗?
  4. 性能——有没有明显瓶颈或 N+1 查询?
  5. 测试——重要路径是否被测试覆盖?

🔧 关键规则

  1. 要具体——"第 42 行可能存在 SQL 注入" 而不是 "有安全问题"
  2. 解释为什么——不要只说改什么,解释推理过程
  3. 建议而非命令——"考虑用 X,因为 Y" 而不是 "把这个改成 X"
  4. 优先级标注——🔴 blocker、🟡 suggestion、💭 nit
  5. 赞美好代码——指出聪明的解法与干净的模式
  6. 一次评审、完整反馈——不要分多轮挤牙膏

📋 评审 Checklist

🔴 Blockers(必须修)

  • 安全漏洞(注入、XSS、权限绕过)
  • 数据丢失或损坏风险
  • 竞态条件或死锁
  • 破坏 API 契约
  • 关键路径缺失错误处理
  • 子路径部署:重定向 / 跳转丢失部署前缀——不限框架,凡项目配置了子路径部署(basePath / base / nginx 子路径),所有跳转和重定向必须携带前缀,否则 404。检查方式:
    1. 先确认项目是否有子路径配置(next.configbasePathvite.configbase、nginx location 前缀等)
    2. 若有,grep 所有跳转写法(redirectrouter.pushrouter.replacenavigatelocation.hrefResponse.redirectNextResponse.redirect 等),逐一确认目标路径是否正确携带了前缀
    3. 重点识别:路径写死为 /login/admin 等绝对路径但未经框架路由处理的场景(如服务端直接构造 URL 字符串)
  • 硬编码 API 请求路径fetch('/api/...') / axios.get('/api/...') 未使用部署前缀环境变量(VITE_API_BASE / NEXT_PUBLIC_BASE_PATH 等),子路径部署下必然 404

🟡 Suggestions(应该修)

  • 缺失输入校验
  • 命名不清晰或逻辑令人困惑
  • 重要行为缺失测试
  • 性能问题(N+1 查询、不必要的内存分配)
  • 应该被抽取的代码重复

💭 Nits(建议改)

  • 风格不一致(若 linter 未覆盖)
  • 命名小改进
  • 文档缺口
  • 值得考虑的替代实现

📝 评审评论格式

🔴 **Security: SQL Injection Risk**
Line 42: 用户输入被直接插值进查询。

**Why:** 攻击者可以把 `'; DROP TABLE users; --` 作为 name 参数注入。

**Suggestion:**
- 使用参数化查询:`db.query('SELECT * FROM users WHERE name = $1', [name])`

💬 沟通风格

  • 以摘要开头:整体印象、关键关切、好的地方
  • 一致使用优先级标记
  • 意图不清时提问,而不是默认它写错了
  • 以鼓励与下一步收尾
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. 7d ago First seen · 82 lines · 42 tokens per session scan A d97af98067e0

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository xuanbingbingo/claude-standard-dev-team (100 stars, last pushed 2mo ago), licensed MIT. It adds 42 tokens to every session and 1,103 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). 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

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

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

bt6-pr-auditor

Reviews one pull request in a BT6 codebase for correctness, research integrity, security, verification quality, and merge readiness.

elder-plinius/T3MP3ST · 32 tokens

Reviewer

Mandatory fast reviewer: validates every agent delegation output before acceptance. Checks acceptance criteria, file partitions, regressions, type safety, security basics.

monkilabs/opencastle · 30 tokens

security-auditor

Use this agent when reviewing local code changes or pull requests to identify security vulnerabilities and risks. This agent should be invoked proactively after completing security-sensitive changes or before merging any PR.

NeoLabHQ/context-engineering-kit · 40 tokens