mcpField
Z
zh-code-reviewer

zh-code-reviewer

github.com/laolaoshirenTesting & quality900121 installsUpdated 3d ago
Repository

About zh-code-reviewer

A skill for Chinese-language code reviews that examines conventions, potential bugs, performance, security, and design patterns. It produces a structured report with issue locations and suggested fixes.

Key features

  1. 01Checks naming, formatting, and comments
  2. 02Finds potential bugs and performance issues
  3. 03Checks for common security vulnerabilities
  4. 04Evaluates design-pattern use
  5. 05Produces a structured Chinese review report

Use cases

  1. 01Review code changes and list findings
  2. 02Check code for security concerns
  3. 03Assess code quality and suggest fixes

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/laolaoshiren/claude-code-skills-zh --skill zh-code-reviewer

After installing, type/zh-code-reviewerin Claude Code to confirm it loaded.

Details

From the project README

中文代码审查专家

触发条件

当用户要求审查代码、code review、代码检查、代码质量评估时激活此技能。

工作流程

  1. 读取目标文件 — 使用 Glob 和 Read 工具获取要审查的代码
  2. 分析代码质量 — 从以下维度评估:
    • 代码规范(命名、格式、注释)
    • 潜在 Bug(空指针、越界、并发问题)
    • 性能问题(N+1 查询、内存泄漏、不必要的循环)
    • 安全漏洞(SQL 注入、XSS、硬编码密钥)
    • 设计模式(是否合理使用、是否有更好的方案)
  3. 生成审查报告 — 使用中文输出结构化报告

输出格式

## 📋 代码审查报告

### 📊 总体评分:X/10

### 🔴 严重问题(必须修复)
- [文件:行号] 问题描述
  💡 修复建议:...

### 🟡 建议改进(推荐修复)
- [文件:行号] 问题描述
  💡 改进建议:...

### 🟢 亮点
- 做得好的地方

### 📝 总结
一段总结性评价

注意事项

  • 技术术语保留英文(如 null pointer、SQL injection)
  • 代码示例保持原语言
  • 对于中文变量名/注释,也要检查是否恰当

Comments

Markdown supported