Hatch3r Cli Gh logo

Hatch3r Cli Gh

Organization
hatch3r
hatch3r-cli-gh

GitHub CLI — repos, issues, PRs, releases, gists. Use when drafting GitHub pull requests, issues, releases, gists, or workflow dispatches; invoke `gh`. Authenticates via the platform's native token mechanism (OAuth / PAT).

Overview

Publisherhatch3r
Repositoryhatch3r
Skill namehatch3r-cli-gh
Stars
26
Forks
7
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by hatch3r on GitHub. Read the source before you install it.

Installation

Install the Hatch3r Cli Gh AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/hatch3r/hatch3r/tree/main/skills/hatch3r-cli-gh
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hatch3r/hatch3r.git /tmp/hatch3r
mkdir -p .claude/skills
cp -r /tmp/hatch3r/skills/hatch3r-cli-gh .claude/skills/hatch3r-cli-gh
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Hatch3r Cli Gh in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Hatch3r Cli Gh on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Hatch3r Cli Gh is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

gh

GitHub CLI — repos, issues, PRs, releases, gists

§0 — Ambiguity & Safety Gate (P8 B1)

Before invoking gh, resolve these via agents/shared/user-question-protocol.md (default behavior, not exception-driven):

  • Scope: when the target repo/PR/issue number is not explicit (e.g. "close the PR" with several open), confirm which one before acting — never guess the number.
  • Irreversibility: gh pr close, gh pr merge, gh release create, gh issue close, gh repo delete, and gh api -X DELETE/POST/PATCH mutate remote state. Confirm intent before running any of these; they are not safe to assume.
  • Ambiguity: when the request maps to two or more flag combinations with materially different blast radius (e.g. --squash vs --rebase on gh pr merge), ask which one.

Fan-out Discipline (P8 B2)

Tier 1 reference card — no fan-out. This skill is a single-tool usage reference an agent consults inline; it spawns no sub-agents. Fan-out is owned by the calling workflow per its own Fan-out Discipline block. Source: rules/hatch3r-fan-out-discipline.md (P8 B2).

When to Use

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.

Token Cost

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.

Recipes

bash
gh pr view 123 --json title,state,body,reviewDecision

Targeted JSON projection — pulls just the fields the agent needs, not the whole PR payload.

bash
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.

bash
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.

bash
gh run watch

Blocks until the most recent CI run finishes — pairs with PR creation flows so the agent doesn't poll.

bash
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.

bash
gh pr checks 78 --watch

Live-tail status checks for a PR — return value reflects the worst check state, scripts can branch on it.

Wrong Choice When

  • Don't reach for gh against a GitLab or Azure DevOps remote. Reach for glab or az repos/az devops (both covered in hatch3r-cli-toolbox — Forges section).
  • Don't use 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.
  • Don't use 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.

Alternatives

ToolWhen to prefer
glab (toolbox section)GitLab forges — same operations, different vendor.
az-devops (toolbox section)Azure DevOps forges.
git + curl against RESTMinimal environment (CI runner) where installing gh is blocked; trade convenience for raw HTTP.
GitHub web UIOperations needing org-level approval flows or SAML re-auth that the CLI cannot proxy.

Detection / Install

Verify with:

bash
command -v gh

Install (macOS — default for this machine):

bash
# brew
brew install gh

Install (Linux):

bash
# apt
(type -p wget >/dev/null || (sudo apt update && sudo apt install wget -y)) && sudo mkdir -p -m 755 /etc/apt/keyrings && out=$(mktemp) && wget -nv -O$out https://cli.github.com/packages/githubcli-archive-keyring.gpg && cat $out | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null && sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg && echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null && sudo apt update && sudo apt install gh -y

Install (Windows):

bash
# winget
winget install GitHub.cli

Homepage: https://cli.github.com/

Security

Minimum recommended version: >=2.96.0. Builds below this floor carry known unpatched advisories — upgrade before relying on the tool.

GHSA-8cg3-r6g9-fpg2 (CVE-2026-59831, Moderate — CVSS 4.4): gh codespace jupyter in gh 2.10.0 through 2.95.0 opens an unvalidated vscode:// URL supplied by the connected codespace, so a malicious codespace can trigger command execution on the host. The fix adds the URL validation the sibling SSH path already had, accepting only loopback HTTP/HTTPS addresses. Fixed in 2.96.0 — upgrade before running gh codespace jupyter against untrusted codespaces.

GHSA-8xvp-7hj6-mcj9 (CVE-2026-48501, High): gh CLI 2.92.0 and earlier attach the Authorization header to TUF repository-mirror requests issued by gh attestation, gh release verify, and gh release verify-asset — sending the github.com token (or GH_ENTERPRISE_TOKEN / GITHUB_ENTERPRISE_TOKEN) to hosts that are not GitHub API endpoints (tuf-repo.github.com, tuf-repo-cdn.sigstore.dev, and an Azure blob host). Any token previously used with those commands should be treated as exposed and rotated. Fixed in 2.93.0 — upgrade before running attestation or release-verify flows.

GHSA-crc3-h8v6-qh57 (CVE-2026-45803, Low): gh run view --log and gh run view --log-failed stream GitHub Actions workflow log lines to stdout or the pager without sanitizing terminal control sequences, so a malicious workflow can embed escape sequences that execute when a maintainer views the log (altered window titles, manipulated output, command execution in emulators such as screen). This is an escape-sequence-injection issue, not a token leak. Fixed in 2.92.0 — upgrade before viewing logs from untrusted workflows.

GHSA-55v3-xh23-96gh (token-leak note, cli/go-gh library): inside a codespace, auth.TokenForHost could source GITHUB_TOKEN for a non-github.com/ghe.com host, sending the token to an unintended host. Fixed in go-gh 2.11.1, vendored into gh ≥ 2.42.0; the >=2.96.0 floor already clears it. Relevant when running gh against untrusted GitHub Enterprise hosts from a codespace.

References

Frequently asked questions

What does the Hatch3r Cli Gh AI skill do?

GitHub CLI — repos, issues, PRs, releases, gists. Use when drafting GitHub pull requests, issues, releases, gists, or workflow dispatches; invoke `gh`. Authenticates via the platform's native token mechanism (OAuth / PAT).

Why use Hatch3r Cli Gh on TypingMind?

Because you install it once and use it with any model. Hatch3r Cli Gh is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Hatch3r Cli Gh in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/hatch3r/hatch3r/tree/main/skills/hatch3r-cli-gh. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Hatch3r Cli Gh?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Hatch3r Cli Gh?

As many as you like. As long as a model supports skills, you can use Hatch3r Cli Gh with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Hatch3r Cli Gh AI skill free?

Yes. It is published on GitHub by hatch3r under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇