GitHub CLI Assistant
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.
Related Skills
A one-shot coding agent built on Claude Code CLI that runs non-interactively, supports a specified workdir, and can be monitored in the foreground or background.
Preview and confirm file sorting by extension, with recursive cleanup, ignore rules, and transactional rollback.
An engineering assistant for static HTML/CSS/JS pages, design-token extraction, IE8-compatible review, and structured delivery.
An engineering workflow for requirement analysis, scenario modeling, risk planning, quality gates, testing, and knowledge capture, with lightweight, standard, and full modes.