github

GitHub

提供 GitHub CLI (gh) 使用指南,涵盖 PR 状态检查、CI 工作流运行查看、日志分析及高级 API 查询等场景,辅助开发者高效管理 GitHub 资源。

bundled-workspaces/mino/.claude/skills/github/SKILL.md hAcKlyc/MyAgents

Trigger Scenarios

检查 Pull Request 的 CI 状态 查看或筛选失败的 Workflow 运行日志 通过 gh api 进行高级数据查询

Install

npx skills add hAcKlyc/MyAgents --skill github -g -y
More Options

Non-standard path

npx skills add https://github.com/hAcKlyc/MyAgents/tree/main/bundled-workspaces/mino/.claude/skills/github -g -y

Use without installing

npx skills use hAcKlyc/MyAgents@github

指定 Agent (Claude Code)

npx skills add hAcKlyc/MyAgents --skill github -a claude-code -g -y

安装 repo 全部 skill

npx skills add hAcKlyc/MyAgents --all -g -y

预览 repo 内 skill

npx skills add hAcKlyc/MyAgents --list

SKILL.md

Frontmatter
{
    "name": "github",
    "description": "Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries."
}

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

  • fbbd574 Current 2026-11-24 23:45

Same Skill Collection

bundled-agents/myagents_helper/.claude/skills/support/SKILL.md
bundled-agents/myagents_helper/.claude/skills/tool-install/SKILL.md
bundled-guides/external-myagents-cli/SKILL.md
bundled-skills/myagents-anydoc/SKILL.md
bundled-skills/myagents-docs/SKILL.md
bundled-skills/myagents-memory-gardener/SKILL.md
bundled-skills/myagents-memory-molt/SKILL.md
bundled-skills/myagents-memory-update/SKILL.md
bundled-skills/myagents-speech-recognition/SKILL.md
bundled-skills/myagents-task-alignment/SKILL.md
bundled-skills/myagents-task-automation/SKILL.md
bundled-skills/officecli/SKILL.md
bundled-skills/skill-creator/SKILL.md
bundled-skills/tool-creator/SKILL.md
bundled-workspaces/mino/.claude/skills/apple-notes/SKILL.md
bundled-workspaces/mino/.claude/skills/apple-reminders/SKILL.md
bundled-workspaces/mino/.claude/skills/bird/SKILL.md
bundled-workspaces/mino/.claude/skills/peekaboo/SKILL.md
bundled-workspaces/mino/.claude/skills/remotion-best-practices/SKILL.md
bundled-skills/download-anything/SKILL.md
bundled-skills/hatch-pet/SKILL.md
bundled-skills/prompt-writer/SKILL.md
bundled-skills/myagents-cli/SKILL.md

Metadata

Files
0
Version
a4b589c
Hash
1b891a48
Indexed
2026-11-24 23:45

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-25 06:29
浙ICP备14020137号-1