AI Builder - Product Requirements Document (PRD)
This skill creates/updates the Product Requirements Document (PRD) that locks down product behavior and requirements without specifying the technical implementation or tech stack.
When to Use This Skill
- User asks to "create PRD" or "write PRD"
- User requests to start Stage 4 or the next stage after MVP definition
- User wants to define detailed product requirements
- User wants to document functional and non-functional requirements
- User needs to expand MVP scope into full product specification
Prerequisites
This skill requires 03-mvp to be completed. The PRD will expand the MVP scope into a comprehensive product specification with detailed requirements.
Your Roles in This Skill
- Product Manager: Lead PRD creation with detailed feature specifications. Refine and expand user stories from MVP into complete requirements. Define acceptance criteria for each feature. Ensure alignment with business goals and user needs. Create product overview, goals, and user journeys.
- UX Designer: Provide user experience perspective on requirements. Define user journeys and interaction expectations. Ensure requirements support good user experience. Contribute to functional requirements from UX perspective.
- Tech Manager (Architect): Review requirements for technical feasibility. Define non-functional requirements (performance, security, scalability). Identify technical constraints and dependencies. Ensure requirements are implementable without over-specifying technology.
Role Communication
As an expert in your assigned roles, you must announce your actions before performing them using the following format:
As a {Role} [and {Role}, ...], I will {action description}
This communication pattern ensures transparency and allows for human-in-the-loop oversight at key decision points.
Instructions
Follow these steps in order:
Step 0: Verify Prerequisites and Gather Context
Check if 03-mvp/ folder exists (mandatory):
- If NOT found: Inform user they need to define MVP first, then STOP
- If found: Read all files to understand:
- MVP scope and P0 features
- Out-of-scope items (P1/P2 features)
- Success metrics
- Target users
Check if 02-personas/ folder exists (mandatory):
- If NOT found: Inform user they need personas first, then STOP
- If found: Read to understand:
- User personas
- All user stories (P0/P1/P2)
- User needs and pain points
Check if 00-init-ideas/ folder exists (recommended):
- If found: Read to understand:
- Problem statement
- Value proposition
- Owner requirements
- Cost budget (to understand constraints for this stage)
Check if 01-market-research/ folder exists (optional):
- If found: Read to understand:
- Market context
- Competitive landscape
- Validation findings
Check if this stage should be skipped:
- Check if
04-prd/SKIP.md exists
- If SKIP.md exists:
- Read SKIP.md to understand why this stage was skipped
- Inform the user: "Stage 4 (prd) is marked as SKIP because [reason from SKIP.md]"
- Ask the user: "Would you like to proceed to the next stage (ux)?"
- If user says yes:
- Exit this skill and inform them to run the next stage skill
- If user says no:
- Ask if they want to proceed with PRD anyway
- If yes, delete SKIP.md and continue with this skill
- If no, exit the skill
Check if 04-prd/ folder exists:
- If exists: Read all existing files to understand current PRD state
- If NOT exists: Will create new structure
If README.md exists: Check whether it requires diagrams. If it does,
follow dev-swarm/docs/mermaid-diagram-guide.md and use the
dev-swarm-mermaid skill to render outputs.
Proceed to Step 1 with gathered context
Step 1: Refine Design Requirements in README and Get Approval
CRITICAL: Create/update README.md first based on previous stage results, get user approval, then create other docs.
Analyze information from previous stages:
- Read
03-mvp/ to understand MVP scope and features
- Read
02-personas/ to understand user stories (P0/P1/P2)
- Read
00-init-ideas/ to understand problem statement and value proposition
- Read
01-market-research/ (if exists) to understand market context
- Consider cost-budget constraints for this stage
Create or update 04-prd/README.md with refined requirements:
- List deliverables explicitly in README (typical: prd.md, functional-requirements.md, non-functional-requirements.md, out-of-scope.md)
- Stage overview and objectives (based on previous stage context)
- Owners: Product Manager (lead), UX Designer, Tech Manager
- Diagrams (if required by project init):
- Reference
dev-swarm/docs/mermaid-diagram-guide.md
- Include
diagram/ deliverables when needed
- What PRD will include:
- Product overview, goals, and user journeys
- Functional requirements (based on user stories)
- Non-functional requirements (performance, security, scalability)
- Out-of-scope items
- Methodology:
- How requirements will be defined (from MVP + all user stories)
- How functional requirements will be structured
- Deliverables planned:
- List of files that will be created (prd.md, functional-requirements.md, etc.)
- Budget allocation for this stage (from cost-budget.md)
- Status: In Progress (update to "Completed" after implementation)
Present README to user:
- Show the PRD approach and what will be documented
- Show what documentation files will be created
- Explain how it aligns with previous stages
- Ask: "Does this PRD plan look good? Should I proceed with creating comprehensive product requirements?"
Wait for user approval:
- If user says yes: Proceed to Step 2
- If user says no:
- Ask what needs to be changed
- Update README based on feedback
- Ask for approval again
Step 2: Create/Update PRD Structure
Only after user approves the README:
Create files as specified in the approved README.md:
IMPORTANT: The file structure below is a SAMPLE only. The actual files you create must follow what was approved in the README.md in Step 1.
Typical structure (example):
04-prd/
├── README.md (already created and approved in Step 1)
├── prd.md (if specified in README)
├── functional-requirements.md (if specified in README)
├── non-functional-requirements.md (if specified in README)
└── out-of-scope.md (if specified in README)
Create only the files listed in the README's "Deliverables planned" section.
Step 3: Create/Update PRD Documentation
IMPORTANT: Only create PRD documentation after README is approved in Step 1.
NOTE: The content structure below provides GUIDELINES for typical PRD documentation. Adapt based on the approved README and project needs.
prd.md (if specified in README - Main Product Requirements Document):
This is the core PRD document covering product overview, goals, and user journeys:
Product Overview:
- Product name and tagline
- Product vision (what is this product?)
- Problem statement (recap from 00-init-ideas)
- Solution overview (how does this product solve the problem?)
- Target market and users
Product Goals:
Business Goals:
- Revenue targets or business model
- Market positioning
- Competitive differentiation
- Strategic objectives
User Goals:
- What users want to accomplish
- User needs being addressed
- User pain points being solved
Product Goals:
- Activation goals
- Engagement goals
- Retention goals
- Growth goals
Target Users:
- Primary persona (link to 02-personas/persona-primary.md)
- Secondary persona if applicable (link to 02-personas/persona-secondary.md)
- User segments and characteristics
- User assumptions and constraints
User Journeys:
Critical User Journeys:
- End-to-end journey for primary persona
- Key touchpoints and interactions
- Entry points and exit points
- Success states and failure states
Secondary User Journeys:
- Additional important flows
- Edge case journeys
MVP Alignment:
- How this PRD builds on the MVP (link to 03-mvp/)
- What's included from MVP scope
- What's being added beyond MVP (P1/P2 features)
- Phasing plan (what ships when)
Feature Overview:
- High-level feature list organized by category
- Feature prioritization (P0/P1/P2)
- Dependencies between features
- Feature roadmap (MVP vs. v1.0 vs. future)
functional-requirements.md:
Define what the product must do (behaviors, not implementation):
Requirements Organization:
- Group requirements by feature area
- Use consistent numbering (FR-001, FR-002, etc.)
- Link requirements to user stories from 02-personas
For Each Requirement:
Format:
### FR-XXX: [Requirement Title]
**User Story:** As a [persona], I want [capability], so that [benefit]
(Link to original user story in 02-personas/user-stories.md)
**Description:**
Detailed description of what the product must do
**Behavior:**
- Specific behavior 1
- Specific behavior 2
- Specific behavior 3
**Acceptance Criteria:**
- [ ] Criterion 1 (testable condition)
- [ ] Criterion 2 (testable condition)
- [ ] Criterion 3 (testable condition)
**Priority:** P0 / P1 / P2
**Dependencies:** [Other requirements this depends on]
**Notes:**
- Additional context
- Edge cases to consider
- Related features
Requirement Categories:
Organize requirements by functional area, for example:
Authentication & Authorization:
- User registration
- Login/logout
- Password reset
- Session management
- Permission controls
Core Features (from MVP):
- List each P0 feature from MVP as detailed requirements
- Expand with specific behaviors and edge cases
Additional Features (P1/P2):
- Enhanced features beyond MVP
- Nice-to-have capabilities
User Profile & Settings:
- Profile management
- User preferences
- Account settings
Data Management:
- Data creation
- Data reading/viewing
- Data updating
- Data deletion
- Data validation
Notifications & Communications:
- Email notifications
- In-app notifications
- Push notifications (if applicable)
Search & Discovery:
- Search functionality
- Filtering and sorting
- Navigation
Cross-Cutting Requirements:
- Error handling and error messages
- Loading states and feedback
- Empty states
- Accessibility requirements (WCAG 2.1 compliance)
- Internationalization (i18n) if needed
- Mobile responsiveness
non-functional-requirements.md:
Define quality attributes and constraints:
Performance Requirements:
Response Time:
- Page load time targets (e.g., "< 2 seconds for 90th percentile")
- API response time targets (e.g., "< 200ms for 95% of requests")
- Time to interactive (TTI) targets
Throughput:
- Concurrent user capacity (e.g., "support 10,000 concurrent users")
- Transactions per second (TPS) targets
- Request handling capacity
Resource Usage:
- Browser memory limits
- Bundle size targets (e.g., "initial JS bundle < 200KB gzipped")
- Database query performance targets
Scalability Requirements:
- Expected user growth trajectory
- Peak load scenarios
- Data growth projections
- Scaling strategy (horizontal vs. vertical)
- Geographic distribution needs
Reliability & Availability:
- Uptime targets (e.g., "99.9% uptime")
- Maximum tolerable downtime
- Data backup and recovery requirements
- Disaster recovery objectives (RTO, RPO)
- Fault tolerance needs
Security Requirements:
Compliance Requirements:
- Regulatory compliance (GDPR, CCPA, HIPAA, etc.)
- Industry standards (PCI-DSS, SOC 2, etc.)
- Legal requirements (Terms of Service, Privacy Policy)
- Data residency requirements
- Cookie consent and tracking requirements
Usability Requirements:
- Browser compatibility (which browsers and versions?)
- Device compatibility (desktop, tablet, mobile)
- Screen size support
- Accessibility standards (WCAG 2.1 Level AA)
- Keyboard navigation support
- Screen reader compatibility
Maintainability Requirements:
- Code documentation standards
- Logging and monitoring requirements
- Error tracking and reporting
- Debugging capabilities
- Update and deployment constraints
Compatibility Requirements:
- Third-party service integrations
- API compatibility requirements
- Data format compatibility
- Legacy system compatibility (if applicable)
out-of-scope.md:
Explicitly define what is NOT included in this PRD:
Features Explicitly Excluded:
- Features that were considered but rejected
- Features that are common in competitors but not needed
- Features that might be requested but are out of scope
- Future features that are definitely post-v1.0
Platform Exclusions:
- Platforms not supported (e.g., "no native mobile apps in v1.0")
- Browsers not supported (e.g., "no IE11 support")
- Devices not supported
Integration Exclusions:
- Third-party integrations deferred to later
- External services not included in v1.0
Technical Exclusions:
- Advanced features deferred (AI/ML, real-time collaboration, etc.)
- Performance optimizations deferred
- Internationalization deferred (if applicable)
Business Exclusions:
- Business models not pursued
- Market segments not targeted in v1.0
- Monetization features deferred
Clarifications:
- Common misconceptions about scope
- Features that sound similar but are different
- Boundary clarifications
Purpose: Prevent scope creep and align stakeholders on what's NOT being built.
Step 4: Ensure Traceability
Make sure all requirements map back to:
- User stories from 02-personas/user-stories.md
- MVP scope from 03-mvp/mvp-scope.md
- Problem statement from 00-init-ideas (if available)
- Value proposition from 00-init-ideas (if available)
Verify that:
- All P0 features from MVP are fully specified as functional requirements
- P1/P2 features are included or explicitly deferred to out-of-scope
- Each requirement has clear acceptance criteria
- Requirements are testable and implementable
Step 5: Final User Review
Inform user that PRD is complete
Update README.md:
- Change Status from "In Progress" to "Completed"
- Add a Summary section with key insights (2-3 paragraphs)
- Add a Created Files section listing all created files
Present completed work to user:
- Number of functional requirements (organized by category)
- Key non-functional requirements (performance, security, compliance)
- What's explicitly out of scope
- How this builds on MVP definition
- Phasing plan (MVP → v1.0 → future)
- Explain the completeness: "This PRD locks down WHAT the product does, not HOW it's built"
Ask if they want to proceed to the next stage (UX design)
Make adjustments based on user feedback if needed
Step 6: Commit to Git (if user confirms)
- If user confirms PRD is complete:
- Ask if they want to commit to git
- If user wants to commit:
- Stage all changes in
04-prd/
- Commit with message: "Create Product Requirements Document (Stage 4)"
Expected Project Structure
project-root/
├── 00-init-ideas/
│ └── [existing files]
├── 01-market-research/ (optional)
│ └── [existing files if present]
├── 02-personas/
│ └── [existing files]
├── 03-mvp/
│ └── [existing files]
└── 04-prd/
├── README.md (with owners and summary)
├── prd.md (product overview, goals, users, journeys, MVP alignment)
├── functional-requirements.md (what product must do - behaviors)
├── non-functional-requirements.md (performance, security, compliance)
└── out-of-scope.md (PRD-level exclusions)
Key PRD Principles
- Behavior, Not Implementation: Define WHAT the product does, not HOW it's built
- No Tech Stack: Avoid specifying technologies, frameworks, or implementation details
- User-Centric: Requirements should trace back to user needs and stories
- Testable: Every requirement must have clear acceptance criteria
- Complete: Cover all aspects of product behavior and quality attributes
- Unambiguous: Requirements should be clear and have single interpretation
- Prioritized: Clearly mark P0/P1/P2 to guide implementation phasing
- Traceable: Link requirements to user stories and MVP scope
Functional Requirements Best Practices
- Use consistent numbering: FR-001, FR-002, etc.
- One requirement per item: Don't combine multiple behaviors
- Start with user story: Connect to user value
- Define specific behaviors: Not vague goals
- Include edge cases: What happens when things go wrong?
- Add acceptance criteria: How do we test this?
- Note dependencies: What must exist first?
- Avoid implementation: Don't specify how to build it
Non-Functional Requirements Best Practices
- Use measurable targets: "< 2 seconds" not "fast"
- Set realistic goals: Based on industry standards and MVP learnings
- Prioritize: Not all NFRs are equally critical
- Consider trade-offs: Performance vs. cost, security vs. UX
- Plan for scale: Think beyond MVP to full product growth
- Document constraints: What limits exist?
Deliverables
By the end of this stage, you should have:
- Comprehensive PRD document with product overview, goals, and journeys
- Complete functional requirements mapped to user stories (typically 30-100 requirements)
- Detailed non-functional requirements (performance, security, compliance)
- Clear out-of-scope document preventing scope creep
- Traceability from requirements to user stories and MVP
- Foundation for UX design (next stage)
- Alignment between business goals, user needs, and product requirements
1---2name: dev-swarm-prd3description: Create comprehensive Product Requirements Document (PRD) defining product behavior, functional and non-functional requirements. Use when user asks to create PRD, write requirements, or start Stage 4 after MVP definition.4---5
6# AI Builder - Product Requirements Document (PRD)
7
8This skill creates/updates the Product Requirements Document (PRD) that locks down product behavior and requirements without specifying the technical implementation or tech stack.
9
10## When to Use This Skill
11
12- User asks to "create PRD" or "write PRD"
13- User requests to start Stage 4 or the next stage after MVP definition
14- User wants to define detailed product requirements
15- User wants to document functional and non-functional requirements
16- User needs to expand MVP scope into full product specification
17
18## Prerequisites
19
20This skill requires **03-mvp** to be completed. The PRD will expand the MVP scope into a comprehensive product specification with detailed requirements.
21
22## Your Roles in This Skill
23
24- **Product Manager**: Lead PRD creation with detailed feature specifications. Refine and expand user stories from MVP into complete requirements. Define acceptance criteria for each feature. Ensure alignment with business goals and user needs. Create product overview, goals, and user journeys.
25- **UX Designer**: Provide user experience perspective on requirements. Define user journeys and interaction expectations. Ensure requirements support good user experience. Contribute to functional requirements from UX perspective.
26- **Tech Manager (Architect)**: Review requirements for technical feasibility. Define non-functional requirements (performance, security, scalability). Identify technical constraints and dependencies. Ensure requirements are implementable without over-specifying technology.
27
28## Role Communication
29
30As an expert in your assigned roles, you must announce your actions before performing them using the following format:
31
32As a {Role} [and {Role}, ...], I will {action description}
33
34This communication pattern ensures transparency and allows for human-in-the-loop oversight at key decision points.
35## Instructions
36
37Follow these steps in order:
38
39### Step 0: Verify Prerequisites and Gather Context
40
411. **Check if `03-mvp/` folder exists (mandatory):**
42 - If NOT found: Inform user they need to define MVP first, then STOP
43 - If found: Read all files to understand:
44 - MVP scope and P0 features
45 - Out-of-scope items (P1/P2 features)
46 - Success metrics
47 - Target users
48
492. **Check if `02-personas/` folder exists (mandatory):**
50 - If NOT found: Inform user they need personas first, then STOP
51 - If found: Read to understand:
52 - User personas
53 - All user stories (P0/P1/P2)
54 - User needs and pain points
55
563. **Check if `00-init-ideas/` folder exists (recommended):**
57 - If found: Read to understand:
58 - Problem statement
59 - Value proposition
60 - Owner requirements
61 - Cost budget (to understand constraints for this stage)
62
634. **Check if `01-market-research/` folder exists (optional):**
64 - If found: Read to understand:
65 - Market context
66 - Competitive landscape
67 - Validation findings
68
695. **Check if this stage should be skipped:**
70 - Check if `04-prd/SKIP.md` exists
71 - **If SKIP.md exists:**
72 - Read SKIP.md to understand why this stage was skipped
73 - Inform the user: "Stage 4 (prd) is marked as SKIP because [reason from SKIP.md]"
74 - Ask the user: "Would you like to proceed to the next stage (ux)?"
75 - **If user says yes:**
76 - Exit this skill and inform them to run the next stage skill
77 - **If user says no:**
78 - Ask if they want to proceed with PRD anyway
79 - If yes, delete SKIP.md and continue with this skill
80 - If no, exit the skill
81
826. **Check if `04-prd/` folder exists:**
83 - If exists: Read all existing files to understand current PRD state
84 - If NOT exists: Will create new structure
85
867. **If README.md exists:** Check whether it requires diagrams. If it does,
87 follow `dev-swarm/docs/mermaid-diagram-guide.md` and use the
88 `dev-swarm-mermaid` skill to render outputs.
89
908. Proceed to Step 1 with gathered context
91
92### Step 1: Refine Design Requirements in README and Get Approval
93
94**CRITICAL: Create/update README.md first based on previous stage results, get user approval, then create other docs.**
95
961. **Analyze information from previous stages:**
97 - Read `03-mvp/` to understand MVP scope and features
98 - Read `02-personas/` to understand user stories (P0/P1/P2)
99 - Read `00-init-ideas/` to understand problem statement and value proposition
100 - Read `01-market-research/` (if exists) to understand market context
101 - Consider cost-budget constraints for this stage
102
1032. **Create or update 04-prd/README.md with refined requirements:**
104 - List deliverables explicitly in README (typical: prd.md, functional-requirements.md, non-functional-requirements.md, out-of-scope.md)
105 - **Stage overview and objectives** (based on previous stage context)
106 - **Owners:** Product Manager (lead), UX Designer, Tech Manager
107 - **Diagrams (if required by project init):**
108 - Reference `dev-swarm/docs/mermaid-diagram-guide.md`
109 - Include `diagram/` deliverables when needed
110 - **What PRD will include:**
111 - Product overview, goals, and user journeys
112 - Functional requirements (based on user stories)
113 - Non-functional requirements (performance, security, scalability)
114 - Out-of-scope items
115 - **Methodology:**
116 - How requirements will be defined (from MVP + all user stories)
117 - How functional requirements will be structured
118 - **Deliverables planned:**
119 - List of files that will be created (prd.md, functional-requirements.md, etc.)
120 - **Budget allocation for this stage** (from cost-budget.md)
121 - **Status:** In Progress (update to "Completed" after implementation)
122
1233. **Present README to user:**
124 - Show the PRD approach and what will be documented
125 - Show what documentation files will be created
126 - Explain how it aligns with previous stages
127 - Ask: "Does this PRD plan look good? Should I proceed with creating comprehensive product requirements?"
128
1294. **Wait for user approval:**
130 - **If user says yes:** Proceed to Step 2
131 - **If user says no:**
132 - Ask what needs to be changed
133 - Update README based on feedback
134 - Ask for approval again
135
136### Step 2: Create/Update PRD Structure
137
138**Only after user approves the README:**
139
1401. **Create files as specified in the approved README.md:**
141
142 **IMPORTANT:** The file structure below is a SAMPLE only. The actual files you create must follow what was approved in the README.md in Step 1.
143
144 **Typical structure (example):**
145 ```
146 04-prd/
147 ├── README.md (already created and approved in Step 1)
148 ├── prd.md (if specified in README)
149 ├── functional-requirements.md (if specified in README)
150 ├── non-functional-requirements.md (if specified in README)
151 └── out-of-scope.md (if specified in README)
152 ```
153
154 **Create only the files listed in the README's "Deliverables planned" section.**
155
156### Step 3: Create/Update PRD Documentation
157
158**IMPORTANT: Only create PRD documentation after README is approved in Step 1.**
159
160**NOTE:** The content structure below provides GUIDELINES for typical PRD documentation. Adapt based on the approved README and project needs.
161
162**prd.md (if specified in README - Main Product Requirements Document):**
163
164This is the core PRD document covering product overview, goals, and user journeys:
165
1661. **Product Overview:**
167 - Product name and tagline
168 - Product vision (what is this product?)
169 - Problem statement (recap from 00-init-ideas)
170 - Solution overview (how does this product solve the problem?)
171 - Target market and users
172
1732. **Product Goals:**
174 - **Business Goals:**
175 - Revenue targets or business model
176 - Market positioning
177 - Competitive differentiation
178 - Strategic objectives
179
180 - **User Goals:**
181 - What users want to accomplish
182 - User needs being addressed
183 - User pain points being solved
184
185 - **Product Goals:**
186 - Activation goals
187 - Engagement goals
188 - Retention goals
189 - Growth goals
190
1913. **Target Users:**
192 - Primary persona (link to 02-personas/persona-primary.md)
193 - Secondary persona if applicable (link to 02-personas/persona-secondary.md)
194 - User segments and characteristics
195 - User assumptions and constraints
196
1974. **User Journeys:**
198 - **Critical User Journeys:**
199 - End-to-end journey for primary persona
200 - Key touchpoints and interactions
201 - Entry points and exit points
202 - Success states and failure states
203
204 - **Secondary User Journeys:**
205 - Additional important flows
206 - Edge case journeys
207
2085. **MVP Alignment:**
209 - How this PRD builds on the MVP (link to 03-mvp/)
210 - What's included from MVP scope
211 - What's being added beyond MVP (P1/P2 features)
212 - Phasing plan (what ships when)
213
2146. **Feature Overview:**
215 - High-level feature list organized by category
216 - Feature prioritization (P0/P1/P2)
217 - Dependencies between features
218 - Feature roadmap (MVP vs. v1.0 vs. future)
219
220**functional-requirements.md:**
221
222Define what the product must do (behaviors, not implementation):
223
2241. **Requirements Organization:**
225 - Group requirements by feature area
226 - Use consistent numbering (FR-001, FR-002, etc.)
227 - Link requirements to user stories from 02-personas
228
2292. **For Each Requirement:**
230
231 **Format:**
232 ```
233 ### FR-XXX: [Requirement Title]
234
235 **User Story:** As a [persona], I want [capability], so that [benefit]
236 (Link to original user story in 02-personas/user-stories.md)
237
238 **Description:**
239 Detailed description of what the product must do
240
241 **Behavior:**
242 - Specific behavior 1
243 - Specific behavior 2
244 - Specific behavior 3
245
246 **Acceptance Criteria:**
247 - [ ] Criterion 1 (testable condition)
248 - [ ] Criterion 2 (testable condition)
249 - [ ] Criterion 3 (testable condition)
250
251 **Priority:** P0 / P1 / P2
252
253 **Dependencies:** [Other requirements this depends on]
254
255 **Notes:**
256 - Additional context
257 - Edge cases to consider
258 - Related features
259 ```
260
2613. **Requirement Categories:**
262
263 Organize requirements by functional area, for example:
264
265 - **Authentication & Authorization:**
266 - User registration
267 - Login/logout
268 - Password reset
269 - Session management
270 - Permission controls
271
272 - **Core Features (from MVP):**
273 - List each P0 feature from MVP as detailed requirements
274 - Expand with specific behaviors and edge cases
275
276 - **Additional Features (P1/P2):**
277 - Enhanced features beyond MVP
278 - Nice-to-have capabilities
279
280 - **User Profile & Settings:**
281 - Profile management
282 - User preferences
283 - Account settings
284
285 - **Data Management:**
286 - Data creation
287 - Data reading/viewing
288 - Data updating
289 - Data deletion
290 - Data validation
291
292 - **Notifications & Communications:**
293 - Email notifications
294 - In-app notifications
295 - Push notifications (if applicable)
296
297 - **Search & Discovery:**
298 - Search functionality
299 - Filtering and sorting
300 - Navigation
301
3024. **Cross-Cutting Requirements:**
303 - Error handling and error messages
304 - Loading states and feedback
305 - Empty states
306 - Accessibility requirements (WCAG 2.1 compliance)
307 - Internationalization (i18n) if needed
308 - Mobile responsiveness
309
310**non-functional-requirements.md:**
311
312Define quality attributes and constraints:
313
3141. **Performance Requirements:**
315 - **Response Time:**
316 - Page load time targets (e.g., "< 2 seconds for 90th percentile")
317 - API response time targets (e.g., "< 200ms for 95% of requests")
318 - Time to interactive (TTI) targets
319
320 - **Throughput:**
321 - Concurrent user capacity (e.g., "support 10,000 concurrent users")
322 - Transactions per second (TPS) targets
323 - Request handling capacity
324
325 - **Resource Usage:**
326 - Browser memory limits
327 - Bundle size targets (e.g., "initial JS bundle < 200KB gzipped")
328 - Database query performance targets
329
3302. **Scalability Requirements:**
331 - Expected user growth trajectory
332 - Peak load scenarios
333 - Data growth projections
334 - Scaling strategy (horizontal vs. vertical)
335 - Geographic distribution needs
336
3373. **Reliability & Availability:**
338 - Uptime targets (e.g., "99.9% uptime")
339 - Maximum tolerable downtime
340 - Data backup and recovery requirements
341 - Disaster recovery objectives (RTO, RPO)
342 - Fault tolerance needs
343
3444. **Security Requirements:**
345 - **Authentication & Authorization:**
346 - Authentication methods (OAuth, JWT, etc. - specify approach, not implementation)
347 - Authorization model (RBAC, ABAC, etc.)
348 - Session management requirements
349
350 - **Data Security:**
351 - Data encryption requirements (at rest and in transit)
352 - Sensitive data handling (PII, payment info, etc.)
353 - Data privacy requirements
354
355 - **Security Controls:**
356 - Input validation and sanitization
357 - Protection against common vulnerabilities (XSS, CSRF, SQL injection, etc.)
358 - Rate limiting and DDoS protection
359 - Audit logging requirements
360
3615. **Compliance Requirements:**
362 - Regulatory compliance (GDPR, CCPA, HIPAA, etc.)
363 - Industry standards (PCI-DSS, SOC 2, etc.)
364 - Legal requirements (Terms of Service, Privacy Policy)
365 - Data residency requirements
366 - Cookie consent and tracking requirements
367
3686. **Usability Requirements:**
369 - Browser compatibility (which browsers and versions?)
370 - Device compatibility (desktop, tablet, mobile)
371 - Screen size support
372 - Accessibility standards (WCAG 2.1 Level AA)
373 - Keyboard navigation support
374 - Screen reader compatibility
375
3767. **Maintainability Requirements:**
377 - Code documentation standards
378 - Logging and monitoring requirements
379 - Error tracking and reporting
380 - Debugging capabilities
381 - Update and deployment constraints
382
3838. **Compatibility Requirements:**
384 - Third-party service integrations
385 - API compatibility requirements
386 - Data format compatibility
387 - Legacy system compatibility (if applicable)
388
389**out-of-scope.md:**
390
391Explicitly define what is NOT included in this PRD:
392
3931. **Features Explicitly Excluded:**
394 - Features that were considered but rejected
395 - Features that are common in competitors but not needed
396 - Features that might be requested but are out of scope
397 - Future features that are definitely post-v1.0
398
3992. **Platform Exclusions:**
400 - Platforms not supported (e.g., "no native mobile apps in v1.0")
401 - Browsers not supported (e.g., "no IE11 support")
402 - Devices not supported
403
4043. **Integration Exclusions:**
405 - Third-party integrations deferred to later
406 - External services not included in v1.0
407
4084. **Technical Exclusions:**
409 - Advanced features deferred (AI/ML, real-time collaboration, etc.)
410 - Performance optimizations deferred
411 - Internationalization deferred (if applicable)
412
4135. **Business Exclusions:**
414 - Business models not pursued
415 - Market segments not targeted in v1.0
416 - Monetization features deferred
417
4186. **Clarifications:**
419 - Common misconceptions about scope
420 - Features that sound similar but are different
421 - Boundary clarifications
422
423**Purpose**: Prevent scope creep and align stakeholders on what's NOT being built.
424
425### Step 4: Ensure Traceability
426
427Make sure all requirements map back to:
428- User stories from 02-personas/user-stories.md
429- MVP scope from 03-mvp/mvp-scope.md
430- Problem statement from 00-init-ideas (if available)
431- Value proposition from 00-init-ideas (if available)
432
433Verify that:
434- All P0 features from MVP are fully specified as functional requirements
435- P1/P2 features are included or explicitly deferred to out-of-scope
436- Each requirement has clear acceptance criteria
437- Requirements are testable and implementable
438
439### Step 5: Final User Review
440
4411. **Inform user that PRD is complete**
4422. **Update README.md:**
443 - Change **Status** from "In Progress" to "Completed"
444 - Add a **Summary** section with key insights (2-3 paragraphs)
445 - Add a **Created Files** section listing all created files
446
4473. **Present completed work to user:**
448 - Number of functional requirements (organized by category)
449 - Key non-functional requirements (performance, security, compliance)
450 - What's explicitly out of scope
451 - How this builds on MVP definition
452 - Phasing plan (MVP → v1.0 → future)
453 - Explain the completeness: "This PRD locks down WHAT the product does, not HOW it's built"
454
4554. Ask if they want to proceed to the next stage (UX design)
4565. Make adjustments based on user feedback if needed
457
458### Step 6: Commit to Git (if user confirms)
459
4601. **If user confirms PRD is complete:**
461 - Ask if they want to commit to git
4622. **If user wants to commit:**
463 - Stage all changes in `04-prd/`
464 - Commit with message: "Create Product Requirements Document (Stage 4)"
465
466## Expected Project Structure
467
468```
469project-root/
470├── 00-init-ideas/
471│ └── [existing files]
472├── 01-market-research/ (optional)
473│ └── [existing files if present]
474├── 02-personas/
475│ └── [existing files]
476├── 03-mvp/
477│ └── [existing files]
478└── 04-prd/
479 ├── README.md (with owners and summary)
480 ├── prd.md (product overview, goals, users, journeys, MVP alignment)
481 ├── functional-requirements.md (what product must do - behaviors)
482 ├── non-functional-requirements.md (performance, security, compliance)
483 └── out-of-scope.md (PRD-level exclusions)
484```
485
486## Key PRD Principles
487
4881. **Behavior, Not Implementation**: Define WHAT the product does, not HOW it's built
4892. **No Tech Stack**: Avoid specifying technologies, frameworks, or implementation details
4903. **User-Centric**: Requirements should trace back to user needs and stories
4914. **Testable**: Every requirement must have clear acceptance criteria
4925. **Complete**: Cover all aspects of product behavior and quality attributes
4936. **Unambiguous**: Requirements should be clear and have single interpretation
4947. **Prioritized**: Clearly mark P0/P1/P2 to guide implementation phasing
4958. **Traceable**: Link requirements to user stories and MVP scope
496
497## Functional Requirements Best Practices
498
4991. **Use consistent numbering**: FR-001, FR-002, etc.
5002. **One requirement per item**: Don't combine multiple behaviors
5013. **Start with user story**: Connect to user value
5024. **Define specific behaviors**: Not vague goals
5035. **Include edge cases**: What happens when things go wrong?
5046. **Add acceptance criteria**: How do we test this?
5057. **Note dependencies**: What must exist first?
5068. **Avoid implementation**: Don't specify how to build it
507
508## Non-Functional Requirements Best Practices
509
5101. **Use measurable targets**: "< 2 seconds" not "fast"
5112. **Set realistic goals**: Based on industry standards and MVP learnings
5123. **Prioritize**: Not all NFRs are equally critical
5134. **Consider trade-offs**: Performance vs. cost, security vs. UX
5145. **Plan for scale**: Think beyond MVP to full product growth
5156. **Document constraints**: What limits exist?
516
517## Deliverables
518
519By the end of this stage, you should have:
520- Comprehensive PRD document with product overview, goals, and journeys
521- Complete functional requirements mapped to user stories (typically 30-100 requirements)
522- Detailed non-functional requirements (performance, security, compliance)
523- Clear out-of-scope document preventing scope creep
524- Traceability from requirements to user stories and MVP
525- Foundation for UX design (next stage)
526- Alignment between business goals, user needs, and product requirements