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

小蔥技能7w4.net持續更新中。

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

🤖 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