jnmetacode avatar

Chinese Code Review

If you work on a Chinese-speaking dev team, you've seen both extremes: reviews so polite they let bugs through, or feedback so blunt it starts arguments. This gives you the middle ground. It teaches phrasing that's direct but respectful (建议 instead of 命令, questions instead of rejection), priority labels like [必须修复] versus [仅供参考], and practical templates for security issues, concurrency bugs, and SQL injection. Also covers when to use Chinese versus English in comments and commits. The antipattern section is honest about real problems: rubber-stamp LGTMs, not reviewing senior devs, and endless style debates. Call it explicitly with /chinese-code-review when you need the communication framework, not the technical analysis.

skills.sh installs
1.1K
GitHub stars
8.5K
last updated
Aug 21, 2026

Install

$ npx -y skills add jnmetacode/superpowers-zh --skill chinese-code-review --agent claude-code

Installs into .claude/skills of the current project.

Files

中文代码审查规范

概述

国内团队做 Code Review 常遇到两个极端:要么过度客气导致关键问题被放过,要么照搬西方直白风格让同事下不来台。本技能帮你找到平衡点——既不回避问题,又让人愿意接受反馈。

核心原则: 用"建议"代替"命令",用"提问"代替"否定",但绝不因为面子而放过 bug。

审查反馈的表达方式

用建议代替命令

避免(命令式)推荐(建议式)
你必须改成 X建议考虑用 X,因为 Y
这里写错了这里可能存在一个问题,是否考虑过 Z 的情况?
不要用这个方法这个方法在 A 场景下可能有性能问题,可以看看 B 方案
这段代码不行这段逻辑我理解得对吗?如果输入为空的话会怎样?

用提问代替否定

当你不确定对方意图时,先问再评:

# 好的方式
这里用 sync 方式读文件是出于什么考虑?如果并发量上来,可能会阻塞事件循环。

# 不好的方式
这里不应该用 sync 方式读文件。

分级标注

统一使用优先级标记,让作者快速判断轻重缓急:

  • [必须修复] — 安全漏洞、数据丢失风险、逻辑错误(不修不能合)
  • [建议修改] — 性能问题、可维护性、缺少校验(本次或下次迭代修复)
  • [仅供参考] — 命名优化、风格建议、替代方案(不改也行)
  • [问题] — 不确定的地方,需要作者解释意图

审查评论模板

[必须修复] SQL 注入风险

第 42 行:用户输入直接拼接到 SQL 语句中。

原因:攻击者可以通过 name 参数注入 `'; DROP TABLE users; --`。

建议:使用参数化查询:
  db.query('SELECT * FROM users WHERE name = ?', [name])

参考:https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html

中英混排代码注释规范

何时用中文

  • 业务逻辑说明 — 用中文解释业务背景和需求来源
  • 复杂算法注释 — 用中文写思路,确保团队成员都能理解
  • TODO / FIXME — 用中文描述待办事项,方便搜索和追踪
  • 文档注释(内部项目) — JSDoc / Javadoc 中的描述文字用中文

Sponsors

Details

Repository
github.com/jnmetacode/superpowers-zh
Categories
Git & Pull Requests, Code Review & Quality
First seen
Jun 3, 2026

More from jnmetacode/superpowers-zh

All 20
1theqtcompanyrnd avatarqt-qml-reviewtheqtcompanyrnd/agent-skills>-1Kskills.sh installs
2skillcreatorai avatarcode-reviewskillcreatorai/ai-agent-skillscode review970skills.sh installs
3sickn33 avatararchitect-reviewsickn33/antigravity-awesome-skillsarchitect review965skills.sh installs
4cap-go avatarcapacitor-apple-review-preflightcap-go/capgo-skillsGuides the agent through an Apple App Store preflight review for Capacitor apps before submission or after rejection. Covers guideline checklist selection, App 956skills.sh installs
5existential-birds avatarpython-code-reviewexistential-birds/beagleReviews Python code for type safety, async patterns, error handling, and common mistakes. Use when reviewing .py files, checking type hints, async/await usage, 928skills.sh installs
6existential-birds avatarlanggraph-code-reviewexistential-birds/beagleReviews LangGraph code for bugs, anti-patterns, and improvements. Use when reviewing code that uses StateGraph, nodes, edges, checkpointing, or other LangGraph 887skills.sh installs