Write Spec

If you see unfamiliar placeholders or need to check which tools are connected, see CONNECTORS.md.

Write a feature specification or product requirements document (PRD).

Usage

/write-spec $ARGUMENTS

Workflow

1. Understand the Feature

Ask the user what they want to spec. Accept any of:

2. Gather Context

Ask the user for the following. Be conversational — do not dump all questions at once. Ask the most important ones first and fill in gaps as you go:

3. Pull Context from Connected Tools

If ~~project tracker is connected:

If ~~knowledge base is connected:

If ~~design is connected:

If these tools are not connected, work entirely from what the user provides. Do not ask the user to connect tools — just proceed with available information.

4. Generate the PRD

Produce a structured PRD with these sections. See PRD Structure below for detailed guidance on what each section should contain.

5. Review and Iterate

After generating the PRD:

PRD Structure

Problem Statement

Goals

Non-Goals

User Stories

Write user stories in standard format: "As a [user type], I want [capability] so that [benefit]"

Guidelines:

Example:

Requirements

Must-Have (P0): The feature cannot ship without these. These represent the minimum viable version of the feature. Ask: "If we cut this, does the feature still solve the core problem?" If no, it is P0.

Nice-to-Have (P1): Significantly improves the experience but the core use case works without them. These often become fast follow-ups after launch.

Future Considerations (P2): Explicitly out of scope for v1 but we want to design in a way that supports them later. Documenting these prevents accidental architectural decisions that make them hard later.

For each requirement:

Open Questions

Timeline Considerations

User Story Writing

Good user stories are:

Common Mistakes in User Stories

Requirements Categorization

MoSCoW Framework

Tips for Categorization

Success Metrics Definition

Leading Indicators

Metrics that change quickly after launch (days to weeks):

Lagging Indicators

Metrics that take time to develop (weeks to months):

Setting Targets

Acceptance Criteria

Write acceptance criteria in Given/When/Then format or as a checklist:

Given/When/Then:

Example:

Checklist format:

Tips for Acceptance Criteria

Scope Management

Recognizing Scope Creep

Scope creep happens when:

Preventing Scope Creep

Output Format

Use markdown with clear headers. Keep the document scannable — busy stakeholders should be able to read just the headers and bold text to get the gist.

Tips