From maestro
Generates detailed phased implementation plans from approved designs, with codebase grounding via grep/glob and investigator queries for agent assignments.
npx claudepluginhub josstei/maestro-orchestrate --plugin maestroThis skill uses the workspace's default tool permissions.
**Standard workflow only.** If `task_complexity` is `simple` and workflow mode is Express, do not activate this skill. Simple tasks use the Express workflow, which does not activate implementation-planning. Return to the Express Workflow section.
Orchestrates multi-phase implementation from plan documents using sub-agents with auto-detected parallel/sequential strategies based on dependencies.
Generates implementation plans from completed designs with file paths, code examples, tests, verification steps for engineers lacking codebase context.
Share bugs, ideas, or general feedback.
Standard workflow only. If task_complexity is simple and workflow mode is Express, do not activate this skill. Simple tasks use the Express workflow, which does not activate implementation-planning. Return to the Express Workflow section.
Activate this skill during Phase 2 of Maestro orchestration, after the design document has been approved. This skill provides the methodology for generating detailed, actionable implementation plans that map directly to subagent assignments.
Do not generate an implementation plan from guesses about the repository.
Use the built-in Agent (Explore) / Grep / Glob before phase decomposition when:
Ask the investigator for:
Skip the investigator only for greenfield tasks, documentation-only work, or plans where the current turn already established the relevant repo structure from direct reads.
Reuse investigator findings directly in the implementation plan:
Before generating the plan, thoroughly analyze the approved design document for:
task_complexity from the approved design document's frontmatter. Apply phase count guidance and domain analysis scaling accordingly. Record task_complexity in implementation plan frontmatter.Break the implementation into phases following these principles:
Layer 1: Foundation (types, interfaces, configuration)
|
Layer 2: Core Domain (business logic, data models)
|
Layer 3: Infrastructure (database, external services, API layer)
|
Layer 4: Integration (connecting components, middleware)
|
Layer 5: Quality (testing, security review, performance)
|
Layer 6: Documentation & Polish
Before finalizing agent assignments, verify each phase's agent can deliver its requirements:
| Phase Deliverable | Required Tier | Compatible Agents |
|---|---|---|
| Creates/modifies files | Full Access or Read+Write | coder, data-engineer, devops-engineer, tester, refactor, design-system-engineer, i18n-specialist, analytics-engineer, technical-writer, product-manager, ux-designer, copywriter |
| Runs shell commands | Full Access or Read+Shell | coder, data-engineer, devops-engineer, tester, refactor, design-system-engineer, i18n-specialist, analytics-engineer, debugger, performance-engineer, security-engineer, seo-specialist, accessibility-specialist |
| Analysis/review only | Any tier | All agents |
Scale decomposition granularity to task_complexity (read from design document frontmatter):
Phases can run in parallel when:
Mark parallel-eligible phases with parallel: true and group them into execution batches.
Each phase in the plan must include:
A clear, measurable statement of what this phase delivers.
Which agent(s) execute this phase, with rationale for selection.
For each new file:
For each existing file:
Provide sufficient detail for the assigned agent to execute without ambiguity:
Specific commands to run and expected outcomes:
blocked_by: Phase IDs that must complete before this phase startsblocks: Phase IDs that cannot start until this phase completesList only direct blockers in blocked_by. Do not include transitive dependencies — they inflate dependency depth and prevent parallelism.
Anti-pattern (over-specified):
Result: depths 0, 1, 2, 3 — zero parallel phases.
Correct (minimized):
Result: depths 0, 1, 2 — Phases 2 and 3 run in parallel at depth 1.
Ask for each dependency: "Does this phase truly need the output of that specific phase, or is it transitively covered?"
If validate_plan is available, review its parallelization_profile and redundant_dependency warnings before presenting the plan. Revise blocked_by to eliminate redundancies when possible.
| Task Domain | Primary Agent | Secondary Agent | Rationale |
|---|---|---|---|
| System design, architecture | architect | - | Read-only analysis, design expertise |
| API contracts, endpoints | api-designer | coder | Design then implement |
| Feature implementation | coder | - | Full implementation access |
| Code quality review | code-reviewer | - | Read-only verification |
| Database schema, queries | data-engineer | - | Schema + implementation |
| Bug investigation | debugger | - | Read + shell for investigation |
| CI/CD, infrastructure | devops-engineer | - | Full DevOps access |
| Performance analysis | performance-engineer | - | Read + shell for profiling |
| Code restructuring | refactor | - | Write + shell access (for validation) |
| Security assessment | security-engineer | - | Read + shell for scanning |
| Test creation | tester | - | Full test implementation |
| Documentation | technical-writer | - | Write access for docs |
| Technical SEO audit | seo-specialist | - | Read + shell + web search |
| Marketing copy, content | copywriter | - | Read/write |
| Content planning | content-strategist | - | Read + web search/fetch |
| UX design, user flows | ux-designer | - | Read/write + web search |
| WCAG compliance audit | accessibility-specialist | - | Read + shell + web search |
| Requirements, product | product-manager | - | Read/write + web search |
| Tracking, analytics | analytics-engineer | coder | Implement then instrument |
| Internationalization | i18n-specialist | coder | Implement then localize |
| Design tokens, theming | design-system-engineer | coder | Tokens then consume |
| Legal, regulatory | compliance-reviewer | - | Read + web search/fetch |
max_turns limitEstimate token consumption per phase based on:
Phase Cost = (input_tokens × input_rate + output_tokens × output_rate) × retry_multiplier
Where:
input_tokens = files_to_read × 500 + context_tokensoutput_tokens = files_to_write × 200 + validation_outputretry_multiplier = 1.5 (accounts for up to 2 retries)Include this table in every implementation plan:
| Phase | Agent | Model | Est. Input | Est. Output | Est. Cost |
|---|---|---|---|---|---|
| 1 | [agent] | [model] | [tokens] | [tokens] | [$X.XX] |
| ... | ... | ... | ... | ... | ... |
| Total | [sum] | [sum] | [$X.XX] |
Write the implementation plan directly to the project's plans directory:
docs/maestro/plans/YYYY-MM-DD-<topic-slug>-impl-plan.md
The path resolves from MAESTRO_STATE_DIR (default: docs/maestro). If Plan Mode is active, call ExitPlanMode with the plan path after approval. Unlike Gemini CLI (which uses a temporary staging directory), Claude Code writes directly to the final location.
Use the implementation plan template from templates/implementation-plan.md.
Execution Profile:
- Total phases: [N]
- Parallelizable phases: [M] (in [B] batches)
- Sequential-only phases: [S]
- Estimated parallel wall time: [time estimate based on batch execution]
- Estimated sequential wall time: [time estimate based on serial execution]
Note: Native parallel execution currently runs agents in autonomous mode.
All tool calls are auto-approved without user confirmation.
The implementation plan is complete when:
Before presenting the plan for approval, check whether validate_plan appears in your available tools. If it does, call it with the plan structure and task_complexity to verify phase count constraints, file ownership, acyclic dependencies, and agent validity. If it does not, self-check against the phase count limits above.
After writing the implementation plan:
ExitPlanMode with plan_path set to the tmp-directory path (docs/maestro/plans/...) to present the plan for user approvaldocs/maestro/plans/YYYY-MM-DD-<slug>-impl-plan.md as a permanent project reference