mcpField
C
code-review

code-review

github.com/yinhunfeixueTesting & quality458 installsUpdated 22w ago
Repository

About code-review

A code-review skill that guides reviewers through logic, standards, security, documentation, code cleanliness, duplication, and readability. It structures findings as step-by-step results.

Key features

  1. 01Check logic and edge cases
  2. 02Review coding and web standards
  3. 03Check secrets and input validation
  4. 04Verify documentation updates
  5. 05Find dead and duplicated code
  6. 06Assess naming and readability

Use cases

  1. 01Review feature logic and unusual inputs
  2. 02Check a web project against standards
  3. 03Verify docs after shared-module changes

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/yinhunfeixue/software_development_skills --skill code-review

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

Details

From the project README

代码 Review

依赖规范

#[[file:../rules/review-base.md]] #[[file:../rules/coding-standards.md]] #[[file:../rules/web-standards.md]]

步骤

每个步骤先输出标题,再输出结果

  • 逻辑正确:检查逻辑是否符合需求,边界条件是否已处理(空值、极值、异常输入)
  • 规范符合:按 coding-standards 逐项检查,输出每项检查结果;web 项目同时检查 web-standards
  • 安全检查:检查是否有敏感信息硬编码,用户输入是否有校验
  • 文档同步:若修改了公共模块,检查使用文档和演示入口页面是否已同步更新
  • 代码清洁:检查是否有未使用的变量、函数、import 等死代码
  • 无重复:检查是否有重复逻辑和代码,可复用部分是否已提取
  • 可读性:检查命名是否清晰,函数和类是否有注释,复杂逻辑是否有过程说明

Comments

Markdown supported