github

Installation
SKILL.md

GitHub 技能

使用 gh CLI 与 GitHub 交互。当不在 git 目录中时,请指定 --repo owner/repo

Pull Request

检查 PR 的 CI 状态:

gh pr checks 55 --repo owner/repo

列出最近的工作流运行:

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

API 高级查询

gh api 命令用于访问其他子命令不可用的数据:

gh api repos/owner/repo/pulls/55 --jq '.title, .state, .user.login'

JSON 输出

大多数命令支持 --json 进行结构化输出,可使用 --jq 过滤:

gh issue list --repo owner/repo --json number,title --jq '.[] | "\(.number): \(.title)"'
Related skills
Installs
1
Repository
dotnetage/mindx
GitHub Stars
28
First Seen
Apr 11, 2026
Security Audits