7w4.net有更好的技能外掛。
Use the gh CLI to interact with GitHub. Always specify --repo owner/repo when not in a git directory, or use URLs directly.
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
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'
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)"' 這個 Skill 質量中規中矩,提供了基本的 GitHub 操作指南,文件清晰易懂,示例可以直接使用。但內容比較基礎,只覆蓋了 PR 檢查和 CI 查詢等幾個場景,缺少對其他常用功能的說明。對於想深入使用 GitHub 的使用者來說,指導內容可能不夠全面,需要配合官方文件一起使用。整體而言,作為入門參考尚可,但還有較大的改進空間。