godmode:ci-fix
Skill1 starsChanged 56 days agoMITView on GitHub
Self-healing CI diagnosis and fix loop. Use when CI is failing, when asked to "fix CI", or after a push that broke the pipeline. Fetches the latest failed run, classifies the root cause, applies a targeted fix, verifies locally, and re-pushes.
- Commits and pushes
In this repository76 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- godmode:agent-governanceSkill
- godmode:agent-improvement-loopSkill
- agents-skill-saveSkill
- baml-add-typesSkill
- godmode:brainstormSkill
- godmode:capSkill
- godmode:changelogSkill
- godmode:code-reviewSkill
- godmode:context-mapSkill
- godmode:cross-issueSkill
- godmode:crs-discoverSkill
- godmode:crs-hook-testingSkill
- godmode:crs-installSkill
- godmode:crs-propose-rulesSkill
- godmode:crs-validateSkill
- godmode:dead-codeSkill
- godmode:decomposeSkill
- godmode:dep-auditSkill
- godmode:dep-bumpSkill
- godmode:designSkill
- devloop-session-primerSkill
- godmode:dialecticSkill
- godmode:doc-maintainerSkill
- godmode:doc-reviewSkill
- godmode:doc-syncSkill
- godmode:doc-writerSkill
- doob-db-inspectorSkill
- doob-release-managerSkill
- godmode:doublecheckSkill
- dual-forge-pr-mergeSkill
- gh-bulk-issuesSkill
- godmode:health-scoreSkill
- godmode:ingestSkill
- godmode:introspectionSkill
- godmode:issue-triageSkill
- godmode:memory-bankingSkill
- godmode:mergeSkill
- godmode:mini-context-graphSkill
- godmode:mistake-trackerSkill
- godmode:moaSkill
- notfiles-release-workflowSkill
- godmode:observability-as-infrastructureSkill
- godmode:parallel-agentsSkill
- godmode:pattern-learnerSkill
- planning-with-cruxSkill
- godmode:pr-authorSkill
- godmode:receiving-reviewSkill
- godmode:refactoringSkill
- godmode:release-notesSkill
- release-readiness-checkSkill
- remote-upstream-triageSkill
- repo-gap-backlogSkill
- godmode:rust-conventionsSkill
- rustqualSkill
- rustqual-workspaceSkill
- rust-release-workflow-authorSkill
- godmode:self-reflectSkill
- session-wrap-commit-pushSkill
- godmode:systematic-debuggingSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 31
Read the full failure output.
- Distinctive: line 46
If the class is ambiguous — report it to the user before fixing.
- Distinctive: line 52
Verify locally before pushing:
- Very specific: line 71
Verify output matches the expected branch.
- Distinctive: line 97
Do NOT switch self-hosted runners to GitHub-hosted without asking.
- Distinctive: line 98
Do NOT change model names, API keys, or secrets in workflow files.
- Very specific: line 99
Do NOT use --no-verify.
- Distinctive: line 100
If the same failure class recurs across 3+ sessions, add a note to CLAUDE.md to prevent it at the source.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CI Fix — Diagnose and Repair
Fetch the failure, classify it, fix it, verify locally, push.
Workflow
Step 1: Fetch failed runs
gh run list --limit 5 --status failurePick the most recent failure for the current branch.
Step 2: Download logs
gh run view <run-id> --log-failedRead the full failure output. Identify the first error — that's usually the root cause.
Step 3: Classify
| Class | Symptoms | Fix |
compile_error | error[E...], missing match arm, wrong import | Fix source, taskit check compile |
test_failure | FAILED, assertion mismatch, panic | Fix impl or test, taskit test run |
clippy_warning | error: ..., -D warnings gate | Fix all warnings, taskit check lint |
fmt_check | Diff in ... | Run taskit check fmt |
pre_commit_hook | gitleaks, obfsck, coursers block | Add allowlist entry |
runner_environment | missing tool, wrong Xcode, wrong target | Update workflow YAML |
false_positive_detection | secret scanner flags test/doc content | Add .gitleaksignore entry |
dependency_issue | lockfile conflict, yanked crate, version mismatch | Update Cargo.toml/Cargo.lock |
If the class is ambiguous — report it to the user before fixing.
Step 4: Fix
Apply the minimum targeted fix for the classified root cause. Do not refactor unrelated code.
Verify locally before pushing:
Run via
godmode verifyor use the commands below:
# compile_error / test_failure / clippy_warning / fmt_check
taskit check compile
taskit test run
taskit check lint
taskit check fmt --check
# runner_environment — read the workflow file first (use Read tool, not cat)
# Read: .github/workflows/<file>.yml
# then edit only the failing stepStep 5: Commit and push
- Run:
git branch --show-currentVerify output matches the expected branch. Stop immediately if not. (guardrails.nu check-branch <expected>)
git add -A
git commit -m "fix(ci): <short description of root cause>"
git pushThen verify the new run passes:
gh run list --limit 3 # polling fallback — interactive run watching requires a TTYDevloop specialization
agents/ci-failure-responder.md is a devloop-specific specialization of this workflow —
same triage/classify/fix/verify loop, with devloop-only notes baked in (edition 2024
let-chain style for collapsible_if, _DEVLOOP_OP_WRAPPED=1 prefix for nextest,
worktree snapshot exclusions, BAML client drift). Use it directly when working in devloop.
Guardrails
- Fix one root cause per pass. If there are multiple independent failures, fix them sequentially — most CI failures cascade from a single root.
- Do NOT switch self-hosted runners to GitHub-hosted without asking.
- Do NOT change model names, API keys, or secrets in workflow files.
- Do NOT use
--no-verify. - If the same failure class recurs across 3+ sessions, add a note to
CLAUDE.mdto prevent it at the source.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

