PR

Pull request operations using GitHub CLI. Trigger when user wants to list PRs ("show open PRs"), view PR details ("view PR 123"), create PRs ("create a pull request"), review/merge PRs ("merge PR", "approve PR"), or view PR diffs ("show PR diff", "what files changed in PR").

42 stars 2 forksGit & Code Review Plugin marketplace

Install

Claude Code plugin
/plugin marketplace add robbyt/claude-skills

The repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add robbyt/claude-skills --skill pr
Manual install
git clone --depth 1 https://github.com/robbyt/claude-skills.git /tmp/claude-skills
mkdir -p ~/.claude/skills
cp -r /tmp/claude-skills/plugins/gh-cli/skills/pr ~/.claude/skills/pr

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Pull Request Operations

Manage pull requests with the `gh` CLI.

## Prerequisites

GitHub CLI must be installed and authenticated:
```bash
gh auth status
```

## Quick Reference

```bash
gh pr list                          # List open PRs
gh pr view 123                      # View PR details
gh pr create --fill                 # Create PR from commits
gh pr merge 123 --squash            # Merge PR
gh pr diff 123                      # View diff
```

## List PRs

```bash
gh pr list --state open
gh pr list --author @me
gh pr list --label "needs-review"
```

## View PR Details

```bash
gh pr view 123
gh pr view 123 --json title,body,state,files
```

## Create PR

```bash
gh pr create --title "Feature" --body "Description"
gh pr create --fill  # Use commit messages
```

## Review and Merge

```bash
gh pr review 123 --approve
gh pr review 123 --approve --body "LGTM"
gh pr merge 123 --squash
gh pr merge 123 --merge
```

## View PR Diff

```bash
gh pr diff 123
gh pr diff 123 -- path/to/file.go   # Specific file
```

## Helper Script: View PR Files

List or view files changed in a PR:

```bash
# List changed files
python3 scripts/view_pr_files.py 123 --list
python3 scripts/view_pr_files.py https://github.com/user/repo/pull/123 --list

# View full diff
python3 scripts/view_pr_files.py 123 --diff

# View specific file content from PR branch
python3 scripts/view_pr_files.py 123 --file path/to/file.go
```

### Fallback (if script fails)
Read the full skill on GitHub

Details

Skill name
pr
Path
plugins/gh-cli/skills/pr/SKILL.md
Repo updated
18 November 2026

FAQ

What does the PR skill do?

Pull request operations using GitHub CLI. Trigger when user wants to list PRs ("show open PRs"), view PR details ("view PR 123"), create PRs ("create a pull request"), review/merge PRs ("merge PR", "approve PR"), or view PR diffs ("show PR diff", "what files changed in PR").

How do I install the PR skill?

Claude Code plugin: /plugin marketplace add robbyt/claude-skills. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is PR popular?

It lives in robbyt/claude-skills, which has 42 GitHub stars and 2 forks.

Related skills

Actions

42

robbyt/claude-skills

GitHub Actions workflow management using GitHub CLI. Trigger when user wants to check CI status ("check CI", "is the build passing"), view workflow runs ("show recent runs", "view action logs"), watch running workflows ("watch CI"), or rerun failed workflows ("rerun the build").

Productivity & Notes

Adversarial Review

42

robbyt/claude-skills

Have Codex try to break a change before it ships — a skeptical review that challenges the design, assumptions, and failure modes of a diff or branch and returns structured findings (verdict, severity, file:line, confidence). Trigger on "adversarial review", "challenge this change/design with Codex", "pressure-test this before I ship", "have Codex try to break this", "is this safe to merge", or a review focused on a risk area (auth, data loss, rollback, race conditions, retries). Do NOT use for a routine bug/style pass over a diff (that's diff-review), for critiquing a plan before code exists (

Software Development

API Review

42

robbyt/claude-skills

This skill should be used when reviewing API designs, auditing REST or gRPC endpoints, designing backend APIs, evaluating BFF architecture, or discussing API best practices. Also triggers on: "review this API", "API design review", "is this API correct", "REST API audit", "gRPC API review", "PATCH vs PUT", "etag", "idempotency", "pagination design", "API error handling", "backward compatibility", "BFF architecture", "resource-oriented design", "TOCTOU", "race condition", "optimistic concurrency", "field mask", "long-running operation", "custom method", "soft delete", "API naming conventions",

Software Development

Repo

42

robbyt/claude-skills

Repository information using GitHub CLI. Trigger when user wants to view repository details ("show repo info", "what's this repo about"), list repositories ("list my repos", "show repos for user"), or check repository metadata ("stars", "languages", "topics").

Git & Code Review

Issues

42

robbyt/claude-skills

GitHub issue management using GitHub CLI. Trigger when user wants to list issues ("show open issues"), view issue details ("view issue 456"), create issues ("create an issue", "file a bug"), or edit/close issues ("close issue", "add label to issue").

Git & Code Review

Stacks

42

robbyt/claude-skills

Stacked pull requests with the GitHub CLI `gh stack` extension. Trigger whenever the user wants to split a large branch or change into a chain of dependent PRs ("stack this into smaller PRs", "split this into a stack", "create a stacked PR", "break this feature into reviewable layers"), or manage an existing stack ("add a layer on top", "rebase my stack", "sync the stack after the bottom PR merged", "merge the stack"). Use this instead of the `pr` skill whenever the work involves more than one dependent PR or any `gh stack` command; use `pr` for single, standalone pull requests.

Git & Code Review

Browse the most popular Claude skills, all git & code review skills, or write your own with the skills generator.