github-cli
Installation
SKILL.md
GitHub CLI
Use these conventions for GitHub's gh command line tool. Prefer gh when the
task touches GitHub state and the user has not explicitly asked for raw git,
browser-only work, or direct API calls.
Source Baseline
- Authoritative manual: https://cli.github.com/manual/.
- Verify local capabilities first:
gh --versionandgh help <command>. - Use
gh help formattingfor command output,gh help environmentfor auth and automation variables, andgh api --helpfor endpoints not covered by a purpose-built command. - In scripts and CI, set
GH_PROMPT_DISABLED=1and pass explicit flags so prompts cannot hang the run.