ワンクリックで
plan-review
Plan modeで作成したプランに対して、プロジェクト特性を分析し適切なレビューエージェントを自動選択・並列起動するスキル。引数なしで実行可能。
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Plan modeで作成したプランに対して、プロジェクト特性を分析し適切なレビューエージェントを自動選択・並列起動するスキル。引数なしで実行可能。
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Start implementation work with worktree isolation and cross-session file conflict avoidance. Use this skill when beginning any non-trivial code change: after plan mode, when creating a new branch, implementing features, fixing bugs across multiple files, or refactoring. Also use when the user mentions worktree, bit issue, session coordination, or parallel work.
Turn a report into a portable SVG by authoring a structured/graphical HTML layout and rendering it to SVG with satoru-render. Use when the user asks to compile, summarize, or visualize a report, or wants graphical output that stays viewable in environments that cannot render HTML (chat, PDF viewers, image-only tools, git diffs). Proactively offer SVG output whenever you produce a report that benefits from layout, charts, tables, or styling.
Persist mid-session progress (plan refinements, task progress notes, scope changes, decisions, blockers) to the bit issues created by start-work. Use as a checkpoint before context compaction, after meaningful progress (multiple tasks done, plan refined, scope shifted), before pausing work, or when the user mentions 'save session', 'snapshot', 'checkpoint', 'update bit issue', or 'persist progress'.
Restore session state (plan, target files, in-flight tasks) from bit issues created by the start-work skill. Use when resuming work after Claude Code restart, when the in-memory task list is empty but bit issues exist for the current branch, or when the user mentions "restore session", "repair session", "pick up where I left off", or references a prior bit-issue-tracked session.
agent 向けテキスト指示(skill / slash command / task プロンプト / CLAUDE.md 節 / コード生成プロンプト)を、バイアスを排した実行者に動かしてもらい、両面(実行者の自己申告 + 指示側メトリクス)で評価して反復改善する手法。改善が頭打ちになるまで回す。プロンプトや skill を新規作成・大幅改訂した直後、またはエージェントの挙動が期待通りにならない原因を指示側の曖昧さに求めたいときに使う。
セッションのコンテキストを分析し、重要な情報を保持するためのプロンプトを生成して /compact コマンドの実行を支援するスキル。コンテキストウィンドウが逼迫してきた時や、セッションを整理したい時に使用。
| name | plan-review |
| description | Plan modeで作成したプランに対して、プロジェクト特性を分析し適切なレビューエージェントを自動選択・並列起動するスキル。引数なしで実行可能。 |
| allowed-tools | Bash(codex exec *), Bash(~/.claude/hooks/lib/codex-stage.sh *) |
Plan modeで作成した最新のプランファイルに対して、プロジェクト特性を自動分析し、適切なレビューエージェントを選択して並列起動する。
~/.claude/agents/ に定義済み| 引数 | 必須 | 説明 |
|---|---|---|
| agent-name | × | 明示的に指定する場合のみ。省略時は自動選択(推奨) |
ls -t ./plans/*.md 2>/dev/null | head -1
ファイルが見つからない場合はエラー終了。 Readツールで検出したPlanファイルの内容を取得。
引数でエージェント名が指定されている場合はそのエージェントのみを使用する(従来互換)。
引数が省略されている場合(推奨)、以下のルールで起動対象を自動決定する。
以下のシグナルを並列で収集する:
| シグナル | 検出方法 |
|---|---|
| Rust プロジェクト | Cargo.toml の存在、または *.rs ファイルの存在 |
| codex CLI 利用可 | which codex が成功するか |
| リファクタリング系 | Plan内容に以下のキーワードを含むか検査 |
| テスト基盤あり | テストファイル・テスト設定の存在を検査 |
リファクタリング系キーワード(Plan本文を検査):
テスト基盤の検出方法:
以下の プライマリシグナル のうち少なくとも1つが存在する場合に「テスト基盤あり」と判定する:
*.test.ts, *.spec.ts, *.test.tsx, *.spec.tsx, *.test.js, *.spec.js, *.test.jsx, *.spec.jsx, *_test.go, *_test.rsvitest.config.*, jest.config.*, playwright.config.*, .mocharc.*tests/, __tests__/, test/補助シグナル(単独ではトリガーしない、プライマリシグナルと併用で確度を高める):
test スクリプトが定義されている収集したシグナルに基づき、以下のルールで起動対象を決定する:
| 条件 | 起動するエージェント |
|---|---|
| Rustプロジェクトである | rust-reviewer |
| codex CLI が利用可能 | codex-reviewer |
| リファクタリング系キーワードを含む | similarity |
| テスト基盤が存在する | tdd-reviewer |
codex-reviewer は他の条件に関わらず必ず起動する(クロスモデル視点の確保。Claude系モデル固有の盲点を補う)起動前に選択されたレビュワー一覧をユーザーに表示する:
プロジェクト分析結果:
- Rust プロジェクト: ✓ (Cargo.toml 検出)
- codex CLI: ✓ (利用可能)
- リファクタリング系: ✗
- テスト基盤: ✓ (vitest.config.ts 検出)
起動するレビュワー: rust-reviewer, codex-reviewer, tdd-reviewer
選択されたすべてのエージェントを並列でAgentツールで起動する。
各エージェントに渡すプロンプト:
以下のPlanファイルをレビューしてください。
あなたの専門知識に基づいて、以下の観点からフィードバックを提供してください:
1. 技術的な正確性
2. 潜在的な問題点やリスク
3. 改善提案
4. 見落とされている考慮事項
---
Plan File: <path>
---
<content>
重要: 各Agentツール呼び出しは独立しているため、必ず単一メッセージ内で複数のAgentツールを同時に呼び出すこと。
すべてのレビュワーの結果を以下の形式で集約して報告する:
=== Plan Review 結果 ===
--- rust-reviewer ---
[rust-reviewerからのフィードバック]
--- codex-reviewer ---
[codex-reviewerからのフィードバック]
=== 総合サマリ ===
全レビュワーの指摘を横断的に要約し、重要度の高い指摘を先頭にまとめる。
| エージェント名 | 自動選択条件 | 専門領域 |
|---|---|---|
| rust-reviewer | Cargo.toml / .rs ファイルの存在 | Rustコードのパフォーマンス・保守性 |
| codex-reviewer | codex CLI が利用可能 | 汎用的なアーキテクチャ・設計レビュー |
| similarity | Plan内にリファクタリング系キーワード | コード重複分析・リファクタリング提案 |
| tdd-reviewer | テストファイル・テスト設定・テスト用ディレクトリの存在(プライマリシグナル) | TDD準拠・Testing Trophy・モック最小化・テスト重複検知 |
> /plan-review
最新Planファイルを検出: ./plans/kind-cuddling-dragon.md
プロジェクト分析結果:
- Rust プロジェクト: ✓ (Cargo.toml 検出)
- codex CLI: ✓ (利用可能)
- リファクタリング系: ✗
- テスト基盤: ✓ (vitest.config.ts 検出)
起動するレビュワー: rust-reviewer, codex-reviewer, tdd-reviewer
レビュー実行中...(3エージェント並列)
=== Plan Review 結果 ===
--- rust-reviewer ---
[フィードバック内容]
--- codex-reviewer ---
[フィードバック内容]
--- tdd-reviewer ---
[フィードバック内容]
=== 総合サマリ ===
[横断的な要約]
> /plan-review rust-reviewer
最新Planファイルを検出: ./plans/kind-cuddling-dragon.md
エージェント: rust-reviewer(手動指定)
レビュー実行中...
=== Plan Review 結果 ===
--- rust-reviewer ---
[フィードバック内容]
| 状況 | 対応 |
|---|---|
| Planファイルが見つからない | plansディレクトリにファイルがないことを通知 |
| 自動選択で該当レビュワーなし | 利用可能エージェント一覧を表示し手動指定を促す |
| 手動指定のエージェントが見つからない | 利用可能エージェント一覧を表示してエラー終了 |
| 一部エージェントの実行失敗 | 成功したエージェントの結果は報告し、失敗を明示 |
./plans(プロジェクトルート相対)