gh-cli

Automate GitHub workflows and repository tasks using the gh CLI.

138|6|Updated Jan 25, 2025
One-click install
npx skills add https://github.com/yamcodes/arkenv --skill gh-cli-yamcodes
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gh-cli
Source: https://github.com/yamcodes/arkenv/tree/main/skills/gh-cli
Command: npx skills add https://github.com/yamcodes/arkenv --skill gh-cli-yamcodes

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill helps developers automate common GitHub tasks from the command line using the gh CLI, reducing manual work and potential errors.

Core Features & Use Cases

  • List and view runs: gh run list, gh run view
  • Manage pull requests: gh pr list, gh pr view, gh pr create, gh pr merge
  • Handle issues: gh issue list, gh issue view, gh issue create
  • Repository configuration: gh secret list, gh secret set, gh variable list
  • Best practices: Use --repo to scope to a repo, --json for scriptable output, and gh <command> --help for more flags. See references/commands.md for a comprehensive list of commands and examples.

Quick Start

Install the gh CLI, authenticate with gh auth login, and start automating GitHub tasks from the command line.

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 workflows and repository tasks from the command line?

You can automate GitHub workflows by using the gh CLI to manage runs, pull requests, issues, and repository configuration via terminal commands. This reduces manual work and potential errors across multiple repositories.

What is the best way to manage multiple GitHub repositories via the command line?

Managing multiple GitHub repositories is done by applying the --repo flag to scope your gh commands. This allows you to list and view runs or handle issues across different repositories from a single terminal.

Do I need the gh CLI installed and authenticated to manage pull requests from the terminal?

Yes, you need the gh CLI installed and authenticated using gh auth login before you can manage pull requests. Once authenticated, you can use commands like gh pr list, view, create, and merge.

Can I get scriptable output for GitHub issues and pull requests using gh commands?

Yes, you can get scriptable output for GitHub issues and pull requests by applying the --json flag. This formats the output for automation and scripting purposes across your repository tasks.

How do I configure repository secrets and variables using the GitHub CLI?

You configure repository secrets and variables by running gh secret list, gh secret set, and gh variable list. These commands allow you to manage repository configuration directly from the command line.

How does the GitHub CLI handle GitHub Actions workflow runs?

The GitHub CLI handles workflow runs using the gh run list and gh run view commands. This allows developers to monitor and inspect Actions runs directly from the terminal without using the web interface.