Help us improve
Share bugs, ideas, or general feedback.
From hatch3r
GitHub CLI for repos, issues, PRs, releases, gists, and workflow dispatches. Use when drafting GitHub pull requests, issues, releases, or watching CI runs.
npx claudepluginhub hatch3r/hatch3rHow this skill is triggered — by the user, by Claude, or both
Slash command
/hatch3r:hatch3r-cli-ghThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
<!-- HATCH3R-CLI-SKILL-GENERATED v1 -->
Guides GitHub CLI (gh) commands for creating/managing PRs, issues, CI runs, releases, auth, and JSON scripting from terminal.
Executes GitHub CLI (gh) commands for PRs, issues, CI checks, logs, and repository metadata. Used by workflows like check-ci, pr-analysis, push-pr when gh integration is needed.
Executes GitHub CLI `gh` operations for issues, PRs, Actions, releases, and REST/GraphQL APIs with `--json`/`--jq` parsing. Activates on tasks like 'create issue', 'check CI', or GitHub URLs.
Share bugs, ideas, or general feedback.
GitHub CLI — repos, issues, PRs, releases, gists
Reach for gh when the task is in the forge category and the agent would otherwise call an MCP tool or read large outputs into context.
CLI tools return structured stdout that fits in <1KB for typical queries; equivalent MCP calls regularly exceed 10KB. Reference: Anthropic engineering (Nov 4 2025) — code-execution-over-MCP yields 98.7% token reduction.
gh pr view 123 --json title,state,body,reviewDecision
Targeted JSON projection — pulls just the fields the agent needs, not the whole PR payload.
gh issue list --label bug --json number,title,author --limit 50
Label-filtered list with capped page size — avoids paginating the entire issue corpus into context.
gh api repos/:owner/:repo/contents/path/to/file.ts --jq '.sha'
Direct REST passthrough with built-in --jq filter — single round-trip, no jq install required at call site.
gh run watch
Blocks until the most recent CI run finishes — pairs with PR creation flows so the agent doesn't poll.
gh release create v1.7.5 --notes-from-tag --target release/1.7.5
Cuts a release using annotated-tag notes; deterministic input avoids hand-edited release bodies.
gh pr checks 78 --watch
Live-tail status checks for a PR — return value reflects the worst check state, scripts can branch on it.
gh against a GitLab or Azure DevOps remote. Reach for glab (hatch3r-cli-glab) or az repos/az devops (hatch3r-cli-az-devops).gh auth login flows when an audit trail of who authorized what is required; OAuth scopes granted to the CLI are user-bound. Reach for the GitHub web UI plus org-level SSO logs.gh api for high-volume bulk fetches (>10k records) — rate limits bite. Reach for the GraphQL endpoint via gh api graphql -F query=@file.gql with pagination, or a GitHub App token.| Tool | When to prefer |
|---|---|
glab (hatch3r-cli-glab) | GitLab forges — same operations, different vendor. |
az-devops (hatch3r-cli-az-devops) | Azure DevOps forges. |
git + curl against REST | Minimal environment (CI runner) where installing gh is blocked; trade convenience for raw HTTP. |
| GitHub web UI | Operations needing org-level approval flows or SAML re-auth that the CLI cannot proxy. |
Verify with:
command -v gh
Install (mac):
# brew
brew install gh
Homepage: https://cli.github.com/