agentleFS
89jobrien89jobrien/godmode/skills/ci-fix/SKILL.md

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

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
  1. Distinctive:

    Read the full failure output.

    line 31
  2. Distinctive:

    If the class is ambiguous — report it to the user before fixing.

    line 46
  3. Distinctive:

    Verify locally before pushing:

    line 52
  4. Very specific:

    Verify output matches the expected branch.

    line 71
  5. Distinctive:

    Do NOT switch self-hosted runners to GitHub-hosted without asking.

    line 97
  6. Distinctive:

    Do NOT change model names, API keys, or secrets in workflow files.

    line 98
  7. Very specific:

    Do NOT use --no-verify.

    line 99
  8. Distinctive:

    If the same failure class recurs across 3+ sessions, add a note to CLAUDE.md to prevent it at the source.

    line 100

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 failure

Pick the most recent failure for the current branch.

Step 2: Download logs

gh run view <run-id> --log-failed

Read the full failure output. Identify the first error — that's usually the root cause.

Step 3: Classify

ClassSymptomsFix
compile_errorerror[E...], missing match arm, wrong importFix source, taskit check compile
test_failureFAILED, assertion mismatch, panicFix impl or test, taskit test run
clippy_warningerror: ..., -D warnings gateFix all warnings, taskit check lint
fmt_checkDiff in ...Run taskit check fmt
pre_commit_hookgitleaks, obfsck, coursers blockAdd allowlist entry
runner_environmentmissing tool, wrong Xcode, wrong targetUpdate workflow YAML
false_positive_detectionsecret scanner flags test/doc contentAdd .gitleaksignore entry
dependency_issuelockfile conflict, yanked crate, version mismatchUpdate 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 verify or 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 step

Step 5: Commit and push

  1. Run: git branch --show-current Verify 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 push

Then verify the new run passes:

gh run list --limit 3   # polling fallback — interactive run watching requires a TTY

Devloop 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.md to prevent it at the source.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.