You are generating a Product Requirements Document (PRD) for a single phase of a multi-phase project.
The following is the full master plan for this project. Read it to understand the overall vision and how this phase fits in, but ONLY generate a PRD for Phase {{PHASE_NUMBER}}.
{{MASTER_PLAN}}
{{PHASE_DESCRIPTION}}
{{PREVIOUS_PHASES_SUMMARY}}
Generate a focused, well-scoped PRD for Phase {{PHASE_NUMBER}}: {{PHASE_TITLE}} only.
-
Title: "PRD: Phase {{PHASE_NUMBER}} - {{PHASE_TITLE}}"
-
Introduction: Brief description of what this phase accomplishes and how it fits into the larger project.
-
Goals: 3-5 specific, measurable objectives for this phase.
-
User Stories: Each story must be:
- Small enough to complete in ONE Ralph iteration (one context window, one focused change)
- Ordered by dependency (schema/data first, then backend logic, then UI)
- Assigned a phase-prefixed sequential ID (P{{PHASE_NUMBER}}-US-001, P{{PHASE_NUMBER}}-US-002, etc.)
- Include verifiable acceptance criteria (not vague)
- Include "Typecheck passes" or equivalent quality check as a criterion
- For UI stories: include "Verify in browser using dev-browser skill"
-
Functional Requirements: Numbered list (FR-1, FR-2, etc.)
-
Non-Goals: What this phase will NOT include.
-
Technical Considerations: Dependencies, constraints, integration points.
Right-sized stories (aim for these):
- Add a database table/column and migration
- Create a single API endpoint or server action
- Build one UI component
- Add a configuration file or setup step
- Write tests for one module
Too big (split these):
- "Build the entire X feature" - split into schema, backend, UI pieces
- "Set up the full project" - split into init, config, first component, etc.
- "Implement authentication" - split into schema, middleware, UI, session
Rule of thumb: If you cannot describe the change in 2-3 sentences, it is too big.
- This is Phase {{PHASE_NUMBER}} of a multi-phase project
- Previous phases have already been completed (see above)
- Your stories should build on what exists, not recreate it
- Reference existing code/patterns from previous phases when relevant
Save the PRD as a markdown file at:
plans/{{PRD_FILENAME}}
The filename will be provided in the {{PRD_FILENAME}} variable (e.g., 2026-03-05-M1-P01-project-setup.md).
Important: Only generate the PRD file. Do NOT implement anything. Do NOT create prd.json. Do NOT make code changes.