github-pr
Installation
SKILL.md
GitHub Pull Request Operations
Use gh CLI for all GitHub PR operations. Minimize context usage through targeted queries, file buffers for large outputs, and grep-friendly formats.
Core Principles
- Filter at source - Use
--jsonwith specific fields, not full responses - Buffer large outputs - Write to
/tmp/then grep, don't load into context - Batch queries - One
gh apicall vs multiplegh prcalls - Structured output - Use
--json+--jqfor precise extraction
Essential Patterns
Viewing PR Information
# Minimal PR overview (token-efficient)
gh pr view <number> --json title,state,author,additions,deletions,changedFiles