AI Agent Hub
Back to skills
GitHub CLI Workflow Assistant icon

GitHub CLI Workflow Assistant

Development Updated 2026.08.30

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

Please install @user_eb2b0784/wtf-github by following https://skillhub.cn/install/skillhub.md.

About this skill

Problem Context

Debugging GitHub pull requests often requires stitching together web UI state and several gh commands: checking CI status, identifying failed steps, viewing only failed logs, and extracting specific PR fields from JSON.

How It Works

The skill uses gh CLI as the execution layer and provides a PR/workflow log workflow:
- Pass --repo owner/repo explicitly outside a Git directory, or use repository URLs directly;
- Check PR CI status and list recent workflow runs;
- Inspect a run, identify failed steps, and extract only failed step logs;
- Use gh api for fields not exposed by simpler subcommands;
- Emit --json from most commands and filter with --jq.

Boundaries

It fits engineers who already use gh and need stable GitHub PR, CI, and API data access. It does not cover local branch merges, conflict resolution, or permission auditing.

Use Cases

  • Check whether CI passed before merging a PR and locate the failed workflow step
  • Debug a failed workflow run in the terminal by extracting only failed step logs
  • Pull specific PR fields with gh api and filter review or merge details with jq
  • Batch-query PR status and workflow results for a target repository outside a Git directory

Best For

  • Backend engineers owning merge pipelines who need fast PR CI failure and log visibility
  • DevOps engineers managing multiple repositories with gh CLI and terminal-based PR data
  • SREs troubleshooting release blockers who need only failed step logs from a failed run
  • Automation engineers building GitHub API scripts who need stable JSON and jq field extraction