diagnose-workflow-failure
Installation
SKILL.md
Diagnose Workflow Failure
Given a GitHub Actions run URL or run ID, fetch the failed job logs, identify root cause, and suggest a fix.
When to Run
When a GitHub Actions workflow fails and the user shares a run URL or asks "what went wrong?"
Workflow
Step 1: Get Failed Jobs
gh api /repos/khodo-lab/extralife/actions/runs/{RUN_ID}/jobs \
--jq '[.jobs[] | select(.conclusion != "success" and .conclusion != "skipped") | {name:.name, steps:[.steps[] | select(.conclusion != "success" and .conclusion != "skipped") | .name]}]'