gh

Guide GitHub CLI operations for PRs, issues, Actions, and repositories.

Updated Dec 12, 2025
One-click install
npx skills add https://github.com/danielscholl/agent-base-v2 --skill gh-danielscholl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gh
Source: https://github.com/danielscholl/agent-base-v2/tree/main/src/_bundled_skills/gh
Command: npx skills add https://github.com/danielscholl/agent-base-v2 --skill gh-danielscholl

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides expert guidance for using the GitHub CLI (gh) to perform GitHub operations from the terminal, enabling faster automation, streamlined PRs and issues management, and consistent workflows without leaving the command line.

Core Features & Use Cases

  • CLI guidance: Step-by-step commands for common GH workflows (PRs, issues, actions, repo operations).
  • Automation-ready: Guidance optimized for scripting and structured outputs (JSON, templates).
  • Cross-host guidance: Tips for using GH with GitHub.com and GitHub Enterprise Server instances.

Quick Start

Start by authenticating and listing resources:

  • gh auth login
  • gh pr list
  • gh issue create --title "Example issue" --body "Details"

Frequently Asked Questions about gh

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

FAQPage Schema
How do I automate GitHub operations from the command line?

Use the GitHub CLI (gh) to automate GitHub operations by running commands for pull requests, issues, and workflows directly from your terminal. After authenticating with `gh auth login`, execute commands like `gh pr list`, `gh issue create`, or `gh workflow run` to streamline tasks without leaving the CLI.

Can I use gh CLI to manage pull requests and issues in scripts?

Yes, gh CLI is optimized for scripting with structured JSON output and templating support. Use `--json` flags to parse responses programmatically, and combine commands in bash or other shells to automate PR reviews, issue triage, and repository operations at scale.

What authentication do I need to use gh CLI with GitHub?

Authenticate gh CLI via `gh auth login` for interactive setup or set the `GH_TOKEN` environment variable with a personal access token. gh supports both GitHub.com and GitHub Enterprise Server instances.

How do I create issues and manage workflows with gh from the terminal?

Create issues with `gh issue create --title "..." --body "..."` and manage Actions workflows using `gh workflow` commands. View, list, and trigger workflows directly, enabling consistent GitHub automation without UI navigation.

Does gh CLI work with GitHub Enterprise Server?

Yes, gh CLI supports both GitHub.com and GitHub Enterprise Server. Configure the host during authentication or use `--host` flags in commands to target specific instances.