pr-review
Review pull requests for code quality, security, and conventions. Use when reviewing PRs or preparing code for review.
by wildwasser★ 62 GitHub stars
Install pr-review in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
PR Review Process
1. Understand Context
# View PR details
gh pr view <number>
# See changed files
gh pr diff <number> --name-only
# View full diff
gh pr diff <number>
# Checkout PR locally
gh pr checkout <number>
2. Review Checklist
Code Quality
- Code is readable and well-organized
- No unnecessary complexity
- Follows project conventions
- No debug code or commented-out code
Functionality
- Solves the stated problem
- Edge cases handled
- Error handling is appropriate
- No breaking changes (or documented if intentional)
Security
- No hardcoded secrets
- Input validation present
- No SQL injection vulnerabilities
- Dependencies are trusted
Testing
- Tests added for new functionality
- Existing tests still pass
- Edge cases tested
Documentation
- Code comments where needed
- README updated if needed
- API docs updated if needed
3. Provide Feedback
# Approve
gh pr review <number> --approve --body "LGTM! Nice work."
# Request changes
gh pr review <number> --request-changes --body "Please address the following..."
# Comment only
gh pr review <number> --comment --body "Some suggestions..."
# Add line comment
gh pr review <number> --comment --body "Consider using X here"
4. Merge (if approved)
# Merge with squash (recommended)
gh pr merge <number> --squash
# Merge with rebase
gh pr merge <number> --rebase
# Regular merge
gh pr merge <number> --merge
Review Tone
- Be constructive, not critical
- Explain the "why" behind suggestions
- Acknowledge good work
- Ask questions instead of demanding changes
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the pr-review skill do?
Review pull requests for code quality, security, and conventions. Use when reviewing PRs or preparing code for review.
How do I install the pr-review skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the pr-review skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…