CODE-REVIEW-SKILL(1) User Commands · Edition 2026.01 CODE-REVIEW-SKILL(1)
  ___ ___  ___  ___        ___ _____   _____ _____      __    ___ _  _____ _    _    
 / __/ _ \|   \| __|  ___ | _ \ __\ \ / /_ _| __\ \ /\ / / __/ __| |/ /_ _| |  | |   
| (_| (_) | |) | _|  |___||   / _| \ V / | || _| \ V  V /__\__ \ ' < | || |__| |__ 
 \___\___/|___/|___|      |_|_\___| \_/ |___|___| \_/\_/    |___/_|\_\___|____|____|
man code-review-skill LANG=zh_CN | en_US
v1.0 · awesome-skills · MIT · 20 languages · 16,000+ lines

NAME

code-review-skill — 面向 Claude Code 的全面、模块化代码审查技能

SYNOPSIS

Use code-review-skill to review this PR
Use code-review-skill to review this <component>
Use code-review-skill for [security | performance | architecture] review

DESCRIPTION

一份生产级的代码审查技能。它把 AI 辅助的代码审查从模糊建议提升为结构化、一致、专业级的协作流程。

核心仅约 190 行,按需调阅共计 16,000+ 行 的语言指南。覆盖 20+ 种 主流语言与框架——按需加载,零冗余。

每一条审查意见都带有明确的严重性标记。每一次审查都按四个阶段推进:从 PR 上下文 · 高层级评估 · 逐行分析 · 总结决策。

LANGUAGES

┌── frontend ──┘
react.mdReact 19, Hooks, Server Components, TanStack v5 .................870
vue.mdVue 3.5, Composition API, Composables, Watchers .................920
angular.mdAngular 17+, Signals, Standalone, Zoneless ..........................420
svelte.mdSvelte 5, Runes, SvelteKit, SSR/CSR boundaries ..................1,060
typescript.mdTypeScript strict mode, generics, immutability ..................540
css-less-sass.mdCSS/Less/Sass variables, responsive, compatibility ..............660
┌── backend ──┘
python.mdPython async, typing, pytest, mutable defaults .................1,070
django.mdDjango/DRF security, N+1, serializers, async views ..............1,030
java.mdJava 17/21, Spring Boot 3, virtual threads, JPA ................800
php.mdPHP 8.x, types, PDO, security, Composer ...........................700
go.mdGoroutines, channels, context, interface design .................990
rust.mdOwnership, async/await, unsafe, cancellation safety .............840
csharp.mdC# 12 / .NET 8, EF Core, ASP.NET Core, LINQ .....................520
nestjs.mdNestJS DI, guards, interceptors, DTO validation .................590
┌── mobile / systems ──┘
kotlin.mdKotlin/Android coroutines, Compose, Flow, null safety ...........1,020
swift.mdSwift 5.9+/6, SwiftUI, concurrency, Sendable, optionals ..........930
c.mdC pointer safety, undefined behavior, resources .................210
cpp.mdC++ RAII, Rule of 0/3/5, move semantics, noexcept ...............300
qt.mdQt object model, signals/slots, GUI performance .................190
┌── cross-cutting ──┘
architecture-review-guide.mdSOLID, anti-patterns, coupling ...470
performance-review-guide.mdWeb Vitals, N+1, complexity .......850
code-quality-universal.mdTOCTOU, leaky abstractions, sprawl ....320
security-review-guide.mdInjection, XSS, secrets, all langs .....

PHASES

  ┌─────────────┐     ┌─────────────┐     ┌─────────────┐     ┌─────────────┐
  │   context   │ ─▶  │ high level  │ ─▶  │ line by line│ ─▶  │   decide    │
  │    2-3m     │     │    5-10m    │     │   10-20m    │     │    2-3m     │
  └─────────────┘     └─────────────┘     └─────────────┘     └─────────────┘
1. context gathering — 2-3 min
读 PR 描述与关联 issue,评估规模,检查 CI 状态,理解业务需求。
2. high-level review — 5-10 min
评估架构合理性、性能影响面、文件组织、测试策略。先看全局。
3. line-by-line analysis — 10-20 min
逻辑正确性 · 安全 · 性能 · 可维护性 · 边界情况。一一过目。
4. summary & decision — 2-3 min
汇总问题,表扬亮点,给出 approve / comment / request-changes。

SEVERITY

INSTALLATION

克隆到 Claude Code skills 目录。两条命令即可。

# macOS / Linux
$ git clone https://github.com/awesome-skills/code-review-skill.git \
    ~/.claude/skills/code-review-skill

# Windows PowerShell
PS> git clone https://github.com/awesome-skills/code-review-skill.git `
       "$env:USERPROFILE\.claude\skills\code-review-skill"

EXAMPLES

FILES

~/.claude/skills/code-review-skill/
├── SKILL.md                              # 核心,激活时加载 (~190 行)
├── README.md
├── LICENSE                               # MIT
├── reference/                            # 按需加载的语言指南
│   ├── react.md vue.md angular.md ...
│   └── architecture-review-guide.md ...
├── assets/
│   ├── review-checklist.md              # 快速参考
│   └── pr-review-template.md            # 评论模板
└── scripts/
    └── pr-analyzer.py                   # PR 复杂度分析

SEE ALSO

claude-code(1), github / awesome-skills, CONTRIBUTING(7), review-checklist(7)

AUTHORS

awesome-skills
maintainer, primary author
contributors
see graphs/contributors

COPYRIGHT

Copyright (c) 2025 awesome-skills.
Released under the MIT License.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

CODE-REVIEW-SKILL(1) awesome-skills CODE-REVIEW-SKILL(1)
-- NORMAL -- code-review-skill.1
g top G end q quit 1,1