git-pr-reviewer

v2026.09.24

Review pull requests for code quality, security issues, and best practices. Use when reviewing PRs, checking code changes, or analyzing diffs before merge.

GitHub
安装命令
npx skhub add onewave-ai/git-pr-reviewer
Markdown
SKILL.md

Git PR Reviewer

Instructions

When reviewing a pull request:

  1. Get the diff: Run git diff main...HEAD or git diff <base-branch>...HEAD
  2. Analyze changed files: Identify all modified, added, and deleted files
  3. Review each file for:
    • Logic errors and bugs
    • Security vulnerabilities (SQL injection, XSS, hardcoded secrets)
    • Performance issues (N+1 queries, unnecessary re-renders, memory leaks)
    • Code style and consistency
    • Missing error handling
    • Test coverage gaps

Review Checklist

Security

  • No hardcoded credentials or API keys
  • Input validation on user data
  • Proper authentication/authorization checks
  • No SQL injection vulnerabilities
  • XSS prevention in place

Code Quality

  • Functions are small and focused
  • No code duplication
  • Clear variable/function naming
  • Proper error handling
  • No unused imports or dead code

Performance

  • No unnecessary database queries
  • Efficient algorithms used
  • Proper caching where needed
  • No memory leaks

Testing

  • New code has tests
  • Edge cases covered
  • Tests are meaningful, not just for coverage

Output Format

## PR Review Summary

### Overview
[Brief summary of changes]

### Issues Found
#### Critical
- [Issue description + file:line]

#### Warnings
- [Issue description + file:line]

#### Suggestions
- [Improvement ideas]

### Approval Status
[APPROVE / REQUEST CHANGES / NEEDS DISCUSSION]

Example

# Review current branch against main
git diff main...HEAD --stat
git diff main...HEAD
发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

2026年9月24日

分类

未分类

许可证

MIT

源路径

git-pr-reviewer

默认分支

main

最新提交

f317e08

Tree SHA

5eb00f2