Github gh cli

From huangruiteng/CS-Notes · View interactive version

Github gh cli is an AI agent skill from the GitHub repository huangruiteng/CS-Notes. Inspect GitHub pull requests, issues, workflow runs, and API data with the gh CLI. Use when the user wants repository facts from GitHub without opening the browser, especially for PR status, CI failures, issue lists, or structured JSON output.

How to use this skill

Skill file

GitHub GH CLI

Use this skill when

Use this skill when the task is about GitHub data and gh is the fastest path:

Working rules

Authorized PR after an upstream push denial

Contributor scope and permission advice

Common commands

Pull requests

gh pr view 123 --repo owner/repo
gh pr checks 123 --repo owner/repo
gh pr list --repo owner/repo --limit 20

Actions / CI

gh run list --repo owner/repo --limit 10
gh run view <run-id> --repo owner/repo
gh run view <run-id> --repo owner/repo --log-failed

Issues

gh issue list --repo owner/repo --limit 20
gh issue list --repo owner/repo --json number,title,state --jq '.[]'

API

gh api repos/owner/repo/pulls/123
gh api repos/owner/repo/issues --jq '.[].title'
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.