원클릭으로
review-loop
CI green + claude-review LGTM まで自動ループ。push → CI待ち → 全レビューソースチェック → 修正 → 再push を繰り返す
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
CI green + claude-review LGTM まで自動ループ。push → CI待ち → 全レビューソースチェック → 修正 → 再push を繰り返す
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
PR review severity を Haiku AI で再分類。regex 偽陽性を除外する片方向ゲート。/classify-review [PR番号] で実行。regex が CRITICAL/HIGH 検出した際の偽陽性チェック専用。
Codexにセカンドオピニオンを求める。AI同士の忖度なしガチレビュー。Use when user mentions 'Codex レビュー', 'セカンドオピニオン', 'Codex の意見', 'Codex でレビュー'. Do NOT load for: 'Codex に実装させて', 'Codex Worker', 'Codex に作らせて', '実装を依頼'.
Prevent GCP deployment failures by validating Docker builds, Cloud Run deploys, and GKE rollouts. Triggers on: docker build, docker push, gcloud run deploy, kubectl apply, Dockerfile/cloudbuild.yaml/nginx.conf edits. Catches arm64-amd64 platform mismatch, Mixed Content from http:// build args, VAD/WASM asset 404s, nginx MIME breakage. Use for all Apple Silicon to GCP deploy workflows. Do NOT use for local-only Docker builds, non-GCP deployments, or application logic changes.
Manage Context7 CLI skills: search, install, list, remove, info via ctx7. Use when the user wants to find, install, list, remove, or inspect Context7 skills. Triggers: 'search skills', 'install skill', 'list my skills', 'remove skill', 'ctx7', 'context7'. Do NOT use for general package management (npm, pip), non-Context7 CLI commands, or skill authoring.
Plan and execute multi-agent team compositions for parallel implementation tasks. Provides team patterns, wave-based execution, cross-review protocols, and TeamCreate vs parallel Agent decision matrix. Use when: planning team composition for complex multi-file features, choosing orchestration strategy for 3+ parallel tasks, setting up wave-based execution with dependencies, coordinating cross-review between agents. Do NOT use for: single-agent tasks, basic parallel execution of 2 independent tasks (rules handle that), Codex CLI delegation, or sequential single-file changes.
Investigate, fix, and regression-proof bugs across the codebase. Invoke with: /bugfix [bug description]. Performs root cause analysis with full codebase grep, applies fixes to ALL instances (not just the first match), adds regression tests, and generates a structured report. Uses web search for unknown error patterns and library-specific issues. Use when: user reports a bug, error log needs investigation, fixing a GitHub Issue labeled 'bug'. Do NOT use for: new feature implementation, refactoring without a bug, performance optimization, or UI styling changes.
| name | review-loop |
| description | CI green + claude-review LGTM まで自動ループ。push → CI待ち → 全レビューソースチェック → 修正 → 再push を繰り返す |
| user-invocable | true |
| argument-hint | [PR番号] [--all-prs] |
| allowed-tools | ["Read","Edit","Write","Bash","Grep","Glob"] |
PR の CI/CD が全てグリーンになり、かつ claude-review の指摘が全て解消されるまで自動的にループする。
/review-loop 218 # 単一PR
/review-loop --all-prs # 全open PRをチェック
┌─────────────────────────────────────────────┐
│ 1. CI/CD チェック (gh pr checks) │
│ ├─ FAIL → build-error-resolver で修正 │
│ └─ PASS → 次へ │
├─────────────────────────────────────────────┤
│ 2. レビュー全ソースチェック │
│ ├─ Source 1: /pulls/{pr}/reviews (body) │
│ ├─ Source 2: /pulls/{pr}/comments (inline)│
│ └─ Source 3: /issues/{pr}/comments (summary)│
├─────────────────────────────────────────────┤
│ 3. 指摘分類 │
│ ├─ MUST FIX → エージェントで並列修正 │
│ ├─ SHOULD FIX → エージェントで修正 │
│ └─ OBSERVATION → コメントのみ、修正不要 │
├─────────────────────────────────────────────┤
│ 4. 修正 commit & push │
│ └─ ステップ1に戻る │
├─────────────────────────────────────────────┤
│ 5. ALL GREEN + NO MUST/SHOULD FIX │
│ → ✅ LGTM宣言、merge可能 │
└─────────────────────────────────────────────┘
gh pr checks {PR_NUMBER}
pass → Step 2 へfail あり → 失敗ログを取得し、build-error-resolver エージェントで修正pending → 待機(最大10分)bash ~/.claude/scripts/check-pr-reviews.sh {PR_NUMBER}
このスクリプトは以下の3箇所全てを確認する:
gh api repos/{owner}/{repo}/pulls/{pr}/reviews — レビューbodygh api repos/{owner}/{repo}/pulls/{pr}/comments — インラインコメントgh api repos/{owner}/{repo}/issues/{pr}/comments — レビューサマリ(issue comments)重要: /issues/{pr}/comments のレビューサマリを見落とさないこと!
claude-review は以下の3つの方法でコメントを残す:
# 最新のレビューサマリ(最重要)
gh api "repos/{owner}/{repo}/issues/{pr}/comments" \
--jq '[.[] | select(.user.login == "claude[bot]")] | last | .body'
# 最新pushのインラインコメント
gh api "repos/{owner}/{repo}/pulls/{pr}/comments" \
--jq '[.[] | select(.user.login == "claude[bot]")] | last(5) | {path, line, body}'
# 修正をコミット
git add -A && git commit -m "fix: address claude-review round N findings"
git push origin {branch}
→ Step 1 に戻る
以下の条件を全て満たした場合にLGTM:
gh pr checks が全て pass