pull-request-review

Review pull requests by creating an isolated git worktree from a branch or PR URL.

4|2|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/alexanderguy/skills --skill pull-request-review-alexanderguy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pull-request-review
Source: https://github.com/alexanderguy/skills/tree/main/skills/pull-request-review
Command: npx skills add https://github.com/alexanderguy/skills --skill pull-request-review-alexanderguy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you review a pull request by branch name or URL without manually checking out code, setting up an isolated workspace, or figuring out what to compare against.

Core Features & Use Cases

  • Parses branch or PR URL: Accepts a branch name or a GitHub/GitLab PR/MR URL and extracts the correct head branch.
  • Creates an isolated git worktree: Fetches and verifies the remote branch, then checks it out into a sibling worktree under ../worktree/<branch-name> for safe investigation.
  • Runs a structured review: Prepares the repository (by following its documented setup steps), determines the base branch, then loads the code-review skill to generate the review.

Quick Start

Ask the assistant to run the pull-request-review skill with the branch name feature/add-auth or with the PR URL you want reviewed.

Frequently Asked Questions about pull-request-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review a GitHub pull request using an isolated git worktree?

To review a pull request using an isolated git worktree, provide a branch name or PR URL. The tool fetches the remote branch and checks it out into a sibling worktree directory at ../worktree/<branch-name> to ensure safe investigation without affecting your current workspace.

Can I review GitLab merge requests by URL the same way as GitHub PRs?

Yes, you can review GitLab merge requests by URL similarly to GitHub PRs. The tool parses a GitHub or GitLab PR/MR URL to extract the correct head branch, fetches it, and sets up the isolated worktree for structured code review.

What is an isolated git worktree and why use it for code review?

An isolated git worktree is a separate working directory linked to your repository. Using it for code review allows you to check out a feature branch and examine diffs safely without disrupting your current working directory or stashing uncommitted changes.

Do I need to manually determine the base branch for a pull request review?

No, you do not need to manually determine the base branch. The tool automatically determines the base branch for comparison after fetching the remote branch and preparing the repository, ensuring the diff is examined against the correct base.

How does repository setup work before running a pull request review?

Before running a pull request review, the tool prepares the repository by following its documented setup steps. Once setup is complete, it loads the code-review skill to generate the structured review against the determined base branch.