当前位置: 首页 > Skill >

Pr Review

Pr Review

Pr Review

全面审查Pull Request,关注代码质量、安全、性能和可维护性,适用于任何代码审查任务。

1.0.0 2026.11.27 932
获取Skill文件查看使用说明
作 者:叶辰 许可证: 更新时间:2026.11.27
本文目录收起

Pull Request Review

Perform a thorough code review covering quality, security, performance, and maintainability.

Review Checklist

Code Quality

  • Naming: clear, descriptive, consistent with codebase conventions
  • Functions: single responsibility, reasonable length (<50 lines)
  • Error handling: all failure paths covered, no swallowed exceptions
  • Types: proper TypeScript/type annotations where applicable
  • DRY: no unnecessary duplication
  • Dead code: nothing unused or commented out

Security (see also: security-review skill)

  • No secrets or credentials in code
  • Input validation on all user-facing endpoints
  • Parameterized queries (no string concatenation for SQL)
  • Proper auth/authz checks

Performance

  • N+1 query patterns
  • Missing database indexes for new queries
  • Unbounded loops or recursive calls
  • Large payload responses without pagination
  • Missing caching where appropriate

Testing

  • New functionality has tests
  • Edge cases covered (empty arrays, null, boundaries)
  • Tests are deterministic (no timing dependencies)
  • Mocks are appropriate (not over-mocked)

Maintainability

  • Changes are documented (README, comments for complex logic)
  • Breaking changes are noted
  • Migration path is clear for schema changes
  • Dependencies added are justified

Output Format

Start with a summary:

## Review Summary
**Verdict:** APPROVE | REQUEST_CHANGES | COMMENT
**Risk Level:** Low | Medium | High
**Key Findings:** [1-3 sentence summary]

Then list findings by category, each with:

  • File and line reference
  • What the issue is
  • Suggested fix (with code when helpful)
  • Severity (blocking vs. nit)

End with:

## Positive Notes
[Things done well worth calling out]

相关文章

更多
Git项目协作模式详解:从集中式到Forking工作流

Git的分布式特性支持多种团队协作模式。本文详细解析了集中式工作流、分支工作流、GitFlow工作流及Forking工作流的适用场景、操作流程与优缺点。集中式模式简单但易冲突;分支模式通过Feature隔离提升安全性;GitFlow通过master、develop、release和hotfix分支实现标准化发布流程,适合大型项目;Forking模式则通过独立仓库和Pull Request机制,完美适配开源社区与外部贡献者管理。

2025.02.08 509
Skill 文件
  • SKILL.md
    • Pull Request Review
    • Review Checklist
      • Code Quality
      • Security (see also: security-review skill)
      • Performance
      • Testing
      • Maintainability
    • Output Format
  • 项目或源文件

相关 Skill

更多
gy3 gy3 Use when preparing a concise pull request summary, review notes, or change explanation from git diffs, commit logs, or implementation details.
Deterministic security fixes for infrastructure code via Gomboc.ai Community Edition Deterministic security fixes for infrastructure code via Gomboc.ai Community Edition 自动扫描并确定性修复 Terraform、CloudFormation 和 IaC 中的安全问题,提供可合并的 Pull Request 并集成 CI/CD。
Pr Description Generator Pr Description Generator 自动从 git diff 和提交历史生成 Pull Request 描述,解析常规提交并对变更进行分类(功能、修复、重构等)。
comprehensive-review-pr-enhance comprehensive-review-pr-enhance 你是一名 PR 优化专家,专注于创建便于高效代码审查的高质量 pull request。生成全面的 PR 描述、自动化审查流程,并确保 PR 在清晰度、规模与可
Create Pr Create Pr 当用户请求创建PR、打开pull request、提交pull request或打开merge request时使用此技能。需要Gitee MCP服务。