The PRD Generator skill (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/snarktank/ralph/llms.txt
Use this file to discover all available pages before exploring further.
/prd) creates detailed Product Requirements Documents that are clear, actionable, and suitable for implementation by Ralph or human developers.
Overview
The skill follows a structured workflow:- Receive a feature description from the user
- Ask 3-5 essential clarifying questions (with lettered options)
- Generate a structured PRD based on answers
- Save to
tasks/prd-[feature-name].md
The PRD skill does NOT start implementing. It only creates the planning document.
Usage
Invoke the skill with any of these trigger phrases:Workflow
Describe Your Feature
Provide a brief description of what you want to build. The more context you provide, the better the questions will be.
Answer Clarifying Questions
The skill asks 3-5 critical questions with lettered options. Answer quickly using shorthand:
Clarifying Questions
The skill asks only critical questions where your initial prompt is ambiguous. Questions focus on:- Problem/Goal - What problem does this solve?
- Core Functionality - What are the key actions?
- Scope/Boundaries - What should it NOT do?
- Success Criteria - How do we know it’s done?
Question Format
Questions use a multiple-choice format for quick responses:1A, 2C, 3B for quick iteration.
PRD Structure
The generated PRD includes these sections:1. Introduction/Overview
Brief description of the feature and the problem it solves.2. Goals
Specific, measurable objectives in a bullet list.3. User Stories
Each story includes:Short descriptive name (e.g., “Add priority field to database”)
Standard format: “As a [user], I want [feature] so that [benefit]”
Verifiable checklist of what “done” means. Each story must include:
- Specific verifiable criteria
- “Typecheck/lint passes”
- [UI stories only] “Verify in browser using dev-browser skill”
User Story Format
Stories should be small enough to implement in one focused session. If a story feels too large, it should be split into multiple stories.
4. Functional Requirements
Numbered list of specific functionalities:5. Non-Goals (Out of Scope)
What this feature will NOT include. This is critical for managing scope creep.6. Design Considerations (Optional)
- UI/UX requirements
- Links to mockups if available
- Relevant existing components to reuse
7. Technical Considerations (Optional)
- Known constraints or dependencies
- Integration points with existing systems
- Performance requirements
8. Success Metrics
How will success be measured?9. Open Questions
Remaining questions or areas needing clarification.Writing Guidelines
The PRD may be read by junior developers or AI agents, so:- Be explicit and unambiguous - Avoid assumptions
- Avoid jargon or explain it - Don’t assume domain knowledge
- Provide enough detail - Include purpose and core logic
- Number requirements - For easy reference (FR-1, FR-2, etc.)
- Use concrete examples - Show, don’t just tell
Example PRD
Here’s a complete example of a generated PRD:Story Size Guidelines
Each user story should be completable in one focused session. Use these guidelines:Right-sized Stories ✅
- Add a database column and migration
- Add a UI component to an existing page
- Update a server action with new logic
- Add a filter dropdown to a list
Too Large ❌ (Split These)
- “Build the entire dashboard” → Split into: schema, queries, UI components, filters
- “Add authentication” → Split into: schema, middleware, login UI, session handling
- “Refactor the API” → Split into one story per endpoint or pattern
Rule of thumb: If you cannot describe the change in 2-3 sentences, it’s too big.
Acceptance Criteria Best Practices
Acceptance criteria must be verifiable, not vague:Good Criteria ✅
- “Button shows confirmation dialog before deleting”
- “Filter dropdown has options: All, Active, Completed”
- “API returns 404 when task not found”
- “Typecheck passes”
Bad Criteria ❌
- “Works correctly” (too vague)
- “Good UX” (not measurable)
- “Handles edge cases” (which ones?)
- “User can do X easily” (not verifiable)
Required Criteria
Every story must include:Output Location
PRDs are generated in markdown format for easy editing and version control
All PRDs are saved to the tasks/ directory in your project root
Filenames use kebab-case with the prd- prefix
Next Steps
After generating a PRD:- Review and edit - Refine the PRD based on team feedback
- Convert to JSON - Use the Ralph Converter skill to create
prd.json - Run Ralph - Execute the autonomous implementation loop
Checklist
Before saving a PRD, verify:- Asked clarifying questions with lettered options
- Incorporated user’s answers
- User stories are small and specific
- Functional requirements are numbered and unambiguous
- Non-goals section defines clear boundaries
- Saved to
tasks/prd-[feature-name].md

