gh-cli

Manage GitHub repositories, issues, pull requests, and workflows via CLI.

Updated Feb 21, 2024
One-click install
npx skills add https://github.com/zhongjis/nix-config --skill gh-cli-zhongjis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gh-cli
Source: https://github.com/zhongjis/nix-config/tree/main/modules/home-manager/features/ai-tools/common/skills/general/gh
Command: npx skills add https://github.com/zhongjis/nix-config --skill gh-cli-zhongjis

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines your interaction with GitHub, allowing you to manage repositories, issues, pull requests, and workflows directly from your command line, eliminating the need to switch to a web browser for many common tasks.

Core Features & Use Cases

  • Repository Management: Clone, create, and manage repositories.
  • Issue & PR Workflow: Create, list, view, edit, merge, and close issues and pull requests.
  • CI/CD Automation: Run, watch, and download artifacts from GitHub Actions workflows.
  • Use Case: Quickly create a pull request for a new feature branch, add reviewers, and link it to an issue, all without leaving your terminal.

Quick Start

Use the gh-cli skill to create a new pull request with the title "Add feature X" and body "This PR implements feature X as discussed in #123".

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 command line?

You can manage GitHub pull requests and issues directly from the command line by using the gh-cli to create, list, view, edit, merge, and close them without switching to a web browser.

What is the best way to automate GitHub Actions workflows in a CI/CD pipeline?

Automating GitHub Actions workflows in a CI/CD pipeline is handled by the gh-cli, which supports running, watching, and downloading artifacts from workflows directly through the GitHub API.

Can I create a pull request and add reviewers without leaving the terminal?

Yes, you can create a pull request and add reviewers from the terminal by utilizing the gh-cli skill to execute commands that link branches to issues and manage reviewer assignments.

Does the gh-cli skill require any external dependencies to manage GitHub repositories?

The gh-cli skill requires no external dependencies to manage GitHub repositories, allowing you to clone, create, and manage repository assets natively through its integrated command-line interface.

How do I manage GitHub secrets for repository automation via the CLI?

Managing GitHub secrets for repository automation via the CLI is supported by the gh-cli skill, which integrates with the GitHub API to securely handle secrets required for advanced workflow automation.