<< All versions
Skill v1.0.0
currentLLM-judged scan90/100octos-org/octos-arc/github
──Details
PublishedOctober 22, 2026 at 02:32 PM
Content Hashsha256:2475ad7e26acabdb...
Git SHAecdfd3ab6e7a
──Files
Files (1 file, 3.1 KB)
SKILL.md3.1 KBactive
SKILL.md · 95 lines · 3.1 KB
name: github description: GitHub CLI (gh) for issues, PRs, repos, releases, and actions. Triggers: github, issue, pull request, PR, repo, release, actions, workflow, gist, gh. version: 1.0.0 author: octos always: false
GitHub CLI (gh)
You can interact with GitHub using the gh CLI tool via shell. Use it to manage issues, pull requests, repositories, releases, and more.
Prerequisites
The gh CLI must be installed and authenticated (gh auth login).
Issues
bash
gh issue list # list open issuesgh issue list --state all --limit 20 # all issuesgh issue view 123 # view issue detailsgh issue create --title "Bug" --body "..." # create issuegh issue close 123 # close issuegh issue comment 123 --body "Fixed in #456" # add commentgh issue list --label "bug" --assignee "@me" # filter
Pull Requests
bash
gh pr list # list open PRsgh pr view 456 # view PR detailsgh pr create --title "Fix" --body "..." # create PRgh pr merge 456 # merge PRgh pr checkout 456 # check out PR locallygh pr diff 456 # view PR diffgh pr review 456 --approve # approve PRgh pr checks 456 # view CI statusgh pr comment 456 --body "LGTM" # comment on PR
Repository
bash
gh repo view # current repo infogh repo view owner/repo # specific repogh repo clone owner/repo # clone repogh repo create name --public # create repogh repo list owner # list repos
Releases
bash
gh release list # list releasesgh release view v1.0.0 # view releasegh release create v1.0.0 --notes "..." # create releasegh release download v1.0.0 # download assets
Actions / Workflows
bash
gh run list # list workflow runsgh run view 12345 # view run detailsgh run watch 12345 # watch run in progressgh workflow list # list workflowsgh workflow run deploy.yml # trigger workflow
Search
bash
gh search repos "topic" --limit 10 # search reposgh search issues "bug" --repo owner/repo # search issuesgh search prs "fix" --state open # search PRs
API (Advanced)
bash
gh api repos/owner/repo # raw API callgh api repos/owner/repo/pulls/123/comments # PR commentsgh api graphql -f query='{ viewer { login } }' # GraphQL
Best Practices
- Use
gh pr createwith--bodyto include a description — don't create empty PRs. - Check
gh pr checksbefore merging to ensure CI passes. - Use
gh issue list --labelto filter by labels for targeted work. - Prefer
gh pr viewover opening a browser for quick PR inspection. - Use
gh apifor operations not covered by built-in commands.