github-cli

Automates GitHub pull requests, issues, and releases using the gh CLI and local git.

Updated May 6, 2026
One-click install
npx skills add https://github.com/UnionStreetAI/unionstreet --skill github-cli-unionstreetai
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: github-cli
Source: https://github.com/UnionStreetAI/unionstreet/tree/main/plugins/github/skills/github-cli
Command: npx skills add https://github.com/UnionStreetAI/unionstreet --skill github-cli-unionstreetai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Working with GitHub often requires switching between the web UI and the terminal, and relying on GitHub MCP integrations can add unnecessary complexity. This Skill standardizes GitHub workflows through the official gh CLI and local git, giving you direct, scriptable access to pull requests, issues, releases, and repository metadata. ## Core Features & Use Cases - Pull Request Operations: View PR details, diffs, and CI check status with structured JSON output via gh pr commands. - Issue and Release Management: List issues with labels and assignees, and browse recent releases without leaving the terminal. - Safe Automation Rules: Enforces a read-first policy, proposing write actions only when explicitly allowed, and uses local git diff for working-tree changes. - Use Case: Before merging a teammate's branch, run gh pr checks and gh pr diff --patch to review the changes and CI status in one pass, then confirm the repository state with gh repo view. ## Quick Start Ask the AI to check the current repository's open pull requests and their CI check status using the gh CLI.

Frequently Asked Questions about github-cli

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

FAQPage Schema
How do I check pull request status from the command line?▼

Use gh pr checks to view CI status and gh pr view --json number,title,state,author,url for structured PR details. Combine with gh pr diff --patch to review the actual code changes before approving.

How to list GitHub issues with labels using gh CLI?▼

Run gh issue list --limit 20 --json number,title,state,labels,assignees to get structured issue data. The JSON output makes it easy to filter, sort, or pipe results into other tools.

gh CLI vs GitHub MCP for repository automation?▼

This Skill explicitly prefers the gh CLI over GitHub MCP for all GitHub operations. The gh CLI provides direct, authenticated access to GitHub server state without requiring an MCP server integration.

Does gh CLI require authentication before use?▼

Yes, run gh auth status first to verify your authentication state. The gh CLI must be logged in with appropriate scopes before it can query pull requests, issues, or repository metadata.

When should I use git diff instead of gh pr diff?▼

Use local git diff for working-tree changes that have not been pushed or opened as a pull request. Use gh pr diff only for changes already published as a pull request on GitHub's servers.