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:
List recent workflow runs:
View a run and see which steps failed:
View logs for failed steps only:
Debugging a CI Failure
Follow this sequence to investigate a failing CI run:
- Check PR status — identify which checks are failing:
- List recent runs — find the relevant run ID:
- View the failed run — see which jobs and steps failed:
- Fetch failure logs — get the detailed output for failed steps:
API for Advanced Queries
The gh api command is useful for accessing data not available through other subcommands.
Get PR with specific fields:
JSON Output
Most commands support --json for structured output. You can use --jq to filter:


