From ci-fix
Detects GitHub Actions CI failures in PRs, analyzes logs with gh CLI, fixes code, commits and pushes changes, then re-verifies up to 3 retries until passing.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ci-fix:ci-fixThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
CI 失敗の検出 → ログ取得 → 修正 → push → 再検証のループを自動実行する。
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 回で解決しない場合はユーザーに状況を報告して判断を仰ぐ。
npx claudepluginhub sean-sunagaku/claude-code-plugin --plugin ci-fixDiagnoses and fixes GitHub Actions CI failures in pull requests by fetching job logs, identifying root causes like build or test errors, and proposing targeted code changes.
Iterates on a PR until CI passes. Automatically fixes CI failures, addresses categorized review feedback, and pushes fixes until all checks are green.
Diagnoses and fixes CI/CD pipeline failures including build errors, test failures, and pipeline issues. Uses git log analysis and structured debugging to identify root causes.