github

Execute gh CLI commands to manage GitHub issues, PRs, runs, and API queries.

8|1|Updated Apr 13, 2026
One-click install
npx skills add https://github.com/Tugoukezhang/workbuddy-skills --skill github-tugoukezhang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github
Source: https://github.com/Tugoukezhang/workbuddy-skills/tree/main/skills/github
Command: npx skills add https://github.com/Tugoukezhang/workbuddy-skills --skill github-tugoukezhang

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Interact with GitHub more efficiently by scripting common tasks instead of manual UI clicks, reducing repetitive work and errors.

Core Features & Use Cases

  • Issue and PR management via gh commands, enabling quick status checks and updates.
  • Retrieve workflow runs, view details, and fetch logs to diagnose CI issues faster.
  • Directly query GitHub APIs with gh api for custom data without leaving the terminal.

Quick Start

Run a quick example to fetch the latest PRs in a repository using gh pr list --repo owner/repo --limit 5.

Frequently Asked Questions about github

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

FAQPage Schema
How do I automate GitHub issue and pull request management from the terminal?

Automate GitHub issue and pull request management by executing gh CLI commands like gh issue and gh pr to script quick status checks and updates. This reduces repetitive manual UI clicks and minimizes workflow errors.

What is the best way to retrieve workflow runs and fetch logs to diagnose CI issues?

Retrieve workflow runs and fetch logs to diagnose CI issues by running gh CLI commands like gh run. You can view specific run details and download log files directly without leaving the terminal environment.

Can I query GitHub APIs for custom data without leaving the terminal?

Query GitHub APIs for custom data directly without leaving the terminal by executing the gh api command. This allows you to retrieve specific repository data across multiple repositories for automated governance.

Does this GitHub automation approach work for managing data across multiple repositories?

This GitHub automation approach works for managing data across multiple repositories by specifying the target repository in gh CLI commands. Apply this in workflows that require automated repository governance and data retrieval.

Do I need the gh CLI installed to automate GitHub tasks in my workflows?

You need the gh CLI installed to automate GitHub tasks in your workflows. The automation operates in both local and remote contexts by executing commands like gh issue, gh pr, gh run, and gh api.

How do I fetch the latest pull requests in a repository using gh commands?

Fetch the latest pull requests in a repository using gh commands by running gh pr list --repo owner/repo --limit 5. This quickly retrieves recent PR data for automated workflow processing.