pr-review
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 --name-only $(git merge-base HEAD origin/master)..HEADfor a quick overview of changed files - Run
git diff $(git merge-base HEAD origin/master)..HEADto see all changes - Run
git log --oneline $(git merge-base HEAD origin/master)..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
Verdict
- State one of: Approve, Request Changes, or Comment
- Briefly justify the verdict
-
Output Format
- Use markdown formatting
- Make it ready to paste as a PR comment
- Be constructive and educational
- Praise good practices while noting issues
More from carsten-j/agent-resources
update-claude-md
Update the project's CLAUDE.md with meta learnings, conventions, gotchas, and significant codebase changes. Use when the user asks to update CLAUDE.md, capture learnings, document project conventions, or reflect recent work in the project guide.
11refactor-pass
Perform a refactor pass focused on simplicity after recent changes. Use when the user asks for a refactor/cleanup pass, simplification, or dead-code removal and expects build to verify behavior.
11history
Display Claude conversation history in an easy-to-scan format showing recent sessions with dates, projects, and topics. Use when you want to review past conversations or resume a previous session.
1teach
Learning mode - guides the user to complete tasks themselves through Socratic teaching rather than doing it for them. Use when the user wants to learn how to do something instead of having it done for them.
1analyze-function
Analyze the specified function from the given file with detailed line-by-line breakdown. Use when you need to understand what a function does, how it works, and why it was implemented that way.
1