Code Review

专业的代码审查助手,提供结构化的审查流程、详细的检查清单和建设性的反馈指南。适用于审查Pull Request、代码提交或任何需要代码质量评估的场景,涵盖功能性、安全性、性能、测试、文档、架构设计等多个维度。

192 stars 27 forksGit & Code Review

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add smallnest/goskills --skill code-review
Manual install
git clone --depth 1 https://github.com/smallnest/goskills.git /tmp/goskills
mkdir -p ~/.claude/skills
cp -r /tmp/goskills/testdata/skills/code-review/code-review ~/.claude/skills/code-review

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Code Review Skill

## Overview
这个Skill提供了专业的代码审查指导,帮助进行全面、高质量的代码审查。当用户请求代码审查、上传代码文件寻求反馈,或询问代码改进建议时,Claude会使用此Skill来提供系统化的审查和建设性的反馈。

## 审查流程

### 第一步:理解上下文
在开始审查前,确保理解:
1. **代码目的**:这段代码要实现什么功能?
2. **变更范围**:修改了哪些部分?为什么修改?
3. **业务背景**:相关的需求或用户故事是什么?
4. **技术栈**:使用的语言、框架和工具

### 第二步:结构化审查
按照以下优先级进行审查:

#### 🔴 高优先级(必须检查)
1. **功能正确性**:代码是否实现了预期功能?
2. **安全性**:是否存在安全漏洞?
3. **严重Bug**:是否有逻辑错误或可能导致崩溃的问题?

#### 🟡 中优先级(强烈建议)
4. **性能**:是否存在性能瓶颈?
5. **测试覆盖**:是否有足够的测试?
6. **错误处理**:异常情况是否妥善处理?
7. **架构设计**:设计是否合理、可扩展?

#### 🟢 低优先级(建议改进)
8. **代码质量**:命名、格式、注释是否清晰?
9. **文档**:是否有必要的文档说明?
10. **最佳实践**:是否遵循行业和项目规范?

### 第三步:提供反馈
使用建设性的方式提供反馈:
- 标注问题严重程度(🔴 必须修复、🟡 强烈建议、🟢 建议、💡 可选)
- 说明问题的影响和原因
- 提供具体的改进建议和示例代码
- 认可好的实践

## 审查输出格式

使用以下结构化格式输出审查结果:

```markdown
# 代码审查报告

## 总体评价
[简要总结代码的整体质量和主要发现]

## 🔴 必须修复的问题
[列出必须解决的关键问题]

## 🟡 强烈建议改进
[列出重要的改进建议]

## 🟢 可选建议
[列出次要的优化建议]

## 👍 优点
[认可好的实践和亮点]

## 详细审查意见
[按代码区块或文件组织的详细评论]

## 下一步建议
[关于如何处理反馈的指导]
```

## 常见审查场景

### 场景1:审查小型PR(<200行)
- 快速浏览整体结构
- 重点检查功能正确性和安全性
- 确保有基本测试
- 提供简洁的反馈

### 场景2:审查大型PR(>400行)
- 建议作者拆分PR
- 先审查核心逻辑和关键路径
- 可以要求作者提供设计文档或演示
- 分阶段进行审查

### 场景3:审查初级开发者代码
- 更加耐心和详细
- 多提供示例和学习资源
- 解释"为什么"而不只是"怎么做"
- 多给予鼓励和肯定

### 场景4:安全关键代码
- 仔细检查所有输入验证
- 检查认证和授权逻辑
- 检查敏感数据处理
- 考虑使用自动化安全扫描工具

### 场景5:性能关键代码
- 分析算法复杂度
- 检查数据库查询效率
- 考虑并发和资源使用
- 建议性能测试和基准测试

## 反馈指导原则

### 建设性与尊重
- **专注于代码,而非编写者**:说"这个函数可以更简洁"而不是"你写得太复杂了"
- **保持专业和尊重**:即使发现严重问题,也要以建设性的方式提出
- **提供具体建议**:不要只说"这不好",要说明为什么不好以及如何改进
- **认可好的实践**:发现优秀代码时也要给予肯定

### 清晰与具体
Read the full skill on GitHub

Details

Skill name
code-review
Path
testdata/skills/code-review/code-review/SKILL.md
License
MIT
Repo updated
25 January 2026

FAQ

What does the Code Review skill do?

专业的代码审查助手,提供结构化的审查流程、详细的检查清单和建设性的反馈指南。适用于审查Pull Request、代码提交或任何需要代码质量评估的场景,涵盖功能性、安全性、性能、测试、文档、架构设计等多个维度。

How do I install the Code Review skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add smallnest/goskills --skill code-review. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Code Review popular?

It lives in smallnest/goskills, which has 192 GitHub stars and 27 forks.

Related skills

Artifacts Builder

192

smallnest/goskills

Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.

Frontend & Design27

Slack GIF Creator

192

smallnest/goskills

Toolkit for creating animated GIFs optimized for Slack, with validators for size constraints and composable animation primitives. This skill applies when users request animated GIFs or emoji animations for Slack from descriptions like "make me a GIF for Slack of X doing Y".

Images, Video & Audio27

Code Review

192

smallnest/goskills

Frontend-focused code review skill for React/TypeScript/Tailwind projects. Analyzes code quality, security vulnerabilities (XSS, CSRF), performance issues, accessibility (WCAG), React best practices, hooks usage, component architecture, responsive design, and SEO. Use when users request code review, want feedback on components, ask about frontend security, performance optimization, or accessibility compliance. Provides actionable feedback with severity levels and fix suggestions.

Software Development27

Git Workflow Expert

272

curiositech/some_claude_skills

Git branching strategies, conflict resolution, rebase workflows, monorepo patterns, and advanced operations like cherry-pick, bisect, and reflog recovery. Activate on "git", "branching strategy", "merge conflict", "rebase", "cherry-pick", "monorepo git", "git bisect", "git reflog", "squash commits". NOT for GitHub Actions CI/CD (use github-actions-pipeline-builder), GitHub API/webhooks, or PR review processes (use code-review-checklist).

Git & Code Review46

Review PR

116

SeifBenayed/cloclo

Review a pull request for bugs, security issues, and improvements. Use when the user asks to review a PR, review changes, or check code quality of a branch.

Git & Code ReviewIn 1 list32

Github Actions Pipeline Builder

272

curiositech/some_claude_skills

Build production CI/CD pipelines with GitHub Actions. Implements matrix builds, caching, deployments, testing, security scanning. Use for automated testing, deployments, release workflows. Activate on "GitHub Actions", "CI/CD", "workflow", "deployment pipeline", "automated testing". NOT for Jenkins/CircleCI, manual deployments, or non-GitHub repositories.

Git & Code Review46

Browse the most popular Claude skills, all git & code review skills, or write your own with the skills generator.