/gh-cli:prfrom gh-cli
Manages pull requests via GitHub CLI: list, view, create, review, merge, and diff PRs. Includes helper script for viewing changed files.
Ships in gh-cli. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Manage pull requests with the gh CLI.
GitHub CLI must be installed and authenticated:
gh auth status
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
gh pr list --state open
gh pr list --author @me
gh pr list --label "needs-review"
gh pr view 123
gh pr view 123 --json title,body,state,files
gh pr create --title "Feature" --body "Description"
gh pr create --fill # Use commit messages
gh pr review 123 --approve
gh pr review 123 --approve --body "LGTM"
gh pr merge 123 --squash
gh pr merge 123 --merge
gh pr diff 123
gh pr diff 123 -- path/to/file.go # Specific file
List or view files changed in a PR:
# 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
# List changed files
gh pr view 123 --json files --jq '.files[].path'
# View diff
gh pr diff 123
# Get file content from PR branch
gh pr view 123 --json headRefName --jq '.headRefName'
gh api repos/{owner}/{repo}/contents/{path}?ref={head_ref} --jq '.content' | base64 --decode
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub robbyt/claude-skills --plugin gh-cli6 skills in this plugin
/actionsGitHub 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")./issuesGitHub 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")./repoRepository 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").Other plugins' skills for the same job