gh

Guide GitHub CLI workflows for PRs, issues, releases, and automation.

Updated Oct 18, 2023
One-click install
npx skills add https://github.com/choidabom/devconfig --skill gh-choidabom
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gh
Source: https://github.com/choidabom/devconfig/tree/main/.claude/skills/gh
Command: npx skills add https://github.com/choidabom/devconfig --skill gh-choidabom

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This reference provides a structured mental model and practical guidance for using GitHub CLI (gh) to navigate PRs, issues, releases, and GitHub automation, helping users work more efficiently in the terminal.

Core Features & Use Cases

  • Learn the gh command hierarchy (pr, issue, repo, run, auth) and how to apply it to daily workflows.
  • Understand how gh integrates with git, authentication, and CI/CD, plus patterns for scripting and automation.
  • Use progressive guidance to perform common tasks (create/view PRs, manage issues, automate releases) across single or multi-repo contexts.

Quick Start

Authenticate with gh, then create, view, and merge PRs from the command line.

Frequently Asked Questions about gh

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

FAQPage Schema
How do I automate GitHub PR and issue management from the command line?

You can automate GitHub PR and issue management using the gh CLI to create, view, and merge pull requests directly from the terminal. It provides a structured command hierarchy for scripting and automating daily workflows.

What is the best way to manage multi-repo workflows with GitHub CLI?

The best way to manage multi-repo workflows with GitHub CLI is by applying its progressive guidance for single and multi-repo contexts. It supports scripting patterns and automation to handle releases and issues across repositories.

How does GitHub CLI integrate with git and CI/CD pipelines for automation?

GitHub CLI integrates with git and CI/CD by aligning with gh’s porcelain command model and API access via gh api. This allows you to script automation patterns and interact with GitHub workflows directly from your pipeline.

Can I use GitHub CLI to automate releases across multiple repositories?

Yes, you can use GitHub CLI to automate releases across multiple repositories. It offers specific command patterns and scripting guidance to handle release management and automation within both single-repo and multi-repo contexts.

Do I need to configure authentication before using gh commands for PRs and issues?

Yes, you need to configure authentication before using gh commands for PRs and issues. The quick start process requires you to authenticate with gh first, enabling secure access to manage repositories and automation tasks.

What are the limitations of using GitHub API access via gh api for scripting?

GitHub API access via gh api enables advanced scripting and automation beyond standard porcelain commands, but complex multi-repo workflows may require careful handling of rate limits and authentication tokens to maintain stability.