Use when GitHub Actions checks fail, workflow runs are red, or user asks to fix CI. Triggers on "fix CI", "actions failing", "checks are red", "pipeline broke", "workflow failed". User may provide a run URL, job ID, or just ask to fix.
61
72%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Low
Low-risk findings worth noting
Fix and improve this skill with Tessl
tessl review fix ./registry/skills/gha-diagnosis/SKILL.mdFetch failed workflow logs via gh, diagnose root causes, fix, verify locally, commit. All failures in one pass.
User may provide:
gh run list --status failure --limit 5https://github.com/org/repo/actions/runs/123 → extract run IDgh run view <id> --log-failedRead .github/workflows/*.yml to understand the exact commands each job runs. These are your local verify commands.
gh run view <run-id> --log-failedGroup failures by root cause:
| Category | Signals | Typical Fix |
|---|---|---|
| Lint/Format | linter, formatter errors | Auto-fix or targeted edit |
| Test | assertion errors, crashes | Fix code or test |
| Security | vulnerability flags | Upgrade dep, scoped override |
| Stale workflow | action SHA mismatch, deprecated syntax | Update workflow YAML |
| Env/secrets | missing var, auth failure | Fix workflow env block |
| Build | type errors, import failures | Fix source or dependency |
| Spec drift | generated code stale | Regenerate artifacts |
Process in dependency order: workflow config → lint → tests → build.
gh run list --limit 1 --json status,conclusion,url| Pitfall | Instead |
|---|---|
| Guess fix from job name | Read gh run view <id> --log-failed |
| Blanket dep override | Scope to specific dependency paths |
| Update action SHA blindly | Check release notes for breaking changes |
| Fix warnings not in the error | Only fix what CI flagged |
--no-verify to bypass hooks | Fix the hook issue |
298fce7
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.