一键导入
一键导入
| name | maestro-init |
| description | Initialize project with auto state detection |
Pipeline position: entry point (no upstream). Downstream: maestro-roadmap or maestro-brainstorm.
<required_reading> @~/.maestro/workflows/init.md </required_reading>
<deferred_reading>
Flags:
| Flag | Effect | Default |
|---|---|---|
-y / --yes | Automatic mode. After config questions, runs research without further interaction. Expects idea document via @ reference. | false |
--from <source> | Load upstream context package (brainstorm:ID, @file, or path). Consumes context-package.json to pre-fill project vision, goals, constraints, and terminology. Skips interactive questioning. Alias: --from-brainstorm | — |
Load project state if exists:
Check for .workflow/state.json -- loads context if project already initialized.
<interview_protocol> Follows @~/.maestro/workflows/interview-mechanics.md standard.
Interaction mode: convergent menu-driven Decision tree (strict order): project type (greenfield / existing codebase onboarding) → tech stack detection and confirmation → directory structure preferences → initial configuration (specs categories, wiki bootstrap) Scope guard: only init decisions; do not prejudge roadmap structure or plan scope Writeback target: project.md (project description) + config.json (settings) + state.json (initial state) Additional skip conditions: --from source (upstream context pre-fills decisions) Exit condition: all configuration questions settled → proceed to workflow execution </interview_protocol>
### Pre-flight.workflow/ already exists — if so, load state and warn (E002 for greenfield conflicts)--from source is accessible if providedFollow '~/.maestro/workflows/init.md' completely.
### Standalone report=== WORKFLOW INITIALIZED ===
Project: {project_name}
State: .workflow/state.json (active)
Created:
.workflow/project.md
.workflow/state.json
.workflow/config.json
.workflow/specs/
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 |
|---|---|
| Roadmap needed (default light) | /maestro-roadmap <requirement> |
| Full spec package + roadmap | /maestro-roadmap --mode full <idea> |
| Explore ideas first | /maestro-brainstorm <topic> |
| View project dashboard | /manage-status |
| Quick ad-hoc task | /maestro-quick <task> |
<error_codes>
| Code | Severity | Condition | Recovery |
|---|---|---|---|
| E001 | error | No arguments provided when -y requires @ reference | Check arguments format, re-run with correct input |
| E002 | error | .workflow/ already exists for greenfield init | Check .workflow/ directory state, resolve conflicts |
| E003 | error | Context source not found (--from / --from-brainstorm) | Check arguments format, re-run with correct input |
| W001 | warning | Research agent failed, continuing with partial results | Retry research or proceed with partial results |
| </error_codes> |
<success_criteria>
.workflow/project.md created with Core Value, Requirements (Validated/Active/Out of Scope), Key Decisions.workflow/state.json created with artifacts[] array, initialized to idle state.workflow/config.json created with workflow / execution / git / gates / codebase / guard / collab / specInjection / dashboard segments.workflow/specs/ initialized with convention filesUse when a topic needs structured multi-dimensional investigation before planning or decision-making
Generate formal specification package (Product Brief, PRD, Architecture, Epics) through 6-phase document chain
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
Audit current milestone for cross-phase integration gaps