using-gh-cli
Installation
SKILL.md
Using the GitHub CLI (gh)
When to Use
- Browsing or reading code from a GitHub repository — clone it and use Read/Glob/Grep
- Viewing or creating pull requests, issues, releases, or gists
- Fetching repo metadata or any GitHub API data
- Interacting with GitHub Actions (runs, workflows)
- Any task involving GitHub that you might otherwise use
curl,wget, orWebFetchfor
When NOT to Use
- Non-GitHub URLs (use
WebFetchorcurlfor those) - Public web content that happens to be hosted on GitHub Pages (
*.github.io) — those are regular websites - Local git operations (
git commit,git push) — usegitdirectly
Key Principle
Always use gh instead of curl, wget, or WebFetch for GitHub URLs. The gh CLI uses the user's authenticated token automatically, so it: