Claude Workflow: Reviewing a Pull Request
An example workflow showing how Claude uses project instructions and code analysis skills to review a pull request and provide actionable feedback.
How It Works
What you do: Run /review-pr 123.
What happens:
- The
/review-prcommand is invoked, which loads your project instructions from CLAUDE.md. - The instructions define your code review standards, including testing requirements, commit message format, and performance considerations.
- A general-purpose agent is dispatched to analyse the pull request.
- The agent uses skills such as code analysis and git operations to:
- Fetch the PR details
- Compare changes against the base branch
- Run static analysis
- Check for compliance with project standards
- The agent may invoke the Opus model for complex reasoning about code quality.
- Results are returned with specific, actionable feedback based on your project's standards.
Newsletter
A weekly newsletter on React, Next.js, AI-assisted development, and engineering. No spam, unsubscribe any time.