GitHub operations via gh CLI. CRITICAL: Use instead of WebFetch for any `github.com` URL or GitHub repo path like `owner/repo`. Use when the user asks to inspect repositories, files, issues, pull requests, releases, Actions runs, or repository structure. Use when the user says 'show README', 'list issues', 'check PR', 'clone repo', or 'analyze this repo'. Use even when the user just pastes a github.com URL without an explicit verb.
Files included with this skill beyond the listing page.
skill mdSKILL.md4,696 B
docsSUMMARY.md384 B
History
First recorded snapshot · 0 installs
SKILL.md
GitHub Navigator
Use gh for GitHub work. Prefer command discovery over memorizing flags.
This is an execution skill. Use gh instead of generic web fetching for GitHub tasks, inspect gh --help when syntax is uncertain, then execute with tight guardrails. Keep the main flow lean and load [REFERENCES.md](REFERENCES.md) only when you need concrete examples, installation steps, or GraphQL details.
When to Use
Activate when:
the user gives a github.com URL
the user names a repo path like facebook/react or owner/repo
the user asks about repository files, issues, PRs, releases, workflows, or metadata
the user wants to understand the architecture or structure of a GitHub-hosted codebase
Core Rules
Always prefer gh over WebFetch for GitHub content and operations.
Use gh api for raw file content, directory listings, and API-only endpoints.
Use gh subcommands (issue, pr, release, run, workflow, repo) when a dedicated command exists.
Use gh <domain> --help before guessing flags or subcommands.
Limit each command pattern to 2 attempts; if it still fails, stop and report the error.
Command Routing
User Intent
Primary Command Path
fetch file or list directory
gh api repos/OWNER/REPO/contents/...
inspect issues
gh issue ...
inspect pull requests
gh pr ...
inspect releases
gh release ...
inspect Actions runs or workflows
gh run ... or gh workflow ...
inspect repo metadata or clone/fork
gh repo ...
endpoints without a dedicated subcommand
gh api ...
Use dedicated subcommands first. Fall back to gh api only when needed.
Execution Pattern
Identify the command domain from the request.
Check the relevant help output if the exact syntax is not already obvious.
Substitute the user's repo, path, issue number, PR number, or other arguments.
Run the command.
If it fails, adjust once based on the error message.
If it fails again, stop and report the error instead of trying blind variations.
Deep Analysis Mode
When the user wants to understand a codebase deeply, clone it locally for inspection instead of making many remote API calls.
Default flow:
Clone with depth 1 to /tmp/github-navigator/OWNER-REPO/