decomposition
This skill should be used when the user asks to "decompose", "break down task", "create…
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 を直して".
$ npx -y skills add fumiya-kume/claude-code --skill fix-ci --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/fix-ciContext preview
The summary Claude sees to decide when to auto-load this skill.
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 を直して".
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:
Run `gh auth status`. If unauthenticated:
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:
Dispatch one `Task` subagent of type `explore` (read-only). Pass it:
Ask the subagent to:
1. Locate the failing code and any related tests / configs. 2. Cross-reference recent commits on this branch. 3. Classify the failure (build / test / lint / type / dep / config / env). 4. Recommend the minimal fix.
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:
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>
A collection of personal Claude Code utilities and custom slash commands.
This skill should be used when the user asks to "decompose", "break down task", "create…
This skill should be used when the user asks to "dig", "challenge assumptions", "stress test…