Generates professional PRD (Product Requirements Document) files optimized for AI coding tools. Takes a rough product idea, asks clarifying questions, and outputs a structured PDF ready to feed into AI coding assistants.
Transform a rough product idea into a comprehensive, AI-ready Product Requirements Document (PDF) through targeted questions and structured output.
Check $ARGUMENTS first to determine execution mode:
Respond with: "prd-generator loaded, describe your product idea"
Then wait for the user to provide their product concept in the next message.
Proceed immediately to Task Execution (skip the "loaded" message).
BLOCKING REQUIREMENT — DO NOT SKIP THIS STEP
Before doing ANYTHING else, use the Read tool to read:
./references/prd_template.mdThis template defines the exact structure your PRD must follow. DO NOT PROCEED to Step 2 until you have read this file.
This skill intentionally DOES NOT read FOUNDER_CONTEXT.md. PRDs are standalone documents that should contain all necessary context within them.
From the user's initial description, extract what's available:
Use AskUserQuestion tool to gather missing information. Ask up to 7 questions maximum, but fewer is better — stop as soon as you have enough to build a comprehensive PRD.
Question Bank (priority order):
| # | Question | Why it matters | Skip if... |
|---|---|---|---|
| 1 | Who is the primary user? What's their role and technical level? | Shapes all UX decisions and feature complexity | User persona is clearly described |
| 2 | What's the core problem this solves? What happens if users don't have this? | Defines the value proposition and success metrics | Problem statement is explicit |
| 3 | What are the 3-5 must-have features for launch (P0)? | Prevents scope creep, focuses MVP | Features are already listed with clear priority |
| 4 | What technology preferences or constraints exist? (Language, framework, hosting) | Determines technical architecture section | Tech stack is specified |
| 5 | Are there any integrations required? (Auth providers, APIs, third-party services) | Identifies dependencies and integration complexity | No external services mentioned or user says standalone |
| 6 | What does success look like? Any specific metrics to track? | Defines goals and success metrics section | Metrics or goals are already stated |
| 7 | Any design preferences or existing brand guidelines to follow? | Shapes UI/UX requirements section | Design is flexible or already described |
Question strategy:
Using the template structure from ./references/prd_template.md, create a complete PRD:
Step 6a: Create output folder
mkdir -p ./prd_outputs/[Project Name]/
Use the product name with spaces, e.g., ./prd_outputs/Churn Prevention Tool/
Step 6b: Save markdown file Write the PRD content to:
./prd_outputs/[Project Name]/[project_name]_PRD.md
Use snake_case for the filename, e.g., churn_prevention_tool_PRD.md
Step 6c: Convert to PDF Run:
npx md-to-pdf "./prd_outputs/[Project Name]/[project_name]_PRD.md"
This creates [project_name]_PRD.pdf in the same folder.
Tell the user:
The PRD follows the structure in ./references/prd_template.md. Here's a condensed example:
# TaskFlow — Product Requirements Document
**Version:** 1.0
**Date:** 2024-01-15
**Author:** PRD Generator
**Status:** Draft
## Executive Summary
TaskFlow is a task management tool for remote engineering teams...
## Problem Statement
**Current state:** Teams use disconnected tools...
**Pain points:**
1. Context switching between tools
2. No visibility into team workload
3. Async communication gaps
**Impact:** 5+ hours/week lost per engineer...
## Goals & Success Metrics
| Goal | Metric | Target | Measurement |
|------|--------|--------|-------------|
| Reduce context switching | Tool switches/day | < 10 | Analytics |
## User Personas
### Engineering Manager
- **Role:** Manages 5-10 engineers
- **Goals:** Visibility into sprint progress...
## Functional Requirements
### FR-001: Task Creation
**Description:** Users can create tasks with title, description, assignee, and due date.
**User story:** As an engineer, I want to create tasks quickly so that I capture work items without friction.
**Acceptance criteria:**
- [ ] Task creation completes in < 500ms
- [ ] Title field is required, minimum 3 characters
- [ ] Due date defaults to end of current sprint
**Priority:** P0
...
## Implementation Notes for AI
### Build Order
1. Database schema (PostgreSQL)
2. API endpoints (Express.js)
3. Frontend components (React)
4. Auth integration (Clerk)
### Libraries to Use
- Prisma for ORM — type-safe, great DX
- TanStack Query for data fetching — handles caching
- Tailwind CSS for styling — utility-first, fast iteration
### Critical Implementation Details
- All dates stored as UTC, converted to user timezone on display
- Use optimistic updates for task status changes
- Implement soft deletes for all user-generated content
This file MUST be read using the Read tool before task execution (see Step 1):
| File | Purpose |
|---|---|
./references/prd_template.md | Complete PRD structure with all 15 sections, format examples, and usage notes |
Why this matters: The template ensures every PRD follows a consistent, comprehensive structure that AI coding tools can parse and implement. Skipping the template results in incomplete PRDs that miss critical sections.
./references/prd_template.md before starting./prd_outputs/[Project Name]/npx md-to-pdfIf ANY check fails → fix before completing.
Use these unless the user specifies otherwise:
Document any assumptions made in the PRD output.