Back to Skills

gh-cli

GitHub CLI (gh) comprehensive reference for repositories, issues, pull requests, Actions, projects, releases, gists, codespaces, organizations, extensions, and all GitHub operations from the command line.

29,358stars3,469forksUpdated 4/12/2026

Security Assessment

Critical Risk(0/100)

Detected risks:

Persistence([SKILL.md] .bashrc, [SKILL.md] .zshrc)
Secret Exposure([SKILL.md] TOKEN=)
Sensitive File Access([SKILL.md] .ssh/)
Privilege Escalation([SKILL.md] sudo)
Security Score0/100

About gh-cli

The gh-cli skill provides comprehensive command-line access to GitHub, enabling users to manage repositories, pull requests, issues, workflows, projects, and more directly from their terminal. By offering a unified interface for GitHub operations, it eliminates the need to switch between the web interface and local development environments, streamlining workflows and reducing context switching. This skill addresses common pain points for developers and teams who regularly interact with GitHub, such as repetitive web navigation and manual repository management, by centralizing operations into a consistent CLI experience.

Key features of the gh-cli skill include authentication management, repository creation and management, issue and pull request handling, workflow and Actions management, projects and releases tracking, gist and codespace operations, as well as organizational and extension controls. It supports multiple authentication methods, including token-based login, interactive login, and enterprise host login, and provides commands for configuring git integration and refreshing authentication scopes. The CLI structure is hierarchical and organized around major GitHub concepts, allowing users to quickly navigate and execute commands such as creating pull requests, listing issues, managing project fields, or reviewing workflow runs.

This skill is ideal for software developers, DevOps engineers, and project managers who need efficient GitHub operations without leaving the terminal. It is particularly useful for teams working on collaborative projects, automating workflows, or managing multiple repositories and accounts. By leveraging the gh-cli skill, users can improve productivity, maintain consistent workflows across machines and environments, and integrate GitHub operations into scripts or automated pipelines, making it an essential tool for modern development practices.

FAQ

How do I install gh-cli on my system?

Installation varies by operating system. On macOS, use 'brew install gh'. On Linux, add the GitHub CLI repository and install via apt. On Windows, install using 'winget install --id GitHub.cli'. Verify installation with 'gh --version'.

What authentication methods are supported?

gh-cli supports interactive login for GitHub.com or enterprise hosts, login with a personal access token, account switching, and logout. Commands are available to check authentication status and refresh scopes.

Can I use gh-cli to manage multiple GitHub accounts?

Yes. gh-cli allows switching between accounts and configuring authentication for different hosts, enabling management of multiple accounts seamlessly from the command line.

Does gh-cli integrate with git?

Yes. gh-cli can set up git to use GitHub CLI as a credential helper, view the active token, and refresh authentication scopes to ensure smooth integration with local git repositories.

Are there limitations in using gh-cli with enterprise GitHub instances?

The skill supports enterprise hosts via the '--hostname' option during login and other authentication commands. Ensure proper access and token permissions are configured for enterprise instances.

Install gh-cli

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill