review-pr
Skill3 starsChanged 24 months agoMITView on GitHub
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.
96 other projects use a version of this.
Adopted by
Most recently taken up by
- nerymurillohnd/claude-essentialstheir own version, first seen Oct 5, 2026
- lohi-ai/babysittheir own version, first seen Oct 5, 2026
- briandconnelly/skillstheir own version, first seen Oct 4, 2026
- angusfretwell/skillstheir own version, first seen Oct 4, 2026
- domengabrovsek/agent-configtheir own version, first seen Oct 2, 2026
- egregore-labs/egregoretheir own version, first seen Oct 1, 2026
Used with
Projects with it also use build-graph, review-delta and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
n24q02mSkillbuild-graph
Build or update the code review knowledge graph. Run this first to initialize, or let hooks keep it updated automatically.
Also in 3 projects that use this
n24q02mSkillreview-delta
Review only changes since last commit using impact analysis. Token-efficient delta review with automatic blast-radius detection.
Also in 3 projects that use this
jasoncrawfordSkillwork-on
Use to kick off work on a feature, bug, or task
Also in 3 projects that use this
DockerSkillfix-issue
Fix a single GitHub issue end-to-end: triage, research, write the fix, review, and create a PR. Use when asked to fix an issue: "fix issue 1234", "resolve #500", "create a PR for issue 200".
Also in 6 projects that use this
JetBrainsSkillreview-plan
Manually re-run the autonomous plan review (Phase 2 — consistency + structural). The same review runs automatically as the first phase of /execute-tracks; this command is for re-runs after inline replanning or whenever the plan needs explicit re-validation. TRIGGER when: user asks to re-validate the plan after inline replanning; user requests explicit plan review outside /execute-tracks. SKIP: /execute-tracks already running State 0 in this session (autonomous Phase 2 path will fire) — do not double-run.
Also in 5 projects that use this
SentrySkillcreate-pr
Create pull requests following Sentry conventions. Use when opening PRs, writing PR descriptions, or preparing changes for review. Follows Sentry's code review guidelines.
Also in 21 projects that use this
Other versions96 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 96
- ToolJet/ToolJet★ 41ksame name
- tirth8205/code-review-graph★ 32ksame name
- microsoft/fluentui★ 20ksame name
- hashicorp/terraform-provider-aws★ 11ksame name
- maximhq/bifrost★ 8.6ksame name
- docker/docs★ 4.7ksame name
- mikeyobrien/ralph-orchestrator★ 3.2ksame name
- ShenSeanChen/waku-agent★ 1.9ksame name
- NeoLabHQ/context-engineering-kit★ 1.7ksame name
- google/site-kit-wp★ 1.4ksame name
86 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
The file
Show its rules and text
We split this skill into the rules it gives an agent
31 rules. 0 are common, 20 are distinctive, and 11 are very specific to this project.
0
Common
Most of the 91 edited versions we read keep these.
20
Distinctive
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Use this skill when:
- Distinctive: line 25
Use the appropriate tool based on the PR platform:
- Distinctive: line 27
Azure DevOps PRs: Use ADO MCP tools
- Very specific: line 29
Use ado-repo_get_repo_by_name_or_id to get the repository ID
- Very specific: line 30
Use ado-repo_get_pull_request_by_id to get PR details (title, description, branches)
- Very specific: line 31
Use ado-repo_list_pull_request_threads to get existing comment threads
- Distinctive: line 32
GitHub PRs: Use GitHub MCP tools
- Very specific: line 33
Use github-mcp-server-pull_request_read with method get for PR details
- Very specific: line 34
Use github-mcp-server-pull_request_read with method get_review_comments for existing comments
- Very specific: line 47
If the diff is large, save to temp files and review in sections using view with view_range
- Very specific: line 53
Read coding guidelines: Check deps/c-build-tools/.github/general_coding_instructions.md and the relevant copilot-instructions.md files for …
- Distinctive: line 54
Check existing patterns: Search the codebase for similar patterns to verify consistency:
- Very specific: line 55
Use grep to find related functions, macros, or patterns
- Distinctive: line 56
Check if all instances of a repeated pattern were updated (e.g., all callback handlers, all enum values)
- Distinctive: line 57
Cross-reference documentation: If requirements docs are changed, verify they match the code changes
- Distinctive: line 58
Check for completeness: If a change is applied to multiple similar locations, verify none were missed
- Distinctive: line 62
Look for these categories of issues:
- Distinctive: line 83
Ask the user to Approve, Skip, or Modify each comment
- Distinctive: line 86
Key Principle: Never post comments without explicit user approval.
- Distinctive: line 90
After all comments have been reviewed by the user, post the approved ones:
- Very specific: line 92
Azure DevOps PRs: Use ado-repo_create_pull_request_thread for each comment
- Distinctive: line 96
GitHub PRs: Use GitHub MCP tools or CLI to create review comments
- Distinctive: line 100
Remove any temporary diff files created during analysis
- Very specific: line 108
All posted comments must be prefixed with [MrBot] to clearly identify AI-generated feedback:
- Distinctive: line 123
Respectful: Use constructive language
- Distinctive: line 127
Style-only nits: Don't comment on formatting preferences unless they violate documented conventions
- Distinctive: line 128
Redundant comments: Don't repeat the same issue on every occurrence — mention it once and note it applies elsewhere
- Distinctive: line 129
Obvious observations: Don't restate what the code already clearly does
- Distinctive: line 130
Speculative concerns: Only flag issues you can substantiate with evidence from the codebase or guidelines
- Very specific: line 149
Read coding guidelines from deps/c-build-tools/.github/general_coding_instructions.md
- Distinctive: line 150
Search codebase for related patterns to verify completeness
“Common” is measured: kept by at least 6 in 10 of the 91 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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_idto get the repository ID - Use
ado-repo_get_pull_request_by_idto get PR details (title, description, branches) - Use
ado-repo_list_pull_request_threadsto get existing comment threads
- GitHub PRs: Use GitHub MCP tools
- Use
github-mcp-server-pull_request_readwith methodgetfor PR details - Use
github-mcp-server-pull_request_readwith methodget_review_commentsfor existing comments
- Use
Phase 2: Fetch and Analyze the Diff
- Fetch the PR branch locally using
git fetch - Get the diff stats to understand the scope of changes:
git --no-pager diff --stat origin/<target>...<source-branch> - Get the full diff for each changed file:
git --no-pager diff origin/<target>...<source-branch> -- <file-path> - If the diff is large, save to temp files and review in sections using
viewwithview_range
Phase 3: Analyze the Codebase for Context
To provide meaningful review, understand the broader context:
- Read coding guidelines: Check
deps/c-build-tools/.github/general_coding_instructions.mdand the relevantcopilot-instructions.mdfiles for coding standards - Check existing patterns: Search the codebase for similar patterns to verify consistency:
- Use
grepto find related functions, macros, or patterns - Check if all instances of a repeated pattern were updated (e.g., all callback handlers, all enum values)
- Use
- Cross-reference documentation: If requirements docs are changed, verify they match the code changes
- Check for completeness: If a change is applied to multiple similar locations, verify none were missed
Phase 4: Identify Review Issues
Look for these categories of issues:
Functional Issues (High Priority)
- Missing updates in similar/repeated patterns (e.g., handler not updated)
- Logic errors or incorrect conditions
- Thread-safety issues (missing atomics, race conditions)
- Resource leaks (memory, handles, references)
- Missing error handling paths
- Incorrect enum values or constant usage
Coding Guideline Adherence
- Code must adhere to the rules in
general_coding_instructions.md— refer to that file for the authoritative set of conventions rather than duplicating specific rules here
Phase 5: Propose Comments for Approval
Present each proposed comment to the user one at a time using the ask_user tool:
- Show the comment text including:
- The file and location
- The issue description
- Why it matters (functional bug, consistency, convention)
- Ask the user to Approve, Skip, or Modify each comment
- Track the status of each comment (use a SQL table or in-memory tracking)
Key Principle: Never post comments without explicit user approval.
Phase 6: Post Approved Comments
After all comments have been reviewed by the user, post the approved ones:
- Azure DevOps PRs: Use
ado-repo_create_pull_request_threadfor each comment- Set
filePathto the target file - Set
rightFileStartLine/rightFileEndLinefor inline comments - Use
status: "Active"(default)
- Set
- GitHub PRs: Use GitHub MCP tools or CLI to create review comments
Phase 7: Cleanup
- Remove any temporary diff files created during analysis
- Summarize the results:
- Number of comments proposed
- Number approved and posted
- Number skipped
Comment Format
All posted comments must be prefixed with [MrBot] to clearly identify AI-generated feedback:
[MrBot] The `on_foo_complete` handler is missing the `SET_FLAG` macro call.
All other handlers were updated — this one appears to have been accidentally skipped.Guidelines
What Makes a Good Review Comment
- Specific: Point to the exact code location and describe the issue precisely
- Actionable: Clearly state what should be changed
- Justified: Explain why the change is needed (bug, convention, consistency)
- Non-trivial: Focus on issues that genuinely matter — bugs, correctness, completeness
- Respectful: Use constructive language
What to Avoid
- Style-only nits: Don't comment on formatting preferences unless they violate documented conventions
- Redundant comments: Don't repeat the same issue on every occurrence — mention it once and note it applies elsewhere
- Obvious observations: Don't restate what the code already clearly does
- Speculative concerns: Only flag issues you can substantiate with evidence from the codebase or guidelines
Prioritization
Focus review effort on:
- Completeness gaps: Changes that were applied to most but not all similar locations
- Functional correctness: Logic that doesn't match the stated requirements
- Adherence to coding guidelines: Violations of conventions in
general_coding_instructions.md - Documentation-code mismatch: Requirements docs that don't match the implementation
Example Workflow
Given PR URL: https://msazure.visualstudio.com/One/_git/MyRepo/pullrequest/12345
- Parse URL → org:
msazure, project:One, repo:MyRepo, PR:12345 - Fetch repo ID via
ado-repo_get_repo_by_name_or_id - Fetch PR details and existing threads
- Fetch the source branch:
git fetch origin feature/my-change - Get diff:
git --no-pager diff origin/master...feature/my-change - Read coding guidelines from
deps/c-build-tools/.github/general_coding_instructions.md - Search codebase for related patterns to verify completeness
- Identify issues (e.g., 3 handlers missed, 1 doc mismatch)
- Present each comment to user for approval
- Post approved comments with
[MrBot]prefix - Clean up temp files and summarize results
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

