code-review

A checklist for reviewing a defined set of code changes for correctness, error handling, security, performance, maintainability, and tests.

In plain words
What is it for?
It reviews changed code for missed edge cases, unsafe input or secrets, swallowed errors, inefficient operations, maintainability issues, and missing test coverage.
Why use it?
It turns a code review into specific checks and points out problems with actionable conclusions instead of general comments.

Skill for Claude CodeCodex

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 skills/garyfigno/dr.wangagent/code-review
Any agent
npx skills add GaryFigno/Dr.WangAgent --skill code-review
Clone the repo
git clone --depth 1 https://github.com/GaryFigno/Dr.WangAgent

Made for: Claude Code, Codex.

Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 433 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.00049 $0.00433
Opus 5 $0.00024 $0.00217
Sonnet 5 $0.00010 $0.00087
Haiku 4.5 $0.00005 $0.00043

Measured 2d ago against content hash 712b334816bd, 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 2d 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.

skills/code-review/SKILL.md · 37 lines

What it actually says

代码审查清单

先定位范围

  • 用户没指定文件时,用 git diff --stat HEAD 或最近改动定位本次要审的代码
  • 每次只审一个明确的变更集,不把无关代码卷进来

逐条核对(按顺序)

  1. 行为正确性:逻辑分支是否有遗漏、边界条件(空输入 / 并发 / 失败路径)是否处理
  2. 错误处理:异常是否被吞掉;失败时是否有用户可见的提示
  3. 安全性:是否有密钥/路径注入、命令拼接、越权文件访问;用户输入是否被转义
  4. 性能:是否有无界循环、重复 IO、把大文件整读进内存等明显问题
  5. 可维护性:魔法数字、复制粘贴代码、超长函数、命名是否达意
  6. 测试:改动是否缺测试;已有测试是否真的覆盖了改动路径

输出格式

对每条发现给出:

[严重/建议/疑问] 文件:行号 — 问题描述
  建议:怎么改
  • 严重:会导致错误行为、数据丢失或安全问题,必须修
  • 建议:能改得更好,但不阻塞
  • 疑问:需要作者澄清,不是结论

最后给一个总评(1-3 句)+ 是否建议合并。不要为了凑条数而挑刺,也不要漏掉真问题。

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. 2d ago First seen · 37 lines · 49 tokens per session scan A 712b334816bd

Subscribe to this mod's changes

code-review is a skill published in the GitHub repository GaryFigno/Dr.WangAgent (2 stars, last pushed 14d ago), licensed MIT. It adds 49 tokens to every session and 433 once invoked, about $0.0002 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.