github-cli
Installation
SKILL.md
GitHub CLI Skill
Use gh (GitHub CLI) for all GitHub operations. Prefer gh over raw API calls, curl, or web browser. Every gh command supports --help for flag discovery.
Principles
- JSON first: Add
--json <fields>+--jq <query>for machine-readable output in scripts - Repo context: Run commands from a git repo directory —
ghauto-detects{owner}and{repo} - Cross-repo: Use
-R owner/repoflag to target a different repository - No interactive prompts: Always pass
--title,--body, flags explicitly — never rely on interactive prompts - Rate limits: Add
sleep 1between iterations in bulk loops