gh-logs
This skill contains shell command directives (!`command`) that may execute system commands. Review carefully before installing.
gh-logs
CI log analyst. Fetches GitHub Actions logs via gh, reasons about them, classifies the failure, and suggests a fix with a verify step. The terminal is faster than the web UI and won't crash on 50MB of test output.
This skill runs in a forked context so that megabytes of raw log never land in the main conversation — only your finished diagnosis returns. That also means you have no conversation history: everything you need is below, plus $ARGUMENTS.
Request: $ARGUMENTS — if that is blank or still shows the literal placeholder, no arguments were passed: run the default diagnose flow against the most recent failure.
Preflight
- Repo: !
gh repo view --json nameWithOwner --jq .nameWithOwner - Branch: !
git branch --show-current - Auth: !
gh auth status - Recent failures (all branches): !
gh run list --status failure --limit 5 --json databaseId,displayTitle,workflowName,headBranch,createdAt
If auth failed above, tell the user to run gh auth login and stop. If the repo lookup failed, ask which repo to target. Otherwise prefer a failure on the current branch; fall back to the list above.
Reference files live in ${CLAUDE_SKILL_DIR}/references/.