/cook-zh-cn:pr-review runs instead · from cook-zh-cn
Conducts systematic PR review on GitHub, evaluating code quality, security, performance, and architecture with structured severity-based feedback. Activated by phrases like '审查这个 PR' or '代码审查'.
This skill never runs in Claude Code
It ships in cook-zh-cn at skills/, but /cook-zh-cn:pr-review (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
通过 Pull Request 的系统化审查确保代码质量和架构健全性。
# PR 的全面审查
gh pr view 123 --comments
"系统化审查这个 PR,从代码质量、安全性、架构角度提供反馈"
# 安全性专注审查
gh pr diff 123
"专注于安全风险和漏洞进行审查"
# 架构视角的审查
gh pr checkout 123 && find . -name "*.js" | head -10
"从层级分离、依赖关系、SOLID 原则的角度评估架构"
# 代码质量的数值评估
find . -name "*.js" -exec wc -l {} + | sort -rn | head -5
"评估代码的复杂度、函数大小、重复度并指出改进点"
# 安全漏洞检查
grep -r "password\|secret\|token" . --include="*.js" | head -10
"检查敏感信息泄露、硬编码、认证绕过的风险"
# 架构违规检测
grep -r "import.*from.*\\.\\./\\.\\." . --include="*.js"
"评估层级违规、循环依赖、耦合度问题"
🔴 critical.must: 致命问题
├─ 安全漏洞
├─ 数据一致性问题
└─ 系统故障风险
🟡 high.imo: 高优先级改进
├─ 功能故障风险
├─ 性能问题
└─ 可维护性大幅降低
🟢 medium.imo: 中优先级改进
├─ 可读性提升
├─ 代码结构改进
└─ 测试质量提升
🟢 low.nits: 轻微指摘
├─ 风格统一
├─ 拼写错误修正
└─ 注释添加
🔵 info.q: 问题·信息提供
├─ 实现意图确认
├─ 设计决策背景
└─ 最佳实践分享
格式:
critical.must.示例:
critical.must. 密码以明文保存
修复方案:
const bcrypt = require('bcrypt');
const hashedPassword = await bcrypt.hash(password, 12);
为防止安全风险,必须进行哈希处理。
格式:
high.imo.示例:
high.imo. 会发生 N+1 查询问题
改进方案:Eager Loading
const users = await User.findAll({ include: [Post] });
可以大幅减少查询数量。
格式:
high.must.示例:
high.must. 发生了层级违规
领域层直接依赖基础设施层。
请通过依赖倒置原则引入接口。
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub wasabeef/claude-code-cookbook --plugin cook-zh-cn39 skills in this plugin
2 plugins ship this exact skill · first indexed Jul 16, 2026
Other plugins' skills for the same job