skills/github-ci-diagnose/SKILL.md
Parse failing GitHub Actions logs, identify root cause patterns, and propose fixes without executing irreversible changes. Use this skill whenever a federation repo shows a red CI status, a workflow fails, or a build/test/lint gate breaks. This skill reads logs, classifies failure modes, and outputs a diagnostic report — it does not re-run CI, edit workflows, or dismiss security findings without sovereign approval.
npx skillsauth add ariffazil/openclaw-workspace GitHub CI DiagnoseInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
CI failures are symptoms, not diseases. This skill treats the log as a patient: listen to it, classify the symptom, name the disease, prescribe a fix — but do not perform surgery without consent.
ariffazil/* repo CI| Input | Required | Description | |-------|----------|-------------| | repo | yes | Owner/repo name (e.g., ariffazil/AAA) | | workflow_name | yes | Name of failing workflow | | run_id | yes | GitHub Actions run ID | | branch | no | Branch the run executed on |
Retrieve the full Actions log. Look for these structural markers:
Error: or FAILED — explicit failure linenpm ERR! / pip FAILED / pytest FAILED — dependency or test breaksecrets found / detect-secrets — secret scan gatetimeout / cancelled — infrastructure or infinite loopchecksum mismatch / lockfile out of date — dependency driftAssign exactly one primary cause:
| Class | Pattern | Typical Fix |
|-------|---------|-------------|
| code-regression | Test fails after code change | Fix code, not CI |
| dependency-drift | Lockfile mismatch, version conflict | Update lockfile, pin versions |
| infra-flake | Timeout, network error, runner crash | Re-run (with approval) |
| lint-format | Ruff, eslint, prettier violation | Run formatter, fix style |
| secret-gate | detect-secrets, TruffleHog alert | Rotate secret, clean history |
| config-error | Invalid YAML, missing env var, wrong path | Fix workflow config |
| cross-repo-break | Dependent repo changed interface | Coordinate multi-repo fix |
Ask five whys:
Document the chain in the diagnostic report.
Draft a fix proposal that is:
git revert)Do NOT:
.github/workflows/*.yml directlynpm audit fix --force or equivalent blind upgradesOutput a diagnostic report (see format below).
Escalation rules:
secret-gate → escalate to secret-safety-scan skill + alert Arifcross-repo-break → escalate to parallel-authority-detection skillconfig-error touching constitutional workflow → escalate to 888_JUDGE.github/workflows/ without 888_JUDGE--force upgrades or destructive dependency resolution## CI Diagnostic Report
- **Repo:** owner/repo
- **Workflow:** name
- **Run ID:** id
- **Branch:** branch
- **Failure Class:** <class>
- **Confidence:** <high | medium | low>
- **Root Cause:** <concise explanation>
- **Last Green Run:** <run-id or unknown>
- **Delta Since Green:** <what changed>
- **Proposed Fix:** <reversible, bounded fix>
- **Local Verification:** <command to reproduce/fix locally>
- **Escalation:** <none | secret-safety-scan | parallel-authority-detection | 888_JUDGE>
development
Check every skill’s “use when” and “do not use when” clauses for collisions, missing negatives, and vague verbs like “help,” “assist,” or “improve.” Load when linting, reviewing, or validating trigger boundaries.
development
Bootstrap, design, and package new skills. Load when capturing user intent for a new skill or drafting its initial instruction framework.
content-media
Diagnose which federation services are up, down, or drifting. Produce a prioritized remediation plan.
business
Scan a repo or workspace for exposed secrets, tokens, keys, and credentials. Produce a findings report with remediation steps.