<< All versions
Skill v1.0.1
currentAutomated scan100/100robbyt/claude-skills/pr
2 files
──Details
PublishedMay 28, 2026 at 11:01 AM
Content Hashsha256:28a551b9cbde5043...
Git SHA8415549497b2
Bump Typepatch
──Files
Files (1 file, 2.0 KB)
SKILL.md2.0 KBactive
SKILL.md · 95 lines · 2.0 KB
version: "1.0.1" name: pr description: 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").
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 PRsgh pr view 123 # View PR detailsgh pr create --fill # Create PR from commitsgh pr merge 123 --squash # Merge PRgh pr diff 123 # View diff
List PRs
bash
gh pr list --state opengh pr list --author @megh pr list --label "needs-review"
View PR Details
bash
gh pr view 123gh 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 --approvegh pr review 123 --approve --body "LGTM"gh pr merge 123 --squashgh pr merge 123 --merge
View PR Diff
bash
gh pr diff 123gh 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 filespython3 scripts/view_pr_files.py 123 --listpython3 scripts/view_pr_files.py https://github.com/user/repo/pull/123 --list# View full diffpython3 scripts/view_pr_files.py 123 --diff# View specific file content from PR branchpython3 scripts/view_pr_files.py 123 --file path/to/file.go
Fallback (if script fails)
bash
# List changed filesgh pr view 123 --json files --jq '.files[].path'# View diffgh pr diff 123# Get file content from PR branchgh pr view 123 --json headRefName --jq '.headRefName'gh api repos/{owner}/{repo}/contents/{path}?ref={head_ref} --jq '.content' | base64 --decode