| name | spec |
| description | Define or update a feature specification. Provide a feature name and description with optional Figma link. Updates spec/feature/[name]/spec.md and design.md without touching source code. |
| argument-hint | [feature-name] [description + optional Figma URL] |
| context | fork |
Prerequisite check
Before routing to any agent, verify /init has been run:
- Check if
spec/PROJECT.md exists
- If NOT exists → output: "Project not initialized. Run
/init first to analyze your codebase and set up the spec directory." → STOP
Model selection
Assess task size per spec/rules/_model-routing.md:
- If updating an existing spec with minor changes (feature directory already exists, spec.md present) → spawn
spec-writer with model: haiku
- If creating a new feature spec from scratch → spawn
spec-writer with model: sonnet
Task
Spawn spec-writer agent (with assessed model) with the following prompt:
Write or update the feature specification based on the following:
$ARGUMENTS