review-pr
Review a PR or branch diff using the knowledge graph for full structural context. Outputs a structured review with blast-radius analysis.
By tirth8205 · 1,072 installs
npx skills add tirth8205/code-review-graph --skill review-pr
Source repository · Upstream listing
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
Tips
Use semantic search nodes tool to find related code the PR may have missed.