mit einem Klick
fix-ci
// This skill should be used when the user asks to "fix CI", "fix failed checks", "PR is red", "diagnose CI failure". Also triggers when the user says in Japanese: "CI 直して", "CI が落ちてる", "PR の CI を直して".
// This skill should be used when the user asks to "fix CI", "fix failed checks", "PR is red", "diagnose CI failure". Also triggers when the user says in Japanese: "CI 直して", "CI が落ちてる", "PR の CI を直して".
This skill should be used when the user asks to "decompose", "break down task", "create detailed todos", "split into todos". Also triggers when the user says in Japanese: "タスク分解", "todo に落として", "細かい todo にして".
This skill should be used when the user asks to "dig", "challenge assumptions", "stress test plan", "find risks in plan". Also triggers when the user says in Japanese: "前提を疑って", "計画を深掘り", "プランに穴が無いか".
Remove AI-generated code slop from code changes in the current branch
| name | fix-ci |
| description | This skill should be used when the user asks to "fix CI", "fix failed checks", "PR is red", "diagnose CI failure". Also triggers when the user says in Japanese: "CI 直して", "CI が落ちてる", "PR の CI を直して". |
Diagnose and fix CI failures on the current pull request in a single pass. Use the GitHub CLI to gather status and logs, dispatch an explore subagent for read-only investigation, then apply edits and push from the main agent. If the fix does not turn the PR green on the first attempt, hand off to the user with a clear report — do not enter a retry loop.
Persist intermediate findings and the final summary to the active Cursor plan file:
read_plan / update_plan)../PLAN.md and use that as the persistence target.## CI Fix Summary section to the plan file once the fix is verified (or when handing off to the user).Run gh auth status. If unauthenticated:
gh auth login from the agent — Cursor's shell is not guaranteed to be interactive.gh auth login (or set GH_TOKEN) and re-trigger the skill.Run:
gh pr view --json statusCheckRollup --jq '.statusCheckRollup[]'
Parse the output to identify failing checks and capture their name, conclusion, and detailsUrl / run id.
For each failing check:
gh run view <run-id>
gh run view <run-id> --log-failed
If a run id cannot be derived from the rollup, fall back to gh pr checks or gh run list --branch <branch> and pick the latest failing run.
Capture for each failure:
npm test, pytest, golangci-lint, gradle test)explore subagent for analysisDispatch one Task subagent of type explore (read-only). Pass it:
Ask the subagent to:
The subagent must not make edits or run network commands beyond read-only exploration.
Before editing, write a short paragraph in chat that covers:
Apply the fix yourself (do not delegate edits to the subagent). Keep the change minimal:
Run, in order:
git status
git add -A
git commit -m "fix(ci): <short summary of the fix>"
git push
Use a clear message that names the failing check when helpful.
Run:
gh pr checks --watch
Wait for the run to complete. Do not start another retry pass — this skill is single-attempt by design.
Two outcomes:
## CI Fix Summary section (template below) to the active plan file and post a short confirmation in chat.## CI Fix Summary section with status NEEDS_HUMAN_INTERVENTION, summarize what was tried and what is blocking, and explicitly hand off to the user.Append this section to the active plan file:
## CI Fix Summary
### Status
[RESOLVED | PARTIALLY_RESOLVED | NEEDS_HUMAN_INTERVENTION]
### Failing Checks (before fix)
- <check name> — <one-line failure>
### Root Causes
- <root cause per failure>
### Fixes Applied
- <file>: <what changed and why>
### Verification
- `gh pr checks --watch` outcome: <pass / fail / partial>
- Local checks run (if any): <commands and results>
### Recommendations / Follow-ups
- <items the user should consider next>
gh auth status succeeding../PLAN.md) must contain the summary.