GitHub CLI Query Assistant
Paste the following prompt into your AI chat to install this skill:
Install @user_dd5c5538/gith-lyx by following https://skillhub.cn/install/skillhub.md.
About this skill
What Problem It Solves
When GitHub PR, CI, and workflow status are scattered across pages, checking them in a browser is slow. The gh CLI can query PRs, runs, steps, and logs directly, but common flags such as --repo owner/repo, --json, and --jq are easy to forget. This skill organizes those query paths into a reusable workflow for day-to-day GitHub triage in the terminal.
How It Works
The skill is centered on the gh CLI: identify the target repository first, using --repo owner/repo outside a git directory or using a repository URL directly. Then check CI status on a PR, list recent workflow runs, inspect failed steps in a specific run, and retrieve only the failed-step logs. For data not covered by normal subcommands, it points to gh api for advanced queries, then uses --json for structured output and --jq to filter fields.
Boundaries
It assumes gh CLI is available and the user has GitHub access. It does not cover full repository creation, merging, or administration, and it does not replace local git operations. Query depth depends on account permissions, API rate limits, and log availability; enterprise or SSO environments may require separate authentication setup.
Use Cases
- Before taking over a PR, check CI status and recent workflow runs to see if it is green.
- After a PR fails, find the failing workflow run and step, then pull failed-step logs.
- Outside a git directory, query a specific repository by passing --repo owner/repo.
- When subcommands miss a GitHub field, use gh api with --json and --jq filtering.
Best For
- Engineers tracking PR CI: quickly see whether pre-merge checks passed.
- Platform engineers debugging workflows: locate failed steps and extract logs.
- Automation authors querying GitHub: get structured fields via gh api and JSON.
- Release maintainers: inspect recent runs and failure causes.
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.