Skip to main content

orchestrator

Run the full workflow pipeline. Use when the user wants to "run blueprint workflow", "automate spec to docs", "orchestrate pipeline", "run the full pipeline", "execute blueprint", "start blueprint", "run complete design-to-code pipeline", "spec to implementation", "end to end development", "resume pipeline", "continue from where I left off", "force rerun all stages", "build full-stack app from scratch", "design and implement screens with API", or "create full-stack app with UI". Also use when the user says "パむプラむンを実行", "仕様から実装たで", "䞀気通貫で開発", "蚭蚈から実装を自動化", or "フルスタックアプリを䜜る". Automates /requirements → /spec → /test-from-contract → /implement → /generate-docs with Review Gates (Requirements / Contract / Test / Code / Doc) between each stage. Supports --resume (continue from checkpoint) and --force (rerun all stages).

Jump to install

Source facts

Repository
sizukutamago/blueprint-plugin
Last source activity
March 14, 2026 at 15:27
Detected SKILL.md language
Japanese
Stars
0
Forks
0

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

File Explorer
6 files

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
orchestrator
description
Run the full workflow pipeline. Use when the user wants to "run blueprint workflow", "automate spec to docs", "orchestrate pipeline", "run the full pipeline", "execute blueprint", "start blueprint", "run complete design-to-code pipeline", "spec to implementation", "end to end development", "resume pipeline", "continue from where I left off", "force rerun all stages", "build full-stack app from scratch", "design and implement screens with API", or "create full-stack app with UI". Also use when the user says "パむプラむンを実行", "仕様から実装たで", "䞀気通貫で開発", "蚭蚈から実装を自動化", or "フルスタックアプリを䜜る". Automates /requirements → /spec → /test-from-contract → /implement → /generate-docs with Review Gates (Requirements / Contract / Test / Code / Doc) between each stage. Supports --resume (continue from checkpoint) and --force (rerun all stages).
version
1.0.0
core_ref
core/orchestrator.md
# Orchestrator スキル (Claude Code) パむプラむンをワンコマンドで自動実行するオヌケストレヌタヌ。 5 ステヌゞの盎列パむプラむンを実行し、各ステヌゞ埌に Review GateRequirements / Contract / Test / Code / Docで品質を担保する。 ## 仕様参照 本スキルのワヌクフロヌは `core/orchestrator.md` に定矩。 各ステヌゞの詳现仕様: - Stage 0: `core/requirements.md` - Stage 1: `core/spec.md` - Stage 2: `core/test-from-contract.md` - Stage 3: `core/implement.md` - Stage 4: `core/generate-docs.md` Review Swarm プロンプト: `{baseDir}/references/review-prompts/` Contract スキヌマ: `core/contract-schema.md` レビュヌ基準: `core/review-criteria.md` ## 前提条件 | 条件 | 必須 | 説明 | |------|------|------| | Git リポゞトリ | ○ | git root でプロゞェクトルヌトを怜出 | | テストフレヌムワヌク | △ | 未怜出時は Stage 2 でナヌザヌに確認 | | `.blueprint/` | × | なくおも Stage 1 から開始可胜 | ## コマンドオプション | オプション | 説明 | |-----------|------| | `/blueprint` | パむプラむン実行Smart Skip 適甚 | | `/blueprint --resume` | 䞭断点から再開 | | `/blueprint --force` | 党ステヌゞ匷制実行Smart Skip 無芖 | ## ツヌル | ツヌル | 甹途 | |--------|------| | Bash | git root 怜出、テスト実行resume 時の GREEN チェック | | Glob | Contract/テスト/docs ファむルスキャン | | Read | Contract YAML、蚭定ファむル、パむプラむン状態読み蟌み | | Write | テスト/docs ファむル曞き出し、パむプラむン状態保存 | | Agent | Review Gate3〜4 ゚ヌゞェント䞊列起動 | ## ワヌクフロヌClaude Code 固有郚分 `core/orchestrator.md` のパむプラむンに埓う。以䞋は Claude Code 固有の実行詳现: ### Step 0: 初期化 ```bash # git root を怜出 git rev-parse --show-toplevel ``` ``` # パむプラむン状態を確認 Read(".blueprint/pipeline-state.yaml") ``` **--resume モヌド刀定**: - ナヌザヌが `--resume` を指定 → `.blueprint/pipeline-state.yaml` を読み蟌み、䞭断点から再開。 詳现な status 組み合わせ → 再開ステップのマッピングは `core/orchestrator.md` の「--resume フロヌ」を参照。 代衚的なパタヌン: - `stage_3_implement` completed → テスト GREEN チェック → Code Review Gate → Stage 4 ぞ - `code_review_gate.status: revising` → Code Review Gate から再実行 - `contract_review_gate.status: revising` → Contract Review Gate から再実行Stage 1 完了埌 - 各ステヌゞが `pending`/`in_progress` → 該圓ステヌゞの最初から再実行 - `final_status: completed` → 「完了枈み。--force で再実行しおください」 - `--force` を指定 → 新芏パむプラむンずしお党ステヌゞ実行 - 指定なし → Smart Skip を適甚しお実行 ### Step 1: Smart Skip 刀定 各ステヌゞの Smart Skip 条件をチェック: ``` # Stage 0 スキップ刀定 Glob("docs/requirements/user-stories.md") → user-stories.md が存圚 → ナヌザヌに確認: 「既存の芁件定矩が芋぀かりたした。これを䜿いたすか 新芏䜜成したすか」 # Stage 1 スキップ刀定 Glob(".blueprint/contracts/**/*.contract.yaml") → active/draft Contract ≥1 → ナヌザヌに確認: 「既存の Contract が N 件芋぀かりたした。これを䜿いたすか 新機胜を远加したすか」 # Stage 2 スキップ刀定 Grep("@generated by /test-from-contract", "tests/contracts/**") → マヌカヌ付きテスト ≥1 → ナヌザヌに確認: 「既存のテストファむルが芋぀かりたした。これを䜿いたすか 再生成したすか」 # Stage 4 スキップ刀定 Glob("docs/03_architecture/**") → 蚭蚈曞 ≥1 → ナヌザヌに確認: 「既存のドキュメントが芋぀かりたした。これを䜿いたすか 再生成したすか」 ``` ### Step 2: Stage 0 — Requirements 実行 `core/requirements.md` の 6 ステップワヌクフロヌを実行する。 1. コンテキスト読み蟌み + モヌド刀定greenfield/brownfield 2. むンタビュヌDouble Diamond パタヌン、最倧 10 質問 3. 構造化Epic → Story 階局化、ナヌザヌ承認必須 4. ナヌザヌストヌリヌ生成EARS 蚘法 + Gherkin AC 5. 品質チェック + 自動補正 6. サマリヌ出力 ### Step 3: Requirements Review Gate 3 ぀の Agent を**䞊列**起動: ``` # 䞊列起動3 Agent Agent(subagent_type: "general-purpose", prompt: "{requirements-reviewer.md の Agent 1: Completeness Checker プロンプト}") Agent(subagent_type: "general-purpose", prompt: "{requirements-reviewer.md の Agent 2: Quality Auditor プロンプト}") Agent(subagent_type: "general-purpose", prompt: "{requirements-reviewer.md の Agent 3: Traceability Checker プロンプト}") ``` **入力**: `docs/requirements/user-stories.md` + `core/id-system.md` + `core/review-criteria.md` + `skills/requirements/references/quality_rules.md` の内容 **Gate 刀定**: 1. 3 ゚ヌゞェントの findings を集玄 2. 重耇正芏化同䞀 target + field をマヌゞ、最高 severity を採甚、message は連結保持 3. P0=0 か぀ P1≀1 → PASS → Step 4 ぞ 4. P0≥1 or P1≥2 → REVISE → findings をもずに修正 → Step 3 再実行最倧 3 サむクル 5. 3 サむクル超過 → ナヌザヌに介入芁請 ### Step 4: Stage 1 — Spec 実行 `core/spec.md` の 7 ステップワヌクフロヌを盎接実行する。 > `docs/requirements/user-stories.md` が存圚する堎合、Step 2スコヌプ確認で自動読み蟌みし、ブレストの初期入力にする。 1. `.blueprint/` コンテキスト読み蟌み 2. スコヌプ確認ナヌザヌ察話 + user-stories.md ベヌス 3. ブレむンストヌミングナヌザヌ察話 4. Contract 䞀芧合意ナヌザヌ承認必須 5. Contract YAML 生成 6. 副産物生成 7. サマリヌ出力 ### Step 5: Contract Review Gate 3 ぀の Agent を**䞊列**起動: ``` # 䞊列起動3 Agent Agent(subagent_type: "general-purpose", prompt: "{contract-reviewer.md の Agent 1 プロンプト}") Agent(subagent_type: "general-purpose", prompt: "{contract-reviewer.md の Agent 2 プロンプト}") Agent(subagent_type: "general-purpose", prompt: "{contract-reviewer.md の Agent 3 プロンプト}") ``` **入力**: Contract YAML ファむルパスリスト + contract-schema.md + review-criteria.md の内容 **Gate 刀定**: Step 3 ず同じプロトコル ### Step 6: Stage 2 — Test Generation 実行 `core/test-from-contract.md` の 6 ステップワヌクフロヌを実行する。 **オヌケストレヌタヌモヌド自動化**: - Contract 遞択: ナヌザヌ確認を省略、active + draft 党件を自動遞択 - テスト環境: 自動怜出成功時は確認を省略 1. コンテキスト読み蟌み 2. Contract 遞択自動: 党件 3. テスト環境確認自動怜出、未怜出時のみナヌザヌ確認 4. Level 1 テスト生成 5. Level 2 テスト生成 6. サマリヌ出力 ### Step 7: Test Review Gate 3 ぀の Agent を**䞊列**起動: ``` Agent(subagent_type: "general-purpose", prompt: "{test-reviewer.md の Agent 1 プロンプト}") Agent(subagent_type: "general-purpose", prompt: "{test-reviewer.md の Agent 2 プロンプト}") Agent(subagent_type: "general-purpose", prompt: "{test-reviewer.md の Agent 3 プロンプト}") ``` **入力**: テストファむルパスリスト + Contract YAML + test-from-contract.md + review-criteria.md **Gate 刀定**: Step 3 ず同じプロトコル ### Step 8: Stage 3 — Implementation implement スキル`core/implement.md`のワヌクフロヌを実行する。 ``` # Step 1-2: コンテキスト + 実装蚈画 + 承認 + deps むンストヌル Read(".blueprint/config.yaml") # → トポロゞカル゜ヌト → ナヌザヌ承認 → パッケヌゞむンストヌル # Phase A: ImplementersAgent ツヌルで䞊列起動 # depends_on のトポロゞカル゜ヌト順に、グルヌプごずに䞊列実行 Agent(subagent_type: "general-purpose", prompt: "Contract CON-xxx を実装...") Agent(subagent_type: "general-purpose", prompt: "Contract CON-yyy を実装...") # → 各 Contract の RED→GREENbusiness_rules は TDD # Phase B: Integratorメむン゚ヌゞェント自身 # → app entry 結線 + 党テスト䞀括実行 # Phase C: RefactorerAgent ツヌル、コンテキスト非共有 Agent(subagent_type: "general-purpose", prompt: "構造リファクタリング...") # → 重耇排陀、共通化、呜名統䞀 # /simplify 実行 Skill("simplify") # → [承認] ``` **pipeline-state の stage_3_implement を曎新**: ```yaml stage_3_implement: status: completed | partial | failed implementers: total_contracts: N completed: N blocked: [] integrator: test_results: { pass: N, fail: N } circular_imports: N duplicate_code_warnings: N plan_approval: accepted # 実装蚈画承認 final_approval: accepted # 実装完了承認 ``` ### Step 9: Code Review GateContract↔実装の乖離怜出— 必須 **重芁**: テスト GREEN チェックStep 8は「動䜜の正しさ」を確認するだけ。 Code Review Gate は「Contract の宣蚀がコヌドに反映されおいるか宣蚀の䞀臎」+「コヌド品質」を怜蚌する。 テストが GREEN でも、バリデヌションスキヌマに制玄が欠萜しおいればここで怜出される。 **テスト GREEN だけで Code Review Gate をスキップしおはならない。** 4 ぀の Agent を**䞊列**起動: ``` Agent(subagent_type: "general-purpose", prompt: "{code-reviewer.md の Agent 1: Schema Compliance Checker プロンプト}") Agent(subagent_type: "general-purpose", prompt: "{code-reviewer.md の Agent 2: Route & Handler Checker プロンプト}") Agent(subagent_type: "general-purpose", prompt: "{code-reviewer.md の Agent 3: Business Logic Checker プロンプト}") Agent(subagent_type: "general-purpose", prompt: "{code-reviewer.md の Agent 4: Code Quality Checker プロンプト}") ``` **入力**: Contract YAML + ゜ヌスコヌドsrc/, app/, routes/+ バリデヌションスキヌマ + tests/ui/screen Contract がある堎合+ config.yaml + core/defaults/ + review-criteria.md **Gate 刀定**: Step 3 ず同じプロトコル - PASS → pipeline-state.yaml の `code_review_gate` を曎新しお Stage 4 ぞ - REVISE → ナヌザヌに乖離リストを提瀺、修正埌に再実行 **pipeline-state.yaml 曎新䟋Code Review Gate PASS 時**: ```yaml code_review_gate: status: passed cycles: 1 final_counts: { p0: 0, p1: 0, p2: 2 } code_review_items: [] notes: "Schema/Route/Business/Quality 4-agent 怜蚌完了" ``` ### Step 10: Stage 4 — Doc Generation 実行 `core/generate-docs.md` の 5 ステップワヌクフロヌを実行する。 1. プロゞェクト分析 2. 自動抜出フェヌズグルヌプ A → B 3. 補足入力フェヌズグルヌプ C 4. トレヌサビリティ怜蚌 5. レビュヌ + サマリヌ ### Step 11: Doc Review Gate 3 ぀の Agent を**䞊列**起動: ``` Agent(subagent_type: "general-purpose", prompt: "{doc-reviewer.md の Agent 1 プロンプト}") Agent(subagent_type: "general-purpose", prompt: "{doc-reviewer.md の Agent 2 プロンプト}") Agent(subagent_type: "general-purpose", prompt: "{doc-reviewer.md の Agent 3 プロンプト}") ``` **入力**: docs/ ファむルリスト + .blueprint/ + ゜ヌスコヌド + review-criteria.md **Gate 刀定**: Step 3 ず同じプロトコル ### Step 12: 最終サマリヌ出力 ``` ## パむプラむン完了 ### ステヌゞ結果 | ステヌゞ | 結果 | 成果物 | |---------|------|--------| | Stage 0: Requirements | {PASS|skipped} | user-stories.md | | Stage 1: Spec | {PASS|skipped} | N Contracts | | Stage 2: Test Gen | {PASS|skipped} | X Level 1 + Y Level 2 (+ Z UI テスト) | | Stage 3: Impl | completed | 党テスト GREEN | | Stage 4: Doc Gen | {PASS|skipped} | Z ファむル | ### Review Gate サマリヌ | Gate | P0 | P1 | P2 | 刀定 | サむクル | |------|----|----|----|----- |---------| | Requirements | 0 | N | N | PASS | 1 | | Contract | 0 | 0 | N | PASS | 1 | | Test | 0 | N | N | PASS | 1 | | Code | 0 | N | N | PASS | 1 | | Doc | 0 | N | N | PASS | 1 | ### P2 芁察応リスト - [察象] 問題の説明 ### 次のステップ - P2 芁察応リストの項目を手動で修正 - 蚭蚈曞を git commit ``` パむプラむン状態を `completed` に曎新: ```yaml # Write(".blueprint/pipeline-state.yaml") — 既存の内容を曎新 completed_at: "{now()}" final_status: completed # 各 stages ず review gate の status はそれぞれの完了時に曎新枈み ``` ## 原則 | 原則 | 説明 | |------|------| | Contract が唯䞀の真実源 | テストも蚭蚈曞も Contract から導出される | | Review Swarm で品質担保 | 各ステヌゞ埌に 3 䞊列レビュヌで倚角的に怜蚌 | | Smart Skip で効率化 | 既存成果物を怜出しお䞍芁なステヌゞをスキップ | | 状態氞続化 | .blueprint/pipeline-state.yaml でパむプラむン進捗を保持 | | 段階的品質向䞊 | REVISE サむクルで findings を修正し品質を䞊げる | ## ゚ラヌハンドリング | ゚ラヌ | 察応 | |--------|------| | `.blueprint/` なし + `/blueprint` | Stage 1 から開始正垞フロヌ | | `--resume` で .blueprint/pipeline-state.yaml なし | `/blueprint` で最初から実行するよう案内 | | Review Gate で REVISE 3 回超過 | findings リストを提瀺しおナヌザヌに介入芁請 | | テストフレヌムワヌク未怜出 | ナヌザヌに確認デフォルト: Vitest | | Stage 途䞭で゚ラヌ | 成功分は保持、.blueprint/pipeline-state.yaml に珟圚のステヌゞを蚘録しお停止 | | テスト実行倱敗--resume 時 | ナヌザヌに譊告し、続行するか確認 |
View on GitHub