gh

Automate GitHub repository, issue, pull request, release, and gist workflows via the gh CLI.

26|4|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/hatch3r/hatch3r --skill gh-hatch3r
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gh
Source: https://github.com/hatch3r/hatch3r/tree/main/skills/hatch3r-cli-gh
Command: npx skills add https://github.com/hatch3r/hatch3r --skill gh-hatch3r

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the problem of slow, manual GitHub operations by letting an agent interact with repos, issues, PRs, releases, and gists via a reliable command-line interface.

Core Features & Use Cases

  • Forge-category GitHub workflows: draft or manage PRs, triage issues, create releases, and operate gists from within an agentic coding flow.
  • Deterministic, structured outputs: use targeted JSON fields and filters to keep results compact and context-efficient for the agent.
  • Authentication via native token mechanisms: leverages OAuth/PAT flows handled by the GitHub CLI so the agent can act on your behalf safely.

Quick Start

Ask the agent to use gh to view a specific pull request in JSON by running gh pr view 123 --json title,state,body,reviewDecision.

Frequently Asked Questions about gh

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate GitHub pull requests and issues for an agentic coding workflow?

Automating GitHub pull requests and issues requires the gh CLI to interact with repositories, draft PRs, triage issues, and create releases. This Skill leverages native token authentication so an agent can safely manage platform state on your behalf.

Can I get structured JSON output for GitHub CLI commands to save context space?

Structured JSON output for GitHub CLI commands is supported using targeted fields and filters. Running commands like gh pr view with specific JSON projections keeps results compact and context-efficient for agents consuming the data.

How do I authenticate an AI agent to manage GitHub releases and gists?

Authenticating an AI agent to manage GitHub releases and gists relies on native OAuth or PAT flows handled directly by the GitHub CLI. This ensures the agent can safely execute actions on your behalf without insecure manual token handling.

What is the best way to triage GitHub issues from a command-line interface?

The best way to triage GitHub issues from a command-line interface is using the gh CLI within an agentic flow. It enables deterministic, structured outputs via filters, allowing agents to gather and update platform state efficiently.

Does this GitHub CLI automation approach require any external dependencies?

This GitHub CLI automation approach requires no external dependencies. It operates entirely using the standard gh CLI with native authentication mechanisms, requiring no additional libraries or component installations to manage repository workflows.