gh

Automates GitHub repository tasks via gh CLI, including PRs, CI monitoring, fork sync, and bulk merges.

1|Updated Apr 14, 2026
One-click install
npx skills add https://github.com/hschne/pi-stuff --skill gh-hschne
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gh
Source: https://github.com/hschne/pi-stuff/tree/main/skills/gh
Command: npx skills add https://github.com/hschne/pi-stuff --skill gh-hschne

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manually navigating GitHub's web interface for common development tasks like managing pull requests, checking CI status, and syncing forked repositories is slow and inefficient, especially for users who interact with GitHub repositories regularly.

Core Features & Use Cases

  • Pull Request & CI Management: Check PR status, view failed CI run logs, and automate merge workflows once all checks pass.
  • Fork & Upstream Operations: Handle fork-aware PR creation against upstream repositories and sync changes between forked repos and their parent sources.
  • Bulk Maintenance: Merge multiple Dependabot pull requests in bulk to reduce routine maintenance overhead. For example, a developer working on a forked open source project can use this skill to automatically create a PR against the upstream repo, wait for CI to pass, and squash merge it without switching between the web UI and terminal.

Quick Start

Use the gh skill to check the CI status of pull request #42 in the octocat/Hello-World repository and squash merge it once all checks pass.

Frequently Asked Questions about gh

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

FAQPage Schema
How do I automate merging Dependabot pull requests in bulk from the terminal?

Merge Dependabot pull requests in bulk by executing scriptable gh CLI commands directly from the terminal, bypassing manual GitHub web UI navigation to reduce routine maintenance overhead.

Can I create a pull request against an upstream repository from my fork using the gh CLI?

Yes, you can handle fork-aware PR creation against upstream repositories by executing gh CLI commands, allowing you to submit changes to the parent source without switching to the web interface.

How do I check CI run status and view failed logs for a pull request without opening GitHub?

Check CI run status and view failed logs by running gh CLI commands in your terminal to monitor repository checks and pull request status, replacing slow manual web UI workflows.

Do I need the official gh CLI installed and authenticated to manage GitHub repositories?

Yes, this requires the official gh CLI to be installed and authenticated with a GitHub account to execute repository operations, track issues, and automate pull request merges directly.

What is the best way to sync a forked repository with its upstream parent?

Sync forked repositories with their parent sources by running gh CLI commands from the terminal, automating upstream sync operations without manually navigating the GitHub web interface.