Skip to content
Skillpedia
General coding33k · #9144

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.md

Copy 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

Use this skill to help me: https://github.com/tirth8205/code-review-graph/blob/staging/skills/review-pr/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

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

  1. Identify the changes. With a branch name run git diff --name-only main...<branch>; otherwise diff the current branch against main (or master). Use that ref as base below.
  2. Call get_minimal_context_tool(task="review PR", base="main"). If it returns status: not_ready, call build_or_update_graph_tool() and continue.
  3. Call detect_changes_tool(base="main", detail_level="minimal") for risk-scored changed functions, test gaps and affected flows across the whole branch.
  4. For high-risk functions call query_graph_tool(pattern="callers_of", target="<function>") and query_graph_tool(pattern="tests_for", target="<function>"). Flag public API changes whose callers were not updated.
  5. Call get_review_context_tool(base="main") for source snippets, or get_impact_radius_tool(base="main") for the full dependent list, only when step 3 leaves a high-risk item unclear.
  6. 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_tool to 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.

repo: tirth8205/code-review-graph

Popularity

GitHub stars
33k
Ranking position
#9144
License
MIT
Updated
10/29/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills