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 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/
git clone --depth 1 https://github.com/OWNER/REPO.git /tmp/github-navigator/OWNER-REPO
Inspect the repository for:
- tech stack signals (
package.json, go.mod, Cargo.toml, pom.xml, requirements.txt, etc.)
- high-level directory structure
- entry points and primary modules
- README, docs, examples, and contribution files
- architectural patterns worth calling out
Summarize the findings in plain language.
Keep the clone for follow-up questions unless cleanup is requested.
Use a full clone only if the user explicitly needs commit history or deeper git analysis.
Safety
Always confirm before executing state-changing or destructive commands, including:
- creating, closing, or reopening issues
- creating, merging, or closing pull requests
- deleting, archiving, or transferring repositories
- setting secrets or triggering workflows
- any use of
--force, --yes, or similar bypass flags
Authentication and Recovery
- Check
gh auth status when the task touches private repos or write operations.
- Use
gh auth login if the client is not authenticated.
- If permissions are insufficient, use
gh auth refresh -s repo -s workflow -s read:org as appropriate.
- If a command fails, read the error, check help, retry once, then stop.
- If
gh is not installed, point the user to REFERENCES.md for installation guidance.
Reference Handoff
Use REFERENCES.md when you need:
- concrete example commands for common tasks
- install and auth setup details
- troubleshooting reminders
- GraphQL examples or other lower-frequency patterns
License: MIT
See also: REFERENCES.md
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: arvindand-agent-skills-github-navigator3description: GitHub Navigator4---56# GitHub Navigator78Use `gh` for GitHub work. Prefer command discovery over memorizing flags.910This 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.1112## When to Use1314Activate when:1516- the user gives a `github.com` URL17- the user names a repo path like `facebook/react` or `owner/repo`18- the user asks about repository files, issues, PRs, releases, workflows, or metadata19- the user wants to understand the architecture or structure of a GitHub-hosted codebase2021## Core Rules2223- Always prefer `gh` over `WebFetch` for GitHub content and operations.24- Use `gh api` for raw file content, directory listings, and API-only endpoints.25- Use `gh` subcommands (`issue`, `pr`, `release`, `run`, `workflow`, `repo`) when a dedicated command exists.26- Use `gh <domain> --help` before guessing flags or subcommands.27- Limit each command pattern to 2 attempts; if it still fails, stop and report the error.2829## Command Routing3031| User Intent | Primary Command Path |32|-------------|----------------------|33| fetch file or list directory | `gh api repos/OWNER/REPO/contents/...` |34| inspect issues | `gh issue ...` |35| inspect pull requests | `gh pr ...` |36| inspect releases | `gh release ...` |37| inspect Actions runs or workflows | `gh run ...` or `gh workflow ...` |38| inspect repo metadata or clone/fork | `gh repo ...` |39| endpoints without a dedicated subcommand | `gh api ...` |4041Use dedicated subcommands first. Fall back to `gh api` only when needed.4243## Execution Pattern44451. Identify the command domain from the request.462. Check the relevant help output if the exact syntax is not already obvious.473. Substitute the user's repo, path, issue number, PR number, or other arguments.484. Run the command.495. If it fails, adjust once based on the error message.506. If it fails again, stop and report the error instead of trying blind variations.5152## Deep Analysis Mode5354When the user wants to understand a codebase deeply, clone it locally for inspection instead of making many remote API calls.5556Default flow:57581. Clone with depth 1 to `/tmp/github-navigator/OWNER-REPO/`5960 ```bash61 git clone --depth 1 https://github.com/OWNER/REPO.git /tmp/github-navigator/OWNER-REPO62 ```63642. Inspect the repository for:65 - tech stack signals (`package.json`, `go.mod`, `Cargo.toml`, `pom.xml`, `requirements.txt`, etc.)66 - high-level directory structure67 - entry points and primary modules68 - README, docs, examples, and contribution files69 - architectural patterns worth calling out70713. Summarize the findings in plain language.724. Keep the clone for follow-up questions unless cleanup is requested.7374Use a full clone only if the user explicitly needs commit history or deeper git analysis.7576## Safety7778Always confirm before executing state-changing or destructive commands, including:7980- creating, closing, or reopening issues81- creating, merging, or closing pull requests82- deleting, archiving, or transferring repositories83- setting secrets or triggering workflows84- any use of `--force`, `--yes`, or similar bypass flags8586## Authentication and Recovery8788- Check `gh auth status` when the task touches private repos or write operations.89- Use `gh auth login` if the client is not authenticated.90- If permissions are insufficient, use `gh auth refresh -s repo -s workflow -s read:org` as appropriate.91- If a command fails, read the error, check help, retry once, then stop.92- If `gh` is not installed, point the user to [REFERENCES.md](REFERENCES.md) for installation guidance.9394## Reference Handoff9596Use [REFERENCES.md](REFERENCES.md) when you need:9798- concrete example commands for common tasks99- install and auth setup details100- troubleshooting reminders101- GraphQL examples or other lower-frequency patterns102103---104105> **License:** MIT106> **See also:** [REFERENCES.md](REFERENCES.md)107108---109> Converted and distributed by [TomeVault](https://tomevault.io/claim/arvindand) — claim your Tome and manage your conversions.110<!-- tomevault:4.0:skill_md:2026-04-11 -->