gh-cli

Automate GitHub pull request and issue workflows via the gh CLI.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides concise, actionable guidance for performing GitHub repository and collaboration tasks from the command line, removing guesswork and reducing context switching between terminal and web UI.

Core Features & Use Cases

  • Authentication & Account Management: Check and switch auth contexts, refresh tokens, and handle multiple accounts for local development and CI.
  • Pull Request & Issue Workflows: Create, list, review, merge, and close pull requests and issues with recommended flags and JSON output patterns for scripting.
  • CI / Actions & Repo Management: Inspect workflow runs, view logs, rerun failed jobs, manage secrets/variables, and perform repo operations like fork, clone, and release management.
  • Use Case: A developer troubleshooting a CI failure can quickly authenticate, list failing runs, view logs, and re-run specific jobs without leaving the terminal.

Quick Start

Use the gh-cli skill to create a new pull request from the current branch with a clear title and body and open it in the browser for final review.

Frequently Asked Questions about gh-cli

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

FAQPage Schema
How do I manage GitHub pull requests and issues from the terminal?

You can manage GitHub pull requests and issues from the terminal by using the gh CLI to create, list, review, merge, and close them. This skill provides structured JSON output patterns for scripting and automation.

Can I inspect and rerun failed GitHub Actions jobs without leaving the command line?

Yes, you can inspect workflow runs, view logs, and rerun failed GitHub Actions jobs directly from the command line. The gh CLI allows you to troubleshoot CI failures and manage secrets without switching to the web UI.

Do I need to install and authenticate the gh CLI separately before automating GitHub workflows?

Yes, automating GitHub workflows requires an installed and authenticated gh CLI. This skill provides guidance for authentication, handling multiple accounts, refreshing tokens, and workflow recovery for local development and CI.

What is the best way to script GitHub repository operations like cloning and release management?

The best way to script GitHub repository operations is using the gh CLI with structured JSON output support. This allows you to automate repo scoping, forking, cloning, and release management efficiently within your CI/CD pipelines.

How do I handle multiple GitHub accounts for local development and CI?

You can handle multiple GitHub accounts by checking and switching auth contexts using the gh CLI. This skill guides you through account management, token refreshes, and authentication recovery for both local development and CI environments.