prd-writing
Step-by-step workflow for writing Product Requirements Documents. Use when creating PRDs, documenting features, writing specifications, or planning new products. Triggers on "write PRD", "create PRD", "document requirements", "feature spec", or "product requirements".
What it does
PRD Writing
Step-by-step workflow for writing clear, actionable Product Requirements Documents. Follow the 6-step process below, using the 25 rules across 7 categories as supporting knowledge.
Metadata
- Version: 1.0.0
- Rule Count: 25 rules across 7 categories
- License: MIT
Workflow
Follow these steps in order. Skip a step only if the user has already provided that information. Do NOT start drafting before completing discovery.
Step 1: Assess Project State
Determine what you're working with:
- Existing project — code exists → explore the codebase first (models, routes, controllers, auth, patterns). See
disc-codebase-exploration. - Empty/greenfield project — no code yet → ask the user what they want to build first. Brainstorm together until the product idea and core features are clear, then ask about planned stack, architecture decisions, and constraints.
Step 2: Ask Clarifying Questions
Ask 3-5 targeted questions to fill knowledge gaps. Use lettered options (A/B/C) when there are clear choices, and open-ended questions when you need free-text answers. Focus on:
- Problem — What problem are we solving? Why now?
- Users — Who are the target users?
- Scope — What should it NOT do?
- Success — How do we know it's done?
- Constraints — Timeline, budget, team size?
Mark unknowns as TBD, not assumptions. See disc-clarifying-questions.
Step 3: Draft the PRD
Use the template from struct-prd-template and fill in all 12 sections:
- Executive Summary — 1 paragraph: problem, solution, impact
- Problem Statement — what, who, evidence, why now
- Goals & Success Metrics — 3-5 measurable KPIs
- User Personas — primary and secondary with roles/goals/pain points
- User Stories & Acceptance Criteria — "As a / I want / So that" with checkboxes
- Functional Requirements — numbered FR-1, FR-2, etc.
- Non-Functional Requirements — performance, security, accessibility with specific numbers
- Technical Specifications — data model, auth, routes, integrations
- Out of Scope — what we're NOT building and why
- Non-Goals — what we're NOT optimizing for
- Dependencies & Risks — blockers with owners and mitigations
- Open Questions — unresolved items with owners and due dates
Key rules to follow while drafting:
- Start with the problem, not the solution (
disc-problem-first) - Replace vague language with numbers (
metric-no-vague-language) - Every requirement must be testable (
quality-acceptance-criteria) - Use Given/When/Then for complex acceptance criteria
Step 4: Present for Review
Show the draft to the user. Ask specifically:
- Does the problem statement match your understanding?
- Are user stories missing any workflows?
- Are the scope boundaries correct?
- Any open questions I should resolve?
Step 5: Revise Based on Feedback
Incorporate feedback, resolve open questions, and update the PRD. Add a review history entry if the PRD will be shared with a team.
Step 6: Save the PRD
Save to docs/prd/{feature-name}.md using kebab-case naming. Include frontmatter:
---
title: Feature Name
status: draft
author: Author Name
created: YYYY-MM-DD
updated: YYYY-MM-DD
---
Rules Reference
The 25 rules below provide detailed guidance for each step. Read them when you need deeper context.
1. Discovery (CRITICAL)
disc-problem-first- Start with the problem, not the solutiondisc-clarifying-questions- Ask clarifying questions before writingdisc-codebase-exploration- Explore the codebase before draftingdisc-stakeholder-alignment- Align with stakeholders on goals and constraints
2. Structure (CRITICAL)
struct-standard-sections- Use standardized PRD sectionsstruct-executive-summary- Write a concise executive summarystruct-prd-template- Provide a ready-to-use PRD templatestruct-output-location- Save PRDs to a consistent file locationstruct-single-source-of-truth- PRD is the definitive reference for a feature
3. Requirements (HIGH)
req-user-personas- Define target user personasreq-user-stories- Write user stories with acceptance criteriareq-functional- Define specific functional requirementsreq-non-functional- Define non-functional requirements
4. Scope (HIGH)
scope-out-of-scope- Explicitly define what is out of scopescope-non-goals- List non-goals to protect timelinescope-dependencies- Identify dependencies and blockers
5. Metrics (HIGH)
metric-measurable-success- Define measurable success criteriametric-no-vague-language- Replace vague terms with quantifiable benchmarksmetric-kpis- Define 3-5 key performance indicators
6. Technical (MEDIUM)
tech-data-model- Document the data model and relationshipstech-auth-model- Define authentication and authorizationtech-api-routes- Document API and route structuretech-integration-points- Identify third-party integrations
7. Quality (MEDIUM)
quality-acceptance-criteria- Write testable acceptance criteriaquality-iterative-review- Iterate with feedback before finalizing
References
- Lenny's Newsletter - How to Write a Great PRD
- Silicon Valley Product Group - Product Discovery
- Shape Up - Basecamp
- Writing Great Specifications - Kamil Nicieja
- Atlassian - Product Requirements Document
Full Compiled Document
For the complete guide with all rules expanded: AGENTS.md
Capabilities
Install
Quality
deterministic score 0.47 from registry signals: · indexed on github topic:agent-skills · 39 github stars · SKILL.md body (5,815 chars)