github-cli

Manage GitHub repositories, issues, pull requests, Actions, and releases via CLI.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/wjlmrzd/OpenClaw-Wren --skill github-cli-wjlmrzd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-cli
Source: https://github.com/wjlmrzd/OpenClaw-Wren/tree/main/skills/github-cli
Command: npx skills add https://github.com/wjlmrzd/OpenClaw-Wren --skill github-cli-wjlmrzd

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a comprehensive command reference and operational patterns for managing GitHub resources from the terminal, reducing manual web workflows and enabling scripted automation for repository maintenance and collaboration.

Core Features & Use Cases

  • Repository creation, cloning, forking, editing, renaming, archiving, and syncing.
  • Issue and pull request lifecycle management including create, review, checkout, merge, and checks.
  • GitHub Actions run inspection, reruns, artifact download, and workflow control.
  • Releases, gists, search, labels, secrets and variables, caches, Projects V2, Codespaces, extensions, and advanced GraphQL queries for operations that the CLI does not natively expose.
  • Use Case: Automate triage by listing failing workflow runs, downloading logs, opening the related PR, and adding labels or comments programmatically from CI or local scripts.

Quick Start

Authenticate gh and then run a gh command to list recent workflow runs and open the failing run logs in your terminal.

Frequently Asked Questions about github-cli

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

FAQPage Schema
How do I automate GitHub pull request and issue lifecycle management from the command line?

Automate GitHub pull request and issue lifecycle management using the GitHub CLI to create, review, checkout, and merge resources directly from your terminal. It enables scripted triage by listing failing workflow runs, downloading logs, and adding labels programmatically from CI or local scripts.

Can I use GraphQL queries for GitHub operations not natively exposed by the CLI?

Yes, you can execute advanced GraphQL queries to access GitHub API operations that the CLI does not natively expose. This allows you to retrieve custom data structures and perform specialized repository administration beyond standard command options.

What's the best way to inspect and rerun failing GitHub Actions workflows from a terminal?

The best way to inspect and rerun failing GitHub Actions workflows is using the GitHub CLI to list recent runs, download logs, and trigger reruns directly from your terminal. You can also download artifacts and control workflow executions programmatically for automated maintenance.

Does GitHub CLI support managing repository secrets, variables, and Projects V2?

Yes, GitHub CLI supports managing repository secrets, variables, and Projects V2. It provides authenticated CLI operations to configure these resources, enabling you to securely handle scoped tokens and automate project administration without manual web workflows.

How do I get JSON output from GitHub CLI commands for scripting and automation?

You can get JSON output from GitHub CLI commands by utilizing built-in formatting flags designed for scripting and automation. This structured output allows you to parse repository data, workflow statuses, and pull request details programmatically within CI pipelines.