fix-ci-failures
Skill3 starsChanged 2 months agoMITView on GitHub
Read a branch's latest failed CI runs, triage each failure from its existing logs, and fix the real ones.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- microsoft/vscodetheir own version, first seen Nov 12, 2026
- cpkt9762/opencode-vscode-idetheir own version, first seen Mar 31, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- microsoft/vscode★ 196ksame name
- cpkt9762/opencode-vscode-ide★ 17same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository48 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- architecture-satisfactionSkill
- autopilotSkill
- browser-testSkill
- chatter-scoutSkill
- codebase-designSkill
- code-reviewSkill
- code-smells-auditSkill
- commitSkill
- dependency-auditSkill
- diagnosing-bugsSkill
- distill-sessionsSkill
- domain-modelingSkill
- fix-github-issuesSkill
- fix-nightwatch-issuesSkill
- fix-posthog-issuesSkill
- grillingSkill
- grill-meSkill
- grill-with-docsSkill
- handoffSkill
- housekeeperSkill
- implementSkill
- improve-codebase-architectureSkill
- laravel-herd-worktreesSkill
- panelSkill
- prototypeSkill
- releaseSkill
- repository-cleanupSkill
- researchSkill
- resolve-review-commentsSkill
- resolving-merge-conflictsSkill
- scratch-cleanupSkill
- scratch-statusSkill
- setupSkill
- tddSkill
- teachSkill
- to-questionnaireSkill
- to-specSkill
- to-ticketsSkill
- triage-github-prSkill
- triageSkill
- verifySkill
- wait-whatSkill
- wayfinderSkill
- which-skillSkill
- wizardSkill
- writing-for-agentsSkill
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 17
Project context: Follow the repo's AGENTS.md / CLAUDE.md rules for tests, lint, cache clears, and a dirty tree.
- Distinctive: line 22
Run git fetch origin. For each workflow, take only its newest completed run on the branch.
- Distinctive: line 35
No failed workflow: report that the branch's latest completed runs are green, and stop.
- Very specific: line 42
Read git log --oneline <headSha>..origin/B first: commits since the failed run may already fix it.
- Distinctive: line 57
When the command cannot run locally (a missing service or secret), classify from the log and the code alone, and say that it is …
- Distinctive: line 64
No LEGIT left: go to step 4.
- Distinctive: line 73
Before pushing, show the commits and the branch, and push only on the user's approval in this conversation.
- Very specific: line 82
If step 3 created a worktree, ask one yes/no question at the end: "Can I delete the worktree I created?" Run git worktree remove (no …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Fix CI Failures
Take the branch named in the input, or main when none is given. Find its most recent
CI failures, triage each one from the logs that already exist, and fix what is
real. The logs are the whole evidence: CI is a record you read, never a thing you
trigger. Your own proof that a fix works is the failing command run green locally.
Text after the branch name is overriding guidance.
Project context. Follow the repo's AGENTS.md / CLAUDE.md rules for tests, lint,
cache clears, and a dirty tree.
1. Find the latest failures
Run git fetch origin. For each workflow, take only its newest completed run on the
branch. An older failure whose workflow has passed since is already fixed, and a run
still in progress is not evidence yet: skip both.
gh run list --branch B --status completed --limit 100 \
--json databaseId,workflowName,conclusion,headSha,createdAt,url \
--jq 'group_by(.workflowName) | map(max_by(.createdAt)) | .[]
| select(.conclusion == "failure" or .conclusion == "timed_out" or .conclusion == "startup_failure")'
gh run view RUN --json jobs --jq '.jobs[] | select(.conclusion == "failure") | {databaseId, name, url}'
gh run view --job JOB --log-failedNo failed workflow: report that the branch's latest completed runs are green, and stop.
Completion criterion: every failed job is listed with its workflow, run URL, headSha,
and the first real error from its log (not the trailing exit code 1).
2. Classify every failure
Read git log --oneline <headSha>..origin/B first: commits since the failed run may
already fix it. Then write one line per failed job:
Failure N: [LEGIT | STALE | FLAKY | INFRA] — <one-line evidence>- LEGIT: the error points at code on the branch, and it reproduces at
origin/Bwhen you run the same command locally. - STALE: a later commit fixed it. Cite the sha, or show the command passing locally.
- FLAKY: it passes locally at the same sha, and the log shows timing, ordering, or a network call.
- INFRA: runner, cache, registry, secret, or quota errors, and anything that needs a CI setting or a human decision. Name what it needs.
When the command cannot run locally (a missing service or secret), classify from the log and the code alone, and say that it is unreproduced.
Completion criterion: every failed job has a line.
3. Fix the legit ones
No LEGIT left: go to step 4.
Work on the branch without disturbing a dirty tree or another worktree's checkout. When
the tree is dirty or the branch is checked out elsewhere, use
git worktree add .claude/worktrees/ci-<branch> origin/B (at that path, never a sibling
directory), then make it runnable with laravel-herd-worktrees' Bootstrap a bare worktree section before running anything in it. Leave it in place until the end of the run: step 4 asks before removing it. Per
LEGIT failure: make the minimal change, run the failing command locally until it is
green, then commit with explicit staging (Conventional Commits, naming the job).
Before pushing, show the commits and the branch, and push only on the user's approval in this conversation. The push starts new CI runs. Leave them running and do not come back for their result.
Completion criterion: every LEGIT failure has a commit that turned its command green locally, and the push is done or declined.
4. Report
If step 3 created a worktree, ask one yes/no question at the end: "Can I delete the
worktree I created?" Run git worktree remove (no --force) only on yes; on no, name it
in the report as kept.
One line per failed job: fixed in <sha>, stale (<sha>), flaky, infra (what it
needs), or unreproduced. Then say whether the commits are pushed.
Guardrails
CI evidence comes only from runs that already exist. Do not run gh run rerun,
gh workflow run, or gh run watch, do not push an empty or retry commit, and do not
wait on a run.
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.

