Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Use this skill for any GitHub-related task. Always read it before using gh. It contains the default commands and operating rules for working with GitHub through the local gh CLI.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-03 | ✗→✓ | ▲ Improved | 117% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 17% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 80% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 62% | 0% |
| case-15 | ✗→✓ | ▲ Improved | -14% | 0% |
Use this skill for GitHub-related tasks when working through the local gh CLI.
Examples:
gh.GH_PAGER=cat by default.NO_COLOR=1 CLICOLOR=0 when output will be parsed or piped.--json and --jq when available.GH_PAGER=cat gh --help or the relevant subcommand help first.gh auth status --show-token.gh action per shell call.$(...), while read, long && chains, and large inline scripts for routine inspection.Use this when the task says "my repos", "my PRs", or similar.
bashGH_PAGER=cat gh api user -q '.login'
Start with the repository README. This is the default way to get basic project understanding.
Use this exact command:
bashGH_PAGER=cat gh api repos/<owner>/<repo>/readme --jq '.content' | base64 --decode
Rules:
gh repo view --json readme.For recent GitHub activity, use structured output first.
bashGH_PAGER=cat NO_COLOR=1 CLICOLOR=0 gh repo list <owner> --limit 100 --json name,nameWithOwner,isFork,updatedAt --jq 'map(select(.isFork == false)) | sort_by(.updatedAt) | reverse | .[:3]'
Important:
updatedAt, which means recent GitHub-side updates.pushed_at via gh api instead.Recent code work example:
bashGH_PAGER=cat NO_COLOR=1 CLICOLOR=0 gh api 'users/<owner>/repos?per_page=100&sort=pushed' -q 'map(select(.fork == false)) | .[:3] | map({name: .name, full_name: .full_name, pushed_at: .pushed_at})'
Use gh repo view for high-level metadata, not for README content.
bashGH_PAGER=cat gh repo view <owner>/<repo> --json name,description,url,updatedAt,pushedAt
bashGH_PAGER=cat gh pr list --json number,title,state,author GH_PAGER=cat gh issue list --json number,title,state,assignees
If the built-in command does not expose the fields you need, use gh api.
bashGH_PAGER=cat gh --help GH_PAGER=cat gh repo --help GH_PAGER=cat gh repo list --help GH_PAGER=cat gh api --help
gh api.Other measured skills in the registry, with their headline benchmark lift.