github

GitHub

提供 GitHub CLI (gh) 的使用指南,涵盖 PR 检查、CI 运行查看、日志分析及 API 高级查询。用于在 Agent 中自动化操作 GitHub 仓库的 Issue、PR 和 Workflow 数据。

roboclaw/skills/github/SKILL.md MINT-SJTU/RoboClaw

Trigger Scenarios

用户需要检查 Pull Request 的 CI 状态 用户需要列出或查看 GitHub Actions 的运行记录 用户需要通过 CLI 获取 GitHub Issue 或 PR 的详细信息 用户需要进行复杂的 GitHub API 查询

Install

npx skills add MINT-SJTU/RoboClaw --skill github -g -y
More Options

Non-standard path

npx skills add https://github.com/MINT-SJTU/RoboClaw/tree/main/roboclaw/skills/github -g -y

Use without installing

npx skills use MINT-SJTU/RoboClaw@github

指定 Agent (Claude Code)

npx skills add MINT-SJTU/RoboClaw --skill github -a claude-code -g -y

安装 repo 全部 skill

npx skills add MINT-SJTU/RoboClaw --all -g -y

预览 repo 内 skill

npx skills add MINT-SJTU/RoboClaw --list

SKILL.md

Frontmatter
{
    "name": "github",
    "metadata": {
        "roboclaw": {
            "emoji": "🐙",
            "install": [
                {
                    "id": "brew",
                    "bins": [
                        "gh"
                    ],
                    "kind": "brew",
                    "label": "Install GitHub CLI (brew)",
                    "formula": "gh"
                },
                {
                    "id": "apt",
                    "bins": [
                        "gh"
                    ],
                    "kind": "apt",
                    "label": "Install GitHub CLI (apt)",
                    "package": "gh"
                }
            ],
            "requires": {
                "bins": [
                    "gh"
                ]
            }
        }
    },
    "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

  • e9b28f9 Current 2026-07-25 05:39

Same Skill Collection

roboclaw/skills/clawhub/SKILL.md
roboclaw/skills/skill-creator/SKILL.md
roboclaw/skills/summarize/SKILL.md
roboclaw/skills/tmux/SKILL.md
roboclaw/skills/weather/SKILL.md
roboclaw/skills/cron/SKILL.md
roboclaw/skills/memory/SKILL.md

Metadata

Files
0
Version
ae85c96
Hash
9c7d8609
Indexed
2026-07-25 05:39

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-09 22:34
浙ICP备14020137号-1 $お客様$