원클릭으로
maestro-blueprint
// Generate formal specification package (Product Brief, PRD, Architecture, Epics) through 6-phase document chain
// Generate formal specification package (Product Brief, PRD, Architecture, Epics) through 6-phase document chain
| name | maestro-blueprint |
| description | Generate formal specification package (Product Brief, PRD, Architecture, Epics) through 6-phase document chain |
| argument-hint | <idea or @file> [-y] [-c] [--from <source>] |
| allowed-tools | ["ask_question","define_subagent","grep_search","invoke_subagent","manage_subagents","replace_file_content","run_command","send_message","view_file","write_to_file"] |
Parallel to brainstorm as an upstream origin command:
Output: .workflow/blueprint/BLP-{slug}-{date}/ containing Product Brief, PRD, Architecture, and Epics.
Pipeline position: downstream of maestro-brainstorm (optional). Upstream of maestro-analyze, maestro-roadmap, and maestro-plan.
<required_reading> @~/.maestro/workflows/blueprint.md </required_reading>
<deferred_reading>
Flags:
| Flag | Effect | Default |
|---|---|---|
-y / --yes | Auto mode — skip interactive questions, use recommended defaults | false |
-c / --continue | Resume from last checkpoint (reads blueprint-config.json) | false |
--from <source> | Load upstream context package (brainstorm:ID, @file, or path). Consumes context-package.json | — |
--from-brainstorm SESSION-ID | Backward compat alias for --from brainstorm:ID | — |
Input types:
"Build a real-time collaboration platform with WebSocket"@requirements.md--from brainstorm:BRN-001 or --from @requirements.md or --from path/-c (resumes from first incomplete phase)Pipeline position:
maestro-brainstorm (optional upstream)
↓ guidance-specification.md / context-package.json
maestro-blueprint
↓ .workflow/blueprint/BLP-{slug}-{date}/
maestro-analyze → maestro-roadmap → maestro-plan
Output boundary: ALL file writes MUST target .workflow/blueprint/BLP-{slug}-{date}/ or .workflow/state.json only. NEVER modify source code or files outside these paths.
maestro spec load --category arch — load architecture constraints for Phase 4 decisionsmaestro wiki search "{topic keywords}" --json → prior knowledge context<interview_protocol> Follows @~/.maestro/workflows/interview-mechanics.md standard.
Interaction mode: convergent menu-driven, depth-first Decision tree (strict depth-first): scope (full product / feature set / single feature) → spec type (service / api / library / platform) → focus areas → whether to run codebase exploration → requirement priorities Scope guard: only specification shape; do not pre-resolve roadmap phases or plan tasks Writeback target: blueprint-config.json (each decision persisted before next question) Additional skip conditions: none beyond standard (-y, -c) Exit condition: all decision points settled → finalize blueprint-config.json, proceed to Phase 1 </interview_protocol>
Follow `~/.maestro/workflows/blueprint.md` completely.P0: Spec Study → P1: Discovery → P1.5: Req Expansion → P2: Product Brief → P3: PRD → P4: Architecture → P5: Epics → P6: Readiness Check
P6 gate: Pass (>=80%) → Handoff | Review (60-79%) → Handoff w/caveats | Fail (<60%) → P6.5 Auto-Fix (max 2 iter) → re-check
### Standalone report=== BLUEPRINT READY ===
Session: BLP-{slug}-{date}
Phases completed: P0–P6
Readiness score: {score}%
Gate verdict: {Pass|Review|Fail}
Output: .workflow/blueprint/BLP-{slug}-{date}/
Key artifacts: product-brief.md, requirements/, architecture/, epics/, readiness-report.md
===
End the step by calling the CLI (no text block output):
maestro ralph complete <idx> --status {STATUS} [--evidence {path}]
Status verdicts:
--concerns--reason| Condition | Suggestion |
|---|---|
| Need codebase analysis | /maestro-analyze {topic} --from blueprint:BLP-xxx |
| Ready for roadmap | /maestro-roadmap --from blueprint:BLP-xxx |
| Small scope, direct plan | /maestro-plan --from blueprint:BLP-xxx |
| Need project setup | /maestro-init |
<error_codes>
| Code | Severity | Condition | Recovery |
|---|---|---|---|
| E001 | error | Idea text or @file required | Prompt user for input |
| E002 | error | Context source not found (--from) | Show available sessions/sources |
| E006 | error | .workflow/ not initialized | Run maestro-init first |
| E007 | error | Phase 6 readiness Fail after 2 auto-fix iterations | Present manual fix options |
| W001 | warning | CLI analysis failed, using fallback | Continue with available data |
| W002 | warning | Codebase exploration failed | Continue without codebase context |
| W003 | warning | Glossary has < 5 terms | Note in readiness check |
| W004 | warning | Review-level readiness score (60-79%) | Proceed with caveats |
| W005 | warning | External research agent failed | Continue without apiResearchContext |
| </error_codes> |
<success_criteria>
blueprint-config.json created with session metadata and phase trackingproduct-brief.md with vision, goals, scope, multi-perspective synthesisglossary.json with 5+ core terms for cross-document consistencyrequirements/ directory with _index.md + individual REQ-*.md + NFR-*.md filesarchitecture/ directory with _index.md + individual ADR-*.md filesepics/ directory with _index.md + individual EPIC-*.md filesreadiness-report.md with 4-dimension quality scores and traceability matrixblueprint-summary.md with one-page executive summary<on_complete> @~/.maestro/workflows/finish-work.md — SESSION_DIR={session_dir}, SESSION_TYPE=blueprint, SESSION_ID={session_id}, LINKED_MILESTONE=null </on_complete>
Use when a topic needs structured multi-dimensional investigation before planning or decision-making
Use when exploring ideas, evaluating approaches, or needing multi-perspective analysis before implementation
Use when a confirmed plan is ready for implementation
Use when stress-testing a plan, idea, or requirement against codebase reality before brainstorming
Initialize project with auto state detection
Audit current milestone for cross-phase integration gaps