Skip to main content

github-gh-cli

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.

来源信息

仓库
huangruiteng/CS-Notes
最近来源活动
2026年4月27日 11:14
检测到的 SKILL.md 语言
英语
星标
3,999
分支
481

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
2 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
github-gh-cli
description
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.
# GitHub GH CLI ## Use this skill when Use this skill when the task is about GitHub data and `gh` is the fastest path: - pull request status or checks; - recent workflow runs or failed jobs; - issue or PR lists; - structured JSON output for scripting; or - GitHub API queries not covered by simpler commands. ## Working rules - Prefer `gh` over browser navigation when command-line access is enough. - Prefer `--json` and `--jq` when you need structured results. - When outside the target repository, pass `--repo owner/repo` explicitly. - If auth is missing, ask the user to handle `gh auth login`; do not attempt interactive credential setup yourself. ## Common commands ### Pull requests ```bash gh pr view 123 --repo owner/repo gh pr checks 123 --repo owner/repo gh pr list --repo owner/repo --limit 20 ``` ### Actions / CI ```bash 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 ```bash gh issue list --repo owner/repo --limit 20 gh issue list --repo owner/repo --json number,title,state --jq '.[]' ``` ### API ```bash gh api repos/owner/repo/pulls/123 gh api repos/owner/repo/issues --jq '.[].title' ```
在 GitHub 查看