AI Agent Hub
Back to skills
GitHub CLI Assistant icon

GitHub CLI Assistant

Development Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please install @user_90f470a6/code-v2 according to https://skillhub.cn/install/skillhub.md.

About this skill

Problem

CI checks, pull request status, and failed step logs are often spread across web pages, terminal output, and API responses. Manual triage can require switching between pages, copying run IDs, step names, and log fragments. The gh CLI covers many common operations, but practical use can still trip over repository context, command flags, and JSON field filtering.

How It Works

This skill organizes common GitHub workflows around the gh CLI, focused on terminal-based inspection and querying:
- Pull requests: check CI status on a PR, list recent workflow runs, and inspect failed steps in a run.
- Log triage: view logs for failed steps only, reducing noise from successful output.
- API queries: when subcommands do not expose the needed fields, use gh api to retrieve more precise data, such as selected PR fields.
- Structured output: many commands support --json, and you can filter fields with --jq for scripting or terminal analysis.

Boundaries

This is oriented toward command-line inspection of GitHub repositories rather than full GitHub service orchestration. Outside a git directory, specify --repo owner/repo or use URLs directly. Permission issues, secrets, organization policies, and deep CI debugging still depend on repository access and the CI platform's own diagnostics.

Use Cases

  • When reviewing a PR, check recent workflow runs, identify failed steps, and retrieve only failed-step logs.
  • Outside a git checkout, query a specified repository's PR and CI results using --repo owner/repo.
  • When debugging API output, fetch selected PR fields with gh api and filter results using --jq.
  • During CI triage, list recent runs for a failing pipeline and view logs for the failed steps only.

Best For

  • Code reviewers who gate merges and need to confirm PR CI status and failed steps before approving.
  • CI pipeline engineers who inspect recent workflow runs and failed-step logs.
  • Scripting developers who extract PR fields with gh api, --json, and --jq.
  • Platform engineers collaborating across repos who query PR and CI results outside a git directory.