Generate a Product Requirements Document (PRD) for this project. Creates PRDs with user stories, acceptance criteria, and quality gates optimized for AI agent execution. Triggers on: create a prd, write prd for, plan this feature, requirements for, spec out.
Create detailed Product Requirements Documents optimized for AI agent execution.
Important: Do NOT start implementing. Just create the PRD.
This is an Astro + React monorepo (Turborepo) for a flower industry company directory.
Tech stack:
@theme tokens (OKLCH color space)Monorepo structure:
apps/web/ — Astro app with React islandspackages/data/ — Company data, types, filter utilitiespackages/ui/ — Reusable React components (Base UI + charts)packages/styles/ — Shared Tailwind v4 config and CSSpackages/tsconfig/ — Shared TypeScript configsAsk questions one set at a time. Each answer should inform your next questions. Focus on:
1. What is the primary goal of this feature?
A. Improve user onboarding experience
B. Increase user retention
C. Reduce support burden
D. Other: [please specify]
2. Who is the target user?
A. New users only
B. Existing users only
C. All users
D. Admin users only
This lets users respond with "1A, 2C" for quick iteration.
Always ask about quality gates — suggest the project defaults:
What quality commands must pass for each user story?
A. npm run typecheck && npm run lint && npm run test (Recommended)
B. npm run typecheck && npm run lint && npm run test && npm run e2e
C. npm run typecheck only
D. Other: [specify your commands]
After each response, decide whether to:
Typically 2-4 rounds of questions are needed.
Generate the PRD with these sections:
Brief description of the feature and the problem it solves.
Specific, measurable objectives (bullet list).
CRITICAL: List the commands that must pass for every user story.
## Quality Gates
These commands must pass for every user story:
- `npm run typecheck` - Type checking
- `npm run lint` - Linting
- `npm run test` - Unit tests
Each story needs:
Each story should be small enough to implement in one focused AI agent session.
Format:
### US-001: [Title]
**Description:** As a [user], I want [feature] so that [benefit].
**Acceptance Criteria:**
- [ ] Specific verifiable criterion
- [ ] Another criterion
Note: Do NOT include quality gate commands in individual story criteria — they are defined once in the Quality Gates section and applied automatically.
Important:
Numbered list of specific functionalities:
Be explicit and unambiguous.
What this feature will NOT include. Critical for managing scope.
How will success be measured?
Remaining questions or areas needing clarification.
The PRD will be executed by AI coding agents. Therefore:
Save the PRD to ./plans/prd-[feature-name].md
User: Create a PRD for adding a company detail page
Assistant: I'll help you create a PRD for company detail pages. Let me ask a few questions:
What is the primary goal? A. Show full company information when clicking a card B. Create a standalone page for each company (SEO) C. Both — detail view + individual URL D. Other
How should the detail view open?
A. New Astro page (/companies/[id])
B. Modal/dialog overlay on the companies page
C. Expandable card inline
D. Other
User: 1C, 2A
Assistant: Great! A couple more questions:
What data should the detail page show beyond what's on the card? A. Full description + all metadata fields B. Add charts (specialty breakdown, similar companies) C. Minimal — same as card but with more space D. Other
What quality commands must pass for each story? A. npm run typecheck && npm run lint && npm run test (Recommended) B. npm run typecheck && npm run lint && npm run test && npm run e2e C. Other: [specify]
User: 1A, 2B
Assistant: Perfect, I have enough to generate the PRD.
(generates PRD and saves to ./plans/prd-company-detail-page.md)
Before outputting the PRD: