Logo di Hatch3r Cli Gh

Hatch3r Cli Gh

Organizzazione
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).

Panoramica

Autorehatch3r
Repositoryhatch3r
Nome della skillhatch3r-cli-gh
Stelle
26
Fork
7
File inclusi
Solo istruzioni
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da hatch3r su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Hatch3r Cli Gh in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/hatch3r/hatch3r/tree/main/skills/hatch3r-cli-gh
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Hatch3r Cli Gh in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Hatch3r Cli Gh non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Hatch3r Cli Gh non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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

Domande frequenti

Cosa fa la skill IA 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).

Perché usare Hatch3r Cli Gh su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Hatch3r Cli Gh è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Hatch3r Cli Gh in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/hatch3r/hatch3r/tree/main/skills/hatch3r-cli-gh. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Hatch3r Cli Gh?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Hatch3r Cli Gh?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Hatch3r Cli Gh: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Hatch3r Cli Gh è gratuita?

Sì. È pubblicata su GitHub da hatch3r con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇