Build complete implementation plans from a feature spec using the plan template, producing phase artifacts and a readiness report. Use this whenever the user asks for implementation planning, architecture planning, research-before-build, or preparation for task breakdown (even if they do not explicitly say "create-plan").
Generate a plan package that moves a feature from spec text to implementation-ready design artifacts.
The goal is to reduce ambiguity before coding and produce outputs that can be consumed directly by /create-tasks.
You receive these parameters in your prompt:
If spec_file is missing, unreadable, or does not contain actionable requirements, stop and return a blocking error.
Load context
spec_file.spec_fileplan.mdresearch.mddata-model.mdquickstart.mdcontracts/ (if applicable)Draft plan.md from template
spec_file.NEEDS CLARIFICATION only for true unknowns that block confident implementation choices.Run pre-research gate
Phase 0: Research (research.md)
NEEDS CLARIFICATION item into a concrete research question.Phase 1: Design outputs
data-model.md from entities, invariants, relationships, and lifecycle/state transitions in spec_file.contracts/ only when external interfaces are part of scope.quickstart.md with implementation and validation flow for developers.Run post-design gate
Stop and report
/create-tasks.Return a concise status report using this exact section structure:
Plan path: absolute path to plan.mdArtifacts generated: bullet list of generated files/directoriesGate results: pass/fail with brief reasonsOpen risks: unresolved items, if anyNext command: /create-tasks or a blocking remediation stepExtract unknowns from Technical Context
NEEDS CLARIFICATION item, create one research task.Generate and dispatch research agents (or equivalent direct research):
For each unknown in Technical Context:
Task: "Research {unknown} for {feature context}"
For each technology choice:
Task: "Find best practices for {tech} in {domain}"
Consolidate findings in research.md using format:
Close the loop back to plan.md
plan.md so resolved unknowns are no longer marked unclear.Output: research.md with all important unknowns resolved
Prerequisites: research.md complete
Extract entities from spec_file → data-model.md:
Define interface contracts (if project has external interfaces) → /contracts/:
Agent context update:
agents-md-refactor skillConsistency check:
quickstart.md steps must align with contracts and data model.research.md must appear in plan/design artifacts.Output: data-model.md, optional contracts/*, quickstart.md, updated agent context
ERROR on gate failures that are not justified.