Github

mitsuhiko/agent-stuff/skills/github

作者 mitsuhiko0865c849befd2021490679f96a8dee58c84ac857無授權條款收錄於 2026年10月9日更新於 2026年10月9日

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.

僅含說明DevOps & Cloud
AI 產生的概覽

指導使用 gh 命令列工具檢視 GitHub 的提取要求、議題、CI 執行與 API 資料。

功能
此技能提供透過 gh 命令列工具與 GitHub 互動的說明。它示範如何檢查提取要求的 CI 狀態、列出並檢視工作流程執行、檢視失敗步驟的記錄,以及透過 gh api 查詢資料。它也說明結構化 JSON 輸出與使用 --jq 進行篩選。
適用情境
當你需要從命令列檢視 GitHub 的提取要求、議題、CI 執行或儲存庫資料時使用。它適合已安裝 gh 並希望取得具體命令範例而非一般 GitHub 指引的情境。
執行需求
需要安裝並完成驗證的 gh 命令列工具,以及對 GitHub 的網路存取。此技能不附帶指令碼,僅為說明文件。

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:

bash
gh pr checks 55 --repo owner/repo

List recent workflow runs:

bash
gh run list --repo owner/repo --limit 10

View a run and see which steps failed:

bash
gh run view <run-id> --repo owner/repo

View logs for failed steps only:

bash
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:

bash
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:

bash
gh issue list --repo owner/repo --json number,title --jq '.[] | "\(.number): \(.title)"'

來源與署名

來源:mitsuhiko/agent-stuff位於skills/github提交0865c84

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架