con un clic
con un clic
Use 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 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
| name | maestro-execute |
| description | Use when a confirmed plan is ready for implementation |
Invoked after /maestro-plan produces a confirmed plan. When called without args on a milestone, finds all pending plans and executes them sequentially.
Pipeline position: upstream from maestro-plan (consumes confirmed plan), downstream to maestro-verify.
<required_reading> @~/.maestro/workflows/execute.md </required_reading>
<deferred_reading>
| Flag | Effect | Default |
|---|---|---|
--auto-commit | Auto-commit after each completed task | false |
--method agent|cli|auto | Execution method: Agent tool, CLI delegate, or auto-select | auto |
--executor <tool> | Explicit executor tool for CLI delegate mode | First enabled in config |
--dir <path> | Execute a specific plan directory instead of auto-discovery | — |
-y / --yes | Auto mode — skip interactive questions | false |
| Input | Scope | Resolution |
|---|---|---|
| numeric arg | phase | Resolve plan from roadmap phase |
--dir <path> | explicit | Use specified plan directory |
| no args + milestone | milestone | Find all pending plans, execute sequentially |
| no args + no milestone | error E001 | No plan found |
Full resolution logic, output directory format, artifact registration schema, and incremental knowhow extraction are defined in workflow execute.md.
.workflow/codebase/doc-index.json exists, read ARCHITECTURE.md for module boundaries. Pass as shared context to executor agents.maestro wiki search "<phase keywords>" --json 2>/dev/null. If results found, extract top 5 entries as prior knowledge context for agents.maestro spec load --category coding to load coding conventions AND discoverable knowhow tools (tool: true entries). Pass as specs context to all executor agents.src/components/, src/pages/, src/styles/, src/ui/), also run maestro spec load --category ui and include in agent context.maestro wiki list --category coding → select relevant → maestro wiki load
Before any task execution, run:
run_command("maestro collab preflight --phase <phase-number>")
If exit code is 1, present warnings and ask whether to proceed.
Follow '~/.maestro/workflows/execute.md' completely.
After each task completion, check triggers:
| Condition | Ask | Route |
|---|---|---|
| Summary mentions approach change / plan deviation | "Record as arch constraint?" | spec-add arch |
| retry_count >= 2 | "Document fix pattern?" | spec-add debug |
| Summary contains design rationale ("chose X because") | "Record as knowhow?" | spec-add learning |
On confirm → Skill("spec-add", "<category> <content>").
On each task completion, if task.issue_id exists, sync status back to the issue in .workflow/issues/issues.jsonl:
For each completed/failed TASK with issue_id:
Read issue from issues.jsonl by issue_id
Collect all task_refs[] statuses for that issue:
all task_refs completed → issue.status = "resolved"
any task_ref failed → issue.status = "in_progress"
Append history entry: { action: "executed", at: <ISO>, by: "maestro-execute", summary: "TASK-{NNN} {status}" }
Write updated issue back to issues.jsonl
### Standalone report
=== EXECUTION COMPLETE ===
Plans executed: {plans_count}
Completed: {completed_count}/{total_count} tasks
Failed: {failed_count} tasks
Summaries: {plan_dir}/.summaries/
Tasks: {plan_dir}/.task/
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 |
|---|---|
| All tasks completed successfully | /maestro-verify |
| Specific plan needs verification | /maestro-verify --dir {dir} |
| Failed tasks exist | /quality-debug |
| View project dashboard | /manage-status |
<error_codes>
| Code | Severity | Condition | Recovery |
|---|---|---|---|
| E001 | error | No pending plans found | Verify plans exist, run maestro-plan first |
| E002 | error | Plan directory not found | Check --dir path |
| E003 | error | plan.json not found in directory | Verify plan.json exists, run maestro-plan first |
| E004 | error | No pending tasks, all tasks already completed | Check task statuses, reset if needed |
| W001 | warning | Executor completed with partial failures | Check task dependencies, retry failed wave |
| </error_codes> |
<success_criteria>
.summaries/TASK-{NNN}-summary.md written for each completed task.task/TASK-{NNN}.json statuses updated (completed|blocked)