prd-generator
Generate structured Product Requirements Documents using hypothesis-driven methodology with Implementation Phases tracking.
by oimiragieo★ 48 GitHub stars
Install prd-generator in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
PRD Generator Skill
Overview
Generate structured Product Requirements Documents (PRDs) using problem-first, hypothesis-driven methodology. Ensures clear problem statements, evidence-backed decisions, and traceable implementation phases.
Core principle: Validate "why" before "how". Problem → Evidence → Hypothesis → Solution.
When to Use
Always:
- New features requiring product definition
- Product changes requiring stakeholder alignment
- Requirements gathering for HIGH/EPIC complexity features
- Feature requests needing structured analysis
Use specifically for:
- Features with unclear requirements (progressive disclosure)
- Multi-phase implementations needing tracking
- Features requiring decision documentation
- Product initiatives needing success metrics
Don't use for:
- Simple bug fixes (no PRD needed)
- Trivial configuration changes
- Code-only refactors without product impact
Purpose
- Problem-First: Define problem with evidence before proposing solutions
- Hypothesis-Driven: State measurable hypothesis for validation
- MoSCoW Prioritization: Prevent scope creep with Must/Should/Could/Won't
- Implementation Phases: Track progress with phases table (Status, Dependencies, Plan Links)
- Decision Log: Record "why we chose X over Y" for future reference
- Traceability: PRD → Planner → Developer with full context
Workflow
Step 1: Gather Requirements
Interactive Mode (when requirements unclear):
// Use AskUserQuestion for structured gathering
const problem = await AskUserQuestion({
question: 'What problem does this solve? (Be specific about user pain points)',
});
const evidence = await AskUserQuestion({
question: 'What evidence shows this problem exists? (Data, feedback, metrics)',
});
const hypothesis = await AskUserQuestion({
question: 'What measurable outcome will prove this feature solves the problem?',
});
Prompt Mode (when requirements provided):
Extract requirements from user prompt or task description
Progressive Disclosure (for ambiguous features):
If requirements are unclear, use 8-phase questioning workflow:
- Initiate: Clarify feature goal and scope
- Foundation: Understand problem context
- Grounding (Market): Research similar solutions
- Deep Dive: Explore capabilities and user flows
- Grounding (Technical): Assess feasibility
- Decisions: Document choices and trade-offs
- Generate: Create PRD from gathered context
When to use Progressive Disclosure:
- HIGH/EPIC complexity features
- Ambiguous user requests ("make it better")
- New product areas without existing patterns
- Features requiring stakeholder alignment
When to skip:
- Clear requirements provided
- Similar features already built
- Small scope changes
Step 2: Load Template
// Read PRD template
const template = Read({ file_path: '.claude/templates/prd-template.md' });
Template includes these sections (required):
- Problem Statement
- Evidence
- Key Hypothesis
- What We're NOT Building (scope exclusions)
- Success Metrics table
- Core Capabilities (MoSCoW)
- Users & Context
- Solution Detail (MVP Scope, User Flow)
- Technical Approach
- Implementation Phases table
- Decisions Log table
- Research Summary
- Risks table
- Open Questions
Step 3: Fill Template Sections
Problem Statement (Evidence-Backed):
## Problem Statement
[Specific problem description with user impact]
## Evidence
- User feedback: [quotes or summary]
- Data: [metrics showing problem scale]
- Business impact: [why this matters now]
Key Hypothesis:
## Key Hypothesis
We believe [capability] will [solve problem] for [users].
We'll know we're right when [measurable outcome].
Example:
We believe adding JWT refresh tokens will reduce user re-authentication friction for mobile users.
We'll know we're right when session timeout complaints drop by 50% and mobile DAU increases by 10%.
Success Metrics:
| Metric | Target | How Measured |
|---|---|---|
| Session timeout complaints | -50% | Support ticket analysis |
| Mobile DAU | +10% | Analytics dashboard |
| Token refresh success rate | >95% | Backend logs |
Core Capabilities (MoSCoW):
| Priority | Capability | Rationale |
|---|---|---|
| Must | JWT refresh token endpoint | Required for MVP - enables session extension |
| Must | Token rotation on refresh | Security best practice |
| Should | Refresh token revocation | Allows user logout from all devices |
| Could | Token usage analytics | Nice to have for monitoring |
| Won't | Biometric auth integration |
Allowed tools
Tools this skill is permitted to call.
- 01
Read - 02
Write - 03
AskUserQuestion
Bundled files
- commands/prd-generator.md
- hooks/post-execute.cjs
- hooks/pre-execute.cjs
- references/research-requirements.md
- rules/prd-generator.md
- schemas/input.schema.json
- schemas/output.schema.json
- scripts/main.cjs
- templates/implementation-template.md
FAQ
What does the prd-generator skill do?
Generate structured Product Requirements Documents using hypothesis-driven methodology with Implementation Phases tracking.
How do I install the prd-generator skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the prd-generator skill run scripts?
Yes, this skill bundles executable scripts. Review the source before installing.
Related skills
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…