gh-cli

Automate GitHub operations using the gh CLI command syntax.

Updated Dec 19, 2025
One-click install
npx skills add https://github.com/0x5341/dotfiles --skill gh-cli-0x5341
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gh-cli
Source: https://github.com/0x5341/dotfiles/tree/main/share/ai/skills/gh-cli
Command: npx skills add https://github.com/0x5341/dotfiles --skill gh-cli-0x5341

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

GitHub operations and workflows can be time-consuming when performed across multiple repos and teams. This Skill consolidates the GitHub CLI reference, enabling quick lookup and command syntax understanding to streamline development workflows.

Core Features & Use Cases

  • Comprehensive command reference: Covers authentication, repository, issue, PR, release, gist, codespaces, workflows, and project operations.
  • Workflow automation guidance: Provides examples for common tasks such as creating PRs, cloning repositories, and managing issues from the command line.
  • Use Case: A developer wants to automate repository onboarding for a new project by scripting gh commands to create repos, label issues, and assign reviewers.

Quick Start

Start by authenticating with gh, then list repositories, and explore issues or PRs with simple commands:

  • gh auth login
  • gh repo list
  • gh issue list
  • gh pr list
  • gh run list

Frequently Asked Questions about gh-cli

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

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

GitHub command-line automation uses the gh CLI to manage pull requests and issues directly from your terminal. You can authenticate with gh auth login, then use commands like gh pr list or gh issue list to streamline repository workflows without switching to the browser interface.

Can I use gh CLI to manage repositories and actions across multiple organizations?

Yes, gh CLI supports managing repositories, issues, pull requests, actions, codespaces, and organizations across local clones and remote GitHub contexts. You can execute commands like gh repo list to interact with multiple organizations from a single command-line environment.

What is the best way to script repository onboarding for a new GitHub project?

Scripting repository onboarding involves chaining gh CLI commands to create repos, label issues, and assign reviewers automatically. This command-line approach consolidates project setup tasks into a repeatable script, replacing manual clicks in the GitHub web interface.

Does gh CLI work for managing GitHub workflows and codespaces?

Yes, gh CLI provides comprehensive command coverage for GitHub workflows and codespaces. You can use commands like gh run list to monitor actions or manage codespaces directly from the command line, enabling automated workflow management.

Do I need to authenticate before using gh CLI to clone repositories?

Yes, authenticating with gh auth login is the required first step before interacting with remote repositories. Once authenticated, you can securely clone repositories, list issues, and manage pull requests through the command-line interface.

Why use command-line GitHub automation instead of the web interface?

Command-line GitHub automation via gh CLI streamlines workflows across multiple repos and teams, reducing time spent on repetitive browser interactions. It enables quick command lookup and syntax execution for repository, issue, and PR management.