Install
$ agentstack add skill-reinamaccredy-maestro-maestro-3amission-planning ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Mission Planning
Maestro is the conductor. It persists the mission, keeps shared context on disk, and can launch a fresh Codex or Claude handoff with a self-contained markdown brief. This skill turns a raw idea into that plan plus the exact handoff command the operator should run next.
The input is $ARGUMENTS — a single sentence like "add a command palette to the TUI" or a rough paragraph describing a goal. The output is two concrete artifacts:
- A mission persisted under
.maestro/missions/{id}/viamaestro mission create --file plan.json - The exact
maestro handoff ...command for the first external agent
Do not auto-launch the handoff in this skill. Planning stops once the mission exists and the launch command is drafted. Skip any step and the downstream agent either drifts off-scope or halts asking for clarification.
The 5-step workflow at a glance
- Brainstorm opening — clarify intent before structure
- Decompose into milestones and features — 3-7 milestones, sprint-sized
- Match agent types — codex-cli, claude-code, subagent, human
- Capture constraints — what not to touch, and why
- Persist mission and draft the first handoff command
Step 1 — Brainstorm opening
Trigger: $ARGUMENTS contains a raw idea or problem statement. No structure yet.
Action:
- Restate the idea in one sentence and read it back to the user. If the user does not confirm, ask one clarifying question and wait.
- Ask "what does done look like?" The answer is the core goal you will carry into Step 2.
- Surface any obvious assumptions the idea rests on. Write them down even if they feel trivial — they become launch-readiness checks in Step 5.
- If the idea is genuinely ambiguous (two or more valid interpretations), stop and ask the user to pick one before proceeding. Do not guess.
Reference: none — this is a conversational step, not a structural one.
Output: one-sentence core goal, list of known assumptions, user confirmation.
Step 2 — Decompose into milestones and features
Trigger: you have a confirmed core goal from Step 1.
Action:
- Extract the core goal into a single sentence: "when this mission is done, X is true."
- Identify phases by asking "what has to happen before the next thing can happen?" Each answer is a milestone candidate.
- Break each phase into 1-5 features. Each feature is sprint-sized (30 minutes to 2 hours of focused work) and named as an outcome, not an implementation detail.
- Assign
dependsOnedges between features. Empty is fine; cycles are not. - Draft 2-5
verificationStepsper feature. Each step must be observable and repeatable. - Pick one milestone
profileper milestone from the allowed set:planning,plan-review,implementation,code-review,bug-hunt,simplify,validation,custom. Do not invent new profiles.
Reference: reference/decomposition.md
Output: a draft plan with 3-7 milestones, 1-5 features per milestone, dependencies, and verification steps. No agent types yet.
Step 3 — Match agent types
Trigger: you have a decomposed plan from Step 2.
Action:
- For each feature, pick an agent type from the allowed set:
codex-cli,claude-code,subagent,human. Do not invent new agent types. If the work genuinely requires an agent type outside the allowed set, invokemaestro:define-mission-skillsto register the new skill, then return here to assign it. - Apply the decision table in the reference file. Mechanical work goes to
codex-cli, ambiguous work goes toclaude-code, exploration goes tosubagent, trust calls go tohuman. - For any milestone with a
code-revieworplan-reviewprofile, confirm the reviewer agent type is a different instance than whatever produced the artifact being reviewed. Self-review is pathologically lenient. - Re-read each feature's agent-type choice and ask "would this agent actually succeed here?" If not, revise.
- Identify the first feature that should be launched through
maestro handoff. It must be assigned tocodex-cliorclaude-code. If your first execution feature issubagentorhuman, either re-scope the plan or choose the next feature that should run as a fresh external agent.
Reference: reference/agent-type-matching.md
Output: every feature has an agentType field. Review milestones use a different instance than the generator, and the first external agent candidate is identified.
Step 4 — Capture constraints
Trigger: every feature has an agent type assigned.
Action:
- For each feature, list the things an agent must not touch while executing it. Name specific files, APIs, patterns, or out-of-scope extensions.
- For each constraint, write the reason next to it. A constraint without a reason is unenforceable at edge cases.
- Store the reason somewhere the agent will later see it:
preconditions, feature description, or a concrete verification note. - Keep each feature to 1-4 real constraints. If a feature needs more than that, it is too large — go back to Step 2 and split it.
- Make sure the first external agent's feature has explicit constraints. Those become the
## Constraintssection of the eventual handoff brief.
Reference: reference/boundary-capture.md
Output: a concrete constraint list per feature, with reasons captured in preconditions, descriptions, or verification notes.
Step 5 — Persist mission and draft the first handoff command
Trigger: plan, agent types, and constraints are all in hand.
Action:
- Write the plan to a JSON file (typically
plans/.json). Include milestones, features, dependencies, verification steps, agent types, and constraints. - Run
maestro mission create --fileto persist the mission. Capture the returned mission id. - Run the readiness check. If the plan is still missing a launchable first agent, go back to Steps 2-4 instead of drafting a bad command.
- Map the first agent's
agentTypeto an agent flag:
codex-cli->--agent codexclaude-code->--agent claude
- Draft the exact handoff command. The task string must name the mission id, feature id or title, expected outcome, and the requirement to run the listed verification steps before stopping.
- Add
--worktreewhen the agent should operate in an isolated sibling checkout, especially for risky review or parallel implementation slices. - Return the mission id and the exact handoff command to the user. Do not run the command inside this skill.
Reference: reference/readiness-check.md, reference/handoff-command-cheatsheet.md
Output: a persisted mission under .maestro/missions/{id}/ and an exact maestro handoff ... command ready for the operator to launch.
Next step: once the mission is persisted, the human operator can approve the mission if needed and run the drafted handoff command. This skill ends at plan creation plus launch-command drafting; execution is separate.
Critical constraints
- Never skip the brainstorm opening (Step 1). Jumping straight into decomposition produces plans that solve the wrong problem cleanly.
- Never invent agent types or milestone profiles. The allowed sets are closed. If none fit, the work needs to be re-decomposed, not given a new category.
- Never draft the first handoff command for a
subagentorhumanfeature. Native handoff launching is only for fresh Codex or Claude runs. - Never auto-launch the handoff from this skill. The output is the exact command, not the running child process.
- The output of this skill is always a mission file plus the exact next
maestro handoff ...command. If either is missing, the skill has not completed.
Example output
Input: "Refactor the auth middleware so session validation and permission checking are separate."
After Steps 1-4, the plan is persisted:
maestro mission create --file plans/auth-split.json
# mission_id: mis_01h8k2f9
Then the next launch command is drafted:
maestro handoff \
"Implement feature auth-impl for mission mis_01h8k2f9. Split session validation from permission checks while preserving the existing middleware signature, keeping session-store changes out of scope, and running the listed verification steps before stopping." \
--agent codex
Mission persisted, launch command drafted. The operator can now run that command to start the first Codex agent with a persisted markdown handoff brief. The skill is done.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: ReinaMacCredy
- Source: ReinaMacCredy/maestro
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.