code-review

code-review is a command for Claude Code from znlnzi/claude-config-studio. It costs 9 tokens per session (315 once invoked), scanned A, original, MIT.

A command for reviewing uncommitted code changes for security, quality, testing, and style problems. Uncommitted changes are edits not yet saved in a version-control commit.

In plain words
What is it for?
Use it before committing code to check for issues such as hard-coded credentials, injection risks, weak input validation, poor error handling, and missing tests.
Why use it?
It gives each finding a priority, file, line, and suggested fix, and can block changes with critical or high-priority issues.

Command for Claude Code

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.

agentmods
npx agentmods add commands/znlnzi/claude-config-studio/code-review
Clone the repo
git clone --depth 1 https://github.com/znlnzi/claude-config-studio

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-review

README.md
[![agentmods](https://agentmods.dev/badge/commands/znlnzi/claude-config-studio/code-review.svg)](https://agentmods.dev/commands/znlnzi/claude-config-studio/code-review)
Your own site
<a href="https://agentmods.dev/commands/znlnzi/claude-config-studio/code-review"><img src="https://agentmods.dev/badge/commands/znlnzi/claude-config-studio/code-review.svg" alt="Measured on agentmods" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 315 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00009 $0.00315
Opus 5 $0.00005 $0.00158
Sonnet 5 $0.00002 $0.00063
Haiku 4.5 $0.00001 $0.00032

Measured 3d ago against content hash 480077e130fc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

code-review 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 3d 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/commands/code-review.md · 45 lines

What it actually says

/code-review - 代码审查

扫描未提交的更改,执行全面代码审查。

审查流程

1. 变更扫描

  • 获取所有未提交的更改
  • 按文件类型分组
  • 评估变更范围

2. 安全检查 (关键优先级)

  • 无硬编码凭证
  • 无 SQL 注入风险
  • 无 XSS 漏洞
  • 所有输入已验证
  • 认证/授权正确

3. 代码质量 (高优先级)

  • 函数长度 < 50 行
  • 文件长度 < 800 行
  • 嵌套层级 < 4 层
  • 错误处理完善
  • 命名清晰一致

4. 最佳实践 (中优先级)

  • 不可变数据模式
  • 充分的测试覆盖
  • 无冗余代码
  • 无调试语句 (console.log)

输出格式

对每个发现的问题:

  • [关键/警告/建议] file:line - 问题描述
  • 修复建议

关键规则

包含关键或高优先级问题的提交将被阻止。

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. 3d ago First seen · 45 lines · 9 tokens per session scan A 480077e130fc

Subscribe to this mod's changes

code-review is a command published in the GitHub repository znlnzi/claude-config-studio (0 stars, last pushed 6mo ago), licensed MIT. It adds 9 tokens to every session and 315 once invoked, about $0.0000 per session on Opus 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-31.