Feature Design
Transform raw feature inputs into structured product documentation. This is the product design phase — no code, architecture, or engineering decisions are made here. Output feeds into /architecture for technical design and /feature-plan for implementation planning.
Apply Agent(product-manager) role for all steps below.
1. Receive Feature Inputs
Gather all available resources describing the feature:
- Accepted inputs: idea brief, user research, customer feedback, support tickets, competitive analysis, stakeholder request, verbal description, market data, analytics report
- Read every provided document thoroughly
- If the user provides a verbal description only — proceed to Step 2 to structure it through discovery
Extract Raw Signals
From the provided inputs, extract and organize:
| Signal |
Source |
Notes |
| Problem |
[what pain exists, for whom] |
[evidence or assumption] |
| Opportunity |
[what business value] |
[data points] |
| User segments |
[who needs this] |
[ICP/persona indicators] |
| Competitive context |
[how others solve it] |
[differentiation angle] |
| Constraints |
[timeline, budget, technical, regulatory] |
[hard vs soft] |
| Existing assets |
[related features, prior art, dependencies] |
[links/refs] |
If critical signals are missing (no clear problem statement, no target user) — ask before proceeding. Do not invent user needs.
2. Discovery and Framing
2a. Problem Validation
Define the problem with precision:
- Problem statement: One paragraph — who has the problem, what the problem is, why it matters now
- Evidence: Data points supporting the problem (usage metrics, support volume, churn correlation, user quotes, competitive pressure)
- Impact of inaction: What happens if we do nothing
If evidence is weak — flag this as a risk. Do not fabricate data.
2b. Target Users
Apply JTBD and ICP frameworks from Agent(product-manager):
- Job-to-be-Done: When [situation], I want to [motivation], so I can [outcome]
- ICP segments: Which customer profiles benefit most. Include triggers, buying signals, objections
- Personas (if useful): Name, role, goal, frustration. Keep lightweight — max 2 personas
2c. Scope Decision
Based on complexity, decide the deliverable type:
| Complexity |
Signals |
Deliverable |
| Small |
Single service, < 1 week effort, clear solution |
Feature Brief (abbreviated PRD) |
| Medium |
Multi-component, 1–4 weeks, some unknowns |
Full PRD |
| Large |
Multi-service, 4+ weeks, significant unknowns, new capabilities |
Full PRD + Spike/Discovery tasks |
| AI/Agent |
LLM-powered, autonomous behavior, trust/safety concerns |
Full PRD + Agent Contract + Eval Strategy |
Present the scope decision to the user for confirmation before proceeding.
3. Requirements Definition
3a. Functional Requirements
List requirements prioritized using MoSCoW:
- Must have: Core functionality — feature is useless without these
- Should have: Important but not blocking launch
- Could have: Nice-to-have, defer if constrained
- Won't have (this iteration): Explicitly excluded — prevents scope creep
Each requirement: one sentence, testable, outcome-focused. Never specify implementation — describe what, not how.
3b. Non-Functional Requirements
Identify relevant NFRs:
| Category |
Requirement |
Target |
| Performance |
[e.g., response time] |
[e.g., < 200ms p95] |
| Security |
[e.g., auth, data protection] |
[e.g., RBAC, PII encrypted] |
| Scalability |
[e.g., concurrent users] |
[e.g., 10K concurrent] |
| Accessibility |
[e.g., WCAG level] |
[e.g., WCAG 2.2 AA] |
| Compliance |
[e.g., GDPR, SOC2] |
[specific requirements] |
Only include categories relevant to this feature.
3c. Acceptance Criteria
Write acceptance criteria for every Must-have and Should-have requirement:
- Use Given/When/Then format for behavioral criteria
- Include happy path, edge cases, error states
- Include operational criteria: "no new errors in logs", "latency < Xms p95"
- Include security criteria: "unauthorized users receive 403", "PII not logged"
- Each criterion is independently testable
4. Success Metrics
Define how to measure feature success:
4a. Metric Framework
| Metric Type |
Metric |
Target |
Measurement Method |
| Primary (North Star) |
[e.g., activation rate] |
[target value] |
[how to measure] |
| Leading |
[e.g., feature adoption D7] |
[target value] |
[how to measure] |
| Guardrail |
[e.g., error rate, latency] |
[must not exceed] |
[how to measure] |
4b. Instrumentation Plan
- Events to track (name, properties, trigger)
- Dashboards to create or update
- Alerts to configure (guardrail breaches)
5. Risk Assessment
| Risk |
Type |
Impact |
Likelihood |
Mitigation |
| [description] |
Technical / Business / Security / Compliance |
High/Med/Low |
High/Med/Low |
[strategy] |
Mandatory risk categories to evaluate:
- Security threats (apply OWASP Top 10; add LLM Top 10 for AI features)
- Data handling risks (PII, secrets, retention)
- Backward compatibility and migration
- Dependency on external systems or teams
- User abuse scenarios
6. AI/Agent Addendum
Include this section only for AI-powered or agent features. Skip for standard features.
7. Compile Deliverable
Full PRD
Compile all sections into a structured PRD:
# PRD: [Feature Name]
## Problem Statement
[From Step 2a]
## Target Users
[From Step 2b — JTBD, ICP, personas]
## Scope and Non-Goals
[From Step 2c — what's in, what's explicitly out]
## Requirements
[From Step 3a — MoSCoW prioritized]
## Non-Functional Requirements
[From Step 3b]
## Acceptance Criteria
[From Step 3c]
## Success Metrics
[From Step 4]
## Risks and Mitigations
[From Step 5]
## Agent Contract
[From Step 6 — only for AI features]
## Rollout Strategy
- Phase 1: Internal / dogfood
- Phase 2: Beta (limited users, feature flag)
- Phase 3: GA (all users)
- Backward compatibility notes
- Feature flag name and config
Feature Brief (for small scope)
Abbreviated format — single document:
# Feature Brief: [Feature Name]
**Problem**: [1–2 sentences]
**Users**: [target segment]
**JTBD**: When [situation], I want to [motivation], so I can [outcome]
## Requirements
[Must-have list only — max 5 items]
## Acceptance Criteria
[Given/When/Then for each requirement]
## Success Metric
[Single primary metric + target]
## Risks
[Top 1–3 risks with mitigations]
Present the compiled deliverable to the user for review. Iterate until approved.
8. Update FEATURES.md
After the PRD/brief is approved:
- If
FEATURES.md does not exist — create it at the project root
- Add or update the feature entry:
- Name, one-line description
- Status:
planned
- Link to PRD/brief in
features/ directory
- Save the PRD/brief to
features/[feature-name].md (kebab-case)
9. Handoff
Guide the next step based on feature complexity:
| Complexity |
Next Step |
| Small (brief) |
Run /feature-plan directly — architecture is implicit |
| Medium (PRD) |
Run /architecture for technical design, then /feature-plan |
| Large (PRD + spikes) |
Execute spikes first, then /architecture → /feature-plan |
| AI/Agent (PRD + contract) |
Run /architecture with agent contract as input → /feature-plan |
Integration
- Input: Raw feature resources (ideas, research, feedback, stakeholder requests)
- Followed by:
/architecture (technical design), /feature-plan (work decomposition)
- Roles:
Agent(product-manager) (primary — owns PRD), Agent(solution-architect) (consulted for feasibility)
- Skills:
context-engineering skill (context pipeline design, RAG, memory, agent harness — for AI/Agent features, Step 6)
- Updates:
FEATURES.md, features/ directory
- Enables: Full planning chain:
/feature-design → /architecture → /feature-plan → /feature-dev
1---2name: feature-design-23description: Feature design workflow — transform raw feature inputs (ideas, research, stakeholder requests, competitive analysis) into a structured PRD or feature brief. Applies product-manager role. Produces PRD, user stories, acceptance criteria, success metrics, and updates FEATURES.md. First step in the planning chain, precedes /architecture and /feature-plan.4---5
6# Feature Design
7
8Transform raw feature inputs into structured product documentation. This is the **product design phase** — no code, architecture, or engineering decisions are made here. Output feeds into `/architecture` for technical design and `/feature-plan` for implementation planning.
9
10**Apply `Agent(product-manager)` role for all steps below.**
11
12## 1. Receive Feature Inputs
13
14Gather all available resources describing the feature:
15
16- **Accepted inputs**: idea brief, user research, customer feedback, support tickets, competitive analysis, stakeholder request, verbal description, market data, analytics report
17- Read every provided document thoroughly
18- If the user provides a verbal description only — proceed to Step 2 to structure it through discovery
19
20### Extract Raw Signals
21
22From the provided inputs, extract and organize:
23
24| Signal | Source | Notes |
25|---|---|---|
26| **Problem** | [what pain exists, for whom] | [evidence or assumption] |
27| **Opportunity** | [what business value] | [data points] |
28| **User segments** | [who needs this] | [ICP/persona indicators] |
29| **Competitive context** | [how others solve it] | [differentiation angle] |
30| **Constraints** | [timeline, budget, technical, regulatory] | [hard vs soft] |
31| **Existing assets** | [related features, prior art, dependencies] | [links/refs] |
32
33If critical signals are missing (no clear problem statement, no target user) — ask before proceeding. Do not invent user needs.
34
35## 2. Discovery and Framing
36
37### 2a. Problem Validation
38
39Define the problem with precision:
40
411. **Problem statement**: One paragraph — who has the problem, what the problem is, why it matters now
422. **Evidence**: Data points supporting the problem (usage metrics, support volume, churn correlation, user quotes, competitive pressure)
433. **Impact of inaction**: What happens if we do nothing
44
45If evidence is weak — flag this as a risk. Do not fabricate data.
46
47### 2b. Target Users
48
49Apply JTBD and ICP frameworks from `Agent(product-manager)`:
50
51- **Job-to-be-Done**: When [situation], I want to [motivation], so I can [outcome]
52- **ICP segments**: Which customer profiles benefit most. Include triggers, buying signals, objections
53- **Personas** (if useful): Name, role, goal, frustration. Keep lightweight — max 2 personas
54
55### 2c. Scope Decision
56
57Based on complexity, decide the deliverable type:
58
59| Complexity | Signals | Deliverable |
60|---|---|---|
61| **Small** | Single service, < 1 week effort, clear solution | Feature Brief (abbreviated PRD) |
62| **Medium** | Multi-component, 1–4 weeks, some unknowns | Full PRD |
63| **Large** | Multi-service, 4+ weeks, significant unknowns, new capabilities | Full PRD + Spike/Discovery tasks |
64| **AI/Agent** | LLM-powered, autonomous behavior, trust/safety concerns | Full PRD + Agent Contract + Eval Strategy |
65
66Present the scope decision to the user for confirmation before proceeding.
67
68## 3. Requirements Definition
69
70### 3a. Functional Requirements
71
72List requirements prioritized using MoSCoW:
73
74- **Must have**: Core functionality — feature is useless without these
75- **Should have**: Important but not blocking launch
76- **Could have**: Nice-to-have, defer if constrained
77- **Won't have (this iteration)**: Explicitly excluded — prevents scope creep
78
79Each requirement: one sentence, testable, outcome-focused. Never specify implementation — describe *what*, not *how*.
80
81### 3b. Non-Functional Requirements
82
83Identify relevant NFRs:
84
85| Category | Requirement | Target |
86|---|---|---|
87| Performance | [e.g., response time] | [e.g., < 200ms p95] |
88| Security | [e.g., auth, data protection] | [e.g., RBAC, PII encrypted] |
89| Scalability | [e.g., concurrent users] | [e.g., 10K concurrent] |
90| Accessibility | [e.g., WCAG level] | [e.g., WCAG 2.2 AA] |
91| Compliance | [e.g., GDPR, SOC2] | [specific requirements] |
92
93Only include categories relevant to this feature.
94
95### 3c. Acceptance Criteria
96
97Write acceptance criteria for every Must-have and Should-have requirement:
98
99- Use **Given/When/Then** format for behavioral criteria
100- Include **happy path**, **edge cases**, **error states**
101- Include **operational criteria**: "no new errors in logs", "latency < Xms p95"
102- Include **security criteria**: "unauthorized users receive 403", "PII not logged"
103- Each criterion is independently testable
104
105## 4. Success Metrics
106
107Define how to measure feature success:
108
109### 4a. Metric Framework
110
111| Metric Type | Metric | Target | Measurement Method |
112|---|---|---|---|
113| **Primary** (North Star) | [e.g., activation rate] | [target value] | [how to measure] |
114| **Leading** | [e.g., feature adoption D7] | [target value] | [how to measure] |
115| **Guardrail** | [e.g., error rate, latency] | [must not exceed] | [how to measure] |
116
117### 4b. Instrumentation Plan
118
119- Events to track (name, properties, trigger)
120- Dashboards to create or update
121- Alerts to configure (guardrail breaches)
122
123## 5. Risk Assessment
124
125| Risk | Type | Impact | Likelihood | Mitigation |
126|---|---|---|---|---|
127| [description] | Technical / Business / Security / Compliance | High/Med/Low | High/Med/Low | [strategy] |
128
129**Mandatory risk categories to evaluate:**
130- Security threats (apply OWASP Top 10; add LLM Top 10 for AI features)
131- Data handling risks (PII, secrets, retention)
132- Backward compatibility and migration
133- Dependency on external systems or teams
134- User abuse scenarios
135
136## 6. AI/Agent Addendum
137
138**Include this section only for AI-powered or agent features.** Skip for standard features.
139
140<agent_contract>
141- **Autonomy level**: Assist (human decides) → Semi-auto (agent proposes, human approves) → Auto (agent acts independently)
142- **Allowed tools and permissions**: Least privilege. List every tool/API the agent can access
143- **Confirmation gates**: Which actions require human approval
144- **Failure modes**: What happens when the agent fails, hallucinates, or exceeds scope
145- **Cost budget**: Token/compute/API limits per operation
146- **Context pipeline**: Consult `context-engineering` skill for context stack design, RAG pipeline, memory architecture, agent harness patterns, and production checklists
147- **Eval strategy**: Offline eval set (fixtures, synthetic + real cases), online monitoring (drift, failure rates)
148</agent_contract>
149
150## 7. Compile Deliverable
151
152### Full PRD
153
154Compile all sections into a structured PRD:
155
156```markdown
157# PRD: [Feature Name]
158
159## Problem Statement
160[From Step 2a]
161
162## Target Users
163[From Step 2b — JTBD, ICP, personas]
164
165## Scope and Non-Goals
166[From Step 2c — what's in, what's explicitly out]
167
168## Requirements
169[From Step 3a — MoSCoW prioritized]
170
171## Non-Functional Requirements
172[From Step 3b]
173
174## Acceptance Criteria
175[From Step 3c]
176
177## Success Metrics
178[From Step 4]
179
180## Risks and Mitigations
181[From Step 5]
182
183## Agent Contract
184[From Step 6 — only for AI features]
185
186## Rollout Strategy
187- Phase 1: Internal / dogfood
188- Phase 2: Beta (limited users, feature flag)
189- Phase 3: GA (all users)
190- Backward compatibility notes
191- Feature flag name and config
192```
193
194### Feature Brief (for small scope)
195
196Abbreviated format — single document:
197
198```markdown
199# Feature Brief: [Feature Name]
200
201**Problem**: [1–2 sentences]
202**Users**: [target segment]
203**JTBD**: When [situation], I want to [motivation], so I can [outcome]
204
205## Requirements
206[Must-have list only — max 5 items]
207
208## Acceptance Criteria
209[Given/When/Then for each requirement]
210
211## Success Metric
212[Single primary metric + target]
213
214## Risks
215[Top 1–3 risks with mitigations]
216```
217
218Present the compiled deliverable to the user for review. Iterate until approved.
219
220## 8. Update FEATURES.md
221
222After the PRD/brief is approved:
223
2241. If `FEATURES.md` does not exist — create it at the project root
2252. Add or update the feature entry:
226 - Name, one-line description
227 - Status: `planned`
228 - Link to PRD/brief in `features/` directory
2293. Save the PRD/brief to `features/[feature-name].md` (kebab-case)
230
231## 9. Handoff
232
233Guide the next step based on feature complexity:
234
235| Complexity | Next Step |
236|---|---|
237| **Small** (brief) | Run `/feature-plan` directly — architecture is implicit |
238| **Medium** (PRD) | Run `/architecture` for technical design, then `/feature-plan` |
239| **Large** (PRD + spikes) | Execute spikes first, then `/architecture` → `/feature-plan` |
240| **AI/Agent** (PRD + contract) | Run `/architecture` with agent contract as input → `/feature-plan` |
241
242## Integration
243
244- **Input**: Raw feature resources (ideas, research, feedback, stakeholder requests)
245- **Followed by**: `/architecture` (technical design), `/feature-plan` (work decomposition)
246- **Roles**: `Agent(product-manager)` (primary — owns PRD), `Agent(solution-architect)` (consulted for feasibility)
247- **Skills**: `context-engineering` skill (context pipeline design, RAG, memory, agent harness — for AI/Agent features, Step 6)
248- **Updates**: `FEATURES.md`, `features/` directory
249- **Enables**: Full planning chain: `/feature-design` → `/architecture` → `/feature-plan` → `/feature-dev`