pr-review
2
总安装量
1
周安装量
#68253
全站排名
安装命令
npx skills add https://github.com/carsten-j/agent-resources --skill pr-review
Agent 安装分布
amp
1
opencode
1
cursor
1
kimi-cli
1
codex
1
github-copilot
1
Skill 文档
PR Review
Review the current Pull Request that has been checked out locally.
Instructions
-
** Prerequisite **
- Run
git fetch origin masterto ensure we have the latest main branch
- Run
-
Get the PR changes
- Run
git diff $(git merge-base HEAD origin/master)..HEADto see all changes - If master doesn’t exist, try origin/main
- Run
git log --oneline $(git merge-base HEAD origin/main)..HEADto see commit messages
- Run
-
Understand the context
- Examine the changed files to understand the PR’s purpose
- Look for any related documentation or comments
-
Provide a structured code review
Summary
- Brief overview of what this PR accomplishes
- Number of files changed and scope
Code Quality
- Code organization and structure
- Readability and maintainability
- Adherence to best practices
- Error handling
Potential Issues
- Bugs or logic errors
- Unhandled edge cases
- Performance concerns
- Security vulnerabilities
- Concurrency issues
Testing
- Adequacy of tests
- Whether existing tests are updated
- Suggested additional test cases
Documentation
- Clarity of code comments
- Updated documentation (README, API docs)
- Explanation of complex logic
Suggestions
- Specific improvements with code examples
- Refactoring opportunities
- Alternative approaches
-
Output Format
- Use markdown formatting
- Make it ready to paste into a Bitbucket PR comment
- Be constructive and educational
- Praise good practices while noting issues