pr

Manage pull requests via GitHub CLI operations.

42|2|Updated Nov 20, 2025
One-click install
npx skills add https://github.com/robbyt/claude-skills --skill pr-robbyt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr
Source: https://github.com/robbyt/claude-skills/tree/main/plugins/gh-cli/skills/pr
Command: npx skills add https://github.com/robbyt/claude-skills --skill pr-robbyt

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Manage pull requests using the GitHub CLI, including listing, viewing, creating, and reviewing PRs.

Core Features & Use Cases

  • PR lifecycle: List, view, create, review, and merge PRs.
  • Anchor to diffs: View diffs for specific PRs.
  • Automation-ready: Scriptable PR operations in pipelines.

Quick Start

gh pr list # sample: list open PRs

Frequently Asked Questions about pr

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

FAQPage Schema
How do I list and view open pull requests from the command line?

List open pull requests using `gh pr list` to see all PRs in your repository. View details for a specific PR with `gh pr view <number>` to inspect status, reviewers, and comments without leaving the terminal.

Can I create and manage pull requests using the GitHub CLI?

Yes, create pull requests with `gh pr create` to automate PR workflows. Manage the full lifecycle—review, merge, and close PRs—through gh pr commands, making PR operations scriptable and pipeline-ready.

How do I view diffs for a pull request via CLI?

View diffs for a specific PR using `gh pr view <number> --patch` or `gh pr diff <number>` to inspect changes directly in your terminal without opening the browser.

What do I need to get started with GitHub CLI pull request operations?

Install the GitHub CLI (gh) and authenticate with `gh auth login`. Once authenticated, you can immediately run gh pr commands to list, create, and manage pull requests in any repository you have access to.

Can I automate pull request workflows in CI/CD pipelines?

Yes, gh pr commands are fully scriptable, allowing you to integrate PR operations into automation pipelines. Chain commands to list, review, or merge PRs based on conditions in your deployment workflows.

Does GitHub CLI work with organizations and team workflows?

GitHub CLI supports PR operations across organizations and repositories you have access to. Use `gh pr list --repo <owner/repo>` to manage PRs in specific repositories within team or multi-repo workflows.