code-review

code-review is a skill for Claude Code from Today-Hbw/claude-code-dev-workflow. It costs 22 tokens per session (1,172 once invoked), scanned A, original, MIT.

A code-review procedure that checks changed code by running available tests and type checks, then examining correctness, security, performance, style, and maintainability.

In plain words
What is it for?
Use it to review a change set, verify its actual behavior, and produce a report with required, suggested, and optional fixes.
Why use it?
It helps find bugs and risky changes before they reach users, while making clear how serious each issue is.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the dev-flow-lite plugin — 4 skills, 1 command shipped together

Good fit Use it to review a change set, verify its actual behavior, and produce a report with required, suggested, and optional fixes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/today-hbw/claude-code-dev-workflow/code-review
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.

Any agent
npx skills add Today-Hbw/claude-code-dev-workflow --skill code-review
Clone the repo
git clone --depth 1 https://github.com/Today-Hbw/claude-code-dev-workflow

Made for: Claude Code.

Or install dev-flow-lite, the plugin that ships this one along with the rest of its 4 skills, 1 command.

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/skills/today-hbw/claude-code-dev-workflow/code-review/github.svg)](https://agentmods.dev/skills/today-hbw/claude-code-dev-workflow/code-review)
Your own site
<a href="https://agentmods.dev/skills/today-hbw/claude-code-dev-workflow/code-review"><img src="https://agentmods.dev/badge/skills/today-hbw/claude-code-dev-workflow/code-review/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-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/today-hbw/claude-code-dev-workflow/code-review"><img src="https://agentmods.dev/badge/skills/today-hbw/claude-code-dev-workflow/code-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,172 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.00022 $0.01172
Opus 5.5 $0.00009 $0.00469
Sonnet 5.5 $0.00004 $0.00234
Haiku 4.5 $0.00002 $0.00117

Measured 1mo ago against content hash c22803b17d5a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

plugins/dev-flow-lite/skills/code-review/SKILL.md · 142 lines

What it actually says

Code Review · 审查方法

你的任务

审查步骤 3 产出的所有代码变更,从多个维度检查质量。审查前先验证代码实际行为。

审查流程

0. 审查前验证

在静态审查之前,先验证代码的实际运行行为:

  1. 检测测试配置:

    • 用 Glob 检查项目根目录有无 package.json
    • 有则读取 scripts.test 字段,确认测试命令
    • 也检查有无 pytest、go test、cargo test 等其他测试配置
  2. 运行测试(如有测试配置):

    • 执行测试命令,记录结果
    • 将测试通过/失败/跳过数量记入审查报告
    • 如有失败的测试,先修复再进入审查
  3. 运行类型检查(如有配置):

    • 检查有无 typecheck 脚本,或项目使用 tsc --noEmit
    • 记录类型检查结果
  4. 无测试配置时:

    • 标注"项目无测试配置,仅做静态审查"
    • 不阻塞审查流程

1. 查看变更文件

用 git diff 或 Read 查看所有变更文件。

2. 逐文件审查

按以下 6 个维度检查每个文件。

3. 标注严重级别

对每个问题标注级别:

  • 🔴 必须修复:逻辑错误、安全问题
  • 🟡 建议修复:性能问题、规范问题
  • 🔵 可选:代码风格、小优化

4. 在对话中输出审查报告

审查维度

1. 正确性(最重要)

  • 逻辑是否正确(对照对话中确认的验收标准;验收标准里的视觉规格项——列归属/文案/合并/顺序/所属页签——同样逐条核对,见维度 6)
  • 边界条件是否处理
  • 空值/异常是否防御
  • 数据计算是否正确

2. 边界与安全

  • SQL 是否有注入风险
  • 用户输入是否校验
  • 权限控制是否正确
  • 敏感数据是否暴露

3. 性能

  • 是否有 N+1 查询
  • 大数据量场景是否分页
  • 是否有不必要的循环或重复计算

4. 规范

  • 命名是否符合项目规范
  • 代码风格是否一致
  • 注释是否充分
  • 文件结构是否合理

5. 可维护性

  • 代码是否易读
  • 是否有重复代码
  • 是否过度设计
  • 是否容易测试

6. 视觉规格落地(仅当验收标准含视觉规格项)

对照 PRD 截图/原型逐条比对实现:

  • 字段列归属是否一致(该折进已有列的没做成独立列)
  • 按钮/菜单文案是否与 PRD 图逐字一致(不自拟、不增减字)
  • 入口所属页签/区域是否一致(不新建 PRD 图未要求的页签)
  • 筛选项、字段的位置与顺序是否与图一致

凡 PRD 图已给出的位置/文案视为硬性验收项,不符即 🔴。

输出格式

在对话中按以下格式输出审查报告:

## 代码审查报告

### 🧪 运行结果
- 测试:N 通过 / M 失败 / K 跳过
- 类型检查:通过/失败
- (或"项目无测试配置,仅做静态审查")

### 🔴 必须修复(N 项)

1. **<文件:行号>**:<问题描述>
   - 原因:<为什么是问题>
   - 建议:<修复方案>

### 🟡 建议修复(N 项)

1. **<文件:行号>**:<问题描述>
   - 建议:<改进方案>

### 🔵 可选优化(N 项)

1. **<文件:行号>**:<问题描述>

### 总结
- 必须修复:N 项
- 建议修复:N 项
- 可选优化:N 项
- 整体评价:<一句话总结>

注意事项

  • 如果有 🔴 必须修复项,回到步骤 3 修复后重新审查
  • 不要纠结于代码风格问题(那是 linter 的事);但 PRD 图已定死的界面位置/文案属必查项、非风格问题,实现与图不符即 🔴
  • 重点关注逻辑正确性和安全问题
  • 审查意见要具体到文件和行号,不要泛泛而谈
  • 运行结果是审查报告的第一部分
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 · 142 lines · 22 tokens per session scan A c22803b17d5a

Subscribe to this mod's changes

code-review is a skill published in the GitHub repository Today-Hbw/claude-code-dev-workflow (23 stars, last pushed 2mo ago), licensed MIT. It adds 22 tokens to every session and 1,172 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.