pr-review
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePR Review Skill
PR评审Skill
Review pull requests against repository standards. Two-phase process: automated validation, then manual content review.
针对仓库标准对拉取请求(PR)进行评审。分为两个阶段:自动化验证,然后是人工内容评审。
Phase 1: Automated Validation (Hard Rules)
阶段1:自动化验证(硬性规则)
Run the validation script to check structural requirements:
bash
python .claude/skills/pr-review/scripts/validate_skills.pyThe script checks:
- exists in every skill directory
SKILL.md - YAML frontmatter is parseable
- Required fields present: ,
namedescription - matches directory name
name - No hardcoded secrets detected
All ERROR-level checks must pass. WARNING-level items (missing , ) should be flagged but are not blockers.
licensemetadataSee references/structure-rules.md for the complete hard rules specification.
运行验证脚本检查结构要求:
bash
python .claude/skills/pr-review/scripts/validate_skills.py该脚本会检查:
- 每个技能目录下是否存在文件
SKILL.md - YAML前置元数据是否可解析
- 是否包含必填字段:、
namedescription - 是否与目录名称匹配
name - 是否检测到硬编码的密钥
所有ERROR级别的检查必须通过。WARNING级别的项(缺少、)应被标记,但不会阻碍合并。
licensemetadata完整的硬性规则规范请参阅references/structure-rules.md。
Phase 2: Content Review (Soft Guidelines)
阶段2:内容评审(软性准则)
After automated checks pass, review the PR against quality guidelines:
- Skill scope — Does it overlap with existing skills? Is the boundary clear?
- Description quality — Does the include clear trigger conditions?
description - File size — Are reference docs reasonably sized for context window consumption?
- API key handling — If external APIs are used, are credentials read from environment variables?
- Script quality — Do scripts have shebang, requirements.txt, and error handling?
- README sync — Are and
README.mdupdated for new skills?README_zh.md
See references/quality-guidelines.md for soft guidelines details.
在自动化检查通过后,根据质量准则评审PR:
- 技能范围 —— 它是否与现有技能重叠?边界是否清晰?
- 描述质量 —— 是否包含明确的触发条件?
description - 文件大小 —— 参考文档的大小是否适合上下文窗口的处理?
- API密钥处理 —— 如果使用外部API,是否从环境变量中读取凭据?
- 脚本质量 —— 脚本是否包含shebang、requirements.txt和错误处理?
- README同步 —— 新增技能时是否更新了和
README.md?README_zh.md
软性准则的详细内容请参阅references/quality-guidelines.md。
Review Checklist Summary
评审检查清单摘要
Must Pass (Blockers)
必须通过(阻碍项)
- exits with code 0
validate_skills.py - PR title follows conventional commit format
- One PR, one purpose
- 以代码0退出
validate_skills.py - PR标题遵循约定式提交格式
- 一个PR对应一个目标
Should Pass (Flagged in Review)
建议通过(评审中标记)
- No functional overlap with existing skills
- Description includes trigger conditions
- Files are reasonably sized
- API keys via environment variables
- README tables updated for new skills (Source column set to )
Community
- 与现有技能无功能重叠
- 描述包含触发条件
- 文件大小合理
- 通过环境变量获取API密钥
- 新增技能时更新了README表格(Source列设为)
Community