Pull Request Review

VerifiedSafe

Review a pull request using Claude's native code-review skill. Supports automatic detection of current branch PR or manual entry of PR number/URL.

Sby Skills Guide Bot
DevelopmentIntermediate
207/24/2026
Claude Code
#pull-request#code-review#github#gitlab#automation

Recommended for

Our review

Reviews a pull request by auto-detecting the current branch's PR or accepting a PR number/URL, then invoking a native code-review skill or falling back to a subagent review.

Strengths

  • Zero confirmation and zero questions for efficient workflow.
  • Supports auto-detection for GitHub and GitLab.
  • Falls back to a local subagent review if the native skill is unavailable.
  • Respects a performance budget to minimize API calls.

Limitations

  • Only supports GitHub and GitLab for auto-detection; Bitbucket requires manual URL.
  • Requires the 'gh' or 'glab' CLI to be installed.
  • The native code-review skill may not be available in all environments.
When to use it

Use when you need a quick, automated code review of a pull request without manual intervention.

When not to use it

Do not use if you need to customize the review checklist extensively or if you are working with a provider not supported by auto-detection and you lack the PR URL.

Security analysis

Safe
Quality score88/100

The skill only reads PR information using standard CLI tools and invokes a code-review skill. No destructive or exfiltrating actions are instructed.

No concerns found

Examples

Auto-detect PR
/review
Review PR by number
/review 42
Review PR by URL
/review https://github.com/org/repo/pull/42

/review - Pull Request Review

Review a PR using Claude's native code-review skill. Auto-detects current branch PR or accepts PR number/URL.

Trigger

/review [pr-number-or-url]

Configuration

Reads mustard.json from the project root for git.provider.

| Provider | CLI | PR detection | |----------|-----|--------------| | github | gh | gh pr view --json number,url | | gitlab | glab | glab mr view |

Behavior

  • ZERO confirmations — detect PR, invoke review, done.
  • ZERO questions — auto-detect if no argument provided.

Step 1 — Resolve PR

If argument provided

  • Numeric → treat as PR number
  • URL → use directly

If no argument

gh pr view --json number,url,title,headRefName 2>/dev/null

If no PR found for current branch → error:

No open PR found for current branch. Run /git merge first to create one.


Step 2 — Invoke Code Review

Use the Skill tool to invoke Claude's native code-review:

Skill({
  skill: "code-review",
  args: "<pr-number-or-url>"
})

If the native code-review skill is not available, fall back to local review:

Task({
  subagent_type: "general-purpose",
  model: "opus",
  description: "Review: PR <number>",
  prompt: "Review the changes in the current branch against $PARENT. Checklist: SOLID, Security, Performance, Patterns, Integration."
})

Step 3 — Report

Present the review results as returned by the skill/agent.


Provider Support

| Provider | Auto-detect | Manual URL | |----------|-------------|------------| | GitHub | gh pr view | yes | | GitLab | glab mr view | yes | | Bitbucket | no | yes |


Rules

  • NEVER ask for confirmation before invoking the review
  • NEVER attempt both Skill and Task — try Skill first, fall back only if unavailable
  • ALWAYS use the PR number or URL directly — do NOT pass branch names to the skill
  • If provider CLI is missing, instruct the user to install it; do NOT improvise

Examples

/review              # Auto-detect PR for current branch
/review 42           # Review PR #42
/review https://github.com/org/repo/pull/42

Performance Budget

  • Max Bash calls: 1 (PR detection)
  • Max Skill/Task calls: 1
  • Max API calls total: ≤ 4
Related skills