github-gh

GitHub

该技能提供使用 GitHub CLI (gh) 进行版本控制交互的能力,涵盖 PR 检查、CI 工作流监控、Issue 管理及高级 API 查询。适用于需要自动化或脚本化操作 GitHub 仓库资源、获取结构化数据及排查 CI/CD 状态的场景。

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

Trigger Scenarios

检查 Pull Request 的 CI 状态 查看或筛选 Workflow 运行日志 通过 gh api 执行高级 GitHub API 查询 管理 Issue 或 PR 的状态与信息

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

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-02 23:51
浙ICP备14020137号-1 $bản đồ khách truy cập$