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:
When spec_file is not explicitly provided, resolve it from context before proceeding:
create-spec or issue-to-spec). Use that path if found.If the resolved file is unreadable or does not contain actionable requirements, stop and return a blocking error.
Load context
spec_file.spec_file.plan.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 the mandatory structure below; do not emit a placeholder or shallow checklist.
# Quickstart: <feature name>## Prerequisites## 1. ImplementReturn a concise status report using this exact section structure and order. If any required section is missing, return ERROR instead of a partial report.
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 stepFormatting rules for this report:
Open risks: none).Next command must be one actionable command or one explicit blocking remediation instruction.Extract 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:
Implement and Validate each include at least one concrete command and expected result.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.## 2. Validate## 3. Rollout/OperateImplement and at least one in Validate.Run post-design gate
Stop and report
/create-tasks.