Use for /spwnr:task. Reuse the planning gate, require explicit execution approval, then route approved general-task work into team or pipeline execution.
Use this skill for non-trivial general work that benefits from a controller plus routed execution skills.
This skill owns the routing behavior for /spwnr:task.
Use workflow-foundation as the shared source of truth for the planning gate, plan artifact conventions, execution task contract, risk-gated approvals, worker readiness required pattern, approach comparison, and sensible defaults.
Use worker-audit only when the user explicitly needs a deeper registry readiness audit or the normal registry lookup path fails.
Use workflow-task-with-team when the approved plan selects team.
Use workflow-task-with-pipeline when the approved plan selects pipeline.
Skill, AskUserQuestion, TodoWrite, Read, Write, and Edit for the planning gate and plan maintenance.TaskCreate, TaskGet, TaskList, and TaskUpdate only after the current run explicitly approves execution and the routed execution skill has taken over.spwnr resolve-workers --search "<keyword>" --host claude_code --format json, plus repeatable --unit "<unit-id>::<brief>" queries for per-unit coverage when the plan has multiple execution units.TeamCreate, SendMessage, and TeamDelete only when the routed execution skill requires Claude team features.workflow-foundation before any delegation./spwnr:plan.Execution Units visible in TodoWrite.Execute current plan, stay in the execution review loop instead of delegating.Before any TaskCreate:
Execution Units, Environment And Preconditions, Execution Strategy Recommendation, Agent Capability Requirements, and Failure And Escalation Rules.Execution Strategy Recommendation instead of inventing them at execution time.pipeline, validate that the pattern name, ordered stages, and stage handoffs are present.team, validate whether the plan expects one shared queue or multiple pipelines launched in parallel.team mode, default the task graph toward parallel tasks with disjoint Files: ownership. If the plan needs shared-file collaboration, validate that the exception is explicit and that the plan defines worktree isolation or one concrete owner for that file.team is required but CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 is unavailable, stop and say so explicitly instead of silently downgrading.Approved Execution Spec to the active revision with Edit, including the selected mode, routing target, normalized registry lookup brief, and per-unit coverage summary.workflow-task-with-pipeline when the approved mode is pipeline.workflow-task-with-team when the approved mode is team.pipeline must remain available without Claude team features.team may launch multiple bounded pipelines in parallel when the approved plan says so.team should not default to multiple parallel tasks editing the same file unless the approved plan explicitly marks that as an exception.team plan into pipeline when team prerequisites fail.Every subagent invoked in team mode must follow these two non-negotiable contracts. Include both contracts verbatim in every agent brief alongside the Failure Recovery Contract.
All progress of work must be synced with the team lead via SendMessage:
Every sync message must include these fields: unit, step, status (one of in_progress, step_done, complete, or blocked), summary, and next_step. When status is complete or blocked, set next_step to none; when status is in_progress or step_done, next_step must name the upcoming step.
All work done must be stored locally before proceeding to the next step:
report_progress to commit and persist completed changes.report_progress fails, treat it as a blocking incident: stop all work, report the failure to the team lead via SendMessage with status: blocked, and do not continue until the team lead explicitly sends a recovery signal (such as resume or retry) confirming that local storage is stable.Every selected agent brief must include the Team Mode Subagent Obligations above and this failure contract:
TaskUpdate to mark the task blocked and explain whySendMessage to the lead with failed tool, reason, attempted fallback, impact, and recommended next step when the routed execution path is using a Claude teamWhen the run is pipeline, the controller must follow the same incident standard in the user-facing response and task updates.
If /spwnr:task cannot form a usable lineup, stop with these sections:
Plan ArtifactReadiness GapMissing CapabilitiesRecovery StepsNext StepThe recovery steps must list the missing capabilities or packages, tell the user to run /spwnr:workers, tell them to install or inject the missing agents, and say that execution should resume from the same active revision after readiness is restored.
Execute current plan./spwnr:task.team mode, every subagent must satisfy both the Progress Sync Contract and the Local Storage Contract before proceeding to the next step; skipping either contract is not permitted.