spwnr-plan
Use for /spwnr-plan. Produce an orchestration-ready plan for non-trivial general tasks, then hand off into execution only after an explicit AskUserQuestion execute choice.
Spwnr Plan
Use this skill when the user wants a scoped plan before substantial work begins. This skill owns the full planning behavior for /spwnr-plan.
Use spwnr-principle as the shared source of truth for context inspection, plan artifact convention, execution strategy recommendation, execution unit schema, execution review loop, worker readiness required pattern, option-based clarification, and approach comparison. Keep planning-specific behavior here; do not duplicate shared controller rules.
Planning Tool Protocol
- Use
Skillto loadspwnr-principleandspwnr-plan. - Use
Readbefore asking for clarification. - Use
TodoWriteto keep readiness fields, blockers, and the latest active revision visible. - Use
WriteorEditto persist the plan artifact; do not leave the durable plan only in chat state. - Use
AskUserQuestionfor material decisions and the execution review loop. - You MAY derive planning-only experts with
Agentonly after a draft plan is visible.
<HARD-GATE>
- Do NOT create any task.
- Do NOT create any team.
- Do NOT enter any worktree.
- Do NOT create execution agents, call
SendMessage, or implement the final deliverable. - You MAY derive planning-only experts with
Agentonly for sequentialresearch,draft, andreviewpasses.
Planning Standard
- The plan must be execution-grade rather than outline-grade.
- Require concrete inputs, outputs, ownership, dependencies, acceptance checks, and escalation for risky work.
- State explicit non-goals, boundaries, defaults, and why the selected execution strategy fits the task shape.
- Reject thin plans that restate the request, use vague verbs like
analyzeorimprove, hide sequencing behindas needed, or bundle materially distinct actions only to stay short. - At least one rejected approach must be rejected for a concrete operational reason.
- The active revision must be detailed enough for a fresh worker to act without rereading the full thread.
Planning Checklist
- Restate the task in 1 to 2 sentences and inspect relevant context with
Read. - Normalize the request into one coherent plan or a small set of independent efforts.
- Compare 2 to 3 plausible approaches, recommend one, and record the tradeoff.
- Capture readiness fields in
TodoWriteand open or create the latest active revision. - Draft the plan now instead of waiting for every open decision.
- Use
AskUserQuestiononly when unresolved details still change decomposition, sequencing, acceptance criteria, or execution topology. - Run the planning expert loop and fold the result back into the active revision.
- If any required planning role lacks viable registry-backed coverage, stop with
Worker Readiness Requiredand preserve the same latest active revision. - Run a densification pass before finalizing.
- Self-review the plan for contradictions, placeholders, vague sequencing, and weak handoff quality.
Complexity Scaling
- For medium tasks, produce at least 3 to 5 execution units.
- For large tasks, produce at least 6 to 10 execution units with explicit dependency structure.
- For ambiguous or high-risk tasks, expand risk handling, approval gates, and fallback logic before expanding execution count.
Plan Readiness Gate
Before the plan is ready, it must lock the goal, success criteria, scope boundaries, non-goals, constraints, open risks, plan artifact path, executable Execution Units, environment and preconditions, execution strategy recommendation, execution pattern shape, agent capability requirements, failure and escalation rules, risky units that require teammate approval, and file ownership boundaries for multi-agent work.
Execution Strategy Recommendation must choose pipeline or team, explain why, and describe the execution pattern shape. pipeline plans must persist the ordered stage pattern. team plans must say whether Claude team mode should launch multiple pipelines in parallel or stick to one shared queue.
When team is selected, default the plan toward units that do not edit the same file in parallel. If shared-file collaboration is truly required, record that as an exception and state the isolation or serialization strategy explicitly.
A plan is not ready unless each Execution Unit passes the Handoff Test: a fresh worker can execute it from the active revision, acceptance checks are local and objective, ownership is clear, and stop conditions plus escalation triggers are explicit.
Plan Artifact Protocol
Apply the Plan Artifact Convention from spwnr-principle for path, revision lifecycle, Revision Status, Superseded By, and the latest active revision rules.
The plan artifact must contain these sections in order:
MetadataUser RequestLocked Readiness FieldsApproach AnalysisDetailed PlanExpert Planning RoundDecisions NeededPlan Review LoopPending Handoff NotesLocked Readiness Fieldsmust capture assumptions, blockers, approval condition, active revision path, and defaults that materially affect execution.Approach Analysismust persist the execution-relevant comparison only, but do not skip rejected alternatives.Detailed Planmust includeMission Layer,Execution Architecture,Environment And Preconditions,Execution Strategy Recommendation,Agent Capability Requirements,Execution Units, andFailure And Escalation Rules.Mission Layermust state goal, success criteria, in-scope items, out-of-scope items, explicit non-goals, and constraints.Execution Architecturemust state dependency structure, ownership model, approval boundaries, parallel safety assumptions, and serialization points if any.Execution Strategy Recommendationmust record the selected mode, rationale, and pattern shape. Whenpipelineis selected, includepattern name, orderedstages, and per-stage role handoff details. Whenteamis selected, include whether the team should start multiple pipelines in parallel. Whenteamis selected, also state whether parallel units have disjoint file ownership by default, or whether a shared-file exception is intentionally required.Expert Planning Roundmust includeRetrieval Briefs,Selected Templates,Expert Role Mapping,Research Summary,Draft Plan Deltas,Review Findings, andController Synthesis.Controller Synthesismust show what changed in the plan because of each pass.Decisions Neededshould preserve only unresolved decisions or explicitly locked defaults; resolved decisions should move intoLocked Readiness FieldsorDetailed Plan.Plan Review Loopmust record the latest execution confirmation state, user feedback summary, and revision summary. Do not recreate the oldneeds-confirmationorapproved-plan-readystate machine in the plan file.Pending Handoff Notesshould contain only execution-relevant reminders, not internal planning transcript. EachExecution Unitmust include the full schema fromspwnr-principle, includingrisk level,file ownership hints,worker plan approval, and a pipeline pattern reference or override. Render each execution-unit field as a one-line bullet marker. Prefer- **unit_id**: unit-1; compatible variants like- **unit_id:** unit-1are acceptable, but do not hideunit_idinside tables or narrative paragraphs. EachExecution Unitmust stay lightweight but executable: use concise operational language, prefer artifact-producing steps over generic verbs, keep acceptance checks objective and local, keep ownership, dependencies, and escalation explicit, and do not add extra fields unless they reduce ambiguity. The persisted artifact keeps the full execution-unit schema for compatibility. You may present a more concise rendering in chat, but the durable plan on disk must remain execution-safe and machine-checkable.
Approach Analysis Standard
Approach Analysis must compare 2 to 3 plausible approaches across decomposition quality, execution coordination cost, parallelism potential, rollback complexity, expected review burden, risk of hidden coupling, and suitability for pipeline vs team execution.
Do not recommend an approach unless at least one rejected approach is rejected for a concrete operational reason.
The recommended approach must explain why it reduces coordination or review burden, why it is safer or faster in this specific task shape, and what tradeoff is accepted.
Planning Expert Loop
- Generate one retrieval brief for each role:
research,draft, andreview. - Preview registry candidates for each role with
spwnr resolve-workers --search "<brief>" --host claude_code --format json. - Select one viable template per role and keep role assignments distinct.
- Derive planning-only experts with
Agentagainst the active revision instead of raw thread context. - Require each expert pass to produce explicit deltas to the active revision, not just commentary.
- Synthesize their outputs back into
Detailed PlanandExpert Planning Round. - If distinct role coverage fails, stop with the
Worker Readiness Requiredpattern fromspwnr-principle. Each expert pass must contribute as follows:researchadds missing constraints, dependencies, assumptions, or risk signals;draftrewrites thin sections and weak units into executable units;reviewflags ambiguity, hidden coupling, missing approvals, sequencing gaps, or weak acceptance checks.
Densification Pass
After drafting the first complete plan, identify the 3 weakest or most abstract sections, rewrite them to increase operational specificity, split any execution unit that combines multiple materially different actions, replace vague verbs with artifact-producing actions, ensure acceptance checks are objective and local, and verify that ownership and escalation remain clear after the rewrite.
Decisions Needed Standard
Use AskUserQuestion during planning when an unresolved decision materially changes decomposition, sequencing, acceptance criteria, or execution topology.
Do not leave stale options in Decisions Needed after the user has already answered or the controller has locked a default assumption.
Execution Review Loop
Apply the Execution Review Loop from spwnr-principle after every write or revision.
- Update
Plan Review Loopwith execution confirmation time, user feedback summary, and revision summary. Continue improving planrevises the same latest active revision unless the request becomes a material re-plan.- A material re-plan creates the next revision and supersedes the older revision.
- Do not recreate the old
needs-confirmationorapproved-plan-readystate machine in the plan file. Execute current planis the only handoff signal into execution.
Capability Guidance
Recommend capability requirements by execution unit. For each unit, name the primary capability, any optional supporting trait, and why that capability is the best fit. When pipeline is selected, also recommend capability requirements by stage. Keep recommendations generic in /spwnr-plan; concrete runtime lineup selection belongs to approved /spwnr-task execution.
Response Shape
Persist the full artifact on disk with all required sections in the plan artifact protocol. Default user-facing response shape:
Plan ArtifactDetailed PlanNext StepIf the user explicitly asks to inspect planning internals, you may also exposeLocked Readiness Fields,Approach Analysis,Expert Planning Round,Decisions Needed, orPlan Review Loop.
Final Planning Rule
Do not present a plan that is merely formatted correctly. Present a plan only when it is dense enough to be handed to a fresh worker with minimal additional interpretation.