/ci-fix:ci-fixfrom ci-fix
Detects GitHub Actions CI failures, fetches logs, diagnoses causes, fixes code, pushes, and loops until all checks pass (max 3 retries). Use when CI fails.
Ships in ci-fix. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
CI 失敗の検出 → ログ取得 → 修正 → push → 再検証のループを自動実行する。
1. check-ci.sh で CI 状態を確認
2. 失敗あり → ログを分析して原因特定
3. コードを修正
4. commit & push
5. wait-ci.sh で CI 完了を待機
6. まだ失敗 → 1 に戻る
| Script | 用途 |
|---|---|
scripts/check-ci.sh [PR番号] | CI 状態確認 + 失敗ログ取得 |
scripts/wait-ci.sh [PR番号] [最大秒数] | CI 完了まで待機(デフォルト 300s) |
PR 番号省略時は現在のブランチの PR を自動検出する。
bash <skill-path>/scripts/check-ci.sh
出力の RESULT: 行で分岐:
all_passed → 完了。ユーザーに報告して終了pending → wait-ci.sh で待機してから再度 check-ci.shfailed → Step 2 へcheck-ci.sh の出力に失敗ログが含まれる。ログが不十分な場合:
gh run view <run-id> --log-failed
エラーの種類を特定:
分析結果に基づきコードを修正する。修正前に関連ファイルを読んで変更の影響を理解する。
git add <修正ファイル>
git commit -m "fix: <修正内容の要約>
Co-Authored-By: Claude Opus 4.6 <[email protected]>"
git push
bash <skill-path>/scripts/wait-ci.sh
all_passed → 完了。ユーザーに報告failed → Step 1 に戻る(最大 3 回まで)timeout → check-ci.sh で現状を確認してユーザーに報告修正→再検証のループは 最大 3 回 まで。3 回で解決しない場合はユーザーに状況を報告して判断を仰ぐ。
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub sean-sunagaku/claude-code-plugin --plugin ci-fixOther plugins' skills for the same job