| name | review-pr |
| description | Review a pull request for functional issues, coding guideline adherence, and best practices. Use this when asked to review, inspect, or provide feedback on a pull request (Azure DevOps or GitHub). Proposes comments for user approval before posting. |
Review a Pull Request
This skill reviews a pull request for functional issues, adherence to coding guidelines, and best practices. It proposes comments one at a time for user approval, then posts the approved comments.
When to Use
Use this skill when:
- You are asked to review a pull request
- You are asked to inspect or provide feedback on PR changes
- You are given a PR URL (Azure DevOps or GitHub)
Inputs
- PR URL: A URL to a pull request on Azure DevOps or GitHub
Process
Phase 1: Fetch PR Metadata
Use the appropriate tool based on the PR platform:
- Azure DevOps PRs: Use ADO MCP tools
- Parse the PR URL to extract org, project, repo, and PR ID
- Use
ado-repo_get_repo_by_name_or_id to get the repository ID
- Use
ado-repo_get_pull_request_by_id to get PR details (title, description, branches)
- Use
ado-repo_list_pull_request_threads to get existing comment threads
- GitHub PRs: Use GitHub MCP tools
- Use
github-mcp-server-pull_request_read with method get for PR details
- Use
github-mcp-server-pull_request_read with method get_review_comments for existing comments
Phase 2: Fetch and Analyze the Diff
- Fetch the PR branch locally using