Logotipo de Hatch3r Cli Gh

Hatch3r Cli Gh

Organización
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).

Descripción general

Editorhatch3r
Repositoriohatch3r
Nombre de la habilidadhatch3r-cli-gh
Estrellas
26
Forks
7
Archivos incluidos
Solo instrucciones
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando una petición es realmente relevante.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Todo en las instrucciones

    Todo lo que necesita el modelo está en las instrucciones: no hay archivos adicionales que sincronizar.

  • Código abierto

    Publicada por hatch3r en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Hatch3r Cli Gh en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/hatch3r/hatch3r/tree/main/skills/hatch3r-cli-gh
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → Desde URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese 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
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Hatch3r Cli Gh en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición es relevante, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Hatch3r Cli Gh automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Hatch3r Cli Gh no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición relevante, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo 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

Preguntas frecuentes

¿Qué hace la habilidad de 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).

¿Por qué usar Hatch3r Cli Gh en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Hatch3r Cli Gh está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Hatch3r Cli Gh en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/hatch3r/hatch3r/tree/main/skills/hatch3r-cli-gh. TypingMind lee su archivo SKILL.md y la instala como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Hatch3r Cli Gh?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Hatch3r Cli Gh?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Hatch3r Cli Gh con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Hatch3r Cli Gh?

Sí. hatch3r la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver todos

Crea ya tu propio espacio de trabajo IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇