GitHub CLI

👤 zhengxinjipai 📦 v1.0.0 ⭐ 4.0 ⬇️ 1.4K 下载
💻 开发编程 免费

📖 技能介绍


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


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:

小葱技能7w4.net有更新,你可以访问看下。

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

🤖 AI 评测

这是一个实用的 GitHub 命令行工具入门指南,质量良好。文档简洁清晰,提供了 PR 检查和工作流查询的常见用法,安装说明也很详细。优点是上手容易、示例实用;不足是功能覆盖面不够广,缺少更多日常操作场景和故障排查指导。对需要快速查询 CI 状态或使用 API 的用户来说比较有帮助,但想深入使用可能需要查阅其他资料。

📊 多维度评分

适应性3.8
规范性4.1
有效性4.3
可靠性3.7
可信度4.3

📁 包含文件 (3 个)

📄 SKILL.md 1.6 KB
📄 _meta.json 134 B
📄 skill.json 273 B