review-pr
What it does
This skill guides the AI agent in reviewing all commits of a pull request or branch with the code-review-graph tool. It is for developers and reviewers handling pull requests.
When to use it
- ✓When you want a structured review of a pull request before it is merged.
- ✓When you need to check that public API changes updated all their callers.
- ✓When you want a risk summary covering every commit in a branch.
Skill link
https://github.com/tirth8205/code-review-graph/blob/staging/skills/review-pr/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Can you review the feature-login branch against main and tell me the risks?”
5 new skills a week. 1 minute to read.
How it works
The agent compares the branch with main, checks risky functions and their callers and tests, and then reads the highest-impact files.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Review PR
Review all commits of a pull request or branch against its base branch.
Steps
- Identify the changes. With a branch name run
git diff --name-only main...<branch>; otherwise diff the current branch againstmain(ormaster). Use that ref asbasebelow. - Call
get_minimal_context_tool(task="review PR", base="main"). If it returnsstatus: not_ready, callbuild_or_update_graph_tool()and continue. - Call
detect_changes_tool(base="main", detail_level="minimal")for risk-scored changed functions, test gaps and affected flows across the whole branch. - For high-risk functions call
query_graph_tool(pattern="callers_of", target="<function>")andquery_graph_tool(pattern="tests_for", target="<function>"). Flag public API changes whose callers were not updated. - Call
get_review_context_tool(base="main")for source snippets, orget_impact_radius_tool(base="main")for the full dependent list, only when step 3 leaves a high-risk item unclear. - Read the changed source of the highest-impact files first. Do not load whole files unless the change needs it.
Output
## PR Review: <title>
### Summary
<1-3 sentences>
### Risk
- Overall: Low / Medium / High
- Blast radius: <n> files, <m> functions
- Test coverage: <covered> of <changed> changed functions
### Files
#### <path>
- Changes: <what>
- Impact: <who depends on it>
- Issues: <bugs, style, concerns>
### Missing Tests
- <function> in <file>
### Recommendations
1. <action>
Tips
- Use
semantic_search_nodes_toolto find related code the PR may have missed.
FAQ
What base branch does it use?
It uses the branch you name, or compares the current branch with main or master.
What does the output look like?
It is a structured review with a summary, risk level, files, and test coverage counts.
Does it flag API changes?
Yes. It flags public API changes whose callers were not updated.
Details
Original description by the author
Review a PR or branch diff using the knowledge graph for full structural context. Outputs a structured review with blast-radius analysis.
Popularity
- GitHub stars
- 33k
- Ranking position
- #9144
- License
- MIT
- Updated
- 10/29/2026
Comments
- …
More skills from this repository
build-graph
33kLets your agent build or update a code knowledge graph of your repository, so later code reviews and searches are faster.
debug-issue
33kHelps your agent trace a bug through a code knowledge graph, following the call chain before reading the source code.
explore-codebase
33kHelps your agent find its way around an unfamiliar codebase by searching the code knowledge graph for modules and relationships.
refactor-safely
33kHelps your agent plan a code refactor using dependency analysis, and apply renames only after checking a preview.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.