Generates a PRD (Product Requirements Document) from requirement notes or memos. Triggers: prd, requirements, PRD generation, requirement specification. Source-code read-only — never modifies source code or test files. Outputs structured PRD to output/prd/ (requires Write permission to output/prd/). Takes a file path as argument: /prd <file-path>
A skill that takes requirement notes/memos as input and generates a structured PRD (Product Requirements Document) optimized for Claude Code comprehension. Never modifies source code.
| Reference File | Purpose | Fallback When Stub |
|---|---|---|
docs/project.md | Tech stack, routing | Refer directly to project-config.md §1–§3 |
docs/architecture.md | Directory structure, test placement | Refer directly to project-config.md §4 |
docs/data-model.md | Existing schemas | Skip (not yet generated for new projects) |
docs/development-patterns.md | Code conventions, pitfalls | Refer directly to project-config.md §11 |
PRD generation is possible even when contains only stubs. Falls back to referencing directly.
docs/project-config.mddocs/ documentation/prd <path-to-requirement-notes>
File paths can be absolute or relative. Specify multiple files separated by spaces.
/prd requirements.md
/prd input/requirements/REQ_001.md
/prd memo1.md memo2.md
output/prd/PRD_<feature-name>.md (when output/ directory exists)docs/PRD.md| Previous Step | This Skill | Next Step |
|---|---|---|
| Requirement note creation | /prd | /architecture → /plan → /implementing-features |
Read tooldocs/output/prd/PRD_<feature-name>.md (or docs/PRD.md if output/ doesn't exist)# PRD: [Feature/Project Name]
> Source: [Input file name]
> Generated: [YYYY-MM-DD]
> Status: Draft
## 1. Overview
### 1.1 Background & Purpose
### 1.2 Scope
#### In Scope
#### Out of Scope
## 2. Terminology
| Term | Definition |
| ---- | ---------- |
## 3. Functional Requirements
### FR-001: [Feature Name]
- **Summary**: [Feature description]
- **User Story**: As a [who], I want to [what] so that [why]
- **Acceptance Criteria**:
- [ ] [Specific condition]
- **Screen/Interaction Flow**: [UI behavior description]
- **Data Model Changes**: [Required schema changes]
- **Priority**: Must / Should / Could / Won't
## 4. Non-Functional Requirements
### NFR-001: [Requirement Name]
- **Category**: Performance / Security / Usability / Maintainability
- **Requirement**: [Specific criteria]
- **Measurement Method**: [How to verify]
## 5. Data Model
### New Schemas
### Existing Schema Changes
| Schema | Field | Change Description | Backward Compatibility |
| ------ | ----- | ------------------ | ---------------------- |
## 6. Screen/UI Specifications
## 7. Technical Considerations
## 8. Test Strategy
## 9. Implementation Phases (Recommended)
## 10. Items Requiring Confirmation
| # | Item | Options | Impact Scope |
| - | ---- | ------- | ------------ |
## 11. Risks & Concerns
| Risk | Impact Level | Mitigation |
| ---- | ------------ | ---------- |
| # | Section | Required | Constraints |
|---|---|---|---|
| 1 | Overview (Background/Purpose, Scope) | ✅ | Explicitly separate in-scope/out-of-scope |
| 2 | Terminology | ✅ | Define domain-specific terms in a table. Minimum 1 entry |
| 3 | Functional Requirements | ✅ | FR-NNN format IDs. Each FR must have acceptance criteria |
| 4 | Non-Functional Requirements | Conditional | When input memo contains non-functional requirements |
| 5 | Data Model | ✅ | New/changed schemas. State backward compatibility |
| 6 | Screen/UI Specifications | ✅ | Paths, layout, dark mode support |
| 7 | Technical Considerations | ✅ | Architecture impact, dependency direction |
| 8 | Test Strategy | ✅ | Unit/E2E targets and approach |
| 9 | Implementation Phases | ✅ | Phase-based. State dependencies |
| 10 | Items Requiring Confirmation | Conditional | When ambiguous decision points exist |
| 11 | Risks & Concerns | Conditional | When risks exist |
FR-001, zero-padded to 3 digitsMust / Should / Could / Won't| Term | Definition |
|---|---|
| [Needs Confirmation] | Ambiguous point requiring user decision. Include options alongside |
| In Scope | Features/changes covered by this PRD |
| Out of Scope | Features/changes explicitly excluded |
| Backward Compatible | Existing data reading is not broken |
Reference the following documents during PRD generation to ensure consistency:
| Document | Reference Purpose |
|---|---|
docs/project.md | Tech stack, routing, store list |
docs/architecture.md | Directory structure, test placement |
docs/data-model.md | Existing schemas, validation rules |
docs/development-patterns.md | Code conventions, pitfalls |
output/prd/ directory exists: output/prd/PRD_<feature-name>.mddocs/PRD.mdPRD_<feature-name>.mddocs/)