github-gh

GitHub

使用gh CLI管理GitHub仓库的PR、Issue及Workflow,支持检查CI状态、查看失败日志及通过API进行高级查询。

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

Trigger Scenarios

需要检查Pull Request的CI状态 需要查看GitHub Actions运行记录或失败日志 需要通过gh API获取仓库数据

Install

npx skills add thedaviddias/skill-check --skill github-gh -g -y
More Options

Non-standard path

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

Use without installing

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)"'

Version History

  • 923aaee Current 2026-07-24 16:32

Same Skill Collection

.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

Metadata

Files
0
Version
923aaee
Hash
2624f930
Indexed
2026-07-24 16:32

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-19 10:41
浙ICP备14020137号-1 $mapa de visitantes$