gh-cli

Execute GitHub operations via gh CLI with JSON filtering.

6|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/memoirlabs/mog --skill gh-cli-memoirlabs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gh-cli
Source: https://github.com/memoirlabs/mog/tree/main/apps/mog/src/brain/skills/gh-cli
Command: npx skills add https://github.com/memoirlabs/mog --skill gh-cli-memoirlabs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you perform GitHub management tasks without switching to the web UI by providing a comprehensive command-line reference for common operations.

Core Features & Use Cases

  • Repository, issues, and PR operations: Create, list, view, edit, and manage issues and pull requests (including comments, reviews, locks, and state changes).
  • Automation and CI/CD workflows: Inspect and manage Actions runs, workflows, caches, secrets, and variables from the terminal.
  • Organization and release management: Handle organizations, gists, projects, releases, and other GitHub resources from a single CLI toolset.

Use Case Example: You want to triage new issues, review open PRs, and check failing CI runs for a specific repository—all from your terminal—using consistent commands and JSON outputs for faster filtering.

Quick Start

Ask your AI: "Show me how to list open issues labeled 'bug' and return the results as JSON for owner/repo using gh."

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 issues and pull requests from the command line?

You can manage GitHub issues and pull requests from the command line by using specific gh subcommands to create, list, view, and edit them. This includes managing comments, reviews, and state changes without opening a browser.

Can I check failing GitHub Actions runs and manage CI/CD workflows from the terminal?

Yes, you can inspect and manage GitHub Actions runs, workflows, caches, secrets, and variables directly from the terminal. This allows you to check failing CI/CD runs and manage automation workflows without using the web UI.

What is the best way to triage GitHub issues using the CLI and get JSON output?

The best way to triage GitHub issues using the CLI is by executing list commands with specific label filters and requesting JSON output. This enables faster filtering and processing of triage data in automated scripts.

Does the GitHub CLI support non-interactive authentication for automation scripts?

Yes, the GitHub CLI supports non-interactive authentication patterns for automation. It requires correct auth scope selection and environment configuration to safely execute automated workflows without user intervention.

How do I manage GitHub organizations, releases, and gists from a single command line toolset?

You can manage GitHub organizations, releases, and gists from a single command line toolset by utilizing the respective gh subcommands. This allows you to handle organization settings, manage release assets, and create or edit gists directly from the terminal.

When should I avoid using the GitHub CLI for repository management?

You should avoid using the GitHub CLI for repository management when you require complex visual diffs, interactive project board management, or lack the correct subcommand scope selection for safe non-interactive automation patterns.