Review pr

From leonvanzyl/agentic-coding-starter-kit · View interactive version

Review pr is an AI agent skill from the GitHub repository leonvanzyl/agentic-coding-starter-kit. Review pull requests with complexity-adaptive depth — spawning deep-dive agents for medium and complex PRs. Use this skill when the user says "review this PR", "review PR #123", "check this pull request", "give me a code review", or wants feedback on a PR before merging. Also use when the user says

How to use this skill

Skill file

Review Pull Request

Review pull requests with a depth that matches their complexity. Simple PRs get a direct review; complex PRs get parallel deep-dive agents analyzing security, performance, and architecture.

Arguments

The user should provide PR number(s) or URL(s). If none provided, ask for them.

Instructions

Step 1: Retrieve PR Details

Use the GitHub CLI to get the full picture:

gh pr view {pr_number} --json title,body,files,additions,deletions,commits,author,reviews,comments
gh pr diff {pr_number}

Step 2: Assess Complexity

Score the PR based on:

Simple (direct review, no agents):

Medium (1-2 deep-dive agents):

Complex (up to 3 deep-dive agents):

Step 3: Analyze

For Simple PRs: review directly — read the diff, check for issues, provide feedback.

For Medium/Complex PRs: spawn deep-dive agents in parallel using the Agent tool with subagent_type: "deep-dive". Each agent gets a focused area:

Each agent receives the PR diff and description and returns a structured review.

Step 4: Vision Alignment

Read the project's README.md and CLAUDE.md to understand the application's purpose. Assess whether the PR aligns with the project's intended direction. Flag significant deviations — not as a blocker, but as a consideration for the reviewer.

Step 5: Safety Assessment

Provide an overall assessment:

Include a risk level (low/medium/high) with justification.

Step 6: Report

Structure the review as:

## PR Review: #{pr_number} — {title}

### Complexity: {Simple|Medium|Complex}
{Brief justification}

### Summary
{2-3 sentence overview of what the PR does}

### Issues Found
{Grouped by severity: high → medium → low}
- **{severity}**: {file:line} — {description}

### Improvements Suggested
{Optional improvements ranked by importance and implementation complexity}

### Vision Alignment
{Does this PR align with the project's direction?}

### Verdict: {Safe to merge | Merge with caution | Needs changes}
Risk level: {low|medium|high}
{Brief justification}
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.