github-gh

GitHub

通过 gh CLI 管理 GitHub Issues、PRs 及 Workflow,支持检查 CI 状态、查看运行日志及高级 API 查询,辅助开发流程自动化。

.agents/skills/github-gh/SKILL.md thedaviddias/skill-check

触发场景

需要检查 Pull Request 的 CI 状态 需要查看或过滤 GitHub Actions 的运行日志 需要通过 CLI 操作 GitHub Issues 或 PRs

安装

npx skills add thedaviddias/skill-check --skill github-gh -g -y
更多选项

非标准路径

npx skills add https://github.com/thedaviddias/skill-check/tree/main/.agents/skills/github-gh -g -y

不安装直接使用

npx skills use thedaviddias/skill-check@github-gh

指定 Agent (Claude Code)

npx skills add thedaviddias/skill-check --skill github-gh -a claude-code -g -y

安装 repo 全部 skill

npx skills add thedaviddias/skill-check --all -g -y

预览 repo 内 skill

npx skills add thedaviddias/skill-check --list

SKILL.md

Frontmatter
{
    "name": "github-gh",
    "description": "Interact with GitHub using the `gh` CLI. Use when managing issues, PRs, workflow runs, or advanced API queries via `gh issue`, `gh pr`, `gh run`, and `gh api`."
}

GitHub Skill

Use the gh CLI to interact with GitHub. Always specify --repo owner/repo when not in a git directory, or use URLs directly.

Pull Requests

Check CI status on a PR:

gh pr checks 55 --repo owner/repo

List recent workflow runs:

gh run list --repo owner/repo --limit 10

View a run and see which steps failed:

gh run view <run-id> --repo owner/repo

View logs for failed steps only:

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

API for Advanced Queries

The gh api command is useful for accessing data not available through other subcommands.

Get PR with specific fields:

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

JSON Output

Most commands support --json for structured output. You can use --jq to filter:

gh issue list --repo owner/repo --json number,title --jq '.[] | "\(.number): \(.title)"'

版本历史

  • 923aaee 当前 2026-07-24 16:32

同 Skill 集合

.agents/skills/agent-browser/SKILL.md
.agents/skills/brainstorming/SKILL.md
.agents/skills/mcp-builder/SKILL.md
.agents/skills/tdd-methodoly-expert/SKILL.md
skills/skill-check/SKILL.md
.agents/skills/template-skill/SKILL.md

元信息

文件数
0
版本
923aaee
Hash
2624f930
收录时间
2026-07-24 16:32

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-13 15:30
浙ICP备14020137号-1