| name | generate-prd |
| description | Generates Product Requirements Documents for new features through guided discovery. Use when starting a new feature, creating specifications, or when user needs help defining requirements with clarifying questions. |
| model | opus4.5 |
| context | fork |
Important: This skill creates PRDs only—it does NOT begin implementation.
- Problem/Goal: What problem does this solve? Who benefits?
- Core Functionality: What are the must-have features?
- Scope/Boundaries: What is explicitly NOT included?
- Success Criteria: How will we know this worked?
Each question should have 3-4 concrete options (A, B, C, D format) plus "Other" for custom input.
- Introduction/Overview – Brief feature description and problem statement
- Goals – Specific, measurable objectives
- User Stories – Each with title, description, and verifiable acceptance criteria
- Functional Requirements – Numbered explicitly (FR-1, FR-2, etc.)
- Non-Goals – Clear scope boundaries
- Design Considerations – UI/UX requirements (if applicable)
- Technical Considerations – Constraints and dependencies (if applicable)
- Success Metrics – Measurable outcomes
- Open Questions – Remaining clarifications needed
Use kebab-case for feature name (e.g., prd-user-authentication.md).
Good: "Login button redirects to /dashboard on success" Bad: "Login works correctly"
1. Introduction
{{Brief description of the feature and the problem it solves}}
2. Goals
- {{Goal 1: Specific, measurable objective}}
- {{Goal 2: Specific, measurable objective}}
3. User Stories
US-1: {{Story Title}}
As a {{user type}}, I want {{feature}} so that {{benefit}}.
Acceptance Criteria:
- {{Specific, testable criterion}}
- {{Specific, testable criterion}}
- Verify in browser using dev-browser skill (for UI stories)
US-2: {{Story Title}}
...
4. Functional Requirements
- FR-1: {{Explicit requirement}}
- FR-2: {{Explicit requirement}}
- FR-3: {{Explicit requirement}}
5. Non-Goals
- {{What this feature explicitly does NOT do}}
- {{Scope boundary}}
6. Design Considerations
{{UI/UX requirements, wireframe references, design patterns}}
7. Technical Considerations
{{Constraints, dependencies, integration points, performance requirements}}
8. Success Metrics
- {{Measurable outcome 1}}
- {{Measurable outcome 2}}
9. Open Questions
- {{Unresolved question needing clarification}}
</prd_template>
<examples>
<example name="good_acceptance_criteria">
**Good:**
- "Search results display within 2 seconds"
- "Error message shows 'Invalid email format' for malformed input"
- "Clicking 'Save' disables button and shows spinner until complete"
**Bad:**
- "Search is fast"
- "Shows appropriate error messages"
- "Good UX on save"
</example>
<example name="good_functional_requirements">
- **FR-1**: System shall validate email format using RFC 5322 pattern
- **FR-2**: Password must be minimum 8 characters with at least one number
- **FR-3**: Session expires after 30 minutes of inactivity
</example>
</examples>
<success_criteria>
PRD is complete when:
- [ ] 3-5 clarifying questions were asked and answered
- [ ] All 9 PRD sections are filled with concrete content
- [ ] User stories have verifiable acceptance criteria
- [ ] UI stories include browser verification criterion
- [ ] Functional requirements are numbered (FR-1, FR-2, etc.)
- [ ] Non-goals clearly define scope boundaries
- [ ] Document saved to `tasks/prd-[feature-name].md`
- [ ] No implementation has begun (PRD only)
</success_criteria>