Inspect GitHub pull requests, issues, workflow runs, and API data with the gh CLI. Use when the user wants repository facts from GitHub without opening the browser, especially for PR status, CI failures, issue lists, or structured JSON output.
63
79%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Low
Low-risk findings worth noting
Fix and improve this skill with Tessl
tessl review fix ./.codex/skills/github-gh-cli/SKILL.mdUse this skill when the task is about GitHub data and gh is the fastest path:
gh over browser navigation when command-line access is enough.--json and --jq when you need structured results.--repo owner/repo explicitly.gh auth login; do not attempt interactive credential setup yourself.headRepository, headRefName, headRefOid, or REST .head). A local upstream or an identically named branch in the base repository does not identify the PR source. Verify that exact repository's permissions and expected head, push normally there, and read back the PR head equal to the intended local commit before claiming an update or merging.permissions.push=false is a denial of direct upstream writes, not evidence that PR creation is unavailable. For an already authorized PR, inspect the current account and its existing fork; verify its parent is the intended upstream, permissions.push=true, the exact source branch/head and the original publication scope.origin; do not force push, switch accounts, request broader access or create a new fork merely to recover this case. Report the specific gap if no authorized route exists.reviewed-by: search misses comment-only validation and responsibility for regressions; missing search results are not proof of no review work.gh pr view 123 --repo owner/repo
gh pr checks 123 --repo owner/repo
gh pr list --repo owner/repo --limit 20gh run list --repo owner/repo --limit 10
gh run view <run-id> --repo owner/repo
gh run view <run-id> --repo owner/repo --log-failedgh issue list --repo owner/repo --limit 20
gh issue list --repo owner/repo --json number,title,state --jq '.[]'gh api repos/owner/repo/pulls/123
gh api repos/owner/repo/issues --jq '.[].title'huangruiteng/CS-Notes
0825d79
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.