| name | create-phase-spec |
| description | Create one detailed phase spec from a phase stub, main spec, development plan, and relevant context. |
| argument-hint | [phase context] [--output path] |
| disable-model-invocation | true |
| allowed-tools | Read Write Edit Grep Glob WebFetch WebSearch |
Create Phase Spec
Create one detailed phase spec that defines the phase clearly enough to be split
into implementation slices.
Inputs
- phase stub or phase context
- main spec
- development plan
- initiative research index or relevant reports for this phase
- supporting artifacts relevant to this phase
- optional decisions, constraints, or repo context
- optional output path
Process
- Preserve the phase purpose, boundary, dependencies, and completion target.
- Compare the provided phase context and development plan against the main spec.
- Pull only the main spec details that matter for this phase.
- Pull only the initiative research constraints that matter for this phase.
- If
supporting-artifacts/ exists, scan it and read only files relevant to
this phase's scope, boundaries, or risks.
- Make the phase independently understandable after a context reset.
- Clarify scope, non-goals, flows, product rules, UX expectations, states,
lifecycle, invariants, security, privacy, permissions, data integrity,
constraints, and success checks when relevant.
- Name likely surfaces, blast radius, and watchouts only when they clarify later
slicing. Do not invent architecture.
- Use light official/source/repo checks only when needed to avoid guessing in
the phase spec. Do not create a full research report here; record
phase-specific research needs or weak evidence for
research-phase.
- If initiative research says a provider/API/model/database/file/queue behavior
is unsupported, unknown, or constrained, preserve the phase-specific impact in
boundaries, rules, risks, or open questions.
- If initiative research is not specific enough for this phase, name the gap in
## Phase Research Needs so the official phase research gate can resolve it
before slices are created.
- Surface if the phase boundary is wrong: too broad, too small, stale,
horizontal, or inconsistent with the main spec or development plan.
- Ask one consequential question if the phase cannot be specified without
changing scope, behavior, or risk.
- Do focused research only when it can change the phase spec. Deeper
implementation research belongs in
research-phase.
Quality Bar
The phase spec is ready when create-phase-slices can split this one phase into
small cohesive vertical slices without rediscovering the main spec or guessing about
phase intent, boundaries, rules, risks, or verification.
Complete does not mean long. Include only phase-specific information.
Use plain boundaries:
- In scope
- Out of scope, with why
- Needs user decision
- Never do
Split success checks into repo-verifiable checks and live/human checks. If a
check belongs to the whole initiative rather than this phase, say so or leave it
out.
Language
Read PROJECT_LANGUAGE.md before settling durable terms for this phase.
Update it when this work clarifies a stable term, accepted alias, conflict, or
meaningful ambiguity.
Alert the user when a language change affects model shape, lifecycle,
ownership, permissions, privacy, destructive behavior, or user-facing promises.
Prefer the core noun before qualifiers. If sibling terms appear, ask whether the
qualifier belongs as a field, enum, state, permission, relationship,
configuration, placement, ownership, or usage context.
Output
If an output path is provided, write the phase spec there.
If no output path is provided, ask the user where they would like to save it.
Use this shape:
# Phase Spec
Phase ID:
## Source Inputs
## Summary
## Outcome
## Dependencies
## Completion Target
## Users / Systems Served
## Scope
### In
### Out
### Needs User Decision
### Never
## Flows
## UX Expectations
## Product Rules
## Domain Language
## State, Lifecycle, And Invariants
## Security, Privacy, Permissions, And Data Integrity
## Technical Constraints
## Likely Surfaces / Blast Radius
## Success Checks
### Repo-Verifiable
### Live / Human
## Risks And Assumptions
## Research / Watchouts
## Phase Research Needs
## Open Questions
### Blocking
### Later Detail Choices
## Phase Boundary Check
Too broad / small / stale / horizontal:
Reason:
## Slice Handoff
Rules
- Create one phase spec.
- Keep the phase boundary clear.
- Preserve relevant main spec decisions and constraints.
- Preserve relevant initiative research constraints.
- Preserve relevant supporting-artifact context only when it is represented by
main-spec decisions or needed to explain phase-specific boundaries.
- Use light research only to make the phase spec accurate. Leave proper
implementation research to
research-phase.
- Surface if the phase is too broad or too small to specify coherently.
- Do not create slices, slice acceptance criteria, slice plans, implementation
tasks, or implementation files.
- Before finishing, reread the phase spec as if the chat transcript is gone. If
slice creation would have to rediscover this phase, update the spec first.