code-review-cn

code-review-cn is a skill for Claude Code, Codex from guyulong/cn-agent-skills. It costs 14 tokens per session (561 once invoked), scanned A, original, MIT.

A Chinese-language code-review tool that checks code for correctness, quality, performance, security, and maintainability, then produces a review report.

In plain words
What is it for?
Use it to review files or changes and receive a Chinese report with serious issues, suggested improvements, and positive findings.
Why use it?
It helps Chinese-speaking developers identify bugs, edge cases, security risks, duplicated code, and other maintenance problems before release.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to review files or changes and receive a Chinese report with serious issues, suggested improvements, and positive findings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/guyulong/cn-agent-skills/code-review-cn
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 guyulong/cn-agent-skills --skill code-review-cn
Clone the repo
git clone --depth 1 https://github.com/guyulong/cn-agent-skills

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/guyulong/cn-agent-skills/code-review-cn/github.svg)](https://agentmods.dev/skills/guyulong/cn-agent-skills/code-review-cn)
Your own site
<a href="https://agentmods.dev/skills/guyulong/cn-agent-skills/code-review-cn"><img src="https://agentmods.dev/badge/skills/guyulong/cn-agent-skills/code-review-cn/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-cn

Your own site · 80×15
<a href="https://agentmods.dev/skills/guyulong/cn-agent-skills/code-review-cn"><img src="https://agentmods.dev/badge/skills/guyulong/cn-agent-skills/code-review-cn.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 561 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.00561
Opus 5 $0.00007 $0.00280
Sonnet 5 $0.00003 $0.00112
Haiku 4.5 $0.00001 $0.00056

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

Security

Grade A, and why

code-review-cn 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 8d 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-cn/SKILL.md · 80 lines

What it actually says

中文代码审查

使用场景

对代码进行全面审查,生成中文审查报告。

审查维度

1. 功能正确性

  • 逻辑是否正确
  • 边界条件是否处理
  • 异常情况是否覆盖
  • 返回值是否一致

2. 代码质量

  • 命名是否清晰(变量、函数、类)
  • 函数是否过长(建议 < 50行)
  • 是否有重复代码
  • 圈复杂度是否过高

3. 性能

  • 是否有 N+1 查询
  • 是否有不必要的循环
  • 内存是否有泄漏风险
  • 是否有可以缓存的计算

4. 安全

  • 输入是否做了校验
  • SQL是否使用参数化查询
  • 敏感信息是否硬编码
  • 权限是否正确检查

5. 可维护性

  • 是否有必要的注释
  • 是否有单元测试
  • 错误处理是否完善
  • 日志是否足够排查问题

报告模板

# 代码审查报告

## 概述
- 审查文件:xxx.py
- 审查日期:2026-06-06
- 总体评分:B+(良好)

## 发现的问题

### 🔴 严重问题(必须修复)
1. **SQL注入风险** (第45行)
   - 问题:直接拼接SQL字符串
   - 建议:使用参数化查询
   - 示例:`cursor.execute("SELECT * FROM users WHERE id = %s", (user_id,))`

### 🟡 建议改进
1. **函数过长** (第100-250行)
   - 问题:process_data 函数超过150行
   - 建议:拆分为多个小函数

### 🟢 优点
1. 错误处理完善
2. 日志记录详细

评分标准

  • A+:优秀,可直接合并
  • A:良好,小问题可忽略
  • B+:良好,建议修改后合并
  • B:一般,需要修改
  • C:较差,需要重构
  • D:严重问题,需要重写
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. 8d ago First seen · 80 lines · 14 tokens per session scan A 8bbe39918f33

Subscribe to this mod's changes

code-review-cn is a skill published in the GitHub repository guyulong/cn-agent-skills (3 stars, last pushed 3mo ago), licensed MIT. It adds 14 tokens to every session and 561 once invoked, about $0.0001 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.