11---
22description : Generate full Product Requirements Document (PRD) from PDRs using multi-agent DAG orchestration with mandatory checkpoint after Requirements
3- version : 1.5.2
3+ version : 1.5.3
44compliance : strict
55scripts :
66 sh : .specify/extensions/product/scripts/bash/setup-product.sh "implement {ARGS}"
99
1010---
1111
12- ## ⚠️ CRITICAL COMPLIANCE CHECKLIST (v1.5.2 )
12+ ## ⚠️ CRITICAL COMPLIANCE CHECKLIST (v1.5.3 )
1313
1414** READ THIS FIRST - MANDATORY REQUIREMENTS**
1515
@@ -19,8 +19,13 @@ Before generating ANY content, you MUST verify:
1919- [ ] ** MUST** use Mermaid syntax (```mermaid) for ALL diagrams - ** ASCII art is STRICTLY PROHIBITED**
2020- [ ] ** MUST** place "Visual Summary" as ** Section 1** (numbered) - right after header
2121- [ ] ** MUST** include "Document Information" as ** Section 2**
22+ - [ ] ** MUST** include "Executive Summary" as ** Section 2.5** with business impact metrics
23+ - [ ] ** MUST** include "Market Opportunity" as ** Section 4.5** with TAM/SAM/SOM
24+ - [ ] ** MUST** include "Investment & Resources" as ** Section 11.5** with ROI
25+ - [ ] ** MUST** include "Go-to-Market Strategy" as ** Section 12.5** with pricing
2226- [ ] ** MUST** fill or remove ALL template placeholders like ` [PRODUCT_NAME] ` , ` [DATE] `
2327- [ ] ** MUST** trace all requirements to source PDRs with ID references
28+ - [ ] ** MUST** produce a ** SELF-CONTAINED** PRD.md - no reader-facing links to ` .specify/ ` files
2429- [ ] ** MUST** validate output with ` ./scripts/validate-prd.sh --strict ` after each section
2530
2631### STRICT ENFORCEMENT RULES:
@@ -38,10 +43,19 @@ Before generating ANY content, you MUST verify:
3843 - ** VIOLATION = Convert to Mermaid immediately**
3944
40453 . ** Section Numbering is FIXED**
41- - Section 1: Visual Summary (MUST be numbered)
46+ - Section 1: Visual Summary (MUST be numbered, inline Mermaid )
4247 - Section 2: Document Information
48+ - Section 2.5: Executive Summary (business case, ROI)
4349 - Section 3: Overview
44- - ... and so on per prd-template.md
50+ - Section 4: The Problem
51+ - Section 4.5: Market Opportunity (TAM/SAM/SOM, competitive)
52+ - Section 5-6: Goals, Metrics (+ 6.5 Business Outcome Metrics)
53+ - Section 7-10: Personas, Requirements, NFRs, Out of Scope
54+ - Section 11: Risks (+ 11.4 Business Risks)
55+ - Section 11.5: Investment & Resources (team, budget, ROI)
56+ - Section 12: Roadmap
57+ - Section 12.5: Go-to-Market Strategy (launch, pricing, messaging)
58+ - Section 13: PDR Summary
4559 - ** VIOLATION = Renumber to match template**
4660
47614 . ** Validation is REQUIRED**
@@ -72,8 +86,9 @@ You **MUST** consider the user input before proceeding (if not empty).
7286### Flags
7387
7488- ` --sections SECTIONS ` : PRD sections to generate
75- - ` all ` (default): All 11 sections
89+ - ` all ` (default): All 15 sections (11 core + 4 business)
7690 - Custom: comma-separated (e.g., ` problem,scope,requirements ` )
91+ - Business sections: ` executive-summary,market-opportunity,investment,gtm `
7792
7893- ` --no-checkpoint ` : Skip Requirements section checkpoint
7994 - ** Warning** : Requirements is the cornerstone that shapes NFRs, Out-of-Scope, Risks, and Roadmap
@@ -258,19 +273,25 @@ Overview → Problem → Goals → Metrics → Personas → Requirements
258273
259274**DAG Dependency Rules**:
260275
261- | Section | Dependencies | Can Parallelize |
262- |---------|--------------|-----------------|
263- | Overview | None | Yes |
264- | Problem | Overview | Yes |
265- | Goals | Problem | Yes |
266- | Metrics | Goals | Yes |
267- | Personas | Problem, Goals | Yes |
268- | **Requirements** | Goals, Personas | **No - CHECKPOINT** |
269- | NFRs | Requirements | No |
270- | Out-of-Scope | Requirements | No |
271- | Risks | Requirements, Out-of-Scope | No |
272- | Roadmap | Requirements, Goals | No |
273- | PDR-Summary | All above | No |
276+ | Section | Slug | Dependencies | Can Parallelize |
277+ |---------|------|--------------|-----------------|
278+ | Overview | `overview` | None | Yes |
279+ | Problem | `problem` | Overview | Yes |
280+ | Market Opportunity | `market-opportunity` | Overview, Problem | Yes |
281+ | Goals | `goals` | Problem | Yes |
282+ | Metrics | `metrics` | Goals | Yes |
283+ | Personas | `personas` | Problem, Goals | Yes |
284+ | Executive Summary | `executive-summary` | Overview, Problem, Goals, Metrics | Yes |
285+ | **Requirements** | `requirements` | Goals, Personas | **No - CHECKPOINT** |
286+ | NFRs | `nfrs` | Requirements | No |
287+ | Out-of-Scope | `out-of-scope` | Requirements | No |
288+ | Risks | `risks` | Requirements, Out-of-Scope | No |
289+ | Investment | `investment` | Requirements, Risks | No |
290+ | Roadmap | `roadmap` | Requirements, Goals | No |
291+ | Go-to-Market | `gtm` | Roadmap, Personas, Market Opportunity | No |
292+ | PDR-Summary | `pdr-summary` | All above | No |
293+
294+ **Business sections** (marked with sub-numbers 2.5, 4.5, 11.5, 12.5) are generated alongside their adjacent sections. They provide the business context that stakeholders and product managers need for decision-making.
274295
275296### Step 1.4: Present Plan for User Approval
276297
@@ -283,7 +304,7 @@ Overview → Problem → Goals → Metrics → Personas → Requirements
283304### Feature-Area: Core
284305**PDRs**: PDR-001, PDR-005, PDR-008
285306**Characteristics**: B2B SaaS, Platform
286- **DAG**: Overview → Problem → Goals → Metrics → Personas → [Requirements Checkpoint] → NFRs → Out-of-Scope → Risks → Roadmap → PDR-Summary
307+ **DAG**: Overview → Problem → Market Opportunity → Goals → Metrics → Personas → Executive Summary → [Requirements Checkpoint] → NFRs → Out-of-Scope → Risks → Investment → Roadmap → GTM → PDR-Summary
287308
288309**Checkpoint**: After Requirements section, execution will pause for approval.
289310
@@ -603,58 +624,58 @@ Compare sections across feature-areas:
603624| Priority mismatch | Same feature, different priority | Defer to PDR |
604625| Metric inconsistency | Same metric, different definition | Use PDR definition |
605626
606- ### Step 3.2.5: Generate Visual Summary Section (MANDATORY)
627+ ### Step 3.2.5: Embed Visual Summary INLINE (MANDATORY)
607628
608- ** MANDATORY: Create a Visual Summary section that embeds all diagrams into the PRD .**
629+ ** MANDATORY: Section 1 ( Visual Summary) must contain ALL diagrams as inline Mermaid blocks .**
609630
610- This step ensures PRD consumers can view diagrams inline without navigating separate files.
631+ > ** SELF-CONTAINED RULE (v1.5.3):** The final PRD.md must be readable WITHOUT opening any other file.
632+ > Section files in ` .specify/product/sections/ ` are intermediate build artifacts.
633+ > Visual files in ` .specify/product/visuals/ ` are supplementary only.
634+ > ** NO reader-facing links to ` .specify/ ` paths in the final PRD.md.**
611635
612- #### Visual Summary Section Structure
636+ #### How to Embed Visuals
613637
614- Add the following section to PRD.md (typically Section 12 or Appendix):
638+ 1 . Extract the Mermaid code blocks from each visual file (` .specify/product/visuals/*.md ` )
639+ 2 . Embed them directly into ** Section 1 (Visual Summary)** of PRD.md
640+ 3 . Use in-document anchor links (e.g., ` [Section 1.1](#11-feature-hierarchy) ` ) for cross-references
641+ 4 . Do NOT use external file links like ` [View](visuals/feature-hierarchy.md) `
642+
643+ #### Section 1 Structure (inline)
615644
616645``` markdown
617- ## 12 . Visual Summary
646+ ## 1 . Visual Summary
618647
619- This section provides inline visualizations referenced throughout the PRD.
648+ ### 1.1 Feature Hierarchy
649+ [ Embed Mermaid flowchart from visuals/feature-hierarchy.md]
620650
621- ### 12.1 Feature Hierarchy
651+ ### 1.2 Feature Dependencies
652+ [ Embed Mermaid flowchart from visuals/feature-deps.md]
622653
623- ``` mermaid
624- flowchart TD
625- [Embed content from visuals/feature-hierarchy.md]
654+ ### 1.3 Roadmap Timeline
655+ [ Embed Mermaid gantt from visuals/roadmap-timeline.md]
626656```
627657
628- > 📄 ** Full Diagram ** : See [ visuals/feature-hierarchy.md ] ( .specify/product/visuals/feature-hierarchy.md )
658+ #### Cross-Reference Pattern
629659
630- ### 12.2 Feature Dependencies
660+ When other sections reference visuals, use in-document anchors:
661+ - ` See [Section 1.1](#11-feature-hierarchy) ` (NOT ` [View](visuals/feature-hierarchy.md) ` )
662+ - ` See [Visual Summary](#1-visual-summary) ` (NOT external file links)
631663
632- ``` mermaid
633- flowchart LR
634- [Embed content from visuals/feature-deps.md]
635- ```
636-
637- > 📄 ** Full Diagram** : See [ visuals/feature-deps.md] ( .specify/product/visuals/feature-deps.md )
664+ ### Step 3.2.6: Embed Business Sections (MANDATORY)
638665
639- ### 12.3 User Flows
666+ ** All 4 business sections must be embedded inline in PRD.md: **
640667
641- ``` mermaid
642- flowchart TB
643- [Embed content from visuals/user-flows.md]
644- ```
645-
646- > 📄 ** Full Diagram** : See [ visuals/user-flows.md] ( .specify/product/visuals/user-flows.md )
647-
648- ### 12.4 State Machine
649-
650- ``` mermaid
651- stateDiagram-v2
652- [Embed content from visuals/state-machine.md]
653- ```
668+ 1 . ** Section 2.5 (Executive Summary)** : After Document Info, before Overview
669+ 2 . ** Section 4.5 (Market Opportunity)** : After Problem, before Goals
670+ 3 . ** Section 11.5 (Investment & Resources)** : After Risks, before Roadmap
671+ 4 . ** Section 12.5 (Go-to-Market Strategy)** : After Roadmap, before PDR Summary
654672
655- > 📄 ** Full Diagram** : See [ visuals/state-machine.md] ( .specify/product/visuals/state-machine.md )
673+ These sections derive content from:
674+ - PDR consequence sections (business impact)
675+ - PDR metrics sections (financial targets)
676+ - Cross-feature-area analysis (market positioning)
656677
657- ### 12.5 ASCII Fallback Diagrams
678+ ### Step 3.2.7: ASCII Fallback Diagrams (Complex Only)
658679
659680If Mermaid rendering fails, ASCII diagrams are available in the full visual files linked above.
660681```
0 commit comments