From 9f8f7f4a3eb2acfe2138c9c7c1639dfb15dfe8e2 Mon Sep 17 00:00:00 2001 From: Alex Verkhovsky Date: Sat, 14 Mar 2026 16:05:52 -0600 Subject: [PATCH 1/7] refactor(skills): convert create-prd to native skill directory Move the create-prd workflow into src/core/tasks/bmad-create-prd/ as a self-contained native skill with SKILL.md, workflow.md, steps-c/, data/, and templates/. Update all internal path references from absolute {project-root}/_bmad/... to relative paths. Mark the source workflow-create-prd.md as standalone:false to prevent duplicate manifest entries. Update pm.agent.yaml and module-help.csv to use skill:bmad-create-prd. --- src/bmm/agents/pm.agent.yaml | 2 +- src/bmm/module-help.csv | 2 +- .../create-prd/bmad-skill-manifest.yaml | 5 - .../create-prd/workflow-create-prd.md | 1 + src/core/tasks/bmad-create-prd/SKILL.md | 6 + .../bmad-create-prd/bmad-skill-manifest.yaml | 1 + .../data/domain-complexity.csv | 15 ++ .../tasks/bmad-create-prd/data/prd-purpose.md | 197 ++++++++++++++ .../bmad-create-prd/data/project-types.csv | 11 + .../bmad-create-prd/steps-c/step-01-init.md | 191 ++++++++++++++ .../steps-c/step-01b-continue.md | 152 +++++++++++ .../steps-c/step-02-discovery.md | 225 ++++++++++++++++ .../steps-c/step-02b-vision.md | 155 +++++++++++ .../steps-c/step-02c-executive-summary.md | 171 ++++++++++++ .../steps-c/step-03-success.md | 227 ++++++++++++++++ .../steps-c/step-04-journeys.md | 214 +++++++++++++++ .../bmad-create-prd/steps-c/step-05-domain.md | 208 +++++++++++++++ .../steps-c/step-06-innovation.md | 227 ++++++++++++++++ .../steps-c/step-07-project-type.md | 238 +++++++++++++++++ .../steps-c/step-08-scoping.md | 229 +++++++++++++++++ .../steps-c/step-09-functional.md | 232 +++++++++++++++++ .../steps-c/step-10-nonfunctional.md | 243 ++++++++++++++++++ .../bmad-create-prd/steps-c/step-11-polish.md | 235 +++++++++++++++++ .../steps-c/step-12-complete.md | 124 +++++++++ .../bmad-create-prd/templates/prd-template.md | 10 + src/core/tasks/bmad-create-prd/workflow.md | 62 +++++ 26 files changed, 3376 insertions(+), 7 deletions(-) create mode 100644 src/core/tasks/bmad-create-prd/SKILL.md create mode 100644 src/core/tasks/bmad-create-prd/bmad-skill-manifest.yaml create mode 100644 src/core/tasks/bmad-create-prd/data/domain-complexity.csv create mode 100644 src/core/tasks/bmad-create-prd/data/prd-purpose.md create mode 100644 src/core/tasks/bmad-create-prd/data/project-types.csv create mode 100644 src/core/tasks/bmad-create-prd/steps-c/step-01-init.md create mode 100644 src/core/tasks/bmad-create-prd/steps-c/step-01b-continue.md create mode 100644 src/core/tasks/bmad-create-prd/steps-c/step-02-discovery.md create mode 100644 src/core/tasks/bmad-create-prd/steps-c/step-02b-vision.md create mode 100644 src/core/tasks/bmad-create-prd/steps-c/step-02c-executive-summary.md create mode 100644 src/core/tasks/bmad-create-prd/steps-c/step-03-success.md create mode 100644 src/core/tasks/bmad-create-prd/steps-c/step-04-journeys.md create mode 100644 src/core/tasks/bmad-create-prd/steps-c/step-05-domain.md create mode 100644 src/core/tasks/bmad-create-prd/steps-c/step-06-innovation.md create mode 100644 src/core/tasks/bmad-create-prd/steps-c/step-07-project-type.md create mode 100644 src/core/tasks/bmad-create-prd/steps-c/step-08-scoping.md create mode 100644 src/core/tasks/bmad-create-prd/steps-c/step-09-functional.md create mode 100644 src/core/tasks/bmad-create-prd/steps-c/step-10-nonfunctional.md create mode 100644 src/core/tasks/bmad-create-prd/steps-c/step-11-polish.md create mode 100644 src/core/tasks/bmad-create-prd/steps-c/step-12-complete.md create mode 100644 src/core/tasks/bmad-create-prd/templates/prd-template.md create mode 100644 src/core/tasks/bmad-create-prd/workflow.md diff --git a/src/bmm/agents/pm.agent.yaml b/src/bmm/agents/pm.agent.yaml index c8fc271cd..707d17da6 100644 --- a/src/bmm/agents/pm.agent.yaml +++ b/src/bmm/agents/pm.agent.yaml @@ -20,7 +20,7 @@ agent: menu: - trigger: CP or fuzzy match on create-prd - exec: "{project-root}/_bmad/bmm/workflows/2-plan-workflows/create-prd/workflow-create-prd.md" + exec: "skill:bmad-create-prd" description: "[CP] Create PRD: Expert led facilitation to produce your Product Requirements Document" - trigger: VP or fuzzy match on validate-prd diff --git a/src/bmm/module-help.csv b/src/bmm/module-help.csv index 1c21ac015..df5118a58 100644 --- a/src/bmm/module-help.csv +++ b/src/bmm/module-help.csv @@ -15,7 +15,7 @@ bmm,1-analysis,Market Research,MR,20,_bmad/bmm/workflows/1-analysis/research/wor bmm,1-analysis,Domain Research,DR,21,skill:bmad-domain-research,bmad-bmm-domain-research,false,analyst,Create Mode,"Industry domain deep dive subject matter expertise and terminology","planning_artifacts|project_knowledge","research documents", bmm,1-analysis,Technical Research,TR,22,skill:bmad-technical-research,bmad-bmm-technical-research,false,analyst,Create Mode,"Technical feasibility architecture options and implementation approaches","planning_artifacts|project_knowledge","research documents", bmm,1-analysis,Create Brief,CB,30,skill:bmad-create-product-brief,bmad-bmm-create-product-brief,false,analyst,Create Mode,"A guided experience to nail down your product idea",planning_artifacts,"product brief", -bmm,2-planning,Create PRD,CP,10,_bmad/bmm/workflows/2-plan-workflows/create-prd/workflow-create-prd.md,bmad-bmm-create-prd,true,pm,Create Mode,"Expert led facilitation to produce your Product Requirements Document",planning_artifacts,prd, +bmm,2-planning,Create PRD,CP,10,skill:bmad-create-prd,bmad-bmm-create-prd,true,pm,Create Mode,"Expert led facilitation to produce your Product Requirements Document",planning_artifacts,prd, bmm,2-planning,Validate PRD,VP,20,_bmad/bmm/workflows/2-plan-workflows/create-prd/workflow-validate-prd.md,bmad-bmm-validate-prd,false,pm,Validate Mode,"Validate PRD is comprehensive lean well organized and cohesive",planning_artifacts,"prd validation report", bmm,2-planning,Edit PRD,EP,25,skill:bmad-edit-prd,bmad-bmm-edit-prd,false,pm,Edit Mode,"Improve and enhance an existing PRD",planning_artifacts,"updated prd", bmm,2-planning,Create UX,CU,30,skill:bmad-create-ux-design,bmad-bmm-create-ux-design,false,ux-designer,Create Mode,"Guidance through realizing the plan for your UX, strongly recommended if a UI is a primary piece of the proposed project",planning_artifacts,"ux design", diff --git a/src/bmm/workflows/2-plan-workflows/create-prd/bmad-skill-manifest.yaml b/src/bmm/workflows/2-plan-workflows/create-prd/bmad-skill-manifest.yaml index 32464dcc8..f7eed5f7b 100644 --- a/src/bmm/workflows/2-plan-workflows/create-prd/bmad-skill-manifest.yaml +++ b/src/bmm/workflows/2-plan-workflows/create-prd/bmad-skill-manifest.yaml @@ -1,8 +1,3 @@ -workflow-create-prd.md: - canonicalId: bmad-create-prd - type: workflow - description: "Create a PRD from scratch. Use when the user says 'lets create a product requirements document' or 'I want to create a new PRD'" - workflow-validate-prd.md: canonicalId: bmad-validate-prd type: workflow diff --git a/src/bmm/workflows/2-plan-workflows/create-prd/workflow-create-prd.md b/src/bmm/workflows/2-plan-workflows/create-prd/workflow-create-prd.md index ecc71bbdd..f7dd26163 100644 --- a/src/bmm/workflows/2-plan-workflows/create-prd/workflow-create-prd.md +++ b/src/bmm/workflows/2-plan-workflows/create-prd/workflow-create-prd.md @@ -1,6 +1,7 @@ --- name: create-prd description: 'Create a PRD from scratch. Use when the user says "lets create a product requirements document" or "I want to create a new PRD"' +standalone: false main_config: '{project-root}/_bmad/bmm/config.yaml' nextStep: './steps-c/step-01-init.md' --- diff --git a/src/core/tasks/bmad-create-prd/SKILL.md b/src/core/tasks/bmad-create-prd/SKILL.md new file mode 100644 index 000000000..dc0c844ce --- /dev/null +++ b/src/core/tasks/bmad-create-prd/SKILL.md @@ -0,0 +1,6 @@ +--- +name: bmad-create-prd +description: 'Create a PRD from scratch. Use when the user says "lets create a product requirements document" or "I want to create a new PRD"' +--- + +Follow the instructions in [workflow.md](workflow.md). diff --git a/src/core/tasks/bmad-create-prd/bmad-skill-manifest.yaml b/src/core/tasks/bmad-create-prd/bmad-skill-manifest.yaml new file mode 100644 index 000000000..d0f08abdb --- /dev/null +++ b/src/core/tasks/bmad-create-prd/bmad-skill-manifest.yaml @@ -0,0 +1 @@ +type: skill diff --git a/src/core/tasks/bmad-create-prd/data/domain-complexity.csv b/src/core/tasks/bmad-create-prd/data/domain-complexity.csv new file mode 100644 index 000000000..60a7b503f --- /dev/null +++ b/src/core/tasks/bmad-create-prd/data/domain-complexity.csv @@ -0,0 +1,15 @@ +domain,signals,complexity,key_concerns,required_knowledge,suggested_workflow,web_searches,special_sections +healthcare,"medical,diagnostic,clinical,FDA,patient,treatment,HIPAA,therapy,pharma,drug",high,"FDA approval;Clinical validation;HIPAA compliance;Patient safety;Medical device classification;Liability","Regulatory pathways;Clinical trial design;Medical standards;Data privacy;Integration requirements","domain-research","FDA software medical device guidance {date};HIPAA compliance software requirements;Medical software standards {date};Clinical validation software","clinical_requirements;regulatory_pathway;validation_methodology;safety_measures" +fintech,"payment,banking,trading,investment,crypto,wallet,transaction,KYC,AML,funds,fintech",high,"Regional compliance;Security standards;Audit requirements;Fraud prevention;Data protection","KYC/AML requirements;PCI DSS;Open banking;Regional laws (US/EU/APAC);Crypto regulations","domain-research","fintech regulations {date};payment processing compliance {date};open banking API standards;cryptocurrency regulations {date}","compliance_matrix;security_architecture;audit_requirements;fraud_prevention" +govtech,"government,federal,civic,public sector,citizen,municipal,voting",high,"Procurement rules;Security clearance;Accessibility (508);FedRAMP;Privacy;Transparency","Government procurement;Security frameworks;Accessibility standards;Privacy laws;Open data requirements","domain-research","government software procurement {date};FedRAMP compliance requirements;section 508 accessibility;government security standards","procurement_compliance;security_clearance;accessibility_standards;transparency_requirements" +edtech,"education,learning,student,teacher,curriculum,assessment,K-12,university,LMS",medium,"Student privacy (COPPA/FERPA);Accessibility;Content moderation;Age verification;Curriculum standards","Educational privacy laws;Learning standards;Accessibility requirements;Content guidelines;Assessment validity","domain-research","educational software privacy {date};COPPA FERPA compliance;WCAG education requirements;learning management standards","privacy_compliance;content_guidelines;accessibility_features;curriculum_alignment" +aerospace,"aircraft,spacecraft,aviation,drone,satellite,propulsion,flight,radar,navigation",high,"Safety certification;DO-178C compliance;Performance validation;Simulation accuracy;Export controls","Aviation standards;Safety analysis;Simulation validation;ITAR/export controls;Performance requirements","domain-research + technical-model","DO-178C software certification;aerospace simulation standards {date};ITAR export controls software;aviation safety requirements","safety_certification;simulation_validation;performance_requirements;export_compliance" +automotive,"vehicle,car,autonomous,ADAS,automotive,driving,EV,charging",high,"Safety standards;ISO 26262;V2X communication;Real-time requirements;Certification","Automotive standards;Functional safety;V2X protocols;Real-time systems;Testing requirements","domain-research","ISO 26262 automotive software;automotive safety standards {date};V2X communication protocols;EV charging standards","safety_standards;functional_safety;communication_protocols;certification_requirements" +scientific,"research,algorithm,simulation,modeling,computational,analysis,data science,ML,AI",medium,"Reproducibility;Validation methodology;Peer review;Performance;Accuracy;Computational resources","Scientific method;Statistical validity;Computational requirements;Domain expertise;Publication standards","technical-model","scientific computing best practices {date};research reproducibility standards;computational modeling validation;peer review software","validation_methodology;accuracy_metrics;reproducibility_plan;computational_requirements" +legaltech,"legal,law,contract,compliance,litigation,patent,attorney,court",high,"Legal ethics;Bar regulations;Data retention;Attorney-client privilege;Court system integration","Legal practice rules;Ethics requirements;Court filing systems;Document standards;Confidentiality","domain-research","legal technology ethics {date};law practice management software requirements;court filing system standards;attorney client privilege technology","ethics_compliance;data_retention;confidentiality_measures;court_integration" +insuretech,"insurance,claims,underwriting,actuarial,policy,risk,premium",high,"Insurance regulations;Actuarial standards;Data privacy;Fraud detection;State compliance","Insurance regulations by state;Actuarial methods;Risk modeling;Claims processing;Regulatory reporting","domain-research","insurance software regulations {date};actuarial standards software;insurance fraud detection;state insurance compliance","regulatory_requirements;risk_modeling;fraud_detection;reporting_compliance" +energy,"energy,utility,grid,solar,wind,power,electricity,oil,gas",high,"Grid compliance;NERC standards;Environmental regulations;Safety requirements;Real-time operations","Energy regulations;Grid standards;Environmental compliance;Safety protocols;SCADA systems","domain-research","energy sector software compliance {date};NERC CIP standards;smart grid requirements;renewable energy software standards","grid_compliance;safety_protocols;environmental_compliance;operational_requirements" +process_control,"industrial automation,process control,PLC,SCADA,DCS,HMI,operational technology,OT,control system,cyberphysical,MES,historian,instrumentation,I&C,P&ID",high,"Functional safety;OT cybersecurity;Real-time control requirements;Legacy system integration;Process safety and hazard analysis;Environmental compliance and permitting;Engineering authority and PE requirements","Functional safety standards;OT security frameworks;Industrial protocols;Process control architecture;Plant reliability and maintainability","domain-research + technical-model","IEC 62443 OT cybersecurity requirements {date};functional safety software requirements {date};industrial process control architecture;ISA-95 manufacturing integration","functional_safety;ot_security;process_requirements;engineering_authority" +building_automation,"building automation,BAS,BMS,HVAC,smart building,lighting control,fire alarm,fire protection,fire suppression,life safety,elevator,access control,DDC,energy management,sequence of operations,commissioning",high,"Life safety codes;Building energy standards;Multi-trade coordination and interoperability;Commissioning and ongoing operational performance;Indoor environmental quality and occupant comfort;Engineering authority and PE requirements","Building automation protocols;HVAC and mechanical controls;Fire alarm, fire protection, and life safety design;Commissioning process and sequence of operations;Building codes and energy standards","domain-research","smart building software architecture {date};BACnet integration best practices;building automation cybersecurity {date};ASHRAE building standards","life_safety;energy_compliance;commissioning_requirements;engineering_authority" +gaming,"game,player,gameplay,level,character,multiplayer,quest",redirect,"REDIRECT TO GAME WORKFLOWS","Game design","game-brief","NA","NA" +general,"",low,"Standard requirements;Basic security;User experience;Performance","General software practices","continue","software development best practices {date}","standard_requirements" \ No newline at end of file diff --git a/src/core/tasks/bmad-create-prd/data/prd-purpose.md b/src/core/tasks/bmad-create-prd/data/prd-purpose.md new file mode 100644 index 000000000..755230be7 --- /dev/null +++ b/src/core/tasks/bmad-create-prd/data/prd-purpose.md @@ -0,0 +1,197 @@ +# BMAD PRD Purpose + +**The PRD is the top of the required funnel that feeds all subsequent product development work in rhw BMad Method.** + +--- + +## What is a BMAD PRD? + +A dual-audience document serving: +1. **Human Product Managers and builders** - Vision, strategy, stakeholder communication +2. **LLM Downstream Consumption** - UX Design → Architecture → Epics → Development AI Agents + +Each successive document becomes more AI-tailored and granular. + +--- + +## Core Philosophy: Information Density + +**High Signal-to-Noise Ratio** + +Every sentence must carry information weight. LLMs consume precise, dense content efficiently. + +**Anti-Patterns (Eliminate These):** +- ❌ "The system will allow users to..." → ✅ "Users can..." +- ❌ "It is important to note that..." → ✅ State the fact directly +- ❌ "In order to..." → ✅ "To..." +- ❌ Conversational filler and padding → ✅ Direct, concise statements + +**Goal:** Maximum information per word. Zero fluff. + +--- + +## The Traceability Chain + +**PRD starts the chain:** +``` +Vision → Success Criteria → User Journeys → Functional Requirements → (future: User Stories) +``` + +**In the PRD, establish:** +- Vision → Success Criteria alignment +- Success Criteria → User Journey coverage +- User Journey → Functional Requirement mapping +- All requirements traceable to user needs + +**Why:** Each downstream artifact (UX, Architecture, Epics, Stories) must trace back to documented user needs and business objectives. This chain ensures we build the right thing. + +--- + +## What Makes Great Functional Requirements? + +### FRs are Capabilities, Not Implementation + +**Good FR:** "Users can reset their password via email link" +**Bad FR:** "System sends JWT via email and validates with database" (implementation leakage) + +**Good FR:** "Dashboard loads in under 2 seconds for 95th percentile" +**Bad FR:** "Fast loading time" (subjective, unmeasurable) + +### SMART Quality Criteria + +**Specific:** Clear, precisely defined capability +**Measurable:** Quantifiable with test criteria +**Attainable:** Realistic within constraints +**Relevant:** Aligns with business objectives +**Traceable:** Links to source (executive summary or user journey) + +### FR Anti-Patterns + +**Subjective Adjectives:** +- ❌ "easy to use", "intuitive", "user-friendly", "fast", "responsive" +- ✅ Use metrics: "completes task in under 3 clicks", "loads in under 2 seconds" + +**Implementation Leakage:** +- ❌ Technology names, specific libraries, implementation details +- ✅ Focus on capability and measurable outcomes + +**Vague Quantifiers:** +- ❌ "multiple users", "several options", "various formats" +- ✅ "up to 100 concurrent users", "3-5 options", "PDF, DOCX, TXT formats" + +**Missing Test Criteria:** +- ❌ "The system shall provide notifications" +- ✅ "The system shall send email notifications within 30 seconds of trigger event" + +--- + +## What Makes Great Non-Functional Requirements? + +### NFRs Must Be Measurable + +**Template:** +``` +"The system shall [metric] [condition] [measurement method]" +``` + +**Examples:** +- ✅ "The system shall respond to API requests in under 200ms for 95th percentile as measured by APM monitoring" +- ✅ "The system shall maintain 99.9% uptime during business hours as measured by cloud provider SLA" +- ✅ "The system shall support 10,000 concurrent users as measured by load testing" + +### NFR Anti-Patterns + +**Unmeasurable Claims:** +- ❌ "The system shall be scalable" → ✅ "The system shall handle 10x load growth through horizontal scaling" +- ❌ "High availability required" → ✅ "99.9% uptime as measured by cloud provider SLA" + +**Missing Context:** +- ❌ "Response time under 1 second" → ✅ "API response time under 1 second for 95th percentile under normal load" + +--- + +## Domain-Specific Requirements + +**Auto-Detect and Enforce Based on Project Context** + +Certain industries have mandatory requirements that must be present: + +- **Healthcare:** HIPAA Privacy & Security Rules, PHI encryption, audit logging, MFA +- **Fintech:** PCI-DSS Level 1, AML/KYC compliance, SOX controls, financial audit trails +- **GovTech:** NIST framework, Section 508 accessibility (WCAG 2.1 AA), FedRAMP, data residency +- **E-Commerce:** PCI-DSS for payments, inventory accuracy, tax calculation by jurisdiction + +**Why:** Missing these requirements in the PRD means they'll be missed in architecture and implementation, creating expensive rework. During PRD creation there is a step to cover this - during validation we want to make sure it was covered. For this purpose steps will utilize a domain-complexity.csv and project-types.csv. + +--- + +## Document Structure (Markdown, Human-Readable) + +### Required Sections +1. **Executive Summary** - Vision, differentiator, target users +2. **Success Criteria** - Measurable outcomes (SMART) +3. **Product Scope** - MVP, Growth, Vision phases +4. **User Journeys** - Comprehensive coverage +5. **Domain Requirements** - Industry-specific compliance (if applicable) +6. **Innovation Analysis** - Competitive differentiation (if applicable) +7. **Project-Type Requirements** - Platform-specific needs +8. **Functional Requirements** - Capability contract (FRs) +9. **Non-Functional Requirements** - Quality attributes (NFRs) + +### Formatting for Dual Consumption + +**For Humans:** +- Clear, professional language +- Logical flow from vision to requirements +- Easy for stakeholders to review and approve + +**For LLMs:** +- ## Level 2 headers for all main sections (enables extraction) +- Consistent structure and patterns +- Precise, testable language +- High information density + +--- + +## Downstream Impact + +**How the PRD Feeds Next Artifacts:** + +**UX Design:** +- User journeys → interaction flows +- FRs → design requirements +- Success criteria → UX metrics + +**Architecture:** +- FRs → system capabilities +- NFRs → architecture decisions +- Domain requirements → compliance architecture +- Project-type requirements → platform choices + +**Epics & Stories (created after architecture):** +- FRs → user stories (1 FR could map to 1-3 stories potentially) +- Acceptance criteria → story acceptance tests +- Priority → sprint sequencing +- Traceability → stories map back to vision + +**Development AI Agents:** +- Precise requirements → implementation clarity +- Test criteria → automated test generation +- Domain requirements → compliance enforcement +- Measurable NFRs → performance targets + +--- + +## Summary: What Makes a Great BMAD PRD? + +✅ **High Information Density** - Every sentence carries weight, zero fluff +✅ **Measurable Requirements** - All FRs and NFRs are testable with specific criteria +✅ **Clear Traceability** - Each requirement links to user need and business objective +✅ **Domain Awareness** - Industry-specific requirements auto-detected and included +✅ **Zero Anti-Patterns** - No subjective adjectives, implementation leakage, or vague quantifiers +✅ **Dual Audience Optimized** - Human-readable AND LLM-consumable +✅ **Markdown Format** - Professional, clean, accessible to all stakeholders + +--- + +**Remember:** The PRD is the foundation. Quality here ripples through every subsequent phase. A dense, precise, well-traced PRD makes UX design, architecture, epic breakdown, and AI development dramatically more effective. diff --git a/src/core/tasks/bmad-create-prd/data/project-types.csv b/src/core/tasks/bmad-create-prd/data/project-types.csv new file mode 100644 index 000000000..6f71c513a --- /dev/null +++ b/src/core/tasks/bmad-create-prd/data/project-types.csv @@ -0,0 +1,11 @@ +project_type,detection_signals,key_questions,required_sections,skip_sections,web_search_triggers,innovation_signals +api_backend,"API,REST,GraphQL,backend,service,endpoints","Endpoints needed?;Authentication method?;Data formats?;Rate limits?;Versioning?;SDK needed?","endpoint_specs;auth_model;data_schemas;error_codes;rate_limits;api_docs","ux_ui;visual_design;user_journeys","framework best practices;OpenAPI standards","API composition;New protocol" +mobile_app,"iOS,Android,app,mobile,iPhone,iPad","Native or cross-platform?;Offline needed?;Push notifications?;Device features?;Store compliance?","platform_reqs;device_permissions;offline_mode;push_strategy;store_compliance","desktop_features;cli_commands","app store guidelines;platform requirements","Gesture innovation;AR/VR features" +saas_b2b,"SaaS,B2B,platform,dashboard,teams,enterprise","Multi-tenant?;Permission model?;Subscription tiers?;Integrations?;Compliance?","tenant_model;rbac_matrix;subscription_tiers;integration_list;compliance_reqs","cli_interface;mobile_first","compliance requirements;integration guides","Workflow automation;AI agents" +developer_tool,"SDK,library,package,npm,pip,framework","Language support?;Package managers?;IDE integration?;Documentation?;Examples?","language_matrix;installation_methods;api_surface;code_examples;migration_guide","visual_design;store_compliance","package manager best practices;API design patterns","New paradigm;DSL creation" +cli_tool,"CLI,command,terminal,bash,script","Interactive or scriptable?;Output formats?;Config method?;Shell completion?","command_structure;output_formats;config_schema;scripting_support","visual_design;ux_principles;touch_interactions","CLI design patterns;shell integration","Natural language CLI;AI commands" +web_app,"website,webapp,browser,SPA,PWA","SPA or MPA?;Browser support?;SEO needed?;Real-time?;Accessibility?","browser_matrix;responsive_design;performance_targets;seo_strategy;accessibility_level","native_features;cli_commands","web standards;WCAG guidelines","New interaction;WebAssembly use" +game,"game,player,gameplay,level,character","REDIRECT TO USE THE BMad Method Game Module Agent and Workflows - HALT","game-brief;GDD","most_sections","game design patterns","Novel mechanics;Genre mixing" +desktop_app,"desktop,Windows,Mac,Linux,native","Cross-platform?;Auto-update?;System integration?;Offline?","platform_support;system_integration;update_strategy;offline_capabilities","web_seo;mobile_features","desktop guidelines;platform requirements","Desktop AI;System automation" +iot_embedded,"IoT,embedded,device,sensor,hardware","Hardware specs?;Connectivity?;Power constraints?;Security?;OTA updates?","hardware_reqs;connectivity_protocol;power_profile;security_model;update_mechanism","visual_ui;browser_support","IoT standards;protocol specs","Edge AI;New sensors" +blockchain_web3,"blockchain,crypto,DeFi,NFT,smart contract","Chain selection?;Wallet integration?;Gas optimization?;Security audit?","chain_specs;wallet_support;smart_contracts;security_audit;gas_optimization","traditional_auth;centralized_db","blockchain standards;security patterns","Novel tokenomics;DAO structure" \ No newline at end of file diff --git a/src/core/tasks/bmad-create-prd/steps-c/step-01-init.md b/src/core/tasks/bmad-create-prd/steps-c/step-01-init.md new file mode 100644 index 000000000..4b53688d0 --- /dev/null +++ b/src/core/tasks/bmad-create-prd/steps-c/step-01-init.md @@ -0,0 +1,191 @@ +--- +name: 'step-01-init' +description: 'Initialize the PRD workflow by detecting continuation state and setting up the document' + +# File References +nextStepFile: './step-02-discovery.md' +continueStepFile: './step-01b-continue.md' +outputFile: '{planning_artifacts}/prd.md' + +# Template Reference +prdTemplate: '../templates/prd-template.md' +--- + +# Step 1: Workflow Initialization + +**Progress: Step 1 of 11** - Next: Project Discovery + +## STEP GOAL: + +Initialize the PRD workflow by detecting continuation state, discovering input documents, and setting up the document structure for collaborative product requirement discovery. + +## MANDATORY EXECUTION RULES (READ FIRST): + +### Universal Rules: + +- 🛑 NEVER generate content without user input +- 📖 CRITICAL: Read the complete step file before taking any action +- 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read +- 📋 YOU ARE A FACILITATOR, not a content generator +- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +### Role Reinforcement: + +- ✅ You are a product-focused PM facilitator collaborating with an expert peer +- ✅ If you already have been given a name, communication_style and persona, continue to use those while playing this new role +- ✅ We engage in collaborative dialogue, not command-response +- ✅ You bring structured thinking and facilitation skills, while the user brings domain expertise and product vision + +### Step-Specific Rules: + +- 🎯 Focus only on initialization and setup - no content generation yet +- 🚫 FORBIDDEN to look ahead to future steps or assume knowledge from them +- 💬 Approach: Systematic setup with clear reporting to user +- 🚪 Detect existing workflow state and handle continuation properly + +## EXECUTION PROTOCOLS: + +- 🎯 Show your analysis of current state before taking any action +- 💾 Initialize document structure and update frontmatter appropriately +- Update frontmatter: add this step name to the end of the steps completed array (it should be the first entry in the steps array since this is step 1) +- 🚫 FORBIDDEN to load next step until user selects 'C' (Continue) + +## CONTEXT BOUNDARIES: + +- Available context: Variables from workflow.md are available in memory +- Focus: Workflow initialization and document setup only +- Limits: Don't assume knowledge from other steps or create content yet +- Dependencies: Configuration loaded from workflow.md initialization + +## Sequence of Instructions (Do not deviate, skip, or optimize) + +### 1. Check for Existing Workflow State + +First, check if the output document already exists: + +**Workflow State Detection:** + +- Look for file at `{outputFile}` +- If exists, read the complete file including frontmatter +- If not exists, this is a fresh workflow + +### 2. Handle Continuation (If Document Exists) + +If the document exists and has frontmatter with `stepsCompleted` BUT `step-11-complete` is NOT in the list, follow the Continuation Protocol since the document is incomplete: + +**Continuation Protocol:** + +- **STOP immediately** and load `{continueStepFile}` +- Do not proceed with any initialization tasks +- Let step-01b handle all continuation logic +- This is an auto-proceed situation - no user choice needed + +### 3. Fresh Workflow Setup (If No Document) + +If no document exists or no `stepsCompleted` in frontmatter: + +#### A. Input Document Discovery + +Discover and load context documents using smart discovery. Documents can be in the following locations: +- {planning_artifacts}/** +- {output_folder}/** +- {product_knowledge}/** +- docs/** + +Also - when searching - documents can be a single markdown file, or a folder with an index and multiple files. For Example, if searching for `*foo*.md` and not found, also search for a folder called *foo*/index.md (which indicates sharded content) + +Try to discover the following: +- Product Brief (`*brief*.md`) +- Research Documents (`/*research*.md`) +- Project Documentation (generally multiple documents might be found for this in the `{product_knowledge}` or `docs` folder.) +- Project Context (`**/project-context.md`) + +Confirm what you have found with the user, along with asking if the user wants to provide anything else. Only after this confirmation will you proceed to follow the loading rules + +**Loading Rules:** + +- Load ALL discovered files completely that the user confirmed or provided (no offset/limit) +- If there is a project context, whatever is relevant should try to be biased in the remainder of this whole workflow process +- For sharded folders, load ALL files to get complete picture, using the index first to potentially know the potential of each document +- index.md is a guide to what's relevant whenever available +- Track all successfully loaded files in frontmatter `inputDocuments` array + +#### B. Create Initial Document + +**Document Setup:** + +- Copy the template from `{prdTemplate}` to `{outputFile}` +- Initialize frontmatter with proper structure including inputDocuments array. + +#### C. Present Initialization Results + +**Setup Report to User:** + +"Welcome {{user_name}}! I've set up your PRD workspace for {{project_name}}. + +**Document Setup:** + +- Created: `{outputFile}` from template +- Initialized frontmatter with workflow state + +**Input Documents Discovered:** + +- Product briefs: {{briefCount}} files {if briefCount > 0}✓ loaded{else}(none found){/if} +- Research: {{researchCount}} files {if researchCount > 0}✓ loaded{else}(none found){/if} +- Brainstorming: {{brainstormingCount}} files {if brainstormingCount > 0}✓ loaded{else}(none found){/if} +- Project docs: {{projectDocsCount}} files {if projectDocsCount > 0}✓ loaded (brownfield project){else}(none found - greenfield project){/if} + +**Files loaded:** {list of specific file names or "No additional documents found"} + +{if projectDocsCount > 0} +📋 **Note:** This is a **brownfield project**. Your existing project documentation has been loaded. In the next step, I'll ask specifically about what new features or changes you want to add to your existing system. +{/if} + +Do you have any other documents you'd like me to include, or shall we continue to the next step?" + +### 4. Present MENU OPTIONS + +Display menu after setup report: + +"[C] Continue - Save this and move to Project Discovery (Step 2 of 11)" + +#### Menu Handling Logic: + +- IF C: Update output file frontmatter, adding this step name to the end of the list of stepsCompleted, then read fully and follow: {nextStepFile} +- IF user provides additional files: Load them, update inputDocuments and documentCounts, redisplay report +- IF user asks questions: Answer and redisplay menu + +#### EXECUTION RULES: + +- ALWAYS halt and wait for user input after presenting menu +- ONLY proceed to next step when user selects 'C' + +## CRITICAL STEP COMPLETION NOTE + +ONLY WHEN [C continue option] is selected and [frontmatter properly updated with this step added to stepsCompleted and documentCounts], will you then read fully and follow: `{nextStepFile}` to begin project discovery. + +--- + +## 🚨 SYSTEM SUCCESS/FAILURE METRICS + +### ✅ SUCCESS: + +- Existing workflow detected and properly handed off to step-01b +- Fresh workflow initialized with template and proper frontmatter +- Input documents discovered and loaded using sharded-first logic +- All discovered files tracked in frontmatter `inputDocuments` +- User clearly informed of brownfield vs greenfield status +- Menu presented and user input handled correctly +- Frontmatter updated with this step name added to stepsCompleted before proceeding + +### ❌ SYSTEM FAILURE: + +- Proceeding with fresh initialization when existing workflow exists +- Not updating frontmatter with discovered input documents +- **Not storing document counts in frontmatter** +- Creating document without proper template structure +- Not checking sharded folders first before whole files +- Not reporting discovered documents to user clearly +- Proceeding without user selecting 'C' (Continue) + +**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE. diff --git a/src/core/tasks/bmad-create-prd/steps-c/step-01b-continue.md b/src/core/tasks/bmad-create-prd/steps-c/step-01b-continue.md new file mode 100644 index 000000000..d4ae2911d --- /dev/null +++ b/src/core/tasks/bmad-create-prd/steps-c/step-01b-continue.md @@ -0,0 +1,152 @@ +--- +name: 'step-01b-continue' +description: 'Resume an interrupted PRD workflow from the last completed step' + +# File References +outputFile: '{planning_artifacts}/prd.md' +--- + +# Step 1B: Workflow Continuation + +## STEP GOAL: + +Resume the PRD workflow from where it was left off, ensuring smooth continuation with full context restoration. + +## MANDATORY EXECUTION RULES (READ FIRST): + +### Universal Rules: + +- 🛑 NEVER generate content without user input +- 📖 CRITICAL: Read the complete step file before taking any action +- 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read +- 📋 YOU ARE A FACILITATOR, not a content generator +- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +### Role Reinforcement: + +- ✅ You are a product-focused PM facilitator collaborating with an expert peer +- ✅ We engage in collaborative dialogue, not command-response +- ✅ Resume workflow from exact point where it was interrupted + +### Step-Specific Rules: + +- 💬 FOCUS on understanding where we left off and continuing appropriately +- 🚫 FORBIDDEN to modify content completed in previous steps +- 📖 Only reload documents that were already tracked in `inputDocuments` + +## EXECUTION PROTOCOLS: + +- 🎯 Show your analysis of current state before taking action +- Update frontmatter: add this step name to the end of the steps completed array +- 📖 Only load documents that were already tracked in `inputDocuments` +- 🚫 FORBIDDEN to discover new input documents during continuation + +## CONTEXT BOUNDARIES: + +- Available context: Current document and frontmatter are already loaded +- Focus: Workflow state analysis and continuation logic only +- Limits: Don't assume knowledge beyond what's in the document +- Dependencies: Existing workflow state from previous session + +## Sequence of Instructions (Do not deviate, skip, or optimize) + +### 1. Analyze Current State + +**State Assessment:** +Review the frontmatter to understand: + +- `stepsCompleted`: Array of completed step filenames +- Last element of `stepsCompleted` array: The most recently completed step +- `inputDocuments`: What context was already loaded +- All other frontmatter variables + +### 2. Restore Context Documents + +**Context Reloading:** + +- For each document in `inputDocuments`, load the complete file +- This ensures you have full context for continuation +- Don't discover new documents - only reload what was previously processed + +### 3. Determine Next Step + +**Simplified Next Step Logic:** +1. Get the last element from the `stepsCompleted` array (this is the filename of the last completed step, e.g., "step-03-success.md") +2. Load that step file and read its frontmatter +3. Extract the `nextStepFile` value from the frontmatter +4. That's the next step to load! + +**Example:** +- If `stepsCompleted = ["step-01-init.md", "step-02-discovery.md", "step-03-success.md"]` +- Last element is `"step-03-success.md"` +- Load `./step-03-success.md`, read its frontmatter +- Read fully and follow: `./step-04-journeys.md` + +### 4. Handle Workflow Completion + +**If `stepsCompleted` array contains `"step-11-complete.md"`:** +"Great news! It looks like we've already completed the PRD workflow for {{project_name}}. + +The final document is ready at `{outputFile}` with all sections completed. + +Would you like me to: + +- Review the completed PRD with you +- Suggest next workflow steps (like architecture or epic creation) +- Start a new PRD revision + +What would be most helpful?" + +### 5. Present Current Progress + +**If workflow not complete:** +"Welcome back {{user_name}}! I'm resuming our PRD collaboration for {{project_name}}. + +**Current Progress:** +- Last completed: {last step filename from stepsCompleted array} +- Next up: {nextStepFile determined from that step's frontmatter} +- Context documents available: {len(inputDocuments)} files + +**Document Status:** +- Current PRD document is ready with all completed sections +- Ready to continue from where we left off + +Does this look right, or do you want to make any adjustments before we proceed?" + +### 6. Present MENU OPTIONS + +Display: "**Select an Option:** [C] Continue to {next step name}" + +#### Menu Handling Logic: + +- IF C: Read fully and follow the {nextStepFile} determined in step 3 +- IF Any other comments or queries: respond and redisplay menu + +#### EXECUTION RULES: + +- ALWAYS halt and wait for user input after presenting menu +- ONLY proceed to next step when user selects 'C' + +## CRITICAL STEP COMPLETION NOTE + +ONLY WHEN [C continue option] is selected and [current state confirmed], will you then read fully and follow: {nextStepFile} to resume the workflow. + +--- + +## 🚨 SYSTEM SUCCESS/FAILURE METRICS + +### ✅ SUCCESS: + +- All previous input documents successfully reloaded +- Current workflow state accurately analyzed and presented +- User confirms understanding of progress before continuation +- Correct next step identified and prepared for loading + +### ❌ SYSTEM FAILURE: + +- Discovering new input documents instead of reloading existing ones +- Modifying content from already completed steps +- Failing to extract nextStepFile from the last completed step's frontmatter +- Proceeding without user confirmation of current state + +**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE. diff --git a/src/core/tasks/bmad-create-prd/steps-c/step-02-discovery.md b/src/core/tasks/bmad-create-prd/steps-c/step-02-discovery.md new file mode 100644 index 000000000..76c8915cb --- /dev/null +++ b/src/core/tasks/bmad-create-prd/steps-c/step-02-discovery.md @@ -0,0 +1,225 @@ +--- +name: 'step-02-discovery' +description: 'Discover project type, domain, and context through collaborative dialogue' + +# File References +nextStepFile: './step-02b-vision.md' +outputFile: '{planning_artifacts}/prd.md' + +# Data Files +projectTypesCSV: '../data/project-types.csv' +domainComplexityCSV: '../data/domain-complexity.csv' + +# Task References +advancedElicitationTask: 'skill:bmad-advanced-elicitation' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md' +--- + +# Step 2: Project Discovery + +**Progress: Step 2 of 13** - Next: Product Vision + +## STEP GOAL: + +Discover and classify the project - understand what type of product this is, what domain it operates in, and the project context (greenfield vs brownfield). + +## MANDATORY EXECUTION RULES (READ FIRST): + +### Universal Rules: + +- 🛑 NEVER generate content without user input +- 📖 CRITICAL: Read the complete step file before taking any action +- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read +- ✅ ALWAYS treat this as collaborative discovery between PM peers +- 📋 YOU ARE A FACILITATOR, not a content generator +- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` +- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}` + +### Role Reinforcement: + +- ✅ You are a product-focused PM facilitator collaborating with an expert peer +- ✅ We engage in collaborative dialogue, not command-response +- ✅ You bring structured thinking and facilitation skills, while the user brings domain expertise and product vision + +### Step-Specific Rules: + +- 🎯 Focus on classification and understanding - no content generation yet +- 🚫 FORBIDDEN to generate executive summary or vision statements (that's next steps) +- 💬 APPROACH: Natural conversation to understand the project +- 🎯 LOAD classification data BEFORE starting discovery conversation + +## EXECUTION PROTOCOLS: + +- 🎯 Show your analysis before taking any action +- ⚠️ Present A/P/C menu after classification complete +- 💾 ONLY save classification to frontmatter when user chooses C (Continue) +- 📖 Update frontmatter, adding this step to the end of the list of stepsCompleted +- 🚫 FORBIDDEN to load next step until C is selected + +## CONTEXT BOUNDARIES: + +- Current document and frontmatter from step 1 are available +- Input documents already loaded are in memory (product briefs, research, brainstorming, project docs) +- **Document counts available in frontmatter `documentCounts`** +- Classification CSV data will be loaded in this step only +- No executive summary or vision content yet (that's steps 2b and 2c) + +## YOUR TASK: + +Discover and classify the project through natural conversation: +- What type of product is this? (web app, API, mobile, etc.) +- What domain does it operate in? (healthcare, fintech, e-commerce, etc.) +- What's the project context? (greenfield new product vs brownfield existing system) +- How complex is this domain? (low, medium, high) + +## DISCOVERY SEQUENCE: + +### 1. Check Document State + +Read the frontmatter from `{outputFile}` to get document counts: +- `briefCount` - Product briefs available +- `researchCount` - Research documents available +- `brainstormingCount` - Brainstorming docs available +- `projectDocsCount` - Existing project documentation + +**Announce your understanding:** + +"From step 1, I have loaded: +- Product briefs: {{briefCount}} +- Research: {{researchCount}} +- Brainstorming: {{brainstormingCount}} +- Project docs: {{projectDocsCount}} + +{{if projectDocsCount > 0}}This is a brownfield project - I'll focus on understanding what you want to add or change.{{else}}This is a greenfield project - I'll help you define the full product vision.{{/if}}" + +### 2. Load Classification Data + +**Attempt subprocess data lookup:** + +**Project Type Lookup:** +"Your task: Lookup data in {projectTypesCSV} + +**Search criteria:** +- Find row where project_type matches {{detectedProjectType}} + +**Return format:** +Return ONLY the matching row as a YAML-formatted object with these fields: +project_type, detection_signals + +**Do NOT return the entire CSV - only the matching row.**" + +**Domain Complexity Lookup:** +"Your task: Lookup data in {domainComplexityCSV} + +**Search criteria:** +- Find row where domain matches {{detectedDomain}} + +**Return format:** +Return ONLY the matching row as a YAML-formatted object with these fields: +domain, complexity, typical_concerns, compliance_requirements + +**Do NOT return the entire CSV - only the matching row.**" + +**Graceful degradation (if Task tool unavailable):** +- Load the CSV files directly +- Find the matching rows manually +- Extract required fields +- Keep in memory for intelligent classification + +### 3. Begin Discovery Conversation + +**Start with what you know:** + +If the user has a product brief or project docs, acknowledge them and share your understanding. Then ask clarifying questions to deepen your understanding. + +If this is a greenfield project with no docs, start with open-ended discovery: +- What problem does this solve? +- Who's it for? +- What excites you about building this? + +**Listen for classification signals:** + +As the user describes their product, match against: +- **Project type signals** (API, mobile, SaaS, etc.) +- **Domain signals** (healthcare, fintech, education, etc.) +- **Complexity indicators** (regulated industries, novel technology, etc.) + +### 4. Confirm Classification + +Once you have enough understanding, share your classification: + +"I'm hearing this as: +- **Project Type:** {{detectedType}} +- **Domain:** {{detectedDomain}} +- **Complexity:** {{complexityLevel}} + +Does this sound right to you?" + +Let the user confirm or refine your classification. + +### 5. Save Classification to Frontmatter + +When user selects 'C', update frontmatter with classification: +```yaml +classification: + projectType: {{projectType}} + domain: {{domain}} + complexity: {{complexityLevel}} + projectContext: {{greenfield|brownfield}} +``` + +### N. Present MENU OPTIONS + +Present the project classification for review, then display menu: + +"Based on our conversation, I've discovered and classified your project. + +**Here's the classification:** + +**Project Type:** {{detectedType}} +**Domain:** {{detectedDomain}} +**Complexity:** {{complexityLevel}} +**Project Context:** {{greenfield|brownfield}} + +**What would you like to do?**" + +Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Product Vision (Step 2b of 13)" + +#### Menu Handling Logic: +- IF A: Read fully and follow: {advancedElicitationTask} with the current classification, process the enhanced insights that come back, ask user if they accept the improvements, if yes update classification then redisplay menu, if no keep original classification then redisplay menu +- IF P: Read fully and follow: {partyModeWorkflow} with the current classification, process the collaborative insights, ask user if they accept the changes, if yes update classification then redisplay menu, if no keep original classification then redisplay menu +- IF C: Save classification to {outputFile} frontmatter, add this step name to the end of stepsCompleted array, then read fully and follow: {nextStepFile} +- IF Any other: help user respond, then redisplay menu + +#### EXECUTION RULES: +- ALWAYS halt and wait for user input after presenting menu +- ONLY proceed to next step when user selects 'C' +- After other menu items execution, return to this menu + +## CRITICAL STEP COMPLETION NOTE + +ONLY WHEN [C continue option] is selected and [classification saved to frontmatter], will you then read fully and follow: `{nextStepFile}` to explore product vision. + +--- + +## 🚨 SYSTEM SUCCESS/FAILURE METRICS + +### ✅ SUCCESS: + +- Document state checked and announced to user +- Classification data loaded and used intelligently +- Natural conversation to understand project type, domain, complexity +- Classification validated with user before saving +- Frontmatter updated with classification when C selected +- User's existing documents acknowledged and built upon + +### ❌ SYSTEM FAILURE: + +- Not reading documentCounts from frontmatter first +- Skipping classification data loading +- Generating executive summary or vision content (that's later steps!) +- Not validating classification with user +- Being prescriptive instead of having natural conversation +- Proceeding without user selecting 'C' + +**Master Rule:** This is classification and understanding only. No content generation yet. Build on what the user already has. Have natural conversations, don't follow scripts. diff --git a/src/core/tasks/bmad-create-prd/steps-c/step-02b-vision.md b/src/core/tasks/bmad-create-prd/steps-c/step-02b-vision.md new file mode 100644 index 000000000..6c9e31da0 --- /dev/null +++ b/src/core/tasks/bmad-create-prd/steps-c/step-02b-vision.md @@ -0,0 +1,155 @@ +--- +name: 'step-02b-vision' +description: 'Discover the product vision and differentiator through collaborative dialogue' + +# File References +nextStepFile: './step-02c-executive-summary.md' +outputFile: '{planning_artifacts}/prd.md' + +# Task References +advancedElicitationTask: 'skill:bmad-advanced-elicitation' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md' +--- + +# Step 2b: Product Vision Discovery + +**Progress: Step 2b of 13** - Next: Executive Summary + +## STEP GOAL: + +Discover what makes this product special and understand the product vision through collaborative conversation. No content generation — facilitation only. + +## MANDATORY EXECUTION RULES (READ FIRST): + +### Universal Rules: + +- 🛑 NEVER generate content without user input +- 📖 CRITICAL: Read the complete step file before taking any action +- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read +- ✅ ALWAYS treat this as collaborative discovery between PM peers +- 📋 YOU ARE A FACILITATOR, not a content generator +- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` +- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}` + +### Role Reinforcement: + +- ✅ You are a product-focused PM facilitator collaborating with an expert peer +- ✅ We engage in collaborative dialogue, not command-response +- ✅ You bring structured thinking and facilitation skills, while the user brings domain expertise and product vision + +### Step-Specific Rules: + +- 🎯 Focus on discovering vision and differentiator — no content generation yet +- 🚫 FORBIDDEN to generate executive summary content (that's the next step) +- 🚫 FORBIDDEN to append anything to the document in this step +- 💬 APPROACH: Natural conversation to understand what makes this product special +- 🎯 BUILD ON classification insights from step 2 + +## EXECUTION PROTOCOLS: + +- 🎯 Show your analysis before taking any action +- ⚠️ Present A/P/C menu after vision discovery is complete +- 📖 Update frontmatter, adding this step to the end of the list of stepsCompleted +- 🚫 FORBIDDEN to load next step until C is selected + +## CONTEXT BOUNDARIES: + +- Current document and frontmatter from steps 1 and 2 are available +- Project classification exists from step 2 (project type, domain, complexity, context) +- Input documents already loaded are in memory (product briefs, research, brainstorming, project docs) +- No executive summary content yet (that's step 2c) +- This step ONLY discovers — it does NOT write to the document + +## YOUR TASK: + +Discover the product vision and differentiator through natural conversation. Understand what makes this product unique and valuable before any content is written. + +## VISION DISCOVERY SEQUENCE: + +### 1. Acknowledge Classification Context + +Reference the classification from step 2 and use it to frame the vision conversation: + +"We've established this is a {{projectType}} in the {{domain}} domain with {{complexityLevel}} complexity. Now let's explore what makes this product special." + +### 2. Explore What Makes It Special + +Guide the conversation to uncover the product's unique value: + +- **User delight:** "What would make users say 'this is exactly what I needed'?" +- **Differentiation moment:** "What's the moment where users realize this is different or better than alternatives?" +- **Core insight:** "What insight or approach makes this product possible or unique?" +- **Value proposition:** "If you had one sentence to explain why someone should use this over anything else, what would it be?" + +### 3. Understand the Vision + +Dig deeper into the product vision: + +- **Problem framing:** "What's the real problem you're solving — not the surface symptom, but the deeper need?" +- **Future state:** "When this product is successful, what does the world look like for your users?" +- **Why now:** "Why is this the right time to build this?" + +### 4. Validate Understanding + +Reflect back what you've heard and confirm: + +"Here's what I'm hearing about your vision and differentiator: + +**Vision:** {{summarized_vision}} +**What Makes It Special:** {{summarized_differentiator}} +**Core Insight:** {{summarized_insight}} + +Does this capture it? Anything I'm missing?" + +Let the user confirm or refine your understanding. + +### N. Present MENU OPTIONS + +Present your understanding of the product vision for review, then display menu: + +"Based on our conversation, I have a clear picture of your product vision and what makes it special. I'll use these insights to draft the Executive Summary in the next step. + +**What would you like to do?**" + +Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Executive Summary (Step 2c of 13)" + +#### Menu Handling Logic: +- IF A: Read fully and follow: {advancedElicitationTask} with the current vision insights, process the enhanced insights that come back, ask user if they accept the improvements, if yes update understanding then redisplay menu, if no keep original understanding then redisplay menu +- IF P: Read fully and follow: {partyModeWorkflow} with the current vision insights, process the collaborative insights, ask user if they accept the changes, if yes update understanding then redisplay menu, if no keep original understanding then redisplay menu +- IF C: Update {outputFile} frontmatter by adding this step name to the end of stepsCompleted array, then read fully and follow: {nextStepFile} +- IF Any other: help user respond, then redisplay menu + +#### EXECUTION RULES: +- ALWAYS halt and wait for user input after presenting menu +- ONLY proceed to next step when user selects 'C' +- After other menu items execution, return to this menu + +## CRITICAL STEP COMPLETION NOTE + +ONLY WHEN [C continue option] is selected and [stepsCompleted updated], will you then read fully and follow: `{nextStepFile}` to generate the Executive Summary. + +--- + +## 🚨 SYSTEM SUCCESS/FAILURE METRICS + +### ✅ SUCCESS: + +- Classification context from step 2 acknowledged and built upon +- Natural conversation to understand product vision and differentiator +- User's existing documents (briefs, research, brainstorming) leveraged for vision insights +- Vision and differentiator validated with user before proceeding +- Clear understanding established that will inform Executive Summary generation +- Frontmatter updated with stepsCompleted when C selected + +### ❌ SYSTEM FAILURE: + +- Generating executive summary or any document content (that's step 2c!) +- Appending anything to the PRD document +- Not building on classification from step 2 +- Being prescriptive instead of having natural conversation +- Proceeding without user selecting 'C' + +❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions +❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file + +**Master Rule:** This step is vision discovery only. No content generation, no document writing. Have natural conversations, build on what you know from classification, and establish the vision that will feed into the Executive Summary. diff --git a/src/core/tasks/bmad-create-prd/steps-c/step-02c-executive-summary.md b/src/core/tasks/bmad-create-prd/steps-c/step-02c-executive-summary.md new file mode 100644 index 000000000..ed7b6b3ac --- /dev/null +++ b/src/core/tasks/bmad-create-prd/steps-c/step-02c-executive-summary.md @@ -0,0 +1,171 @@ +--- +name: 'step-02c-executive-summary' +description: 'Generate and append the Executive Summary section to the PRD document' + +# File References +nextStepFile: './step-03-success.md' +outputFile: '{planning_artifacts}/prd.md' + +# Task References +advancedElicitationTask: 'skill:bmad-advanced-elicitation' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md' +--- + +# Step 2c: Executive Summary Generation + +**Progress: Step 2c of 13** - Next: Success Criteria + +## STEP GOAL: + +Generate the Executive Summary content using insights from classification (step 2) and vision discovery (step 2b), then append it to the PRD document. + +## MANDATORY EXECUTION RULES (READ FIRST): + +### Universal Rules: + +- 🛑 NEVER generate content without user input +- 📖 CRITICAL: Read the complete step file before taking any action +- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read +- ✅ ALWAYS treat this as collaborative discovery between PM peers +- 📋 YOU ARE A FACILITATOR, not a content generator +- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` +- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}` + +### Role Reinforcement: + +- ✅ You are a product-focused PM facilitator collaborating with an expert peer +- ✅ We engage in collaborative dialogue, not command-response +- ✅ Content is drafted collaboratively — present for review before saving + +### Step-Specific Rules: + +- 🎯 Generate Executive Summary content based on discovered insights +- 💬 Present draft content for user review and refinement before appending +- 🚫 FORBIDDEN to append content without user approval via 'C' +- 🎯 Content must be dense, precise, and zero-fluff (PRD quality standards) + +## EXECUTION PROTOCOLS: + +- 🎯 Show your analysis before taking any action +- ⚠️ Present A/P/C menu after generating executive summary content +- 💾 ONLY save when user chooses C (Continue) +- 📖 Update output file frontmatter, adding this step name to the end of the list of stepsCompleted +- 🚫 FORBIDDEN to load next step until C is selected + +## CONTEXT BOUNDARIES: + +- Current document and frontmatter from steps 1, 2, and 2b are available +- Project classification exists from step 2 (project type, domain, complexity, context) +- Vision and differentiator insights exist from step 2b +- Input documents from step 1 are available (product briefs, research, brainstorming, project docs) +- This step generates and appends the first substantive content to the PRD + +## YOUR TASK: + +Draft the Executive Summary section using all discovered insights, present it for user review, and append it to the PRD document when approved. + +## EXECUTIVE SUMMARY GENERATION SEQUENCE: + +### 1. Synthesize Available Context + +Review all available context before drafting: +- Classification from step 2: project type, domain, complexity, project context +- Vision and differentiator from step 2b: what makes this special, core insight +- Input documents: product briefs, research, brainstorming, project docs + +### 2. Draft Executive Summary Content + +Generate the Executive Summary section using the content structure below. Apply PRD quality standards: +- High information density — every sentence carries weight +- Zero fluff — no filler phrases or vague language +- Precise and actionable — clear, specific statements +- Dual-audience optimized — readable by humans, consumable by LLMs + +### 3. Present Draft for Review + +Present the drafted content to the user for review: + +"Here's the Executive Summary I've drafted based on our discovery work. Please review and let me know if you'd like any changes:" + +Show the full drafted content using the structure from the Content Structure section below. + +Allow the user to: +- Request specific changes to any section +- Add missing information +- Refine the language or emphasis +- Approve as-is + +### N. Present MENU OPTIONS + +Present the executive summary content for user review, then display menu: + +"Here's the Executive Summary for your PRD. Review the content above and let me know what you'd like to do." + +Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Success Criteria (Step 3 of 13)" + +#### Menu Handling Logic: +- IF A: Read fully and follow: {advancedElicitationTask} with the current executive summary content, process the enhanced content that comes back, ask user if they accept the improvements, if yes update content then redisplay menu, if no keep original content then redisplay menu +- IF P: Read fully and follow: {partyModeWorkflow} with the current executive summary content, process the collaborative improvements, ask user if they accept the changes, if yes update content then redisplay menu, if no keep original content then redisplay menu +- IF C: Append the final content to {outputFile}, update frontmatter by adding this step name to the end of the stepsCompleted array, then read fully and follow: {nextStepFile} +- IF Any other: help user respond, then redisplay menu + +#### EXECUTION RULES: +- ALWAYS halt and wait for user input after presenting menu +- ONLY proceed to next step when user selects 'C' +- After other menu items execution, return to this menu + +## APPEND TO DOCUMENT: + +When user selects 'C', append the following content structure directly to the document: + +```markdown +## Executive Summary + +{vision_alignment_content} + +### What Makes This Special + +{product_differentiator_content} + +## Project Classification + +{project_classification_content} +``` + +Where: +- `{vision_alignment_content}` — Product vision, target users, and the problem being solved. Dense, precise summary drawn from step 2b vision discovery. +- `{product_differentiator_content}` — What makes this product unique, the core insight, and why users will choose it over alternatives. Drawn from step 2b differentiator discovery. +- `{project_classification_content}` — Project type, domain, complexity level, and project context (greenfield/brownfield). Drawn from step 2 classification. + +## CRITICAL STEP COMPLETION NOTE + +ONLY WHEN [C continue option] is selected and [content appended to document], will you then read fully and follow: `{nextStepFile}` to define success criteria. + +--- + +## 🚨 SYSTEM SUCCESS/FAILURE METRICS + +### ✅ SUCCESS: + +- Executive Summary drafted using insights from steps 2 and 2b +- Content meets PRD quality standards (dense, precise, zero-fluff) +- Draft presented to user for review before saving +- User given opportunity to refine content +- Content properly appended to document when C selected +- A/P/C menu presented and handled correctly +- Frontmatter updated with stepsCompleted when C selected + +### ❌ SYSTEM FAILURE: + +- Generating content without incorporating discovered vision and classification +- Appending content without user selecting 'C' +- Producing vague, fluffy, or low-density content +- Not presenting draft for user review +- Not presenting A/P/C menu after content generation +- Skipping directly to next step without appending content + +❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions +❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file +❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols + +**Master Rule:** Generate high-quality Executive Summary content from discovered insights. Present for review, refine collaboratively, and only save when the user approves. This is the first substantive content in the PRD — it sets the quality bar for everything that follows. diff --git a/src/core/tasks/bmad-create-prd/steps-c/step-03-success.md b/src/core/tasks/bmad-create-prd/steps-c/step-03-success.md new file mode 100644 index 000000000..e1aa04edc --- /dev/null +++ b/src/core/tasks/bmad-create-prd/steps-c/step-03-success.md @@ -0,0 +1,227 @@ +--- +name: 'step-03-success' +description: 'Define comprehensive success criteria covering user, business, and technical success' + +# File References +nextStepFile: './step-04-journeys.md' +outputFile: '{planning_artifacts}/prd.md' + +# Task References +advancedElicitationTask: 'skill:bmad-advanced-elicitation' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md' +--- + +# Step 3: Success Criteria Definition + +**Progress: Step 3 of 11** - Next: User Journey Mapping + +## MANDATORY EXECUTION RULES (READ FIRST): + +- 🛑 NEVER generate content without user input + +- 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions +- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding +- ✅ ALWAYS treat this as collaborative discovery between PM peers +- 📋 YOU ARE A FACILITATOR, not a content generator +- 💬 FOCUS on defining what winning looks like for this product +- 🎯 COLLABORATIVE discovery, not assumption-based goal setting +- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` +- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}` + +## EXECUTION PROTOCOLS: + +- 🎯 Show your analysis before taking any action +- ⚠️ Present A/P/C menu after generating success criteria content +- 💾 ONLY save when user chooses C (Continue) +- 📖 Update output file frontmatter, adding this step name to the end of the list of stepsCompleted +- 🚫 FORBIDDEN to load next step until C is selected + +## CONTEXT BOUNDARIES: + +- Current document and frontmatter from previous steps are available +- Executive Summary and Project Classification already exist in document +- Input documents from step-01 are available (product briefs, research, brainstorming) +- No additional data files needed for this step +- Focus on measurable, specific success criteria +- LEVERAGE existing input documents to inform success criteria + +## YOUR TASK: + +Define comprehensive success criteria that cover user success, business success, and technical success, using input documents as a foundation while allowing user refinement. + +## SUCCESS DISCOVERY SEQUENCE: + +### 1. Begin Success Definition Conversation + +**Check Input Documents for Success Indicators:** +Analyze product brief, research, and brainstorming documents for success criteria already mentioned. + +**If Input Documents Contain Success Criteria:** +Guide user to refine existing success criteria: +- Acknowledge what's already documented in their materials +- Extract key success themes from brief, research, and brainstorming +- Help user identify gaps and areas for expansion +- Probe for specific, measurable outcomes: When do users feel delighted/relieved/empowered? +- Ask about emotional success moments and completion scenarios +- Explore what "worth it" means beyond what's already captured + +**If No Success Criteria in Input Documents:** +Start with user-centered success exploration: +- Guide conversation toward defining what "worth it" means for users +- Ask about the moment users realize their problem is solved +- Explore specific user outcomes and emotional states +- Identify success "aha!" moments and completion scenarios +- Focus on user experience of success first + +### 2. Explore User Success Metrics + +Listen for specific user outcomes and help make them measurable: + +- Guide from vague to specific: NOT "users are happy" → "users complete [key action] within [timeframe]" +- Ask about emotional success: "When do they feel delighted/relieved/empowered?" +- Identify success moments: "What's the 'aha!' moment?" +- Define completion scenarios: "What does 'done' look like for the user?" + +### 3. Define Business Success + +Transition to business metrics: +- Guide conversation to business perspective on success +- Explore timelines: What does 3-month success look like? 12-month success? +- Identify key business metrics: revenue, user growth, engagement, or other measures? +- Ask what specific metric would indicate "this is working" +- Understand business success from their perspective + +### 4. Challenge Vague Metrics + +Push for specificity on business metrics: + +- "10,000 users" → "What kind of users? Doing what?" +- "99.9% uptime" → "What's the real concern - data loss? Failed payments?" +- "Fast" → "How fast, and what specifically needs to be fast?" +- "Good adoption" → "What percentage adoption by when?" + +### 5. Connect to Product Differentiator + +Tie success metrics back to what makes the product special: +- Connect success criteria to the product's unique differentiator +- Ensure metrics reflect the specific value proposition +- Adapt success criteria to domain context: + - Consumer: User love, engagement, retention + - B2B: ROI, efficiency, adoption + - Developer tools: Developer experience, community + - Regulated: Compliance, safety, validation + - GovTech: Government compliance, accessibility, procurement + +### 6. Smart Scope Negotiation + +Guide scope definition through success lens: +- Help user distinguish MVP (must work to be useful) from growth (competitive) and vision (dream) +- Guide conversation through three scope levels: + 1. MVP: What's essential for proving the concept? + 2. Growth: What makes it competitive? + 3. Vision: What's the dream version? +- Challenge scope creep conversationally: Could this wait until after launch? Is this essential for MVP? +- For complex domains: Ensure compliance minimums are included in MVP + +### 7. Generate Success Criteria Content + +Prepare the content to append to the document: + +#### Content Structure: + +When saving to document, append these Level 2 and Level 3 sections: + +```markdown +## Success Criteria + +### User Success + +[Content about user success criteria based on conversation] + +### Business Success + +[Content about business success metrics based on conversation] + +### Technical Success + +[Content about technical success requirements based on conversation] + +### Measurable Outcomes + +[Content about specific measurable outcomes based on conversation] + +## Product Scope + +### MVP - Minimum Viable Product + +[Content about MVP scope based on conversation] + +### Growth Features (Post-MVP) + +[Content about growth features based on conversation] + +### Vision (Future) + +[Content about future vision based on conversation] +``` + +### 8. Present MENU OPTIONS + +Present the success criteria content for user review, then display menu: + +- Show the drafted success criteria and scope definition (using structure from section 7) +- Ask if they'd like to refine further, get other perspectives, or proceed +- Present menu options naturally as part of the conversation + +Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue to User Journey Mapping (Step 4 of 11)" + +#### Menu Handling Logic: +- IF A: Read fully and follow: {advancedElicitationTask} with the current success criteria content, process the enhanced success metrics that come back, ask user "Accept these improvements to the success criteria? (y/n)", if yes update content with improvements then redisplay menu, if no keep original content then redisplay menu +- IF P: Read fully and follow: {partyModeWorkflow} with the current success criteria, process the collaborative improvements to metrics and scope, ask user "Accept these changes to the success criteria? (y/n)", if yes update content with improvements then redisplay menu, if no keep original content then redisplay menu +- IF C: Append the final content to {outputFile}, update frontmatter by adding this step name to the end of the stepsCompleted array, then read fully and follow: {nextStepFile} +- IF Any other: help user respond, then redisplay menu + +#### EXECUTION RULES: +- ALWAYS halt and wait for user input after presenting menu +- ONLY proceed to next step when user selects 'C' +- After other menu items execution, return to this menu + +## APPEND TO DOCUMENT: + +When user selects 'C', append the content directly to the document using the structure from step 7. + +## SUCCESS METRICS: + +✅ User success criteria clearly identified and made measurable +✅ Business success metrics defined with specific targets +✅ Success criteria connected to product differentiator +✅ Scope properly negotiated (MVP, Growth, Vision) +✅ A/P/C menu presented and handled correctly +✅ Content properly appended to document when C selected + +## FAILURE MODES: + +❌ Accepting vague success metrics without pushing for specificity +❌ Not connecting success criteria back to product differentiator +❌ Missing scope negotiation and leaving it undefined +❌ Generating content without real user input on what success looks like +❌ Not presenting A/P/C menu after content generation +❌ Appending content without user selecting 'C' + +❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions +❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file +❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols + +## DOMAIN CONSIDERATIONS: + +If working in regulated domains (healthcare, fintech, govtech): + +- Include compliance milestones in success criteria +- Add regulatory approval timelines to MVP scope +- Consider audit requirements as technical success metrics + +## NEXT STEP: + +After user selects 'C' and content is saved to document, load `./step-04-journeys.md` to map user journeys. + +Remember: Do NOT proceed to step-04 until user explicitly selects 'C' from the A/P/C menu and content is saved! diff --git a/src/core/tasks/bmad-create-prd/steps-c/step-04-journeys.md b/src/core/tasks/bmad-create-prd/steps-c/step-04-journeys.md new file mode 100644 index 000000000..4dc16c456 --- /dev/null +++ b/src/core/tasks/bmad-create-prd/steps-c/step-04-journeys.md @@ -0,0 +1,214 @@ +--- +name: 'step-04-journeys' +description: 'Map ALL user types that interact with the system with narrative story-based journeys' + +# File References +nextStepFile: './step-05-domain.md' +outputFile: '{planning_artifacts}/prd.md' + +# Task References +advancedElicitationTask: 'skill:bmad-advanced-elicitation' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md' +--- + +# Step 4: User Journey Mapping + +**Progress: Step 4 of 11** - Next: Domain Requirements + +## MANDATORY EXECUTION RULES (READ FIRST): + +- 🛑 NEVER generate content without user input + +- 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions +- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding +- ✅ ALWAYS treat this as collaborative discovery between PM peers +- 📋 YOU ARE A FACILITATOR, not a content generator +- 💬 FOCUS on mapping ALL user types that interact with the system +- 🎯 CRITICAL: No journey = no functional requirements = product doesn't exist +- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` +- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}` + +## EXECUTION PROTOCOLS: + +- 🎯 Show your analysis before taking any action +- ⚠️ Present A/P/C menu after generating journey content +- 💾 ONLY save when user chooses C (Continue) +- 📖 Update output file frontmatter, adding this step name to the end of the list of stepsCompleted +- 🚫 FORBIDDEN to load next step until C is selected + +## CONTEXT BOUNDARIES: + +- Current document and frontmatter from previous steps are available +- Success criteria and scope already defined +- Input documents from step-01 are available (product briefs with user personas) +- Every human interaction with the system needs a journey + +## YOUR TASK: + +Create compelling narrative user journeys that leverage existing personas from product briefs and identify additional user types needed for comprehensive coverage. + +## JOURNEY MAPPING SEQUENCE: + +### 1. Leverage Existing Users & Identify Additional Types + +**Check Input Documents for Existing Personas:** +Analyze product brief, research, and brainstorming documents for user personas already defined. + +**If User Personas Exist in Input Documents:** +Guide user to build on existing personas: +- Acknowledge personas found in their product brief +- Extract key persona details and backstories +- Leverage existing insights about their needs +- Prompt to identify additional user types beyond those documented +- Suggest additional user types based on product context (admins, moderators, support, API consumers, internal ops) +- Ask what additional user types should be considered + +**If No Personas in Input Documents:** +Start with comprehensive user type discovery: +- Guide exploration of ALL people who interact with the system +- Consider beyond primary users: admins, moderators, support staff, API consumers, internal ops +- Ask what user types should be mapped for this specific product +- Ensure comprehensive coverage of all system interactions + +### 2. Create Narrative Story-Based Journeys + +For each user type, create compelling narrative journeys that tell their story: + +#### Narrative Journey Creation Process: + +**If Using Existing Persona from Input Documents:** +Guide narrative journey creation: +- Use persona's existing backstory from brief +- Explore how the product changes their life/situation +- Craft journey narrative: where do we meet them, how does product help them write their next chapter? + +**If Creating New Persona:** +Guide persona creation with story framework: +- Name: realistic name and personality +- Situation: What's happening in their life/work that creates need? +- Goal: What do they desperately want to achieve? +- Obstacle: What's standing in their way? +- Solution: How does the product solve their story? + +**Story-Based Journey Mapping:** + +Guide narrative journey creation using story structure: +- **Opening Scene**: Where/how do we meet them? What's their current pain? +- **Rising Action**: What steps do they take? What do they discover? +- **Climax**: Critical moment where product delivers real value +- **Resolution**: How does their situation improve? What's their new reality? + +Encourage narrative format with specific user details, emotional journey, and clear before/after contrast + +### 3. Guide Journey Exploration + +For each journey, facilitate detailed exploration: +- What happens at each step specifically? +- What could go wrong? What's the recovery path? +- What information do they need to see/hear? +- What's their emotional state at each point? +- Where does this journey succeed or fail? + +### 4. Connect Journeys to Requirements + +After each journey, explicitly state: +- This journey reveals requirements for specific capability areas +- Help user see how different journeys create different feature sets +- Connect journey needs to concrete capabilities (onboarding, dashboards, notifications, etc.) + +### 5. Aim for Comprehensive Coverage + +Guide toward complete journey set: + +- **Primary user** - happy path (core experience) +- **Primary user** - edge case (different goal, error recovery) +- **Secondary user** (admin, moderator, support, etc.) +- **API consumer** (if applicable) + +Ask if additional journeys are needed to cover uncovered user types + +### 6. Generate User Journey Content + +Prepare the content to append to the document: + +#### Content Structure: + +When saving to document, append these Level 2 and Level 3 sections: + +```markdown +## User Journeys + +[All journey narratives based on conversation] + +### Journey Requirements Summary + +[Summary of capabilities revealed by journeys based on conversation] +``` + +### 7. Present MENU OPTIONS + +Present the user journey content for review, then display menu: +- Show the mapped user journeys (using structure from section 6) +- Highlight how each journey reveals different capabilities +- Ask if they'd like to refine further, get other perspectives, or proceed +- Present menu options naturally as part of conversation + +Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Domain Requirements (Step 5 of 11)" + +#### Menu Handling Logic: +- IF A: Read fully and follow: {advancedElicitationTask} with the current journey content, process the enhanced journey insights that come back, ask user "Accept these improvements to the user journeys? (y/n)", if yes update content with improvements then redisplay menu, if no keep original content then redisplay menu +- IF P: Read fully and follow: {partyModeWorkflow} with the current journeys, process the collaborative journey improvements and additions, ask user "Accept these changes to the user journeys? (y/n)", if yes update content with improvements then redisplay menu, if no keep original content then redisplay menu +- IF C: Append the final content to {outputFile}, update frontmatter by adding this step name to the end of the stepsCompleted array, then read fully and follow: {nextStepFile} +- IF Any other: help user respond, then redisplay menu + +#### EXECUTION RULES: +- ALWAYS halt and wait for user input after presenting menu +- ONLY proceed to next step when user selects 'C' +- After other menu items execution, return to this menu + +## APPEND TO DOCUMENT: + +When user selects 'C', append the content directly to the document using the structure from step 6. + +## SUCCESS METRICS: + +✅ Existing personas from product briefs leveraged when available +✅ All user types identified (not just primary users) +✅ Rich narrative storytelling for each persona and journey +✅ Complete story-based journey mapping with emotional arc +✅ Journey requirements clearly connected to capabilities needed +✅ Minimum 3-4 compelling narrative journeys covering different user types +✅ A/P/C menu presented and handled correctly +✅ Content properly appended to document when C selected + +## FAILURE MODES: + +❌ Ignoring existing personas from product briefs +❌ Only mapping primary user journeys and missing secondary users +❌ Creating generic journeys without rich persona details and narrative +❌ Missing emotional storytelling elements that make journeys compelling +❌ Missing critical decision points and failure scenarios +❌ Not connecting journeys to required capabilities +❌ Not having enough journey diversity (admin, support, API, etc.) +❌ Not presenting A/P/C menu after content generation +❌ Appending content without user selecting 'C' + +❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions +❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file +❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols + +## JOURNEY TYPES TO ENSURE: + +**Minimum Coverage:** + +1. **Primary User - Success Path**: Core experience journey +2. **Primary User - Edge Case**: Error recovery, alternative goals +3. **Admin/Operations User**: Management, configuration, monitoring +4. **Support/Troubleshooting**: Help, investigation, issue resolution +5. **API/Integration** (if applicable): Developer/technical user journey + +## NEXT STEP: + +After user selects 'C' and content is saved to document, load `./step-05-domain.md`. + +Remember: Do NOT proceed to step-05 until user explicitly selects 'C' from the A/P/C menu and content is saved! diff --git a/src/core/tasks/bmad-create-prd/steps-c/step-05-domain.md b/src/core/tasks/bmad-create-prd/steps-c/step-05-domain.md new file mode 100644 index 000000000..89bf5cda3 --- /dev/null +++ b/src/core/tasks/bmad-create-prd/steps-c/step-05-domain.md @@ -0,0 +1,208 @@ +--- +name: 'step-05-domain' +description: 'Explore domain-specific requirements for complex domains (optional step)' + +# File References +nextStepFile: './step-06-innovation.md' +outputFile: '{planning_artifacts}/prd.md' +domainComplexityCSV: '../data/domain-complexity.csv' + +# Task References +advancedElicitationTask: 'skill:bmad-advanced-elicitation' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md' +--- + +# Step 5: Domain-Specific Requirements (Optional) + +**Progress: Step 5 of 13** - Next: Innovation Focus + +## STEP GOAL: + +For complex domains only that have a mapping in {domainComplexityCSV}, explore domain-specific constraints, compliance requirements, and technical considerations that shape the product. + +## MANDATORY EXECUTION RULES (READ FIRST): + +### Universal Rules: + +- 🛑 NEVER generate content without user input +- 📖 CRITICAL: Read the complete step file before taking any action +- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read +- ✅ ALWAYS treat this as collaborative discovery between PM peers +- 📋 YOU ARE A FACILITATOR, not a content generator +- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` +- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}` + +### Role Reinforcement: + +- ✅ You are a product-focused PM facilitator collaborating with an expert peer +- ✅ We engage in collaborative dialogue, not command-response +- ✅ You bring structured thinking and facilitation skills, while the user brings domain expertise + +### Step-Specific Rules: + +- 🎯 This step is OPTIONAL - only needed for complex domains +- 🚫 SKIP if domain complexity is "low" from step-02 +- 💬 APPROACH: Natural conversation to discover domain-specific needs +- 🎯 Focus on constraints, compliance, and domain patterns + +## EXECUTION PROTOCOLS: + +- 🎯 Check domain complexity from step-02 classification first +- ⚠️ If complexity is "low", offer to skip this step +- ⚠️ Present A/P/C menu after domain requirements defined (or skipped) +- 💾 ONLY save when user chooses C (Continue) +- 📖 Update output file frontmatter, adding this step name to the end of the list of stepsCompleted +- 🚫 FORBIDDEN to load next step until C is selected + +## CONTEXT BOUNDARIES: + +- Domain classification from step-02 is available +- If complexity is low, this step may be skipped +- Domain CSV data provides complexity reference +- Focus on domain-specific constraints, not general requirements + +## YOUR TASK: + +For complex domains, explore what makes this domain special: +- **Compliance requirements** - regulations, standards, certifications +- **Technical constraints** - security, privacy, integration requirements +- **Domain patterns** - common patterns, best practices, anti-patterns +- **Risks and mitigations** - what could go wrong, how to prevent it + +## DOMAIN DISCOVERY SEQUENCE: + +### 1. Check Domain Complexity + +**Review classification from step-02:** + +- What's the domain complexity level? (low/medium/high) +- What's the specific domain? (healthcare, fintech, education, etc.) + +**If complexity is LOW:** + +Offer to skip: +"The domain complexity from our discovery is low. We may not need deep domain-specific requirements. Would you like to: +- [C] Skip this step and move to Innovation +- [D] Do domain exploration anyway" + +**If complexity is MEDIUM or HIGH:** + +Proceed with domain exploration. + +### 2. Load Domain Reference Data + +**Attempt subprocess data lookup:** + +"Your task: Lookup data in {domainComplexityCSV} + +**Search criteria:** +- Find row where domain matches {{domainFromStep02}} + +**Return format:** +Return ONLY the matching row as a YAML-formatted object with these fields: +domain, complexity, typical_concerns, compliance_requirements + +**Do NOT return the entire CSV - only the matching row.**" + +**Graceful degradation (if Task tool unavailable):** +- Load the CSV file directly +- Find the matching row manually +- Extract required fields +- Understand typical concerns and compliance requirements + +### 3. Explore Domain-Specific Concerns + +**Start with what you know:** + +Acknowledge the domain and explore what makes it complex: +- What regulations apply? (HIPAA, PCI-DSS, GDPR, SOX, etc.) +- What standards matter? (ISO, NIST, domain-specific standards) +- What certifications are needed? (security, privacy, domain-specific) +- What integrations are required? (EMR systems, payment processors, etc.) + +**Explore technical constraints:** +- Security requirements (encryption, audit logs, access control) +- Privacy requirements (data handling, consent, retention) +- Performance requirements (real-time, batch, latency) +- Availability requirements (uptime, disaster recovery) + +### 4. Document Domain Requirements + +**Structure the requirements around key concerns:** + +```markdown +### Compliance & Regulatory +- [Specific requirements] + +### Technical Constraints +- [Security, privacy, performance needs] + +### Integration Requirements +- [Required systems and data flows] + +### Risk Mitigations +- [Domain-specific risks and how to address them] +``` + +### 5. Validate Completeness + +**Check with the user:** + +"Are there other domain-specific concerns we should consider? For [this domain], what typically gets overlooked?" + +### N. Present MENU OPTIONS + +Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue - Save and Proceed to Innovation (Step 6 of 13)" + +#### Menu Handling Logic: +- IF A: Read fully and follow: {advancedElicitationTask}, and when finished redisplay the menu +- IF P: Read fully and follow: {partyModeWorkflow}, and when finished redisplay the menu +- IF C: Save content to {outputFile}, update frontmatter, then read fully and follow: {nextStepFile} +- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#n-present-menu-options) + +#### EXECUTION RULES: +- ALWAYS halt and wait for user input after presenting menu +- ONLY proceed to next step when user selects 'C' +- After other menu items execution, return to this menu + +## APPEND TO DOCUMENT + +When user selects 'C', append to `{outputFile}`: + +```markdown +## Domain-Specific Requirements + +{{discovered domain requirements}} +``` + +If step was skipped, append nothing and proceed. + +## CRITICAL STEP COMPLETION NOTE + +ONLY WHEN [C continue option] is selected and [content saved or skipped], will you then read fully and follow: `{nextStepFile}` to explore innovation. + +--- + +## 🚨 SYSTEM SUCCESS/FAILURE METRICS + +### ✅ SUCCESS: + +- Domain complexity checked before proceeding +- Offered to skip if complexity is low +- Natural conversation exploring domain concerns +- Compliance, technical, and integration requirements identified +- Domain-specific risks documented with mitigations +- User validated completeness +- Content properly saved (or step skipped) when C selected + +### ❌ SYSTEM FAILURE: + +- Not checking domain complexity first +- Not offering to skip for low-complexity domains +- Missing critical compliance requirements +- Not exploring technical constraints +- Not asking about domain-specific risks +- Being generic instead of domain-specific +- Proceeding without user validation + +**Master Rule:** This step is OPTIONAL for simple domains. For complex domains, focus on compliance, constraints, and domain patterns. Natural conversation, not checklists. diff --git a/src/core/tasks/bmad-create-prd/steps-c/step-06-innovation.md b/src/core/tasks/bmad-create-prd/steps-c/step-06-innovation.md new file mode 100644 index 000000000..09cbdbf44 --- /dev/null +++ b/src/core/tasks/bmad-create-prd/steps-c/step-06-innovation.md @@ -0,0 +1,227 @@ +--- +name: 'step-06-innovation' +description: 'Detect and explore innovative aspects of the product (optional step)' + +# File References +nextStepFile: './step-07-project-type.md' +outputFile: '{planning_artifacts}/prd.md' + +# Data Files +projectTypesCSV: '../data/project-types.csv' + +# Task References +advancedElicitationTask: 'skill:bmad-advanced-elicitation' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md' +--- + +# Step 6: Innovation Discovery + +**Progress: Step 6 of 11** - Next: Project Type Analysis + +## MANDATORY EXECUTION RULES (READ FIRST): + +- 🛑 NEVER generate content without user input + +- 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions +- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding +- ✅ ALWAYS treat this as collaborative discovery between PM peers +- 📋 YOU ARE A FACILITATOR, not a content generator +- 💬 FOCUS on detecting and exploring innovative aspects of the product +- 🎯 OPTIONAL STEP: Only proceed if innovation signals are detected +- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` +- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}` + +## EXECUTION PROTOCOLS: + +- 🎯 Show your analysis before taking any action +- ⚠️ Present A/P/C menu after generating innovation content +- 💾 ONLY save when user chooses C (Continue) +- 📖 Update output file frontmatter, adding this step name to the end of the list of stepsCompleted +- 🚫 FORBIDDEN to load next step until C is selected + +## CONTEXT BOUNDARIES: + +- Current document and frontmatter from previous steps are available +- Project type from step-02 is available for innovation signal matching +- Project-type CSV data will be loaded in this step +- Focus on detecting genuine innovation, not forced creativity + +## OPTIONAL STEP CHECK: + +Before proceeding with this step, scan for innovation signals: + +- Listen for language like "nothing like this exists", "rethinking how X works" +- Check for project-type innovation signals from CSV +- Look for novel approaches or unique combinations +- If no innovation detected, skip this step + +## YOUR TASK: + +Detect and explore innovation patterns in the product, focusing on what makes it truly novel and how to validate the innovative aspects. + +## INNOVATION DISCOVERY SEQUENCE: + +### 1. Load Project-Type Innovation Data + +Load innovation signals specific to this project type: + +- Load `{projectTypesCSV}` completely +- Find the row where `project_type` matches detected type from step-02 +- Extract `innovation_signals` (semicolon-separated list) +- Extract `web_search_triggers` for potential innovation research + +### 2. Listen for Innovation Indicators + +Monitor conversation for both general and project-type-specific innovation signals: + +#### General Innovation Language: + +- "Nothing like this exists" +- "We're rethinking how [X] works" +- "Combining [A] with [B] for the first time" +- "Novel approach to [problem]" +- "No one has done [concept] before" + +#### Project-Type-Specific Signals (from CSV): + +Match user descriptions against innovation_signals for their project_type: + +- **api_backend**: "API composition;New protocol" +- **mobile_app**: "Gesture innovation;AR/VR features" +- **saas_b2b**: "Workflow automation;AI agents" +- **developer_tool**: "New paradigm;DSL creation" + +### 3. Initial Innovation Screening + +Ask targeted innovation discovery questions: +- Guide exploration of what makes the product innovative +- Explore if they're challenging existing assumptions +- Ask about novel combinations of technologies/approaches +- Identify what hasn't been done before +- Understand which aspects feel most innovative + +### 4. Deep Innovation Exploration (If Detected) + +If innovation signals are found, explore deeply: + +#### Innovation Discovery Questions: +- What makes it unique compared to existing solutions? +- What assumption are you challenging? +- How do we validate it works? +- What's the fallback if it doesn't? +- Has anyone tried this before? + +#### Market Context Research: + +If relevant innovation detected, consider web search for context: +Use `web_search_triggers` from project-type CSV: +`[web_search_triggers] {concept} innovations {date}` + +### 5. Generate Innovation Content (If Innovation Detected) + +Prepare the content to append to the document: + +#### Content Structure: + +When saving to document, append these Level 2 and Level 3 sections: + +```markdown +## Innovation & Novel Patterns + +### Detected Innovation Areas + +[Innovation patterns identified based on conversation] + +### Market Context & Competitive Landscape + +[Market context and research based on conversation] + +### Validation Approach + +[Validation methodology based on conversation] + +### Risk Mitigation + +[Innovation risks and fallbacks based on conversation] +``` + +### 6. Present MENU OPTIONS (Only if Innovation Detected) + +Present the innovation content for review, then display menu: +- Show identified innovative aspects (using structure from section 5) +- Highlight differentiation from existing solutions +- Ask if they'd like to refine further, get other perspectives, or proceed +- Present menu options naturally as part of conversation + +Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Project Type Analysis (Step 7 of 11)" + +#### Menu Handling Logic: +- IF A: Read fully and follow: {advancedElicitationTask} with the current innovation content, process the enhanced innovation insights that come back, ask user "Accept these improvements to the innovation analysis? (y/n)", if yes update content with improvements then redisplay menu, if no keep original content then redisplay menu +- IF P: Read fully and follow: {partyModeWorkflow} with the current innovation content, process the collaborative innovation exploration and ideation, ask user "Accept these changes to the innovation analysis? (y/n)", if yes update content with improvements then redisplay menu, if no keep original content then redisplay menu +- IF C: Append the final content to {outputFile}, update frontmatter by adding this step name to the end of the stepsCompleted array, then read fully and follow: {nextStepFile} +- IF Any other: help user respond, then redisplay menu + +#### EXECUTION RULES: +- ALWAYS halt and wait for user input after presenting menu +- ONLY proceed to next step when user selects 'C' +- After other menu items execution, return to this menu + +## NO INNOVATION DETECTED: + +If no genuine innovation signals are found after exploration: +- Acknowledge that no clear innovation signals were found +- Note this is fine - many successful products are excellent executions of existing concepts +- Ask if they'd like to try finding innovative angles or proceed + +Display: "**Select:** [A] Advanced Elicitation - Let's try to find innovative angles [C] Continue - Skip innovation section and move to Project Type Analysis (Step 7 of 11)" + +### Menu Handling Logic: +- IF A: Proceed with content generation anyway, then return to menu +- IF C: Skip this step, then read fully and follow: {nextStepFile} + +### EXECUTION RULES: +- ALWAYS halt and wait for user input after presenting menu +- ONLY proceed to next step when user selects 'C' + +## APPEND TO DOCUMENT: + +When user selects 'C', append the content directly to the document using the structure from step 5. + +## SUCCESS METRICS: + +✅ Innovation signals properly detected from user conversation +✅ Project-type innovation signals used to guide discovery +✅ Genuine innovation explored (not forced creativity) +✅ Validation approach clearly defined for innovative aspects +✅ Risk mitigation strategies identified +✅ A/P/C menu presented and handled correctly +✅ Content properly appended to document when C selected + +## FAILURE MODES: + +❌ Forced innovation when none genuinely exists +❌ Not using project-type innovation signals from CSV +❌ Missing market context research for novel concepts +❌ Not addressing validation approach for innovative features +❌ Creating innovation theater without real innovative aspects +❌ Not presenting A/P/C menu after content generation +❌ Appending content without user selecting 'C' + +❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions +❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file +❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols + +## SKIP CONDITIONS: + +Skip this step and load `{nextStepFile}` if: + +- No innovation signals detected in conversation +- Product is incremental improvement rather than breakthrough +- User confirms innovation exploration is not needed +- Project-type CSV has no innovation signals for this type + +## NEXT STEP: + +After user selects 'C' and content is saved to document (or step is skipped), load `{nextStepFile}`. + +Remember: Do NOT proceed to step-07 until user explicitly selects 'C' from the A/P/C menu (or confirms step skip)! diff --git a/src/core/tasks/bmad-create-prd/steps-c/step-07-project-type.md b/src/core/tasks/bmad-create-prd/steps-c/step-07-project-type.md new file mode 100644 index 000000000..45de71dac --- /dev/null +++ b/src/core/tasks/bmad-create-prd/steps-c/step-07-project-type.md @@ -0,0 +1,238 @@ +--- +name: 'step-07-project-type' +description: 'Conduct project-type specific discovery using CSV-driven guidance' + +# File References +nextStepFile: './step-08-scoping.md' +outputFile: '{planning_artifacts}/prd.md' + +# Data Files +projectTypesCSV: '../data/project-types.csv' + +# Task References +advancedElicitationTask: 'skill:bmad-advanced-elicitation' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md' +--- + +# Step 7: Project-Type Deep Dive + +**Progress: Step 7 of 11** - Next: Scoping + +## MANDATORY EXECUTION RULES (READ FIRST): + +- 🛑 NEVER generate content without user input + +- 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions +- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding +- ✅ ALWAYS treat this as collaborative discovery between PM peers +- 📋 YOU ARE A FACILITATOR, not a content generator +- 💬 FOCUS on project-type specific requirements and technical considerations +- 🎯 DATA-DRIVEN: Use CSV configuration to guide discovery +- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` +- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}` + +## EXECUTION PROTOCOLS: + +- 🎯 Show your analysis before taking any action +- ⚠️ Present A/P/C menu after generating project-type content +- 💾 ONLY save when user chooses C (Continue) +- 📖 Update output file frontmatter, adding this step name to the end of the list of stepsCompleted +- 🚫 FORBIDDEN to load next step until C is selected + +## CONTEXT BOUNDARIES: + +- Current document and frontmatter from previous steps are available +- Project type from step-02 is available for configuration loading +- Project-type CSV data will be loaded in this step +- Focus on technical and functional requirements specific to this project type + +## YOUR TASK: + +Conduct project-type specific discovery using CSV-driven guidance to define technical requirements. + +## PROJECT-TYPE DISCOVERY SEQUENCE: + +### 1. Load Project-Type Configuration Data + +**Attempt subprocess data lookup:** + +"Your task: Lookup data in {projectTypesCSV} + +**Search criteria:** +- Find row where project_type matches {{projectTypeFromStep02}} + +**Return format:** +Return ONLY the matching row as a YAML-formatted object with these fields: +project_type, key_questions, required_sections, skip_sections, innovation_signals + +**Do NOT return the entire CSV - only the matching row.**" + +**Graceful degradation (if Task tool unavailable):** +- Load the CSV file directly +- Find the matching row manually +- Extract required fields: + - `key_questions` (semicolon-separated list of discovery questions) + - `required_sections` (semicolon-separated list of sections to document) + - `skip_sections` (semicolon-separated list of sections to skip) + - `innovation_signals` (already explored in step-6) + +### 2. Conduct Guided Discovery Using Key Questions + +Parse `key_questions` from CSV and explore each: + +#### Question-Based Discovery: + +For each question in `key_questions` from CSV: + +- Ask the user naturally in conversational style +- Listen for their response and ask clarifying follow-ups +- Connect answers to product value proposition + +**Example Flow:** +If key_questions = "Endpoints needed?;Authentication method?;Data formats?;Rate limits?;Versioning?;SDK needed?" + +Ask naturally: + +- "What are the main endpoints your API needs to expose?" +- "How will you handle authentication and authorization?" +- "What data formats will you support for requests and responses?" + +### 3. Document Project-Type Specific Requirements + +Based on user answers to key_questions, synthesize comprehensive requirements: + +#### Requirement Categories: + +Cover the areas indicated by `required_sections` from CSV: + +- Synthesize what was discovered for each required section +- Document specific requirements, constraints, and decisions +- Connect to product differentiator when relevant + +#### Skip Irrelevant Sections: + +Skip areas indicated by `skip_sections` from CSV to avoid wasting time on irrelevant aspects. + +### 4. Generate Dynamic Content Sections + +Parse `required_sections` list from the matched CSV row. For each section name, generate corresponding content: + +#### Common CSV Section Mappings: + +- "endpoint_specs" or "endpoint_specification" → API endpoints documentation +- "auth_model" or "authentication_model" → Authentication approach +- "platform_reqs" or "platform_requirements" → Platform support needs +- "device_permissions" or "device_features" → Device capabilities +- "tenant_model" → Multi-tenancy approach +- "rbac_matrix" or "permission_matrix" → Permission structure + +#### Template Variable Strategy: + +- For sections matching common template variables: generate specific content +- For sections without template matches: include in main project_type_requirements +- Hybrid approach balances template structure with CSV-driven flexibility + +### 5. Generate Project-Type Content + +Prepare the content to append to the document: + +#### Content Structure: + +When saving to document, append these Level 2 and Level 3 sections: + +```markdown +## [Project Type] Specific Requirements + +### Project-Type Overview + +[Project type summary based on conversation] + +### Technical Architecture Considerations + +[Technical architecture requirements based on conversation] + +[Dynamic sections based on CSV and conversation] + +### Implementation Considerations + +[Implementation specific requirements based on conversation] +``` + +### 6. Present MENU OPTIONS + +Present the project-type content for review, then display menu: + +"Based on our conversation and best practices for this product type, I've documented the {project_type}-specific requirements for {{project_name}}. + +**Here's what I'll add to the document:** + +[Show the complete markdown content from section 5] + +**What would you like to do?**" + +Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Scoping (Step 8 of 11)" + +#### Menu Handling Logic: +- IF A: Read fully and follow: {advancedElicitationTask} with the current project-type content, process the enhanced technical insights that come back, ask user "Accept these improvements to the technical requirements? (y/n)", if yes update content with improvements then redisplay menu, if no keep original content then redisplay menu +- IF P: Read fully and follow: {partyModeWorkflow} with the current project-type requirements, process the collaborative technical expertise and validation, ask user "Accept these changes to the technical requirements? (y/n)", if yes update content with improvements then redisplay menu, if no keep original content then redisplay menu +- IF C: Append the final content to {outputFile}, update frontmatter by adding this step name to the end of the stepsCompleted array, then read fully and follow: {nextStepFile} +- IF Any other: help user respond, then redisplay menu + +#### EXECUTION RULES: +- ALWAYS halt and wait for user input after presenting menu +- ONLY proceed to next step when user selects 'C' +- After other menu items execution, return to this menu + +## APPEND TO DOCUMENT: + +When user selects 'C', append the content directly to the document using the structure from previous steps. + +## SUCCESS METRICS: + +✅ Project-type configuration loaded and used effectively +✅ All key questions from CSV explored with user input +✅ Required sections generated per CSV configuration +✅ Skip sections properly avoided to save time +✅ Technical requirements connected to product value +✅ A/P/C menu presented and handled correctly +✅ Content properly appended to document when C selected + +## FAILURE MODES: + +❌ Not loading or using project-type CSV configuration +❌ Missing key questions from CSV in discovery process +❌ Not generating required sections per CSV configuration +❌ Documenting sections that should be skipped per CSV +❌ Creating generic content without project-type specificity +❌ Not presenting A/P/C menu after content generation +❌ Appending content without user selecting 'C' + +❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions +❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file +❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols + +## PROJECT-TYPE EXAMPLES: + +**For api_backend:** + +- Focus on endpoints, authentication, data schemas, rate limiting +- Skip visual design and user journey sections +- Generate API specification documentation + +**For mobile_app:** + +- Focus on platform requirements, device permissions, offline mode +- Skip API endpoint documentation unless needed +- Generate mobile-specific technical requirements + +**For saas_b2b:** + +- Focus on multi-tenancy, permissions, integrations +- Skip mobile-first considerations unless relevant +- Generate enterprise-specific requirements + +## NEXT STEP: + +After user selects 'C' and content is saved to document, load `{nextStepFile}` to define project scope. + +Remember: Do NOT proceed to step-08 (Scoping) until user explicitly selects 'C' from the A/P/C menu and content is saved! diff --git a/src/core/tasks/bmad-create-prd/steps-c/step-08-scoping.md b/src/core/tasks/bmad-create-prd/steps-c/step-08-scoping.md new file mode 100644 index 000000000..368abf536 --- /dev/null +++ b/src/core/tasks/bmad-create-prd/steps-c/step-08-scoping.md @@ -0,0 +1,229 @@ +--- +name: 'step-08-scoping' +description: 'Define MVP boundaries and prioritize features across development phases' + +# File References +nextStepFile: './step-09-functional.md' +outputFile: '{planning_artifacts}/prd.md' + +# Task References +advancedElicitationTask: 'skill:bmad-advanced-elicitation' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md' +--- + +# Step 8: Scoping Exercise - MVP & Future Features + +**Progress: Step 8 of 11** - Next: Functional Requirements + +## MANDATORY EXECUTION RULES (READ FIRST): + +- 🛑 NEVER generate content without user input + +- 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions +- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding +- ✅ ALWAYS treat this as collaborative discovery between PM peers +- 📋 YOU ARE A FACILITATOR, not a content generator +- 💬 FOCUS on strategic scope decisions that keep projects viable +- 🎯 EMPHASIZE lean MVP thinking while preserving long-term vision +- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` +- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}` + +## EXECUTION PROTOCOLS: + +- 🎯 Show your analysis before taking any action +- 📚 Review the complete PRD document built so far +- ⚠️ Present A/P/C menu after generating scoping decisions +- 💾 ONLY save when user chooses C (Continue) +- 📖 Update output file frontmatter, adding this step name to the end of the list of stepsCompleted +- 🚫 FORBIDDEN to load next step until C is selected + + +## CONTEXT BOUNDARIES: + +- Complete PRD document built so far is available for review +- User journeys, success criteria, and domain requirements are documented +- Focus on strategic scope decisions, not feature details +- Balance between user value and implementation feasibility + +## YOUR TASK: + +Conduct comprehensive scoping exercise to define MVP boundaries and prioritize features across development phases. + +## SCOPING SEQUENCE: + +### 1. Review Current PRD State + +Analyze everything documented so far: +- Present synthesis of established vision, success criteria, journeys +- Assess domain and innovation focus +- Evaluate scope implications: simple MVP, medium, or complex project +- Ask if initial assessment feels right or if they see it differently + +### 2. Define MVP Strategy + +Facilitate strategic MVP decisions: +- Explore MVP philosophy options: problem-solving, experience, platform, or revenue MVP +- Ask critical questions: + - What's the minimum that would make users say 'this is useful'? + - What would make investors/partners say 'this has potential'? + - What's the fastest path to validated learning? +- Guide toward appropriate MVP approach for their product + +### 3. Scoping Decision Framework + +Use structured decision-making for scope: + +**Must-Have Analysis:** +- Guide identification of absolute MVP necessities +- For each journey and success criterion, ask: + - Without this, does the product fail? + - Can this be manual initially? + - Is this a deal-breaker for early adopters? +- Analyze journeys for MVP essentials + +**Nice-to-Have Analysis:** +- Identify what could be added later: + - Features that enhance but aren't essential + - User types that can be added later + - Advanced functionality that builds on MVP +- Ask what features could be added in versions 2, 3, etc. + +### 4. Progressive Feature Roadmap + +Create phased development approach: +- Guide mapping of features across development phases +- Structure as Phase 1 (MVP), Phase 2 (Growth), Phase 3 (Vision) +- Ensure clear progression and dependencies + +- Core user value delivery +- Essential user journeys +- Basic functionality that works reliably + +**Phase 2: Growth** + +- Additional user types +- Enhanced features +- Scale improvements + +**Phase 3: Expansion** + +- Advanced capabilities +- Platform features +- New markets or use cases + +**Where does your current vision fit in this development sequence?**" + +### 5. Risk-Based Scoping + +Identify and mitigate scoping risks: + +**Technical Risks:** +"Looking at your innovation and domain requirements: + +- What's the most technically challenging aspect? +- Could we simplify the initial implementation? +- What's the riskiest assumption about technology feasibility?" + +**Market Risks:** + +- What's the biggest market risk? +- How does the MVP address this? +- What learning do we need to de-risk this?" + +**Resource Risks:** + +- What if we have fewer resources than planned? +- What's the absolute minimum team size needed? +- Can we launch with a smaller feature set?" + +### 6. Generate Scoping Content + +Prepare comprehensive scoping section: + +#### Content Structure: + +```markdown +## Project Scoping & Phased Development + +### MVP Strategy & Philosophy + +**MVP Approach:** {{chosen_mvp_approach}} +**Resource Requirements:** {{mvp_team_size_and_skills}} + +### MVP Feature Set (Phase 1) + +**Core User Journeys Supported:** +{{essential_journeys_for_mvp}} + +**Must-Have Capabilities:** +{{list_of_essential_mvp_features}} + +### Post-MVP Features + +**Phase 2 (Post-MVP):** +{{planned_growth_features}} + +**Phase 3 (Expansion):** +{{planned_expansion_features}} + +### Risk Mitigation Strategy + +**Technical Risks:** {{mitigation_approach}} +**Market Risks:** {{validation_approach}} +**Resource Risks:** {{contingency_approach}} +``` + +### 7. Present MENU OPTIONS + +Present the scoping decisions for review, then display menu: +- Show strategic scoping plan (using structure from step 6) +- Highlight MVP boundaries and phased roadmap +- Ask if they'd like to refine further, get other perspectives, or proceed +- Present menu options naturally as part of conversation + +Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Functional Requirements (Step 9 of 11)" + +#### Menu Handling Logic: +- IF A: Read fully and follow: {advancedElicitationTask} with the current scoping analysis, process the enhanced insights that come back, ask user if they accept the improvements, if yes update content then redisplay menu, if no keep original content then redisplay menu +- IF P: Read fully and follow: {partyModeWorkflow} with the scoping context, process the collaborative insights on MVP and roadmap decisions, ask user if they accept the changes, if yes update content then redisplay menu, if no keep original content then redisplay menu +- IF C: Append the final content to {outputFile}, update frontmatter by adding this step name to the end of the stepsCompleted array, then read fully and follow: {nextStepFile} +- IF Any other: help user respond, then redisplay menu + +#### EXECUTION RULES: +- ALWAYS halt and wait for user input after presenting menu +- ONLY proceed to next step when user selects 'C' +- After other menu items execution, return to this menu + +## APPEND TO DOCUMENT: + +When user selects 'C', append the content directly to the document using the structure from step 6. + +## SUCCESS METRICS: + +✅ Complete PRD document analyzed for scope implications +✅ Strategic MVP approach defined and justified +✅ Clear MVP feature boundaries established +✅ Phased development roadmap created +✅ Key risks identified and mitigation strategies defined +✅ User explicitly agrees to scope decisions +✅ A/P/C menu presented and handled correctly +✅ Content properly appended to document when C selected + +## FAILURE MODES: + +❌ Not analyzing the complete PRD before making scoping decisions +❌ Making scope decisions without strategic rationale +❌ Not getting explicit user agreement on MVP boundaries +❌ Missing critical risk analysis +❌ Not creating clear phased development approach +❌ Not presenting A/P/C menu after content generation + +❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions +❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file +❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols + +## NEXT STEP: + +After user selects 'C' and content is saved to document, load {nextStepFile}. + +Remember: Do NOT proceed to step-09 until user explicitly selects 'C' from the A/P/C menu and content is saved! diff --git a/src/core/tasks/bmad-create-prd/steps-c/step-09-functional.md b/src/core/tasks/bmad-create-prd/steps-c/step-09-functional.md new file mode 100644 index 000000000..412178c09 --- /dev/null +++ b/src/core/tasks/bmad-create-prd/steps-c/step-09-functional.md @@ -0,0 +1,232 @@ +--- +name: 'step-09-functional' +description: 'Synthesize all discovery into comprehensive functional requirements' + +# File References +nextStepFile: './step-10-nonfunctional.md' +outputFile: '{planning_artifacts}/prd.md' + +# Task References +advancedElicitationTask: 'skill:bmad-advanced-elicitation' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md' +--- + +# Step 9: Functional Requirements Synthesis + +**Progress: Step 9 of 11** - Next: Non-Functional Requirements + +## MANDATORY EXECUTION RULES (READ FIRST): + +- 🛑 NEVER generate content without user input + +- 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions +- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding +- ✅ ALWAYS treat this as collaborative discovery between PM peers +- 📋 YOU ARE A FACILITATOR, not a content generator +- 💬 FOCUS on creating comprehensive capability inventory for the product +- 🎯 CRITICAL: This is THE CAPABILITY CONTRACT for all downstream work +- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` +- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}` + +## EXECUTION PROTOCOLS: + +- 🎯 Show your analysis before taking any action +- ⚠️ Present A/P/C menu after generating functional requirements +- 💾 ONLY save when user chooses C (Continue) +- 📖 Update output file frontmatter, adding this step name to the end of the list of stepsCompleted +- 🚫 FORBIDDEN to load next step until C is selected + + +## CONTEXT BOUNDARIES: + +- Current document and frontmatter from previous steps are available +- ALL previous content (executive summary, success criteria, journeys, domain, innovation, project-type) must be referenced +- No additional data files needed for this step +- Focus on capabilities, not implementation details + +## CRITICAL IMPORTANCE: + +**This section defines THE CAPABILITY CONTRACT for the entire product:** + +- UX designers will ONLY design what's listed here +- Architects will ONLY support what's listed here +- Epic breakdown will ONLY implement what's listed here +- If a capability is missing from FRs, it will NOT exist in the final product + +## FUNCTIONAL REQUIREMENTS SYNTHESIS SEQUENCE: + +### 1. Understand FR Purpose and Usage + +Start by explaining the critical role of functional requirements: + +**Purpose:** +FRs define WHAT capabilities the product must have. They are the complete inventory of user-facing and system capabilities that deliver the product vision. + +**Critical Properties:** +✅ Each FR is a testable capability +✅ Each FR is implementation-agnostic (could be built many ways) +✅ Each FR specifies WHO and WHAT, not HOW +✅ No UI details, no performance numbers, no technology choices +✅ Comprehensive coverage of capability areas + +**How They Will Be Used:** + +1. UX Designer reads FRs → designs interactions for each capability +2. Architect reads FRs → designs systems to support each capability +3. PM reads FRs → creates epics and stories to implement each capability + +### 2. Review Existing Content for Capability Extraction + +Systematically review all previous sections to extract capabilities: + +**Extract From:** + +- Executive Summary → Core product differentiator capabilities +- Success Criteria → Success-enabling capabilities +- User Journeys → Journey-revealed capabilities +- Domain Requirements → Compliance and regulatory capabilities +- Innovation Patterns → Innovative feature capabilities +- Project-Type Requirements → Technical capability needs + +### 3. Organize Requirements by Capability Area + +Group FRs by logical capability areas (NOT by technology or layer): + +**Good Grouping Examples:** + +- ✅ "User Management" (not "Authentication System") +- ✅ "Content Discovery" (not "Search Algorithm") +- ✅ "Team Collaboration" (not "WebSocket Infrastructure") + +**Target 5-8 Capability Areas** for typical projects. + +### 4. Generate Comprehensive FR List + +Create complete functional requirements using this format: + +**Format:** + +- FR#: [Actor] can [capability] [context/constraint if needed] +- Number sequentially (FR1, FR2, FR3...) +- Aim for 20-50 FRs for typical projects + +**Altitude Check:** +Each FR should answer "WHAT capability exists?" NOT "HOW it's implemented?" + +**Examples:** + +- ✅ "Users can customize appearance settings" +- ❌ "Users can toggle light/dark theme with 3 font size options stored in LocalStorage" + +### 5. Self-Validation Process + +Before presenting to user, validate the FR list: + +**Completeness Check:** + +1. "Did I cover EVERY capability mentioned in the MVP scope section?" +2. "Did I include domain-specific requirements as FRs?" +3. "Did I cover the project-type specific needs?" +4. "Could a UX designer read ONLY the FRs and know what to design?" +5. "Could an Architect read ONLY the FRs and know what to support?" +6. "Are there any user actions or system behaviors we discussed that have no FR?" + +**Altitude Check:** + +1. "Am I stating capabilities (WHAT) or implementation (HOW)?" +2. "Am I listing acceptance criteria or UI specifics?" (Remove if yes) +3. "Could this FR be implemented 5 different ways?" (Good - means it's not prescriptive) + +**Quality Check:** + +1. "Is each FR clear enough that someone could test whether it exists?" +2. "Is each FR independent (not dependent on reading other FRs to understand)?" +3. "Did I avoid vague terms like 'good', 'fast', 'easy'?" (Use NFRs for quality attributes) + +### 6. Generate Functional Requirements Content + +Prepare the content to append to the document: + +#### Content Structure: + +When saving to document, append these Level 2 and Level 3 sections: + +```markdown +## Functional Requirements + +### [Capability Area Name] + +- FR1: [Specific Actor] can [specific capability] +- FR2: [Specific Actor] can [specific capability] +- FR3: [Specific Actor] can [specific capability] + +### [Another Capability Area] + +- FR4: [Specific Actor] can [specific capability] +- FR5: [Specific Actor] can [specific capability] + +[Continue for all capability areas discovered in conversation] +``` + +### 7. Present MENU OPTIONS + +Present the functional requirements for review, then display menu: +- Show synthesized functional requirements (using structure from step 6) +- Emphasize this is the capability contract for all downstream work +- Highlight that every feature must trace back to these requirements +- Ask if they'd like to refine further, get other perspectives, or proceed +- Present menu options naturally as part of conversation + +**What would you like to do?**" + +Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Non-Functional Requirements (Step 10 of 11)" + +#### Menu Handling Logic: +- IF A: Read fully and follow: {advancedElicitationTask} with the current FR list, process the enhanced capability coverage that comes back, ask user if they accept the additions, if yes update content then redisplay menu, if no keep original content then redisplay menu +- IF P: Read fully and follow: {partyModeWorkflow} with the current FR list, process the collaborative capability validation and additions, ask user if they accept the changes, if yes update content then redisplay menu, if no keep original content then redisplay menu +- IF C: Append the final content to {outputFile}, update frontmatter by adding this step name to the end of the stepsCompleted array, then read fully and follow: {nextStepFile} +- IF Any other: help user respond, then redisplay menu + +#### EXECUTION RULES: +- ALWAYS halt and wait for user input after presenting menu +- ONLY proceed to next step when user selects 'C' +- After other menu items execution, return to this menu + +## APPEND TO DOCUMENT: + +When user selects 'C', append the content directly to the document using the structure from step 6. + +## SUCCESS METRICS: + +✅ All previous discovery content synthesized into FRs +✅ FRs organized by capability areas (not technology) +✅ Each FR states WHAT capability exists, not HOW to implement +✅ Comprehensive coverage with 20-50 FRs typical +✅ Altitude validation ensures implementation-agnostic requirements +✅ Completeness check validates coverage of all discussed capabilities +✅ A/P/C menu presented and handled correctly +✅ Content properly appended to document when C selected + +## FAILURE MODES: + +❌ Missing capabilities from previous discovery sections +❌ Organizing FRs by technology instead of capability areas +❌ Including implementation details or UI specifics in FRs +❌ Not achieving comprehensive coverage of discussed capabilities +❌ Using vague terms instead of testable capabilities +❌ Not presenting A/P/C menu after content generation +❌ Appending content without user selecting 'C' + +❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions +❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file +❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols + +## CAPABILITY CONTRACT REMINDER: + +Emphasize to user: "This FR list is now binding. Any feature not listed here will not exist in the final product unless we explicitly add it. This is why it's critical to ensure completeness now." + +## NEXT STEP: + +After user selects 'C' and content is saved to document, load {nextStepFile} to define non-functional requirements. + +Remember: Do NOT proceed to step-10 until user explicitly selects 'C' from the A/P/C menu and content is saved! diff --git a/src/core/tasks/bmad-create-prd/steps-c/step-10-nonfunctional.md b/src/core/tasks/bmad-create-prd/steps-c/step-10-nonfunctional.md new file mode 100644 index 000000000..8a939a15a --- /dev/null +++ b/src/core/tasks/bmad-create-prd/steps-c/step-10-nonfunctional.md @@ -0,0 +1,243 @@ +--- +name: 'step-10-nonfunctional' +description: 'Define quality attributes that matter for this specific product' + +# File References +nextStepFile: './step-11-polish.md' +outputFile: '{planning_artifacts}/prd.md' + +# Task References +advancedElicitationTask: 'skill:bmad-advanced-elicitation' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md' +--- + +# Step 10: Non-Functional Requirements + +**Progress: Step 10 of 12** - Next: Polish Document + +## MANDATORY EXECUTION RULES (READ FIRST): + +- 🛑 NEVER generate content without user input + +- 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions +- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding +- ✅ ALWAYS treat this as collaborative discovery between PM peers +- 📋 YOU ARE A FACILITATOR, not a content generator +- 💬 FOCUS on quality attributes that matter for THIS specific product +- 🎯 SELECTIVE: Only document NFRs that actually apply to the product +- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` +- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}` + +## EXECUTION PROTOCOLS: + +- 🎯 Show your analysis before taking any action +- ⚠️ Present A/P/C menu after generating NFR content +- 💾 ONLY save when user chooses C (Continue) +- 📖 Update output file frontmatter, adding this step name to the end of the list of stepsCompleted +- 🚫 FORBIDDEN to load next step until C is selected + + +## CONTEXT BOUNDARIES: + +- Current document and frontmatter from previous steps are available +- Functional requirements already defined and will inform NFRs +- Domain and project-type context will guide which NFRs matter +- Focus on specific, measurable quality criteria + +## YOUR TASK: + +Define non-functional requirements that specify quality attributes for the product, focusing only on what matters for THIS specific product. + +## NON-FUNCTIONAL REQUIREMENTS SEQUENCE: + +### 1. Explain NFR Purpose and Scope + +Start by clarifying what NFRs are and why we're selective: + +**NFR Purpose:** +NFRs define HOW WELL the system must perform, not WHAT it must do. They specify quality attributes like performance, security, scalability, etc. + +**Selective Approach:** +We only document NFRs that matter for THIS product. If a category doesn't apply, we skip it entirely. This prevents requirement bloat and focuses on what's actually important. + +### 2. Assess Product Context for NFR Relevance + +Evaluate which NFR categories matter based on product context: + +**Quick Assessment Questions:** + +- **Performance**: Is there user-facing impact of speed? +- **Security**: Are we handling sensitive data or payments? +- **Scalability**: Do we expect rapid user growth? +- **Accessibility**: Are we serving broad public audiences? +- **Integration**: Do we need to connect with other systems? +- **Reliability**: Would downtime cause significant problems? + +### 3. Explore Relevant NFR Categories + +For each relevant category, conduct targeted discovery: + +#### Performance NFRs (If relevant): + +Explore performance requirements: +- What parts of the system need to be fast for users to be successful? +- Are there specific response time expectations? +- What happens if performance is slower than expected? +- Are there concurrent user scenarios we need to support? + +#### Security NFRs (If relevant): + +Explore security requirements: +- What data needs to be protected? +- Who should have access to what? +- What are the security risks we need to mitigate? +- Are there compliance requirements (GDPR, HIPAA, PCI-DSS)? + +#### Scalability NFRs (If relevant): + +Explore scalability requirements: +- How many users do we expect initially? Long-term? +- Are there seasonal or event-based traffic spikes? +- What happens if we exceed our capacity? +- What growth scenarios should we plan for? + +#### Accessibility NFRs (If relevant): + +Explore accessibility requirements: +- Are we serving users with visual, hearing, or motor impairments? +- Are there legal accessibility requirements (WCAG, Section 508)? +- What accessibility features are most important for our users? + +#### Integration NFRs (If relevant): + +Explore integration requirements: +- What external systems do we need to connect with? +- Are there APIs or data formats we must support? +- How reliable do these integrations need to be? + +### 4. Make NFRs Specific and Measurable + +For each relevant NFR category, ensure criteria are testable: + +**From Vague to Specific:** + +- NOT: "The system should be fast" → "User actions complete within 2 seconds" +- NOT: "The system should be secure" → "All data is encrypted at rest and in transit" +- NOT: "The system should scale" → "System supports 10x user growth with <10% performance degradation" + +### 5. Generate NFR Content (Only Relevant Categories) + +Prepare the content to append to the document: + +#### Content Structure (Dynamic based on relevance): + +When saving to document, append these Level 2 and Level 3 sections (only include sections that are relevant): + +```markdown +## Non-Functional Requirements + +### Performance + +[Performance requirements based on conversation - only include if relevant] + +### Security + +[Security requirements based on conversation - only include if relevant] + +### Scalability + +[Scalability requirements based on conversation - only include if relevant] + +### Accessibility + +[Accessibility requirements based on conversation - only include if relevant] + +### Integration + +[Integration requirements based on conversation - only include if relevant] +``` + +### 6. Present MENU OPTIONS + +Present the non-functional requirements for review, then display menu: +- Show defined NFRs (using structure from step 5) +- Note that only relevant categories were included +- Emphasize NFRs specify how well the system needs to perform +- Ask if they'd like to refine further, get other perspectives, or proceed +- Present menu options naturally as part of conversation + +Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Polish Document (Step 11 of 12)" + +#### Menu Handling Logic: +- IF A: Read fully and follow: {advancedElicitationTask} with the current NFR content, process the enhanced quality attribute insights that come back, ask user if they accept the improvements, if yes update content then redisplay menu, if no keep original content then redisplay menu +- IF P: Read fully and follow: {partyModeWorkflow} with the current NFR list, process the collaborative technical validation and additions, ask user if they accept the changes, if yes update content then redisplay menu, if no keep original content then redisplay menu +- IF C: Append the final content to {outputFile}, update frontmatter by adding this step name to the end of the stepsCompleted array, then read fully and follow: {nextStepFile} +- IF Any other: help user respond, then redisplay menu + +#### EXECUTION RULES: +- ALWAYS halt and wait for user input after presenting menu +- ONLY proceed to next step when user selects 'C' +- After other menu items execution, return to this menu + +## APPEND TO DOCUMENT: + +When user selects 'C', append the content directly to the document using the structure from step 5. + +## SUCCESS METRICS: + +✅ Only relevant NFR categories documented (no requirement bloat) +✅ Each NFR is specific and measurable +✅ NFRs connected to actual user needs and business context +✅ Vague requirements converted to testable criteria +✅ Domain-specific compliance requirements included if relevant +✅ A/P/C menu presented and handled correctly +✅ Content properly appended to document when C selected + +## FAILURE MODES: + +❌ Documenting NFR categories that don't apply to the product +❌ Leaving requirements vague and unmeasurable +❌ Not connecting NFRs to actual user or business needs +❌ Missing domain-specific compliance requirements +❌ Creating overly prescriptive technical requirements +❌ Not presenting A/P/C menu after content generation +❌ Appending content without user selecting 'C' + +❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions +❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file +❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols + +## NFR CATEGORY GUIDANCE: + +**Include Performance When:** + +- User-facing response times impact success +- Real-time interactions are critical +- Performance is a competitive differentiator + +**Include Security When:** + +- Handling sensitive user data +- Processing payments or financial information +- Subject to compliance regulations +- Protecting intellectual property + +**Include Scalability When:** + +- Expecting rapid user growth +- Handling variable traffic patterns +- Supporting enterprise-scale usage +- Planning for market expansion + +**Include Accessibility When:** + +- Serving broad public audiences +- Subject to accessibility regulations +- Targeting users with disabilities +- B2B customers with accessibility requirements + +## NEXT STEP: + +After user selects 'C' and content is saved to document, load {nextStepFile} to finalize the PRD and complete the workflow. + +Remember: Do NOT proceed to step-11 until user explicitly selects 'C' from the A/P/C menu and content is saved! diff --git a/src/core/tasks/bmad-create-prd/steps-c/step-11-polish.md b/src/core/tasks/bmad-create-prd/steps-c/step-11-polish.md new file mode 100644 index 000000000..e17a11185 --- /dev/null +++ b/src/core/tasks/bmad-create-prd/steps-c/step-11-polish.md @@ -0,0 +1,235 @@ +--- +name: 'step-11-polish' +description: 'Optimize and polish the complete PRD document for flow, coherence, and readability' + +# File References +nextStepFile: './step-12-complete.md' +outputFile: '{planning_artifacts}/prd.md' +purposeFile: '../data/prd-purpose.md' + +# Task References +advancedElicitationTask: 'skill:bmad-advanced-elicitation' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md' +--- + +# Step 11: Document Polish + +**Progress: Step 11 of 12** - Next: Complete PRD + +## MANDATORY EXECUTION RULES (READ FIRST): + +- 🛑 CRITICAL: Load the ENTIRE document before making changes +- 📖 CRITICAL: Read complete step file before taking action +- 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read +- ✅ This is a POLISH step - optimize existing content +- 📋 IMPROVE flow, coherence, and readability +- 💬 PRESERVE user's voice and intent +- 🎯 MAINTAIN all essential information while improving presentation +- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` +- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}` + +## EXECUTION PROTOCOLS: + +- 🎯 Load complete document first +- 📝 Review for flow and coherence issues +- ✂️ Reduce duplication while preserving essential info +- 📖 Ensure proper ## Level 2 headers throughout +- 💾 Save optimized document +- ⚠️ Present A/P/C menu after polish +- 🚫 DO NOT skip review steps + +## CONTEXT BOUNDARIES: + +- Complete PRD document exists from all previous steps +- Document may have duplication from progressive append +- Sections may not flow smoothly together +- Level 2 headers ensure document can be split if needed +- Focus on readability and coherence + +## YOUR TASK: + +Optimize the complete PRD document for flow, coherence, and professional presentation while preserving all essential information. + +## DOCUMENT POLISH SEQUENCE: + +### 1. Load Context and Document + +**CRITICAL:** Load the PRD purpose document first: + +- Read `{purposeFile}` to understand what makes a great BMAD PRD +- Internalize the philosophy: information density, traceability, measurable requirements +- Keep the dual-audience nature (humans + LLMs) in mind + +**Then Load the PRD Document:** + +- Read `{outputFile}` completely from start to finish +- Understand the full document structure and content +- Identify all sections and their relationships +- Note areas that need attention + +### 2. Document Quality Review + +Review the entire document with PRD purpose principles in mind: + +**Information Density:** +- Are there wordy phrases that can be condensed? +- Is conversational padding present? +- Can sentences be more direct and concise? + +**Flow and Coherence:** +- Do sections transition smoothly? +- Are there jarring topic shifts? +- Does the document tell a cohesive story? +- Is the progression logical for readers? + +**Duplication Detection:** +- Are ideas repeated across sections? +- Is the same information stated multiple times? +- Can redundant content be consolidated? +- Are there contradictory statements? + +**Header Structure:** +- Are all main sections using ## Level 2 headers? +- Is the hierarchy consistent (##, ###, ####)? +- Can sections be easily extracted or referenced? +- Are headers descriptive and clear? + +**Readability:** +- Are sentences clear and concise? +- Is the language consistent throughout? +- Are technical terms used appropriately? +- Would stakeholders find this easy to understand? + +### 2b. Brainstorming Reconciliation (if brainstorming input exists) + +**Check the PRD frontmatter `inputDocuments` for any brainstorming document** (e.g., `brainstorming-session*.md`, `brainstorming-report.md`). If a brainstorming document was used as input: + +1. **Load the brainstorming document** and extract all distinct ideas, themes, and recommendations +2. **Cross-reference against the PRD** — for each brainstorming idea, check if it landed in any PRD section (requirements, success criteria, user journeys, scope, etc.) +3. **Identify dropped ideas** — ideas from brainstorming that do not appear anywhere in the PRD. Pay special attention to: + - Tone, personality, and interaction design ideas (these are most commonly lost) + - Design philosophy and coaching approach ideas + - "What should this feel like" ideas (UX feel, not just UX function) + - Qualitative/soft ideas that don't map cleanly to functional requirements +4. **Present findings to user**: "These brainstorming ideas did not make it into the PRD: [list]. Should any be incorporated?" +5. **If user wants to incorporate dropped ideas**: Add them to the most appropriate PRD section (success criteria, non-functional requirements, or a new section if needed) + +**Why this matters**: Brainstorming documents are often long, and the PRD's structured template has an implicit bias toward concrete/structural ideas. Soft ideas (tone, philosophy, interaction feel) frequently get silently dropped because they don't map cleanly to FR/NFR format. + +### 3. Optimization Actions + +Make targeted improvements: + +**Improve Flow:** +- Add transition sentences between sections +- Smooth out jarring topic shifts +- Ensure logical progression +- Connect related concepts across sections + +**Reduce Duplication:** +- Consolidate repeated information +- Keep content in the most appropriate section +- Use cross-references instead of repetition +- Remove redundant explanations + +**Enhance Coherence:** +- Ensure consistent terminology throughout +- Align all sections with product differentiator +- Maintain consistent voice and tone +- Verify scope consistency across sections + +**Optimize Headers:** +- Ensure all main sections use ## Level 2 +- Make headers descriptive and action-oriented +- Check that headers follow consistent patterns +- Verify headers support document navigation + +### 4. Preserve Critical Information + +**While optimizing, ensure NOTHING essential is lost:** + +**Must Preserve:** +- All user success criteria +- All functional requirements (capability contract) +- All user journey narratives +- All scope decisions (MVP, Growth, Vision) +- All non-functional requirements +- Product differentiator and vision +- Domain-specific requirements +- Innovation analysis (if present) + +**Can Consolidate:** +- Repeated explanations of the same concept +- Redundant background information +- Multiple versions of similar content +- Overlapping examples + +### 5. Generate Optimized Document + +Create the polished version: + +**Polishing Process:** +1. Start with original document +2. Apply all optimization actions +3. Review to ensure nothing essential was lost +4. Verify improvements enhance readability +5. Prepare optimized version for review + +### 6. Present MENU OPTIONS + +Present the polished document for review, then display menu: +- Show what changed in the polish +- Highlight improvements made (flow, duplication, headers) +- Ask if they'd like to refine further, get other perspectives, or proceed +- Present menu options naturally as part of conversation + +Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Complete PRD (Step 12 of 12)" + +#### Menu Handling Logic: +- IF A: Read fully and follow: {advancedElicitationTask} with the polished document, process the enhanced refinements that come back, ask user "Accept these polish improvements? (y/n)", if yes update content with improvements then redisplay menu, if no keep original polish then redisplay menu +- IF P: Read fully and follow: {partyModeWorkflow} with the polished document, process the collaborative refinements to flow and coherence, ask user "Accept these polish changes? (y/n)", if yes update content with improvements then redisplay menu, if no keep original polish then redisplay menu +- IF C: Save the polished document to {outputFile}, update frontmatter by adding this step name to the end of the stepsCompleted array, then read fully and follow: {nextStepFile} +- IF Any other: help user respond, then redisplay menu + +#### EXECUTION RULES: +- ALWAYS halt and wait for user input after presenting menu +- ONLY proceed to next step when user selects 'C' +- After other menu items execution, return to this menu + +## APPEND TO DOCUMENT: + +When user selects 'C', replace the entire document content with the polished version. + +## SUCCESS METRICS: + +✅ Complete document loaded and reviewed +✅ Flow and coherence improved +✅ Duplication reduced while preserving essential information +✅ All main sections use ## Level 2 headers +✅ Transitions between sections are smooth +✅ User's voice and intent preserved +✅ Document is more readable and professional +✅ A/P/C menu presented and handled correctly +✅ Brainstorming reconciliation completed (if brainstorming input exists) +✅ Polished document saved when C selected + +## FAILURE MODES: + +❌ Loading only partial document (leads to incomplete polish) +❌ Removing essential information while reducing duplication +❌ Not preserving user's voice and intent +❌ Changing content instead of improving presentation +❌ Not ensuring ## Level 2 headers for main sections +❌ Making arbitrary style changes instead of coherence improvements +❌ Not presenting A/P/C menu for user approval +❌ Saving polished document without user selecting 'C' + +❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions +❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file +❌ **CRITICAL**: Making changes without complete understanding of document requirements + +## NEXT STEP: + +After user selects 'C' and polished document is saved, load `./step-12-complete.md` to complete the workflow. + +Remember: Do NOT proceed to step-12 until user explicitly selects 'C' from the A/P/C menu and polished document is saved! diff --git a/src/core/tasks/bmad-create-prd/steps-c/step-12-complete.md b/src/core/tasks/bmad-create-prd/steps-c/step-12-complete.md new file mode 100644 index 000000000..79b379096 --- /dev/null +++ b/src/core/tasks/bmad-create-prd/steps-c/step-12-complete.md @@ -0,0 +1,124 @@ +--- +name: 'step-12-complete' +description: 'Complete the PRD workflow, update status files, and suggest next steps including validation' + +# File References +outputFile: '{planning_artifacts}/prd.md' +# validationFlow: lives in the validate-prd workflow (separate skill) +--- + +# Step 12: Workflow Completion + +**Final Step - Complete the PRD** + +## MANDATORY EXECUTION RULES (READ FIRST): + +- ✅ THIS IS A FINAL STEP - Workflow completion required +- 📖 CRITICAL: ALWAYS read the complete step file before taking any action +- 🛑 NO content generation - this is a wrap-up step +- 📋 FINALIZE document and update workflow status +- 💬 FOCUS on completion, validation options, and next steps +- 🎯 UPDATE workflow status files with completion information +- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +## EXECUTION PROTOCOLS: + +- 🎯 Show your analysis before taking any action +- 💾 Update the main workflow status file with completion information (if exists) +- 📖 Offer validation workflow options to user +- 🚫 DO NOT load additional steps after this one + +## TERMINATION STEP PROTOCOLS: + +- This is a FINAL step - workflow completion required +- Update workflow status file with finalized document +- Suggest validation and next workflow steps +- Mark workflow as complete in status tracking + +## CONTEXT BOUNDARIES: + +- Complete and polished PRD document is available from all previous steps +- Workflow frontmatter shows all completed steps including polish +- All collaborative content has been generated, saved, and optimized +- Focus on completion, validation options, and next steps + +## YOUR TASK: + +Complete the PRD workflow, update status files, offer validation options, and suggest next steps for the project. + +## WORKFLOW COMPLETION SEQUENCE: + +### 1. Announce Workflow Completion + +Inform user that the PRD is complete and polished: +- Celebrate successful completion of comprehensive PRD +- Summarize all sections that were created +- Highlight that document has been polished for flow and coherence +- Emphasize document is ready for downstream work + +### 2. Workflow Status Update + +Update the main workflow status file if there is one: + +- Load `{status_file}` from workflow configuration (if exists) +- Update workflow_status["prd"] = "{default_output_file}" +- Save file, preserving all comments and structure +- Mark current timestamp as completion time + +### 3. Validation Workflow Options + +Offer validation workflows to ensure PRD is ready for implementation: + +**Available Validation Workflows:** + +**Option 1: Check Implementation Readiness** (`{checkImplementationReadinessWorkflow}`) +- Validates PRD has all information needed for development +- Checks epic coverage completeness +- Reviews UX alignment with requirements +- Assesses epic quality and readiness +- Identifies gaps before architecture/design work begins + +**When to use:** Before starting technical architecture or epic breakdown + +**Option 2: Skip for Now** +- Proceed directly to next workflows (architecture, UX, epics) +- Validation can be done later if needed +- Some teams prefer to validate during architecture reviews + +### 4. Suggest Next Workflows + +PRD complete. Invoke the `bmad-help` skill. + +### 5. Final Completion Confirmation + +- Confirm completion with user and summarize what has been accomplished +- Document now contains: Executive Summary, Success Criteria, User Journeys, Domain Requirements (if applicable), Innovation Analysis (if applicable), Project-Type Requirements, Functional Requirements (capability contract), Non-Functional Requirements, and has been polished for flow and coherence +- Ask if they'd like to run validation workflow or proceed to next workflows + +## SUCCESS METRICS: + +✅ PRD document contains all required sections and has been polished +✅ All collaborative content properly saved and optimized +✅ Workflow status file updated with completion information (if exists) +✅ Validation workflow options clearly presented +✅ Clear next step guidance provided to user +✅ Document quality validation completed +✅ User acknowledges completion and understands next options + +## FAILURE MODES: + +❌ Not updating workflow status file with completion information (if exists) +❌ Not offering validation workflow options +❌ Missing clear next step guidance for user +❌ Not confirming document completeness with user +❌ Workflow not properly marked as complete in status tracking (if applicable) +❌ User unclear about what happens next or what validation options exist + +❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions +❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols + +## FINAL REMINDER to give the user: + +The polished PRD serves as the foundation for all subsequent product development activities. All design, architecture, and development work should trace back to the requirements and vision documented in this PRD - update it also as needed as you continue planning. + +**Congratulations on completing the Product Requirements Document for {{project_name}}!** 🎉 diff --git a/src/core/tasks/bmad-create-prd/templates/prd-template.md b/src/core/tasks/bmad-create-prd/templates/prd-template.md new file mode 100644 index 000000000..d82219d2f --- /dev/null +++ b/src/core/tasks/bmad-create-prd/templates/prd-template.md @@ -0,0 +1,10 @@ +--- +stepsCompleted: [] +inputDocuments: [] +workflowType: 'prd' +--- + +# Product Requirements Document - {{project_name}} + +**Author:** {{user_name}} +**Date:** {{date}} diff --git a/src/core/tasks/bmad-create-prd/workflow.md b/src/core/tasks/bmad-create-prd/workflow.md new file mode 100644 index 000000000..a3ac365a0 --- /dev/null +++ b/src/core/tasks/bmad-create-prd/workflow.md @@ -0,0 +1,62 @@ +--- +main_config: '{project-root}/_bmad/bmm/config.yaml' +nextStep: './steps-c/step-01-init.md' +--- + +# PRD Create Workflow + +**Goal:** Create comprehensive PRDs through structured workflow facilitation. + +**Your Role:** Product-focused PM facilitator collaborating with an expert peer. + +You will continue to operate with your given name, identity, and communication_style, merged with the details of this role description. + +## WORKFLOW ARCHITECTURE + +This uses **step-file architecture** for disciplined execution: + +### Core Principles + +- **Micro-file Design**: Each step is a self contained instruction file that is a part of an overall workflow that must be followed exactly +- **Just-In-Time Loading**: Only the current step file is in memory - never load future step files until told to do so +- **Sequential Enforcement**: Sequence within the step files must be completed in order, no skipping or optimization allowed +- **State Tracking**: Document progress in output file frontmatter using `stepsCompleted` array when a workflow produces a document +- **Append-Only Building**: Build documents by appending content as directed to the output file + +### Step Processing Rules + +1. **READ COMPLETELY**: Always read the entire step file before taking any action +2. **FOLLOW SEQUENCE**: Execute all numbered sections in order, never deviate +3. **WAIT FOR INPUT**: If a menu is presented, halt and wait for user selection +4. **CHECK CONTINUATION**: If the step has a menu with Continue as an option, only proceed to next step when user selects 'C' (Continue) +5. **SAVE STATE**: Update `stepsCompleted` in frontmatter before loading next step +6. **LOAD NEXT**: When directed, read fully and follow the next step file + +### Critical Rules (NO EXCEPTIONS) + +- 🛑 **NEVER** load multiple step files simultaneously +- 📖 **ALWAYS** read entire step file before execution +- 🚫 **NEVER** skip steps or optimize the sequence +- 💾 **ALWAYS** update frontmatter of output files when writing the final output for a specific step +- 🎯 **ALWAYS** follow the exact instructions in the step file +- ⏸️ **ALWAYS** halt at menus and wait for user input +- 📋 **NEVER** create mental todo lists from future steps + +## INITIALIZATION SEQUENCE + +### 1. Configuration Loading + +Load and read full config from {main_config} and resolve: + +- `project_name`, `output_folder`, `planning_artifacts`, `user_name` +- `communication_language`, `document_output_language`, `user_skill_level` +- `date` as system-generated current datetime + +✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the configured `{communication_language}`. +✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}`. + +### 2. Route to Create Workflow + +"**Create Mode: Creating a new PRD from scratch.**" + +Read fully and follow: `{nextStep}` (steps-c/step-01-init.md) From b42f1e732ab4c95837e153c14a06d0123c792d8a Mon Sep 17 00:00:00 2001 From: Alex Verkhovsky Date: Sat, 14 Mar 2026 17:14:02 -0600 Subject: [PATCH 2/7] fix(skill): clean up bmad-create-prd validation findings Strip name/description from all step frontmatter (STEP-06), remove intra-skill path variables and inline them (PATH-04), move outputFile to workflow.md (WF-03), fix stale step-11-complete refs (REF-02), fix product_knowledge typo (REF-01), rewrite continuation logic to use a lookup table, and strip legacy source workflow frontmatter. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../create-prd/steps-c/step-01-init.md | 191 -------------- .../create-prd/steps-c/step-01b-continue.md | 152 ----------- .../create-prd/steps-c/step-02-discovery.md | 225 ---------------- .../create-prd/steps-c/step-02b-vision.md | 155 ----------- .../steps-c/step-02c-executive-summary.md | 171 ------------ .../create-prd/steps-c/step-03-success.md | 227 ---------------- .../create-prd/steps-c/step-04-journeys.md | 214 --------------- .../create-prd/steps-c/step-05-domain.md | 208 --------------- .../create-prd/steps-c/step-06-innovation.md | 227 ---------------- .../steps-c/step-07-project-type.md | 238 ----------------- .../create-prd/steps-c/step-08-scoping.md | 229 ----------------- .../create-prd/steps-c/step-09-functional.md | 232 ----------------- .../steps-c/step-10-nonfunctional.md | 243 ------------------ .../create-prd/steps-c/step-11-polish.md | 235 ----------------- .../create-prd/steps-c/step-12-complete.md | 124 --------- .../create-prd/templates/prd-template.md | 10 - .../create-prd/workflow-create-prd.md | 65 ----- .../bmad-create-prd/steps-c/step-01-init.md | 27 +- .../steps-c/step-01b-continue.md | 49 ++-- .../steps-c/step-02-discovery.md | 29 +-- .../steps-c/step-02b-vision.md | 21 +- .../steps-c/step-02c-executive-summary.md | 21 +- .../steps-c/step-03-success.md | 19 +- .../steps-c/step-04-journeys.md | 19 +- .../bmad-create-prd/steps-c/step-05-domain.md | 26 +- .../steps-c/step-06-innovation.md | 30 +-- .../steps-c/step-07-project-type.md | 26 +- .../steps-c/step-08-scoping.md | 21 +- .../steps-c/step-09-functional.md | 21 +- .../steps-c/step-10-nonfunctional.md | 21 +- .../bmad-create-prd/steps-c/step-11-polish.md | 22 +- .../steps-c/step-12-complete.md | 15 +- src/core/tasks/bmad-create-prd/workflow.md | 4 +- 33 files changed, 95 insertions(+), 3422 deletions(-) delete mode 100644 src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-01-init.md delete mode 100644 src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-01b-continue.md delete mode 100644 src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-02-discovery.md delete mode 100644 src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-02b-vision.md delete mode 100644 src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-02c-executive-summary.md delete mode 100644 src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-03-success.md delete mode 100644 src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-04-journeys.md delete mode 100644 src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-05-domain.md delete mode 100644 src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-06-innovation.md delete mode 100644 src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-07-project-type.md delete mode 100644 src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-08-scoping.md delete mode 100644 src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-09-functional.md delete mode 100644 src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-10-nonfunctional.md delete mode 100644 src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-11-polish.md delete mode 100644 src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-12-complete.md delete mode 100644 src/bmm/workflows/2-plan-workflows/create-prd/templates/prd-template.md delete mode 100644 src/bmm/workflows/2-plan-workflows/create-prd/workflow-create-prd.md diff --git a/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-01-init.md b/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-01-init.md deleted file mode 100644 index 4b53688d0..000000000 --- a/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-01-init.md +++ /dev/null @@ -1,191 +0,0 @@ ---- -name: 'step-01-init' -description: 'Initialize the PRD workflow by detecting continuation state and setting up the document' - -# File References -nextStepFile: './step-02-discovery.md' -continueStepFile: './step-01b-continue.md' -outputFile: '{planning_artifacts}/prd.md' - -# Template Reference -prdTemplate: '../templates/prd-template.md' ---- - -# Step 1: Workflow Initialization - -**Progress: Step 1 of 11** - Next: Project Discovery - -## STEP GOAL: - -Initialize the PRD workflow by detecting continuation state, discovering input documents, and setting up the document structure for collaborative product requirement discovery. - -## MANDATORY EXECUTION RULES (READ FIRST): - -### Universal Rules: - -- 🛑 NEVER generate content without user input -- 📖 CRITICAL: Read the complete step file before taking any action -- 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read -- 📋 YOU ARE A FACILITATOR, not a content generator -- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` - -### Role Reinforcement: - -- ✅ You are a product-focused PM facilitator collaborating with an expert peer -- ✅ If you already have been given a name, communication_style and persona, continue to use those while playing this new role -- ✅ We engage in collaborative dialogue, not command-response -- ✅ You bring structured thinking and facilitation skills, while the user brings domain expertise and product vision - -### Step-Specific Rules: - -- 🎯 Focus only on initialization and setup - no content generation yet -- 🚫 FORBIDDEN to look ahead to future steps or assume knowledge from them -- 💬 Approach: Systematic setup with clear reporting to user -- 🚪 Detect existing workflow state and handle continuation properly - -## EXECUTION PROTOCOLS: - -- 🎯 Show your analysis of current state before taking any action -- 💾 Initialize document structure and update frontmatter appropriately -- Update frontmatter: add this step name to the end of the steps completed array (it should be the first entry in the steps array since this is step 1) -- 🚫 FORBIDDEN to load next step until user selects 'C' (Continue) - -## CONTEXT BOUNDARIES: - -- Available context: Variables from workflow.md are available in memory -- Focus: Workflow initialization and document setup only -- Limits: Don't assume knowledge from other steps or create content yet -- Dependencies: Configuration loaded from workflow.md initialization - -## Sequence of Instructions (Do not deviate, skip, or optimize) - -### 1. Check for Existing Workflow State - -First, check if the output document already exists: - -**Workflow State Detection:** - -- Look for file at `{outputFile}` -- If exists, read the complete file including frontmatter -- If not exists, this is a fresh workflow - -### 2. Handle Continuation (If Document Exists) - -If the document exists and has frontmatter with `stepsCompleted` BUT `step-11-complete` is NOT in the list, follow the Continuation Protocol since the document is incomplete: - -**Continuation Protocol:** - -- **STOP immediately** and load `{continueStepFile}` -- Do not proceed with any initialization tasks -- Let step-01b handle all continuation logic -- This is an auto-proceed situation - no user choice needed - -### 3. Fresh Workflow Setup (If No Document) - -If no document exists or no `stepsCompleted` in frontmatter: - -#### A. Input Document Discovery - -Discover and load context documents using smart discovery. Documents can be in the following locations: -- {planning_artifacts}/** -- {output_folder}/** -- {product_knowledge}/** -- docs/** - -Also - when searching - documents can be a single markdown file, or a folder with an index and multiple files. For Example, if searching for `*foo*.md` and not found, also search for a folder called *foo*/index.md (which indicates sharded content) - -Try to discover the following: -- Product Brief (`*brief*.md`) -- Research Documents (`/*research*.md`) -- Project Documentation (generally multiple documents might be found for this in the `{product_knowledge}` or `docs` folder.) -- Project Context (`**/project-context.md`) - -Confirm what you have found with the user, along with asking if the user wants to provide anything else. Only after this confirmation will you proceed to follow the loading rules - -**Loading Rules:** - -- Load ALL discovered files completely that the user confirmed or provided (no offset/limit) -- If there is a project context, whatever is relevant should try to be biased in the remainder of this whole workflow process -- For sharded folders, load ALL files to get complete picture, using the index first to potentially know the potential of each document -- index.md is a guide to what's relevant whenever available -- Track all successfully loaded files in frontmatter `inputDocuments` array - -#### B. Create Initial Document - -**Document Setup:** - -- Copy the template from `{prdTemplate}` to `{outputFile}` -- Initialize frontmatter with proper structure including inputDocuments array. - -#### C. Present Initialization Results - -**Setup Report to User:** - -"Welcome {{user_name}}! I've set up your PRD workspace for {{project_name}}. - -**Document Setup:** - -- Created: `{outputFile}` from template -- Initialized frontmatter with workflow state - -**Input Documents Discovered:** - -- Product briefs: {{briefCount}} files {if briefCount > 0}✓ loaded{else}(none found){/if} -- Research: {{researchCount}} files {if researchCount > 0}✓ loaded{else}(none found){/if} -- Brainstorming: {{brainstormingCount}} files {if brainstormingCount > 0}✓ loaded{else}(none found){/if} -- Project docs: {{projectDocsCount}} files {if projectDocsCount > 0}✓ loaded (brownfield project){else}(none found - greenfield project){/if} - -**Files loaded:** {list of specific file names or "No additional documents found"} - -{if projectDocsCount > 0} -📋 **Note:** This is a **brownfield project**. Your existing project documentation has been loaded. In the next step, I'll ask specifically about what new features or changes you want to add to your existing system. -{/if} - -Do you have any other documents you'd like me to include, or shall we continue to the next step?" - -### 4. Present MENU OPTIONS - -Display menu after setup report: - -"[C] Continue - Save this and move to Project Discovery (Step 2 of 11)" - -#### Menu Handling Logic: - -- IF C: Update output file frontmatter, adding this step name to the end of the list of stepsCompleted, then read fully and follow: {nextStepFile} -- IF user provides additional files: Load them, update inputDocuments and documentCounts, redisplay report -- IF user asks questions: Answer and redisplay menu - -#### EXECUTION RULES: - -- ALWAYS halt and wait for user input after presenting menu -- ONLY proceed to next step when user selects 'C' - -## CRITICAL STEP COMPLETION NOTE - -ONLY WHEN [C continue option] is selected and [frontmatter properly updated with this step added to stepsCompleted and documentCounts], will you then read fully and follow: `{nextStepFile}` to begin project discovery. - ---- - -## 🚨 SYSTEM SUCCESS/FAILURE METRICS - -### ✅ SUCCESS: - -- Existing workflow detected and properly handed off to step-01b -- Fresh workflow initialized with template and proper frontmatter -- Input documents discovered and loaded using sharded-first logic -- All discovered files tracked in frontmatter `inputDocuments` -- User clearly informed of brownfield vs greenfield status -- Menu presented and user input handled correctly -- Frontmatter updated with this step name added to stepsCompleted before proceeding - -### ❌ SYSTEM FAILURE: - -- Proceeding with fresh initialization when existing workflow exists -- Not updating frontmatter with discovered input documents -- **Not storing document counts in frontmatter** -- Creating document without proper template structure -- Not checking sharded folders first before whole files -- Not reporting discovered documents to user clearly -- Proceeding without user selecting 'C' (Continue) - -**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE. diff --git a/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-01b-continue.md b/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-01b-continue.md deleted file mode 100644 index 2ad958b69..000000000 --- a/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-01b-continue.md +++ /dev/null @@ -1,152 +0,0 @@ ---- -name: 'step-01b-continue' -description: 'Resume an interrupted PRD workflow from the last completed step' - -# File References -outputFile: '{planning_artifacts}/prd.md' ---- - -# Step 1B: Workflow Continuation - -## STEP GOAL: - -Resume the PRD workflow from where it was left off, ensuring smooth continuation with full context restoration. - -## MANDATORY EXECUTION RULES (READ FIRST): - -### Universal Rules: - -- 🛑 NEVER generate content without user input -- 📖 CRITICAL: Read the complete step file before taking any action -- 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read -- 📋 YOU ARE A FACILITATOR, not a content generator -- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` - -### Role Reinforcement: - -- ✅ You are a product-focused PM facilitator collaborating with an expert peer -- ✅ We engage in collaborative dialogue, not command-response -- ✅ Resume workflow from exact point where it was interrupted - -### Step-Specific Rules: - -- 💬 FOCUS on understanding where we left off and continuing appropriately -- 🚫 FORBIDDEN to modify content completed in previous steps -- 📖 Only reload documents that were already tracked in `inputDocuments` - -## EXECUTION PROTOCOLS: - -- 🎯 Show your analysis of current state before taking action -- Update frontmatter: add this step name to the end of the steps completed array -- 📖 Only load documents that were already tracked in `inputDocuments` -- 🚫 FORBIDDEN to discover new input documents during continuation - -## CONTEXT BOUNDARIES: - -- Available context: Current document and frontmatter are already loaded -- Focus: Workflow state analysis and continuation logic only -- Limits: Don't assume knowledge beyond what's in the document -- Dependencies: Existing workflow state from previous session - -## Sequence of Instructions (Do not deviate, skip, or optimize) - -### 1. Analyze Current State - -**State Assessment:** -Review the frontmatter to understand: - -- `stepsCompleted`: Array of completed step filenames -- Last element of `stepsCompleted` array: The most recently completed step -- `inputDocuments`: What context was already loaded -- All other frontmatter variables - -### 2. Restore Context Documents - -**Context Reloading:** - -- For each document in `inputDocuments`, load the complete file -- This ensures you have full context for continuation -- Don't discover new documents - only reload what was previously processed - -### 3. Determine Next Step - -**Simplified Next Step Logic:** -1. Get the last element from the `stepsCompleted` array (this is the filename of the last completed step, e.g., "step-03-success.md") -2. Load that step file and read its frontmatter -3. Extract the `nextStepFile` value from the frontmatter -4. That's the next step to load! - -**Example:** -- If `stepsCompleted = ["step-01-init.md", "step-02-discovery.md", "step-03-success.md"]` -- Last element is `"step-03-success.md"` -- Load `{project-root}/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-03-success.md`, read its frontmatter -- Read fully and follow: `{project-root}/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-04-journeys.md` - -### 4. Handle Workflow Completion - -**If `stepsCompleted` array contains `"step-11-complete.md"`:** -"Great news! It looks like we've already completed the PRD workflow for {{project_name}}. - -The final document is ready at `{outputFile}` with all sections completed. - -Would you like me to: - -- Review the completed PRD with you -- Suggest next workflow steps (like architecture or epic creation) -- Start a new PRD revision - -What would be most helpful?" - -### 5. Present Current Progress - -**If workflow not complete:** -"Welcome back {{user_name}}! I'm resuming our PRD collaboration for {{project_name}}. - -**Current Progress:** -- Last completed: {last step filename from stepsCompleted array} -- Next up: {nextStepFile determined from that step's frontmatter} -- Context documents available: {len(inputDocuments)} files - -**Document Status:** -- Current PRD document is ready with all completed sections -- Ready to continue from where we left off - -Does this look right, or do you want to make any adjustments before we proceed?" - -### 6. Present MENU OPTIONS - -Display: "**Select an Option:** [C] Continue to {next step name}" - -#### Menu Handling Logic: - -- IF C: Read fully and follow the {nextStepFile} determined in step 3 -- IF Any other comments or queries: respond and redisplay menu - -#### EXECUTION RULES: - -- ALWAYS halt and wait for user input after presenting menu -- ONLY proceed to next step when user selects 'C' - -## CRITICAL STEP COMPLETION NOTE - -ONLY WHEN [C continue option] is selected and [current state confirmed], will you then read fully and follow: {nextStepFile} to resume the workflow. - ---- - -## 🚨 SYSTEM SUCCESS/FAILURE METRICS - -### ✅ SUCCESS: - -- All previous input documents successfully reloaded -- Current workflow state accurately analyzed and presented -- User confirms understanding of progress before continuation -- Correct next step identified and prepared for loading - -### ❌ SYSTEM FAILURE: - -- Discovering new input documents instead of reloading existing ones -- Modifying content from already completed steps -- Failing to extract nextStepFile from the last completed step's frontmatter -- Proceeding without user confirmation of current state - -**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE. diff --git a/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-02-discovery.md b/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-02-discovery.md deleted file mode 100644 index 4a945ada2..000000000 --- a/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-02-discovery.md +++ /dev/null @@ -1,225 +0,0 @@ ---- -name: 'step-02-discovery' -description: 'Discover project type, domain, and context through collaborative dialogue' - -# File References -nextStepFile: '{project-root}/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-02b-vision.md' -outputFile: '{planning_artifacts}/prd.md' - -# Data Files -projectTypesCSV: '../data/project-types.csv' -domainComplexityCSV: '../data/domain-complexity.csv' - -# Task References -advancedElicitationTask: 'skill:bmad-advanced-elicitation' -partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md' ---- - -# Step 2: Project Discovery - -**Progress: Step 2 of 13** - Next: Product Vision - -## STEP GOAL: - -Discover and classify the project - understand what type of product this is, what domain it operates in, and the project context (greenfield vs brownfield). - -## MANDATORY EXECUTION RULES (READ FIRST): - -### Universal Rules: - -- 🛑 NEVER generate content without user input -- 📖 CRITICAL: Read the complete step file before taking any action -- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read -- ✅ ALWAYS treat this as collaborative discovery between PM peers -- 📋 YOU ARE A FACILITATOR, not a content generator -- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` -- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}` - -### Role Reinforcement: - -- ✅ You are a product-focused PM facilitator collaborating with an expert peer -- ✅ We engage in collaborative dialogue, not command-response -- ✅ You bring structured thinking and facilitation skills, while the user brings domain expertise and product vision - -### Step-Specific Rules: - -- 🎯 Focus on classification and understanding - no content generation yet -- 🚫 FORBIDDEN to generate executive summary or vision statements (that's next steps) -- 💬 APPROACH: Natural conversation to understand the project -- 🎯 LOAD classification data BEFORE starting discovery conversation - -## EXECUTION PROTOCOLS: - -- 🎯 Show your analysis before taking any action -- ⚠️ Present A/P/C menu after classification complete -- 💾 ONLY save classification to frontmatter when user chooses C (Continue) -- 📖 Update frontmatter, adding this step to the end of the list of stepsCompleted -- 🚫 FORBIDDEN to load next step until C is selected - -## CONTEXT BOUNDARIES: - -- Current document and frontmatter from step 1 are available -- Input documents already loaded are in memory (product briefs, research, brainstorming, project docs) -- **Document counts available in frontmatter `documentCounts`** -- Classification CSV data will be loaded in this step only -- No executive summary or vision content yet (that's steps 2b and 2c) - -## YOUR TASK: - -Discover and classify the project through natural conversation: -- What type of product is this? (web app, API, mobile, etc.) -- What domain does it operate in? (healthcare, fintech, e-commerce, etc.) -- What's the project context? (greenfield new product vs brownfield existing system) -- How complex is this domain? (low, medium, high) - -## DISCOVERY SEQUENCE: - -### 1. Check Document State - -Read the frontmatter from `{outputFile}` to get document counts: -- `briefCount` - Product briefs available -- `researchCount` - Research documents available -- `brainstormingCount` - Brainstorming docs available -- `projectDocsCount` - Existing project documentation - -**Announce your understanding:** - -"From step 1, I have loaded: -- Product briefs: {{briefCount}} -- Research: {{researchCount}} -- Brainstorming: {{brainstormingCount}} -- Project docs: {{projectDocsCount}} - -{{if projectDocsCount > 0}}This is a brownfield project - I'll focus on understanding what you want to add or change.{{else}}This is a greenfield project - I'll help you define the full product vision.{{/if}}" - -### 2. Load Classification Data - -**Attempt subprocess data lookup:** - -**Project Type Lookup:** -"Your task: Lookup data in {projectTypesCSV} - -**Search criteria:** -- Find row where project_type matches {{detectedProjectType}} - -**Return format:** -Return ONLY the matching row as a YAML-formatted object with these fields: -project_type, detection_signals - -**Do NOT return the entire CSV - only the matching row.**" - -**Domain Complexity Lookup:** -"Your task: Lookup data in {domainComplexityCSV} - -**Search criteria:** -- Find row where domain matches {{detectedDomain}} - -**Return format:** -Return ONLY the matching row as a YAML-formatted object with these fields: -domain, complexity, typical_concerns, compliance_requirements - -**Do NOT return the entire CSV - only the matching row.**" - -**Graceful degradation (if Task tool unavailable):** -- Load the CSV files directly -- Find the matching rows manually -- Extract required fields -- Keep in memory for intelligent classification - -### 3. Begin Discovery Conversation - -**Start with what you know:** - -If the user has a product brief or project docs, acknowledge them and share your understanding. Then ask clarifying questions to deepen your understanding. - -If this is a greenfield project with no docs, start with open-ended discovery: -- What problem does this solve? -- Who's it for? -- What excites you about building this? - -**Listen for classification signals:** - -As the user describes their product, match against: -- **Project type signals** (API, mobile, SaaS, etc.) -- **Domain signals** (healthcare, fintech, education, etc.) -- **Complexity indicators** (regulated industries, novel technology, etc.) - -### 4. Confirm Classification - -Once you have enough understanding, share your classification: - -"I'm hearing this as: -- **Project Type:** {{detectedType}} -- **Domain:** {{detectedDomain}} -- **Complexity:** {{complexityLevel}} - -Does this sound right to you?" - -Let the user confirm or refine your classification. - -### 5. Save Classification to Frontmatter - -When user selects 'C', update frontmatter with classification: -```yaml -classification: - projectType: {{projectType}} - domain: {{domain}} - complexity: {{complexityLevel}} - projectContext: {{greenfield|brownfield}} -``` - -### N. Present MENU OPTIONS - -Present the project classification for review, then display menu: - -"Based on our conversation, I've discovered and classified your project. - -**Here's the classification:** - -**Project Type:** {{detectedType}} -**Domain:** {{detectedDomain}} -**Complexity:** {{complexityLevel}} -**Project Context:** {{greenfield|brownfield}} - -**What would you like to do?**" - -Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Product Vision (Step 2b of 13)" - -#### Menu Handling Logic: -- IF A: Read fully and follow: {advancedElicitationTask} with the current classification, process the enhanced insights that come back, ask user if they accept the improvements, if yes update classification then redisplay menu, if no keep original classification then redisplay menu -- IF P: Read fully and follow: {partyModeWorkflow} with the current classification, process the collaborative insights, ask user if they accept the changes, if yes update classification then redisplay menu, if no keep original classification then redisplay menu -- IF C: Save classification to {outputFile} frontmatter, add this step name to the end of stepsCompleted array, then read fully and follow: {nextStepFile} -- IF Any other: help user respond, then redisplay menu - -#### EXECUTION RULES: -- ALWAYS halt and wait for user input after presenting menu -- ONLY proceed to next step when user selects 'C' -- After other menu items execution, return to this menu - -## CRITICAL STEP COMPLETION NOTE - -ONLY WHEN [C continue option] is selected and [classification saved to frontmatter], will you then read fully and follow: `{nextStepFile}` to explore product vision. - ---- - -## 🚨 SYSTEM SUCCESS/FAILURE METRICS - -### ✅ SUCCESS: - -- Document state checked and announced to user -- Classification data loaded and used intelligently -- Natural conversation to understand project type, domain, complexity -- Classification validated with user before saving -- Frontmatter updated with classification when C selected -- User's existing documents acknowledged and built upon - -### ❌ SYSTEM FAILURE: - -- Not reading documentCounts from frontmatter first -- Skipping classification data loading -- Generating executive summary or vision content (that's later steps!) -- Not validating classification with user -- Being prescriptive instead of having natural conversation -- Proceeding without user selecting 'C' - -**Master Rule:** This is classification and understanding only. No content generation yet. Build on what the user already has. Have natural conversations, don't follow scripts. diff --git a/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-02b-vision.md b/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-02b-vision.md deleted file mode 100644 index e9b02e16d..000000000 --- a/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-02b-vision.md +++ /dev/null @@ -1,155 +0,0 @@ ---- -name: 'step-02b-vision' -description: 'Discover the product vision and differentiator through collaborative dialogue' - -# File References -nextStepFile: '{project-root}/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-02c-executive-summary.md' -outputFile: '{planning_artifacts}/prd.md' - -# Task References -advancedElicitationTask: 'skill:bmad-advanced-elicitation' -partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md' ---- - -# Step 2b: Product Vision Discovery - -**Progress: Step 2b of 13** - Next: Executive Summary - -## STEP GOAL: - -Discover what makes this product special and understand the product vision through collaborative conversation. No content generation — facilitation only. - -## MANDATORY EXECUTION RULES (READ FIRST): - -### Universal Rules: - -- 🛑 NEVER generate content without user input -- 📖 CRITICAL: Read the complete step file before taking any action -- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read -- ✅ ALWAYS treat this as collaborative discovery between PM peers -- 📋 YOU ARE A FACILITATOR, not a content generator -- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` -- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}` - -### Role Reinforcement: - -- ✅ You are a product-focused PM facilitator collaborating with an expert peer -- ✅ We engage in collaborative dialogue, not command-response -- ✅ You bring structured thinking and facilitation skills, while the user brings domain expertise and product vision - -### Step-Specific Rules: - -- 🎯 Focus on discovering vision and differentiator — no content generation yet -- 🚫 FORBIDDEN to generate executive summary content (that's the next step) -- 🚫 FORBIDDEN to append anything to the document in this step -- 💬 APPROACH: Natural conversation to understand what makes this product special -- 🎯 BUILD ON classification insights from step 2 - -## EXECUTION PROTOCOLS: - -- 🎯 Show your analysis before taking any action -- ⚠️ Present A/P/C menu after vision discovery is complete -- 📖 Update frontmatter, adding this step to the end of the list of stepsCompleted -- 🚫 FORBIDDEN to load next step until C is selected - -## CONTEXT BOUNDARIES: - -- Current document and frontmatter from steps 1 and 2 are available -- Project classification exists from step 2 (project type, domain, complexity, context) -- Input documents already loaded are in memory (product briefs, research, brainstorming, project docs) -- No executive summary content yet (that's step 2c) -- This step ONLY discovers — it does NOT write to the document - -## YOUR TASK: - -Discover the product vision and differentiator through natural conversation. Understand what makes this product unique and valuable before any content is written. - -## VISION DISCOVERY SEQUENCE: - -### 1. Acknowledge Classification Context - -Reference the classification from step 2 and use it to frame the vision conversation: - -"We've established this is a {{projectType}} in the {{domain}} domain with {{complexityLevel}} complexity. Now let's explore what makes this product special." - -### 2. Explore What Makes It Special - -Guide the conversation to uncover the product's unique value: - -- **User delight:** "What would make users say 'this is exactly what I needed'?" -- **Differentiation moment:** "What's the moment where users realize this is different or better than alternatives?" -- **Core insight:** "What insight or approach makes this product possible or unique?" -- **Value proposition:** "If you had one sentence to explain why someone should use this over anything else, what would it be?" - -### 3. Understand the Vision - -Dig deeper into the product vision: - -- **Problem framing:** "What's the real problem you're solving — not the surface symptom, but the deeper need?" -- **Future state:** "When this product is successful, what does the world look like for your users?" -- **Why now:** "Why is this the right time to build this?" - -### 4. Validate Understanding - -Reflect back what you've heard and confirm: - -"Here's what I'm hearing about your vision and differentiator: - -**Vision:** {{summarized_vision}} -**What Makes It Special:** {{summarized_differentiator}} -**Core Insight:** {{summarized_insight}} - -Does this capture it? Anything I'm missing?" - -Let the user confirm or refine your understanding. - -### N. Present MENU OPTIONS - -Present your understanding of the product vision for review, then display menu: - -"Based on our conversation, I have a clear picture of your product vision and what makes it special. I'll use these insights to draft the Executive Summary in the next step. - -**What would you like to do?**" - -Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Executive Summary (Step 2c of 13)" - -#### Menu Handling Logic: -- IF A: Read fully and follow: {advancedElicitationTask} with the current vision insights, process the enhanced insights that come back, ask user if they accept the improvements, if yes update understanding then redisplay menu, if no keep original understanding then redisplay menu -- IF P: Read fully and follow: {partyModeWorkflow} with the current vision insights, process the collaborative insights, ask user if they accept the changes, if yes update understanding then redisplay menu, if no keep original understanding then redisplay menu -- IF C: Update {outputFile} frontmatter by adding this step name to the end of stepsCompleted array, then read fully and follow: {nextStepFile} -- IF Any other: help user respond, then redisplay menu - -#### EXECUTION RULES: -- ALWAYS halt and wait for user input after presenting menu -- ONLY proceed to next step when user selects 'C' -- After other menu items execution, return to this menu - -## CRITICAL STEP COMPLETION NOTE - -ONLY WHEN [C continue option] is selected and [stepsCompleted updated], will you then read fully and follow: `{nextStepFile}` to generate the Executive Summary. - ---- - -## 🚨 SYSTEM SUCCESS/FAILURE METRICS - -### ✅ SUCCESS: - -- Classification context from step 2 acknowledged and built upon -- Natural conversation to understand product vision and differentiator -- User's existing documents (briefs, research, brainstorming) leveraged for vision insights -- Vision and differentiator validated with user before proceeding -- Clear understanding established that will inform Executive Summary generation -- Frontmatter updated with stepsCompleted when C selected - -### ❌ SYSTEM FAILURE: - -- Generating executive summary or any document content (that's step 2c!) -- Appending anything to the PRD document -- Not building on classification from step 2 -- Being prescriptive instead of having natural conversation -- Proceeding without user selecting 'C' - -❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions -❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file - -**Master Rule:** This step is vision discovery only. No content generation, no document writing. Have natural conversations, build on what you know from classification, and establish the vision that will feed into the Executive Summary. diff --git a/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-02c-executive-summary.md b/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-02c-executive-summary.md deleted file mode 100644 index 97fdbcd66..000000000 --- a/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-02c-executive-summary.md +++ /dev/null @@ -1,171 +0,0 @@ ---- -name: 'step-02c-executive-summary' -description: 'Generate and append the Executive Summary section to the PRD document' - -# File References -nextStepFile: '{project-root}/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-03-success.md' -outputFile: '{planning_artifacts}/prd.md' - -# Task References -advancedElicitationTask: 'skill:bmad-advanced-elicitation' -partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md' ---- - -# Step 2c: Executive Summary Generation - -**Progress: Step 2c of 13** - Next: Success Criteria - -## STEP GOAL: - -Generate the Executive Summary content using insights from classification (step 2) and vision discovery (step 2b), then append it to the PRD document. - -## MANDATORY EXECUTION RULES (READ FIRST): - -### Universal Rules: - -- 🛑 NEVER generate content without user input -- 📖 CRITICAL: Read the complete step file before taking any action -- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read -- ✅ ALWAYS treat this as collaborative discovery between PM peers -- 📋 YOU ARE A FACILITATOR, not a content generator -- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` -- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}` - -### Role Reinforcement: - -- ✅ You are a product-focused PM facilitator collaborating with an expert peer -- ✅ We engage in collaborative dialogue, not command-response -- ✅ Content is drafted collaboratively — present for review before saving - -### Step-Specific Rules: - -- 🎯 Generate Executive Summary content based on discovered insights -- 💬 Present draft content for user review and refinement before appending -- 🚫 FORBIDDEN to append content without user approval via 'C' -- 🎯 Content must be dense, precise, and zero-fluff (PRD quality standards) - -## EXECUTION PROTOCOLS: - -- 🎯 Show your analysis before taking any action -- ⚠️ Present A/P/C menu after generating executive summary content -- 💾 ONLY save when user chooses C (Continue) -- 📖 Update output file frontmatter, adding this step name to the end of the list of stepsCompleted -- 🚫 FORBIDDEN to load next step until C is selected - -## CONTEXT BOUNDARIES: - -- Current document and frontmatter from steps 1, 2, and 2b are available -- Project classification exists from step 2 (project type, domain, complexity, context) -- Vision and differentiator insights exist from step 2b -- Input documents from step 1 are available (product briefs, research, brainstorming, project docs) -- This step generates and appends the first substantive content to the PRD - -## YOUR TASK: - -Draft the Executive Summary section using all discovered insights, present it for user review, and append it to the PRD document when approved. - -## EXECUTIVE SUMMARY GENERATION SEQUENCE: - -### 1. Synthesize Available Context - -Review all available context before drafting: -- Classification from step 2: project type, domain, complexity, project context -- Vision and differentiator from step 2b: what makes this special, core insight -- Input documents: product briefs, research, brainstorming, project docs - -### 2. Draft Executive Summary Content - -Generate the Executive Summary section using the content structure below. Apply PRD quality standards: -- High information density — every sentence carries weight -- Zero fluff — no filler phrases or vague language -- Precise and actionable — clear, specific statements -- Dual-audience optimized — readable by humans, consumable by LLMs - -### 3. Present Draft for Review - -Present the drafted content to the user for review: - -"Here's the Executive Summary I've drafted based on our discovery work. Please review and let me know if you'd like any changes:" - -Show the full drafted content using the structure from the Content Structure section below. - -Allow the user to: -- Request specific changes to any section -- Add missing information -- Refine the language or emphasis -- Approve as-is - -### N. Present MENU OPTIONS - -Present the executive summary content for user review, then display menu: - -"Here's the Executive Summary for your PRD. Review the content above and let me know what you'd like to do." - -Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Success Criteria (Step 3 of 13)" - -#### Menu Handling Logic: -- IF A: Read fully and follow: {advancedElicitationTask} with the current executive summary content, process the enhanced content that comes back, ask user if they accept the improvements, if yes update content then redisplay menu, if no keep original content then redisplay menu -- IF P: Read fully and follow: {partyModeWorkflow} with the current executive summary content, process the collaborative improvements, ask user if they accept the changes, if yes update content then redisplay menu, if no keep original content then redisplay menu -- IF C: Append the final content to {outputFile}, update frontmatter by adding this step name to the end of the stepsCompleted array, then read fully and follow: {nextStepFile} -- IF Any other: help user respond, then redisplay menu - -#### EXECUTION RULES: -- ALWAYS halt and wait for user input after presenting menu -- ONLY proceed to next step when user selects 'C' -- After other menu items execution, return to this menu - -## APPEND TO DOCUMENT: - -When user selects 'C', append the following content structure directly to the document: - -```markdown -## Executive Summary - -{vision_alignment_content} - -### What Makes This Special - -{product_differentiator_content} - -## Project Classification - -{project_classification_content} -``` - -Where: -- `{vision_alignment_content}` — Product vision, target users, and the problem being solved. Dense, precise summary drawn from step 2b vision discovery. -- `{product_differentiator_content}` — What makes this product unique, the core insight, and why users will choose it over alternatives. Drawn from step 2b differentiator discovery. -- `{project_classification_content}` — Project type, domain, complexity level, and project context (greenfield/brownfield). Drawn from step 2 classification. - -## CRITICAL STEP COMPLETION NOTE - -ONLY WHEN [C continue option] is selected and [content appended to document], will you then read fully and follow: `{nextStepFile}` to define success criteria. - ---- - -## 🚨 SYSTEM SUCCESS/FAILURE METRICS - -### ✅ SUCCESS: - -- Executive Summary drafted using insights from steps 2 and 2b -- Content meets PRD quality standards (dense, precise, zero-fluff) -- Draft presented to user for review before saving -- User given opportunity to refine content -- Content properly appended to document when C selected -- A/P/C menu presented and handled correctly -- Frontmatter updated with stepsCompleted when C selected - -### ❌ SYSTEM FAILURE: - -- Generating content without incorporating discovered vision and classification -- Appending content without user selecting 'C' -- Producing vague, fluffy, or low-density content -- Not presenting draft for user review -- Not presenting A/P/C menu after content generation -- Skipping directly to next step without appending content - -❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions -❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file -❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols - -**Master Rule:** Generate high-quality Executive Summary content from discovered insights. Present for review, refine collaboratively, and only save when the user approves. This is the first substantive content in the PRD — it sets the quality bar for everything that follows. diff --git a/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-03-success.md b/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-03-success.md deleted file mode 100644 index f7cbc5881..000000000 --- a/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-03-success.md +++ /dev/null @@ -1,227 +0,0 @@ ---- -name: 'step-03-success' -description: 'Define comprehensive success criteria covering user, business, and technical success' - -# File References -nextStepFile: '{project-root}/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-04-journeys.md' -outputFile: '{planning_artifacts}/prd.md' - -# Task References -advancedElicitationTask: 'skill:bmad-advanced-elicitation' -partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md' ---- - -# Step 3: Success Criteria Definition - -**Progress: Step 3 of 11** - Next: User Journey Mapping - -## MANDATORY EXECUTION RULES (READ FIRST): - -- 🛑 NEVER generate content without user input - -- 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions -- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding -- ✅ ALWAYS treat this as collaborative discovery between PM peers -- 📋 YOU ARE A FACILITATOR, not a content generator -- 💬 FOCUS on defining what winning looks like for this product -- 🎯 COLLABORATIVE discovery, not assumption-based goal setting -- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` -- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}` - -## EXECUTION PROTOCOLS: - -- 🎯 Show your analysis before taking any action -- ⚠️ Present A/P/C menu after generating success criteria content -- 💾 ONLY save when user chooses C (Continue) -- 📖 Update output file frontmatter, adding this step name to the end of the list of stepsCompleted -- 🚫 FORBIDDEN to load next step until C is selected - -## CONTEXT BOUNDARIES: - -- Current document and frontmatter from previous steps are available -- Executive Summary and Project Classification already exist in document -- Input documents from step-01 are available (product briefs, research, brainstorming) -- No additional data files needed for this step -- Focus on measurable, specific success criteria -- LEVERAGE existing input documents to inform success criteria - -## YOUR TASK: - -Define comprehensive success criteria that cover user success, business success, and technical success, using input documents as a foundation while allowing user refinement. - -## SUCCESS DISCOVERY SEQUENCE: - -### 1. Begin Success Definition Conversation - -**Check Input Documents for Success Indicators:** -Analyze product brief, research, and brainstorming documents for success criteria already mentioned. - -**If Input Documents Contain Success Criteria:** -Guide user to refine existing success criteria: -- Acknowledge what's already documented in their materials -- Extract key success themes from brief, research, and brainstorming -- Help user identify gaps and areas for expansion -- Probe for specific, measurable outcomes: When do users feel delighted/relieved/empowered? -- Ask about emotional success moments and completion scenarios -- Explore what "worth it" means beyond what's already captured - -**If No Success Criteria in Input Documents:** -Start with user-centered success exploration: -- Guide conversation toward defining what "worth it" means for users -- Ask about the moment users realize their problem is solved -- Explore specific user outcomes and emotional states -- Identify success "aha!" moments and completion scenarios -- Focus on user experience of success first - -### 2. Explore User Success Metrics - -Listen for specific user outcomes and help make them measurable: - -- Guide from vague to specific: NOT "users are happy" → "users complete [key action] within [timeframe]" -- Ask about emotional success: "When do they feel delighted/relieved/empowered?" -- Identify success moments: "What's the 'aha!' moment?" -- Define completion scenarios: "What does 'done' look like for the user?" - -### 3. Define Business Success - -Transition to business metrics: -- Guide conversation to business perspective on success -- Explore timelines: What does 3-month success look like? 12-month success? -- Identify key business metrics: revenue, user growth, engagement, or other measures? -- Ask what specific metric would indicate "this is working" -- Understand business success from their perspective - -### 4. Challenge Vague Metrics - -Push for specificity on business metrics: - -- "10,000 users" → "What kind of users? Doing what?" -- "99.9% uptime" → "What's the real concern - data loss? Failed payments?" -- "Fast" → "How fast, and what specifically needs to be fast?" -- "Good adoption" → "What percentage adoption by when?" - -### 5. Connect to Product Differentiator - -Tie success metrics back to what makes the product special: -- Connect success criteria to the product's unique differentiator -- Ensure metrics reflect the specific value proposition -- Adapt success criteria to domain context: - - Consumer: User love, engagement, retention - - B2B: ROI, efficiency, adoption - - Developer tools: Developer experience, community - - Regulated: Compliance, safety, validation - - GovTech: Government compliance, accessibility, procurement - -### 6. Smart Scope Negotiation - -Guide scope definition through success lens: -- Help user distinguish MVP (must work to be useful) from growth (competitive) and vision (dream) -- Guide conversation through three scope levels: - 1. MVP: What's essential for proving the concept? - 2. Growth: What makes it competitive? - 3. Vision: What's the dream version? -- Challenge scope creep conversationally: Could this wait until after launch? Is this essential for MVP? -- For complex domains: Ensure compliance minimums are included in MVP - -### 7. Generate Success Criteria Content - -Prepare the content to append to the document: - -#### Content Structure: - -When saving to document, append these Level 2 and Level 3 sections: - -```markdown -## Success Criteria - -### User Success - -[Content about user success criteria based on conversation] - -### Business Success - -[Content about business success metrics based on conversation] - -### Technical Success - -[Content about technical success requirements based on conversation] - -### Measurable Outcomes - -[Content about specific measurable outcomes based on conversation] - -## Product Scope - -### MVP - Minimum Viable Product - -[Content about MVP scope based on conversation] - -### Growth Features (Post-MVP) - -[Content about growth features based on conversation] - -### Vision (Future) - -[Content about future vision based on conversation] -``` - -### 8. Present MENU OPTIONS - -Present the success criteria content for user review, then display menu: - -- Show the drafted success criteria and scope definition (using structure from section 7) -- Ask if they'd like to refine further, get other perspectives, or proceed -- Present menu options naturally as part of the conversation - -Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue to User Journey Mapping (Step 4 of 11)" - -#### Menu Handling Logic: -- IF A: Read fully and follow: {advancedElicitationTask} with the current success criteria content, process the enhanced success metrics that come back, ask user "Accept these improvements to the success criteria? (y/n)", if yes update content with improvements then redisplay menu, if no keep original content then redisplay menu -- IF P: Read fully and follow: {partyModeWorkflow} with the current success criteria, process the collaborative improvements to metrics and scope, ask user "Accept these changes to the success criteria? (y/n)", if yes update content with improvements then redisplay menu, if no keep original content then redisplay menu -- IF C: Append the final content to {outputFile}, update frontmatter by adding this step name to the end of the stepsCompleted array, then read fully and follow: {nextStepFile} -- IF Any other: help user respond, then redisplay menu - -#### EXECUTION RULES: -- ALWAYS halt and wait for user input after presenting menu -- ONLY proceed to next step when user selects 'C' -- After other menu items execution, return to this menu - -## APPEND TO DOCUMENT: - -When user selects 'C', append the content directly to the document using the structure from step 7. - -## SUCCESS METRICS: - -✅ User success criteria clearly identified and made measurable -✅ Business success metrics defined with specific targets -✅ Success criteria connected to product differentiator -✅ Scope properly negotiated (MVP, Growth, Vision) -✅ A/P/C menu presented and handled correctly -✅ Content properly appended to document when C selected - -## FAILURE MODES: - -❌ Accepting vague success metrics without pushing for specificity -❌ Not connecting success criteria back to product differentiator -❌ Missing scope negotiation and leaving it undefined -❌ Generating content without real user input on what success looks like -❌ Not presenting A/P/C menu after content generation -❌ Appending content without user selecting 'C' - -❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions -❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file -❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols - -## DOMAIN CONSIDERATIONS: - -If working in regulated domains (healthcare, fintech, govtech): - -- Include compliance milestones in success criteria -- Add regulatory approval timelines to MVP scope -- Consider audit requirements as technical success metrics - -## NEXT STEP: - -After user selects 'C' and content is saved to document, load `{project-root}/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-04-journeys.md` to map user journeys. - -Remember: Do NOT proceed to step-04 until user explicitly selects 'C' from the A/P/C menu and content is saved! diff --git a/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-04-journeys.md b/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-04-journeys.md deleted file mode 100644 index 634f64da1..000000000 --- a/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-04-journeys.md +++ /dev/null @@ -1,214 +0,0 @@ ---- -name: 'step-04-journeys' -description: 'Map ALL user types that interact with the system with narrative story-based journeys' - -# File References -nextStepFile: '{project-root}/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-05-domain.md' -outputFile: '{planning_artifacts}/prd.md' - -# Task References -advancedElicitationTask: 'skill:bmad-advanced-elicitation' -partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md' ---- - -# Step 4: User Journey Mapping - -**Progress: Step 4 of 11** - Next: Domain Requirements - -## MANDATORY EXECUTION RULES (READ FIRST): - -- 🛑 NEVER generate content without user input - -- 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions -- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding -- ✅ ALWAYS treat this as collaborative discovery between PM peers -- 📋 YOU ARE A FACILITATOR, not a content generator -- 💬 FOCUS on mapping ALL user types that interact with the system -- 🎯 CRITICAL: No journey = no functional requirements = product doesn't exist -- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` -- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}` - -## EXECUTION PROTOCOLS: - -- 🎯 Show your analysis before taking any action -- ⚠️ Present A/P/C menu after generating journey content -- 💾 ONLY save when user chooses C (Continue) -- 📖 Update output file frontmatter, adding this step name to the end of the list of stepsCompleted -- 🚫 FORBIDDEN to load next step until C is selected - -## CONTEXT BOUNDARIES: - -- Current document and frontmatter from previous steps are available -- Success criteria and scope already defined -- Input documents from step-01 are available (product briefs with user personas) -- Every human interaction with the system needs a journey - -## YOUR TASK: - -Create compelling narrative user journeys that leverage existing personas from product briefs and identify additional user types needed for comprehensive coverage. - -## JOURNEY MAPPING SEQUENCE: - -### 1. Leverage Existing Users & Identify Additional Types - -**Check Input Documents for Existing Personas:** -Analyze product brief, research, and brainstorming documents for user personas already defined. - -**If User Personas Exist in Input Documents:** -Guide user to build on existing personas: -- Acknowledge personas found in their product brief -- Extract key persona details and backstories -- Leverage existing insights about their needs -- Prompt to identify additional user types beyond those documented -- Suggest additional user types based on product context (admins, moderators, support, API consumers, internal ops) -- Ask what additional user types should be considered - -**If No Personas in Input Documents:** -Start with comprehensive user type discovery: -- Guide exploration of ALL people who interact with the system -- Consider beyond primary users: admins, moderators, support staff, API consumers, internal ops -- Ask what user types should be mapped for this specific product -- Ensure comprehensive coverage of all system interactions - -### 2. Create Narrative Story-Based Journeys - -For each user type, create compelling narrative journeys that tell their story: - -#### Narrative Journey Creation Process: - -**If Using Existing Persona from Input Documents:** -Guide narrative journey creation: -- Use persona's existing backstory from brief -- Explore how the product changes their life/situation -- Craft journey narrative: where do we meet them, how does product help them write their next chapter? - -**If Creating New Persona:** -Guide persona creation with story framework: -- Name: realistic name and personality -- Situation: What's happening in their life/work that creates need? -- Goal: What do they desperately want to achieve? -- Obstacle: What's standing in their way? -- Solution: How does the product solve their story? - -**Story-Based Journey Mapping:** - -Guide narrative journey creation using story structure: -- **Opening Scene**: Where/how do we meet them? What's their current pain? -- **Rising Action**: What steps do they take? What do they discover? -- **Climax**: Critical moment where product delivers real value -- **Resolution**: How does their situation improve? What's their new reality? - -Encourage narrative format with specific user details, emotional journey, and clear before/after contrast - -### 3. Guide Journey Exploration - -For each journey, facilitate detailed exploration: -- What happens at each step specifically? -- What could go wrong? What's the recovery path? -- What information do they need to see/hear? -- What's their emotional state at each point? -- Where does this journey succeed or fail? - -### 4. Connect Journeys to Requirements - -After each journey, explicitly state: -- This journey reveals requirements for specific capability areas -- Help user see how different journeys create different feature sets -- Connect journey needs to concrete capabilities (onboarding, dashboards, notifications, etc.) - -### 5. Aim for Comprehensive Coverage - -Guide toward complete journey set: - -- **Primary user** - happy path (core experience) -- **Primary user** - edge case (different goal, error recovery) -- **Secondary user** (admin, moderator, support, etc.) -- **API consumer** (if applicable) - -Ask if additional journeys are needed to cover uncovered user types - -### 6. Generate User Journey Content - -Prepare the content to append to the document: - -#### Content Structure: - -When saving to document, append these Level 2 and Level 3 sections: - -```markdown -## User Journeys - -[All journey narratives based on conversation] - -### Journey Requirements Summary - -[Summary of capabilities revealed by journeys based on conversation] -``` - -### 7. Present MENU OPTIONS - -Present the user journey content for review, then display menu: -- Show the mapped user journeys (using structure from section 6) -- Highlight how each journey reveals different capabilities -- Ask if they'd like to refine further, get other perspectives, or proceed -- Present menu options naturally as part of conversation - -Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Domain Requirements (Step 5 of 11)" - -#### Menu Handling Logic: -- IF A: Read fully and follow: {advancedElicitationTask} with the current journey content, process the enhanced journey insights that come back, ask user "Accept these improvements to the user journeys? (y/n)", if yes update content with improvements then redisplay menu, if no keep original content then redisplay menu -- IF P: Read fully and follow: {partyModeWorkflow} with the current journeys, process the collaborative journey improvements and additions, ask user "Accept these changes to the user journeys? (y/n)", if yes update content with improvements then redisplay menu, if no keep original content then redisplay menu -- IF C: Append the final content to {outputFile}, update frontmatter by adding this step name to the end of the stepsCompleted array, then read fully and follow: {nextStepFile} -- IF Any other: help user respond, then redisplay menu - -#### EXECUTION RULES: -- ALWAYS halt and wait for user input after presenting menu -- ONLY proceed to next step when user selects 'C' -- After other menu items execution, return to this menu - -## APPEND TO DOCUMENT: - -When user selects 'C', append the content directly to the document using the structure from step 6. - -## SUCCESS METRICS: - -✅ Existing personas from product briefs leveraged when available -✅ All user types identified (not just primary users) -✅ Rich narrative storytelling for each persona and journey -✅ Complete story-based journey mapping with emotional arc -✅ Journey requirements clearly connected to capabilities needed -✅ Minimum 3-4 compelling narrative journeys covering different user types -✅ A/P/C menu presented and handled correctly -✅ Content properly appended to document when C selected - -## FAILURE MODES: - -❌ Ignoring existing personas from product briefs -❌ Only mapping primary user journeys and missing secondary users -❌ Creating generic journeys without rich persona details and narrative -❌ Missing emotional storytelling elements that make journeys compelling -❌ Missing critical decision points and failure scenarios -❌ Not connecting journeys to required capabilities -❌ Not having enough journey diversity (admin, support, API, etc.) -❌ Not presenting A/P/C menu after content generation -❌ Appending content without user selecting 'C' - -❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions -❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file -❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols - -## JOURNEY TYPES TO ENSURE: - -**Minimum Coverage:** - -1. **Primary User - Success Path**: Core experience journey -2. **Primary User - Edge Case**: Error recovery, alternative goals -3. **Admin/Operations User**: Management, configuration, monitoring -4. **Support/Troubleshooting**: Help, investigation, issue resolution -5. **API/Integration** (if applicable): Developer/technical user journey - -## NEXT STEP: - -After user selects 'C' and content is saved to document, load `{project-root}/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-05-domain.md`. - -Remember: Do NOT proceed to step-05 until user explicitly selects 'C' from the A/P/C menu and content is saved! diff --git a/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-05-domain.md b/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-05-domain.md deleted file mode 100644 index c42463846..000000000 --- a/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-05-domain.md +++ /dev/null @@ -1,208 +0,0 @@ ---- -name: 'step-05-domain' -description: 'Explore domain-specific requirements for complex domains (optional step)' - -# File References -nextStepFile: '{project-root}/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-06-innovation.md' -outputFile: '{planning_artifacts}/prd.md' -domainComplexityCSV: '{project-root}/_bmad/bmm/workflows/2-plan-workflows/create-prd/data/domain-complexity.csv' - -# Task References -advancedElicitationTask: 'skill:bmad-advanced-elicitation' -partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md' ---- - -# Step 5: Domain-Specific Requirements (Optional) - -**Progress: Step 5 of 13** - Next: Innovation Focus - -## STEP GOAL: - -For complex domains only that have a mapping in {domainComplexityCSV}, explore domain-specific constraints, compliance requirements, and technical considerations that shape the product. - -## MANDATORY EXECUTION RULES (READ FIRST): - -### Universal Rules: - -- 🛑 NEVER generate content without user input -- 📖 CRITICAL: Read the complete step file before taking any action -- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read -- ✅ ALWAYS treat this as collaborative discovery between PM peers -- 📋 YOU ARE A FACILITATOR, not a content generator -- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` -- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}` - -### Role Reinforcement: - -- ✅ You are a product-focused PM facilitator collaborating with an expert peer -- ✅ We engage in collaborative dialogue, not command-response -- ✅ You bring structured thinking and facilitation skills, while the user brings domain expertise - -### Step-Specific Rules: - -- 🎯 This step is OPTIONAL - only needed for complex domains -- 🚫 SKIP if domain complexity is "low" from step-02 -- 💬 APPROACH: Natural conversation to discover domain-specific needs -- 🎯 Focus on constraints, compliance, and domain patterns - -## EXECUTION PROTOCOLS: - -- 🎯 Check domain complexity from step-02 classification first -- ⚠️ If complexity is "low", offer to skip this step -- ⚠️ Present A/P/C menu after domain requirements defined (or skipped) -- 💾 ONLY save when user chooses C (Continue) -- 📖 Update output file frontmatter, adding this step name to the end of the list of stepsCompleted -- 🚫 FORBIDDEN to load next step until C is selected - -## CONTEXT BOUNDARIES: - -- Domain classification from step-02 is available -- If complexity is low, this step may be skipped -- Domain CSV data provides complexity reference -- Focus on domain-specific constraints, not general requirements - -## YOUR TASK: - -For complex domains, explore what makes this domain special: -- **Compliance requirements** - regulations, standards, certifications -- **Technical constraints** - security, privacy, integration requirements -- **Domain patterns** - common patterns, best practices, anti-patterns -- **Risks and mitigations** - what could go wrong, how to prevent it - -## DOMAIN DISCOVERY SEQUENCE: - -### 1. Check Domain Complexity - -**Review classification from step-02:** - -- What's the domain complexity level? (low/medium/high) -- What's the specific domain? (healthcare, fintech, education, etc.) - -**If complexity is LOW:** - -Offer to skip: -"The domain complexity from our discovery is low. We may not need deep domain-specific requirements. Would you like to: -- [C] Skip this step and move to Innovation -- [D] Do domain exploration anyway" - -**If complexity is MEDIUM or HIGH:** - -Proceed with domain exploration. - -### 2. Load Domain Reference Data - -**Attempt subprocess data lookup:** - -"Your task: Lookup data in {domainComplexityCSV} - -**Search criteria:** -- Find row where domain matches {{domainFromStep02}} - -**Return format:** -Return ONLY the matching row as a YAML-formatted object with these fields: -domain, complexity, typical_concerns, compliance_requirements - -**Do NOT return the entire CSV - only the matching row.**" - -**Graceful degradation (if Task tool unavailable):** -- Load the CSV file directly -- Find the matching row manually -- Extract required fields -- Understand typical concerns and compliance requirements - -### 3. Explore Domain-Specific Concerns - -**Start with what you know:** - -Acknowledge the domain and explore what makes it complex: -- What regulations apply? (HIPAA, PCI-DSS, GDPR, SOX, etc.) -- What standards matter? (ISO, NIST, domain-specific standards) -- What certifications are needed? (security, privacy, domain-specific) -- What integrations are required? (EMR systems, payment processors, etc.) - -**Explore technical constraints:** -- Security requirements (encryption, audit logs, access control) -- Privacy requirements (data handling, consent, retention) -- Performance requirements (real-time, batch, latency) -- Availability requirements (uptime, disaster recovery) - -### 4. Document Domain Requirements - -**Structure the requirements around key concerns:** - -```markdown -### Compliance & Regulatory -- [Specific requirements] - -### Technical Constraints -- [Security, privacy, performance needs] - -### Integration Requirements -- [Required systems and data flows] - -### Risk Mitigations -- [Domain-specific risks and how to address them] -``` - -### 5. Validate Completeness - -**Check with the user:** - -"Are there other domain-specific concerns we should consider? For [this domain], what typically gets overlooked?" - -### N. Present MENU OPTIONS - -Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue - Save and Proceed to Innovation (Step 6 of 13)" - -#### Menu Handling Logic: -- IF A: Read fully and follow: {advancedElicitationTask}, and when finished redisplay the menu -- IF P: Read fully and follow: {partyModeWorkflow}, and when finished redisplay the menu -- IF C: Save content to {outputFile}, update frontmatter, then read fully and follow: {nextStepFile} -- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#n-present-menu-options) - -#### EXECUTION RULES: -- ALWAYS halt and wait for user input after presenting menu -- ONLY proceed to next step when user selects 'C' -- After other menu items execution, return to this menu - -## APPEND TO DOCUMENT - -When user selects 'C', append to `{outputFile}`: - -```markdown -## Domain-Specific Requirements - -{{discovered domain requirements}} -``` - -If step was skipped, append nothing and proceed. - -## CRITICAL STEP COMPLETION NOTE - -ONLY WHEN [C continue option] is selected and [content saved or skipped], will you then read fully and follow: `{nextStepFile}` to explore innovation. - ---- - -## 🚨 SYSTEM SUCCESS/FAILURE METRICS - -### ✅ SUCCESS: - -- Domain complexity checked before proceeding -- Offered to skip if complexity is low -- Natural conversation exploring domain concerns -- Compliance, technical, and integration requirements identified -- Domain-specific risks documented with mitigations -- User validated completeness -- Content properly saved (or step skipped) when C selected - -### ❌ SYSTEM FAILURE: - -- Not checking domain complexity first -- Not offering to skip for low-complexity domains -- Missing critical compliance requirements -- Not exploring technical constraints -- Not asking about domain-specific risks -- Being generic instead of domain-specific -- Proceeding without user validation - -**Master Rule:** This step is OPTIONAL for simple domains. For complex domains, focus on compliance, constraints, and domain patterns. Natural conversation, not checklists. diff --git a/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-06-innovation.md b/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-06-innovation.md deleted file mode 100644 index ea7ab3af4..000000000 --- a/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-06-innovation.md +++ /dev/null @@ -1,227 +0,0 @@ ---- -name: 'step-06-innovation' -description: 'Detect and explore innovative aspects of the product (optional step)' - -# File References -nextStepFile: '{project-root}/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-07-project-type.md' -outputFile: '{planning_artifacts}/prd.md' - -# Data Files -projectTypesCSV: '{project-root}/_bmad/bmm/workflows/2-plan-workflows/create-prd/data/project-types.csv' - -# Task References -advancedElicitationTask: 'skill:bmad-advanced-elicitation' -partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md' ---- - -# Step 6: Innovation Discovery - -**Progress: Step 6 of 11** - Next: Project Type Analysis - -## MANDATORY EXECUTION RULES (READ FIRST): - -- 🛑 NEVER generate content without user input - -- 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions -- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding -- ✅ ALWAYS treat this as collaborative discovery between PM peers -- 📋 YOU ARE A FACILITATOR, not a content generator -- 💬 FOCUS on detecting and exploring innovative aspects of the product -- 🎯 OPTIONAL STEP: Only proceed if innovation signals are detected -- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` -- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}` - -## EXECUTION PROTOCOLS: - -- 🎯 Show your analysis before taking any action -- ⚠️ Present A/P/C menu after generating innovation content -- 💾 ONLY save when user chooses C (Continue) -- 📖 Update output file frontmatter, adding this step name to the end of the list of stepsCompleted -- 🚫 FORBIDDEN to load next step until C is selected - -## CONTEXT BOUNDARIES: - -- Current document and frontmatter from previous steps are available -- Project type from step-02 is available for innovation signal matching -- Project-type CSV data will be loaded in this step -- Focus on detecting genuine innovation, not forced creativity - -## OPTIONAL STEP CHECK: - -Before proceeding with this step, scan for innovation signals: - -- Listen for language like "nothing like this exists", "rethinking how X works" -- Check for project-type innovation signals from CSV -- Look for novel approaches or unique combinations -- If no innovation detected, skip this step - -## YOUR TASK: - -Detect and explore innovation patterns in the product, focusing on what makes it truly novel and how to validate the innovative aspects. - -## INNOVATION DISCOVERY SEQUENCE: - -### 1. Load Project-Type Innovation Data - -Load innovation signals specific to this project type: - -- Load `{projectTypesCSV}` completely -- Find the row where `project_type` matches detected type from step-02 -- Extract `innovation_signals` (semicolon-separated list) -- Extract `web_search_triggers` for potential innovation research - -### 2. Listen for Innovation Indicators - -Monitor conversation for both general and project-type-specific innovation signals: - -#### General Innovation Language: - -- "Nothing like this exists" -- "We're rethinking how [X] works" -- "Combining [A] with [B] for the first time" -- "Novel approach to [problem]" -- "No one has done [concept] before" - -#### Project-Type-Specific Signals (from CSV): - -Match user descriptions against innovation_signals for their project_type: - -- **api_backend**: "API composition;New protocol" -- **mobile_app**: "Gesture innovation;AR/VR features" -- **saas_b2b**: "Workflow automation;AI agents" -- **developer_tool**: "New paradigm;DSL creation" - -### 3. Initial Innovation Screening - -Ask targeted innovation discovery questions: -- Guide exploration of what makes the product innovative -- Explore if they're challenging existing assumptions -- Ask about novel combinations of technologies/approaches -- Identify what hasn't been done before -- Understand which aspects feel most innovative - -### 4. Deep Innovation Exploration (If Detected) - -If innovation signals are found, explore deeply: - -#### Innovation Discovery Questions: -- What makes it unique compared to existing solutions? -- What assumption are you challenging? -- How do we validate it works? -- What's the fallback if it doesn't? -- Has anyone tried this before? - -#### Market Context Research: - -If relevant innovation detected, consider web search for context: -Use `web_search_triggers` from project-type CSV: -`[web_search_triggers] {concept} innovations {date}` - -### 5. Generate Innovation Content (If Innovation Detected) - -Prepare the content to append to the document: - -#### Content Structure: - -When saving to document, append these Level 2 and Level 3 sections: - -```markdown -## Innovation & Novel Patterns - -### Detected Innovation Areas - -[Innovation patterns identified based on conversation] - -### Market Context & Competitive Landscape - -[Market context and research based on conversation] - -### Validation Approach - -[Validation methodology based on conversation] - -### Risk Mitigation - -[Innovation risks and fallbacks based on conversation] -``` - -### 6. Present MENU OPTIONS (Only if Innovation Detected) - -Present the innovation content for review, then display menu: -- Show identified innovative aspects (using structure from section 5) -- Highlight differentiation from existing solutions -- Ask if they'd like to refine further, get other perspectives, or proceed -- Present menu options naturally as part of conversation - -Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Project Type Analysis (Step 7 of 11)" - -#### Menu Handling Logic: -- IF A: Read fully and follow: {advancedElicitationTask} with the current innovation content, process the enhanced innovation insights that come back, ask user "Accept these improvements to the innovation analysis? (y/n)", if yes update content with improvements then redisplay menu, if no keep original content then redisplay menu -- IF P: Read fully and follow: {partyModeWorkflow} with the current innovation content, process the collaborative innovation exploration and ideation, ask user "Accept these changes to the innovation analysis? (y/n)", if yes update content with improvements then redisplay menu, if no keep original content then redisplay menu -- IF C: Append the final content to {outputFile}, update frontmatter by adding this step name to the end of the stepsCompleted array, then read fully and follow: {nextStepFile} -- IF Any other: help user respond, then redisplay menu - -#### EXECUTION RULES: -- ALWAYS halt and wait for user input after presenting menu -- ONLY proceed to next step when user selects 'C' -- After other menu items execution, return to this menu - -## NO INNOVATION DETECTED: - -If no genuine innovation signals are found after exploration: -- Acknowledge that no clear innovation signals were found -- Note this is fine - many successful products are excellent executions of existing concepts -- Ask if they'd like to try finding innovative angles or proceed - -Display: "**Select:** [A] Advanced Elicitation - Let's try to find innovative angles [C] Continue - Skip innovation section and move to Project Type Analysis (Step 7 of 11)" - -### Menu Handling Logic: -- IF A: Proceed with content generation anyway, then return to menu -- IF C: Skip this step, then read fully and follow: {nextStepFile} - -### EXECUTION RULES: -- ALWAYS halt and wait for user input after presenting menu -- ONLY proceed to next step when user selects 'C' - -## APPEND TO DOCUMENT: - -When user selects 'C', append the content directly to the document using the structure from step 5. - -## SUCCESS METRICS: - -✅ Innovation signals properly detected from user conversation -✅ Project-type innovation signals used to guide discovery -✅ Genuine innovation explored (not forced creativity) -✅ Validation approach clearly defined for innovative aspects -✅ Risk mitigation strategies identified -✅ A/P/C menu presented and handled correctly -✅ Content properly appended to document when C selected - -## FAILURE MODES: - -❌ Forced innovation when none genuinely exists -❌ Not using project-type innovation signals from CSV -❌ Missing market context research for novel concepts -❌ Not addressing validation approach for innovative features -❌ Creating innovation theater without real innovative aspects -❌ Not presenting A/P/C menu after content generation -❌ Appending content without user selecting 'C' - -❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions -❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file -❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols - -## SKIP CONDITIONS: - -Skip this step and load `{nextStepFile}` if: - -- No innovation signals detected in conversation -- Product is incremental improvement rather than breakthrough -- User confirms innovation exploration is not needed -- Project-type CSV has no innovation signals for this type - -## NEXT STEP: - -After user selects 'C' and content is saved to document (or step is skipped), load `{nextStepFile}`. - -Remember: Do NOT proceed to step-07 until user explicitly selects 'C' from the A/P/C menu (or confirms step skip)! diff --git a/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-07-project-type.md b/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-07-project-type.md deleted file mode 100644 index fc5d60d42..000000000 --- a/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-07-project-type.md +++ /dev/null @@ -1,238 +0,0 @@ ---- -name: 'step-07-project-type' -description: 'Conduct project-type specific discovery using CSV-driven guidance' - -# File References -nextStepFile: '{project-root}/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-08-scoping.md' -outputFile: '{planning_artifacts}/prd.md' - -# Data Files -projectTypesCSV: '../data/project-types.csv' - -# Task References -advancedElicitationTask: 'skill:bmad-advanced-elicitation' -partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md' ---- - -# Step 7: Project-Type Deep Dive - -**Progress: Step 7 of 11** - Next: Scoping - -## MANDATORY EXECUTION RULES (READ FIRST): - -- 🛑 NEVER generate content without user input - -- 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions -- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding -- ✅ ALWAYS treat this as collaborative discovery between PM peers -- 📋 YOU ARE A FACILITATOR, not a content generator -- 💬 FOCUS on project-type specific requirements and technical considerations -- 🎯 DATA-DRIVEN: Use CSV configuration to guide discovery -- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` -- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}` - -## EXECUTION PROTOCOLS: - -- 🎯 Show your analysis before taking any action -- ⚠️ Present A/P/C menu after generating project-type content -- 💾 ONLY save when user chooses C (Continue) -- 📖 Update output file frontmatter, adding this step name to the end of the list of stepsCompleted -- 🚫 FORBIDDEN to load next step until C is selected - -## CONTEXT BOUNDARIES: - -- Current document and frontmatter from previous steps are available -- Project type from step-02 is available for configuration loading -- Project-type CSV data will be loaded in this step -- Focus on technical and functional requirements specific to this project type - -## YOUR TASK: - -Conduct project-type specific discovery using CSV-driven guidance to define technical requirements. - -## PROJECT-TYPE DISCOVERY SEQUENCE: - -### 1. Load Project-Type Configuration Data - -**Attempt subprocess data lookup:** - -"Your task: Lookup data in {projectTypesCSV} - -**Search criteria:** -- Find row where project_type matches {{projectTypeFromStep02}} - -**Return format:** -Return ONLY the matching row as a YAML-formatted object with these fields: -project_type, key_questions, required_sections, skip_sections, innovation_signals - -**Do NOT return the entire CSV - only the matching row.**" - -**Graceful degradation (if Task tool unavailable):** -- Load the CSV file directly -- Find the matching row manually -- Extract required fields: - - `key_questions` (semicolon-separated list of discovery questions) - - `required_sections` (semicolon-separated list of sections to document) - - `skip_sections` (semicolon-separated list of sections to skip) - - `innovation_signals` (already explored in step-6) - -### 2. Conduct Guided Discovery Using Key Questions - -Parse `key_questions` from CSV and explore each: - -#### Question-Based Discovery: - -For each question in `key_questions` from CSV: - -- Ask the user naturally in conversational style -- Listen for their response and ask clarifying follow-ups -- Connect answers to product value proposition - -**Example Flow:** -If key_questions = "Endpoints needed?;Authentication method?;Data formats?;Rate limits?;Versioning?;SDK needed?" - -Ask naturally: - -- "What are the main endpoints your API needs to expose?" -- "How will you handle authentication and authorization?" -- "What data formats will you support for requests and responses?" - -### 3. Document Project-Type Specific Requirements - -Based on user answers to key_questions, synthesize comprehensive requirements: - -#### Requirement Categories: - -Cover the areas indicated by `required_sections` from CSV: - -- Synthesize what was discovered for each required section -- Document specific requirements, constraints, and decisions -- Connect to product differentiator when relevant - -#### Skip Irrelevant Sections: - -Skip areas indicated by `skip_sections` from CSV to avoid wasting time on irrelevant aspects. - -### 4. Generate Dynamic Content Sections - -Parse `required_sections` list from the matched CSV row. For each section name, generate corresponding content: - -#### Common CSV Section Mappings: - -- "endpoint_specs" or "endpoint_specification" → API endpoints documentation -- "auth_model" or "authentication_model" → Authentication approach -- "platform_reqs" or "platform_requirements" → Platform support needs -- "device_permissions" or "device_features" → Device capabilities -- "tenant_model" → Multi-tenancy approach -- "rbac_matrix" or "permission_matrix" → Permission structure - -#### Template Variable Strategy: - -- For sections matching common template variables: generate specific content -- For sections without template matches: include in main project_type_requirements -- Hybrid approach balances template structure with CSV-driven flexibility - -### 5. Generate Project-Type Content - -Prepare the content to append to the document: - -#### Content Structure: - -When saving to document, append these Level 2 and Level 3 sections: - -```markdown -## [Project Type] Specific Requirements - -### Project-Type Overview - -[Project type summary based on conversation] - -### Technical Architecture Considerations - -[Technical architecture requirements based on conversation] - -[Dynamic sections based on CSV and conversation] - -### Implementation Considerations - -[Implementation specific requirements based on conversation] -``` - -### 6. Present MENU OPTIONS - -Present the project-type content for review, then display menu: - -"Based on our conversation and best practices for this product type, I've documented the {project_type}-specific requirements for {{project_name}}. - -**Here's what I'll add to the document:** - -[Show the complete markdown content from section 5] - -**What would you like to do?**" - -Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Scoping (Step 8 of 11)" - -#### Menu Handling Logic: -- IF A: Read fully and follow: {advancedElicitationTask} with the current project-type content, process the enhanced technical insights that come back, ask user "Accept these improvements to the technical requirements? (y/n)", if yes update content with improvements then redisplay menu, if no keep original content then redisplay menu -- IF P: Read fully and follow: {partyModeWorkflow} with the current project-type requirements, process the collaborative technical expertise and validation, ask user "Accept these changes to the technical requirements? (y/n)", if yes update content with improvements then redisplay menu, if no keep original content then redisplay menu -- IF C: Append the final content to {outputFile}, update frontmatter by adding this step name to the end of the stepsCompleted array, then read fully and follow: {nextStepFile} -- IF Any other: help user respond, then redisplay menu - -#### EXECUTION RULES: -- ALWAYS halt and wait for user input after presenting menu -- ONLY proceed to next step when user selects 'C' -- After other menu items execution, return to this menu - -## APPEND TO DOCUMENT: - -When user selects 'C', append the content directly to the document using the structure from previous steps. - -## SUCCESS METRICS: - -✅ Project-type configuration loaded and used effectively -✅ All key questions from CSV explored with user input -✅ Required sections generated per CSV configuration -✅ Skip sections properly avoided to save time -✅ Technical requirements connected to product value -✅ A/P/C menu presented and handled correctly -✅ Content properly appended to document when C selected - -## FAILURE MODES: - -❌ Not loading or using project-type CSV configuration -❌ Missing key questions from CSV in discovery process -❌ Not generating required sections per CSV configuration -❌ Documenting sections that should be skipped per CSV -❌ Creating generic content without project-type specificity -❌ Not presenting A/P/C menu after content generation -❌ Appending content without user selecting 'C' - -❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions -❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file -❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols - -## PROJECT-TYPE EXAMPLES: - -**For api_backend:** - -- Focus on endpoints, authentication, data schemas, rate limiting -- Skip visual design and user journey sections -- Generate API specification documentation - -**For mobile_app:** - -- Focus on platform requirements, device permissions, offline mode -- Skip API endpoint documentation unless needed -- Generate mobile-specific technical requirements - -**For saas_b2b:** - -- Focus on multi-tenancy, permissions, integrations -- Skip mobile-first considerations unless relevant -- Generate enterprise-specific requirements - -## NEXT STEP: - -After user selects 'C' and content is saved to document, load `{nextStepFile}` to define project scope. - -Remember: Do NOT proceed to step-08 (Scoping) until user explicitly selects 'C' from the A/P/C menu and content is saved! diff --git a/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-08-scoping.md b/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-08-scoping.md deleted file mode 100644 index 071f0622d..000000000 --- a/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-08-scoping.md +++ /dev/null @@ -1,229 +0,0 @@ ---- -name: 'step-08-scoping' -description: 'Define MVP boundaries and prioritize features across development phases' - -# File References -nextStepFile: '{project-root}/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-09-functional.md' -outputFile: '{planning_artifacts}/prd.md' - -# Task References -advancedElicitationTask: 'skill:bmad-advanced-elicitation' -partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md' ---- - -# Step 8: Scoping Exercise - MVP & Future Features - -**Progress: Step 8 of 11** - Next: Functional Requirements - -## MANDATORY EXECUTION RULES (READ FIRST): - -- 🛑 NEVER generate content without user input - -- 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions -- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding -- ✅ ALWAYS treat this as collaborative discovery between PM peers -- 📋 YOU ARE A FACILITATOR, not a content generator -- 💬 FOCUS on strategic scope decisions that keep projects viable -- 🎯 EMPHASIZE lean MVP thinking while preserving long-term vision -- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` -- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}` - -## EXECUTION PROTOCOLS: - -- 🎯 Show your analysis before taking any action -- 📚 Review the complete PRD document built so far -- ⚠️ Present A/P/C menu after generating scoping decisions -- 💾 ONLY save when user chooses C (Continue) -- 📖 Update output file frontmatter, adding this step name to the end of the list of stepsCompleted -- 🚫 FORBIDDEN to load next step until C is selected - - -## CONTEXT BOUNDARIES: - -- Complete PRD document built so far is available for review -- User journeys, success criteria, and domain requirements are documented -- Focus on strategic scope decisions, not feature details -- Balance between user value and implementation feasibility - -## YOUR TASK: - -Conduct comprehensive scoping exercise to define MVP boundaries and prioritize features across development phases. - -## SCOPING SEQUENCE: - -### 1. Review Current PRD State - -Analyze everything documented so far: -- Present synthesis of established vision, success criteria, journeys -- Assess domain and innovation focus -- Evaluate scope implications: simple MVP, medium, or complex project -- Ask if initial assessment feels right or if they see it differently - -### 2. Define MVP Strategy - -Facilitate strategic MVP decisions: -- Explore MVP philosophy options: problem-solving, experience, platform, or revenue MVP -- Ask critical questions: - - What's the minimum that would make users say 'this is useful'? - - What would make investors/partners say 'this has potential'? - - What's the fastest path to validated learning? -- Guide toward appropriate MVP approach for their product - -### 3. Scoping Decision Framework - -Use structured decision-making for scope: - -**Must-Have Analysis:** -- Guide identification of absolute MVP necessities -- For each journey and success criterion, ask: - - Without this, does the product fail? - - Can this be manual initially? - - Is this a deal-breaker for early adopters? -- Analyze journeys for MVP essentials - -**Nice-to-Have Analysis:** -- Identify what could be added later: - - Features that enhance but aren't essential - - User types that can be added later - - Advanced functionality that builds on MVP -- Ask what features could be added in versions 2, 3, etc. - -### 4. Progressive Feature Roadmap - -Create phased development approach: -- Guide mapping of features across development phases -- Structure as Phase 1 (MVP), Phase 2 (Growth), Phase 3 (Vision) -- Ensure clear progression and dependencies - -- Core user value delivery -- Essential user journeys -- Basic functionality that works reliably - -**Phase 2: Growth** - -- Additional user types -- Enhanced features -- Scale improvements - -**Phase 3: Expansion** - -- Advanced capabilities -- Platform features -- New markets or use cases - -**Where does your current vision fit in this development sequence?**" - -### 5. Risk-Based Scoping - -Identify and mitigate scoping risks: - -**Technical Risks:** -"Looking at your innovation and domain requirements: - -- What's the most technically challenging aspect? -- Could we simplify the initial implementation? -- What's the riskiest assumption about technology feasibility?" - -**Market Risks:** - -- What's the biggest market risk? -- How does the MVP address this? -- What learning do we need to de-risk this?" - -**Resource Risks:** - -- What if we have fewer resources than planned? -- What's the absolute minimum team size needed? -- Can we launch with a smaller feature set?" - -### 6. Generate Scoping Content - -Prepare comprehensive scoping section: - -#### Content Structure: - -```markdown -## Project Scoping & Phased Development - -### MVP Strategy & Philosophy - -**MVP Approach:** {{chosen_mvp_approach}} -**Resource Requirements:** {{mvp_team_size_and_skills}} - -### MVP Feature Set (Phase 1) - -**Core User Journeys Supported:** -{{essential_journeys_for_mvp}} - -**Must-Have Capabilities:** -{{list_of_essential_mvp_features}} - -### Post-MVP Features - -**Phase 2 (Post-MVP):** -{{planned_growth_features}} - -**Phase 3 (Expansion):** -{{planned_expansion_features}} - -### Risk Mitigation Strategy - -**Technical Risks:** {{mitigation_approach}} -**Market Risks:** {{validation_approach}} -**Resource Risks:** {{contingency_approach}} -``` - -### 7. Present MENU OPTIONS - -Present the scoping decisions for review, then display menu: -- Show strategic scoping plan (using structure from step 6) -- Highlight MVP boundaries and phased roadmap -- Ask if they'd like to refine further, get other perspectives, or proceed -- Present menu options naturally as part of conversation - -Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Functional Requirements (Step 9 of 11)" - -#### Menu Handling Logic: -- IF A: Read fully and follow: {advancedElicitationTask} with the current scoping analysis, process the enhanced insights that come back, ask user if they accept the improvements, if yes update content then redisplay menu, if no keep original content then redisplay menu -- IF P: Read fully and follow: {partyModeWorkflow} with the scoping context, process the collaborative insights on MVP and roadmap decisions, ask user if they accept the changes, if yes update content then redisplay menu, if no keep original content then redisplay menu -- IF C: Append the final content to {outputFile}, update frontmatter by adding this step name to the end of the stepsCompleted array, then read fully and follow: {nextStepFile} -- IF Any other: help user respond, then redisplay menu - -#### EXECUTION RULES: -- ALWAYS halt and wait for user input after presenting menu -- ONLY proceed to next step when user selects 'C' -- After other menu items execution, return to this menu - -## APPEND TO DOCUMENT: - -When user selects 'C', append the content directly to the document using the structure from step 6. - -## SUCCESS METRICS: - -✅ Complete PRD document analyzed for scope implications -✅ Strategic MVP approach defined and justified -✅ Clear MVP feature boundaries established -✅ Phased development roadmap created -✅ Key risks identified and mitigation strategies defined -✅ User explicitly agrees to scope decisions -✅ A/P/C menu presented and handled correctly -✅ Content properly appended to document when C selected - -## FAILURE MODES: - -❌ Not analyzing the complete PRD before making scoping decisions -❌ Making scope decisions without strategic rationale -❌ Not getting explicit user agreement on MVP boundaries -❌ Missing critical risk analysis -❌ Not creating clear phased development approach -❌ Not presenting A/P/C menu after content generation - -❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions -❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file -❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols - -## NEXT STEP: - -After user selects 'C' and content is saved to document, load {nextStepFile}. - -Remember: Do NOT proceed to step-09 until user explicitly selects 'C' from the A/P/C menu and content is saved! diff --git a/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-09-functional.md b/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-09-functional.md deleted file mode 100644 index 552a0a8ce..000000000 --- a/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-09-functional.md +++ /dev/null @@ -1,232 +0,0 @@ ---- -name: 'step-09-functional' -description: 'Synthesize all discovery into comprehensive functional requirements' - -# File References -nextStepFile: '{project-root}/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-10-nonfunctional.md' -outputFile: '{planning_artifacts}/prd.md' - -# Task References -advancedElicitationTask: 'skill:bmad-advanced-elicitation' -partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md' ---- - -# Step 9: Functional Requirements Synthesis - -**Progress: Step 9 of 11** - Next: Non-Functional Requirements - -## MANDATORY EXECUTION RULES (READ FIRST): - -- 🛑 NEVER generate content without user input - -- 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions -- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding -- ✅ ALWAYS treat this as collaborative discovery between PM peers -- 📋 YOU ARE A FACILITATOR, not a content generator -- 💬 FOCUS on creating comprehensive capability inventory for the product -- 🎯 CRITICAL: This is THE CAPABILITY CONTRACT for all downstream work -- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` -- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}` - -## EXECUTION PROTOCOLS: - -- 🎯 Show your analysis before taking any action -- ⚠️ Present A/P/C menu after generating functional requirements -- 💾 ONLY save when user chooses C (Continue) -- 📖 Update output file frontmatter, adding this step name to the end of the list of stepsCompleted -- 🚫 FORBIDDEN to load next step until C is selected - - -## CONTEXT BOUNDARIES: - -- Current document and frontmatter from previous steps are available -- ALL previous content (executive summary, success criteria, journeys, domain, innovation, project-type) must be referenced -- No additional data files needed for this step -- Focus on capabilities, not implementation details - -## CRITICAL IMPORTANCE: - -**This section defines THE CAPABILITY CONTRACT for the entire product:** - -- UX designers will ONLY design what's listed here -- Architects will ONLY support what's listed here -- Epic breakdown will ONLY implement what's listed here -- If a capability is missing from FRs, it will NOT exist in the final product - -## FUNCTIONAL REQUIREMENTS SYNTHESIS SEQUENCE: - -### 1. Understand FR Purpose and Usage - -Start by explaining the critical role of functional requirements: - -**Purpose:** -FRs define WHAT capabilities the product must have. They are the complete inventory of user-facing and system capabilities that deliver the product vision. - -**Critical Properties:** -✅ Each FR is a testable capability -✅ Each FR is implementation-agnostic (could be built many ways) -✅ Each FR specifies WHO and WHAT, not HOW -✅ No UI details, no performance numbers, no technology choices -✅ Comprehensive coverage of capability areas - -**How They Will Be Used:** - -1. UX Designer reads FRs → designs interactions for each capability -2. Architect reads FRs → designs systems to support each capability -3. PM reads FRs → creates epics and stories to implement each capability - -### 2. Review Existing Content for Capability Extraction - -Systematically review all previous sections to extract capabilities: - -**Extract From:** - -- Executive Summary → Core product differentiator capabilities -- Success Criteria → Success-enabling capabilities -- User Journeys → Journey-revealed capabilities -- Domain Requirements → Compliance and regulatory capabilities -- Innovation Patterns → Innovative feature capabilities -- Project-Type Requirements → Technical capability needs - -### 3. Organize Requirements by Capability Area - -Group FRs by logical capability areas (NOT by technology or layer): - -**Good Grouping Examples:** - -- ✅ "User Management" (not "Authentication System") -- ✅ "Content Discovery" (not "Search Algorithm") -- ✅ "Team Collaboration" (not "WebSocket Infrastructure") - -**Target 5-8 Capability Areas** for typical projects. - -### 4. Generate Comprehensive FR List - -Create complete functional requirements using this format: - -**Format:** - -- FR#: [Actor] can [capability] [context/constraint if needed] -- Number sequentially (FR1, FR2, FR3...) -- Aim for 20-50 FRs for typical projects - -**Altitude Check:** -Each FR should answer "WHAT capability exists?" NOT "HOW it's implemented?" - -**Examples:** - -- ✅ "Users can customize appearance settings" -- ❌ "Users can toggle light/dark theme with 3 font size options stored in LocalStorage" - -### 5. Self-Validation Process - -Before presenting to user, validate the FR list: - -**Completeness Check:** - -1. "Did I cover EVERY capability mentioned in the MVP scope section?" -2. "Did I include domain-specific requirements as FRs?" -3. "Did I cover the project-type specific needs?" -4. "Could a UX designer read ONLY the FRs and know what to design?" -5. "Could an Architect read ONLY the FRs and know what to support?" -6. "Are there any user actions or system behaviors we discussed that have no FR?" - -**Altitude Check:** - -1. "Am I stating capabilities (WHAT) or implementation (HOW)?" -2. "Am I listing acceptance criteria or UI specifics?" (Remove if yes) -3. "Could this FR be implemented 5 different ways?" (Good - means it's not prescriptive) - -**Quality Check:** - -1. "Is each FR clear enough that someone could test whether it exists?" -2. "Is each FR independent (not dependent on reading other FRs to understand)?" -3. "Did I avoid vague terms like 'good', 'fast', 'easy'?" (Use NFRs for quality attributes) - -### 6. Generate Functional Requirements Content - -Prepare the content to append to the document: - -#### Content Structure: - -When saving to document, append these Level 2 and Level 3 sections: - -```markdown -## Functional Requirements - -### [Capability Area Name] - -- FR1: [Specific Actor] can [specific capability] -- FR2: [Specific Actor] can [specific capability] -- FR3: [Specific Actor] can [specific capability] - -### [Another Capability Area] - -- FR4: [Specific Actor] can [specific capability] -- FR5: [Specific Actor] can [specific capability] - -[Continue for all capability areas discovered in conversation] -``` - -### 7. Present MENU OPTIONS - -Present the functional requirements for review, then display menu: -- Show synthesized functional requirements (using structure from step 6) -- Emphasize this is the capability contract for all downstream work -- Highlight that every feature must trace back to these requirements -- Ask if they'd like to refine further, get other perspectives, or proceed -- Present menu options naturally as part of conversation - -**What would you like to do?**" - -Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Non-Functional Requirements (Step 10 of 11)" - -#### Menu Handling Logic: -- IF A: Read fully and follow: {advancedElicitationTask} with the current FR list, process the enhanced capability coverage that comes back, ask user if they accept the additions, if yes update content then redisplay menu, if no keep original content then redisplay menu -- IF P: Read fully and follow: {partyModeWorkflow} with the current FR list, process the collaborative capability validation and additions, ask user if they accept the changes, if yes update content then redisplay menu, if no keep original content then redisplay menu -- IF C: Append the final content to {outputFile}, update frontmatter by adding this step name to the end of the stepsCompleted array, then read fully and follow: {nextStepFile} -- IF Any other: help user respond, then redisplay menu - -#### EXECUTION RULES: -- ALWAYS halt and wait for user input after presenting menu -- ONLY proceed to next step when user selects 'C' -- After other menu items execution, return to this menu - -## APPEND TO DOCUMENT: - -When user selects 'C', append the content directly to the document using the structure from step 6. - -## SUCCESS METRICS: - -✅ All previous discovery content synthesized into FRs -✅ FRs organized by capability areas (not technology) -✅ Each FR states WHAT capability exists, not HOW to implement -✅ Comprehensive coverage with 20-50 FRs typical -✅ Altitude validation ensures implementation-agnostic requirements -✅ Completeness check validates coverage of all discussed capabilities -✅ A/P/C menu presented and handled correctly -✅ Content properly appended to document when C selected - -## FAILURE MODES: - -❌ Missing capabilities from previous discovery sections -❌ Organizing FRs by technology instead of capability areas -❌ Including implementation details or UI specifics in FRs -❌ Not achieving comprehensive coverage of discussed capabilities -❌ Using vague terms instead of testable capabilities -❌ Not presenting A/P/C menu after content generation -❌ Appending content without user selecting 'C' - -❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions -❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file -❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols - -## CAPABILITY CONTRACT REMINDER: - -Emphasize to user: "This FR list is now binding. Any feature not listed here will not exist in the final product unless we explicitly add it. This is why it's critical to ensure completeness now." - -## NEXT STEP: - -After user selects 'C' and content is saved to document, load {nextStepFile} to define non-functional requirements. - -Remember: Do NOT proceed to step-10 until user explicitly selects 'C' from the A/P/C menu and content is saved! diff --git a/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-10-nonfunctional.md b/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-10-nonfunctional.md deleted file mode 100644 index e036bc97e..000000000 --- a/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-10-nonfunctional.md +++ /dev/null @@ -1,243 +0,0 @@ ---- -name: 'step-10-nonfunctional' -description: 'Define quality attributes that matter for this specific product' - -# File References -nextStepFile: '{project-root}/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-11-polish.md' -outputFile: '{planning_artifacts}/prd.md' - -# Task References -advancedElicitationTask: 'skill:bmad-advanced-elicitation' -partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md' ---- - -# Step 10: Non-Functional Requirements - -**Progress: Step 10 of 12** - Next: Polish Document - -## MANDATORY EXECUTION RULES (READ FIRST): - -- 🛑 NEVER generate content without user input - -- 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions -- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding -- ✅ ALWAYS treat this as collaborative discovery between PM peers -- 📋 YOU ARE A FACILITATOR, not a content generator -- 💬 FOCUS on quality attributes that matter for THIS specific product -- 🎯 SELECTIVE: Only document NFRs that actually apply to the product -- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` -- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}` - -## EXECUTION PROTOCOLS: - -- 🎯 Show your analysis before taking any action -- ⚠️ Present A/P/C menu after generating NFR content -- 💾 ONLY save when user chooses C (Continue) -- 📖 Update output file frontmatter, adding this step name to the end of the list of stepsCompleted -- 🚫 FORBIDDEN to load next step until C is selected - - -## CONTEXT BOUNDARIES: - -- Current document and frontmatter from previous steps are available -- Functional requirements already defined and will inform NFRs -- Domain and project-type context will guide which NFRs matter -- Focus on specific, measurable quality criteria - -## YOUR TASK: - -Define non-functional requirements that specify quality attributes for the product, focusing only on what matters for THIS specific product. - -## NON-FUNCTIONAL REQUIREMENTS SEQUENCE: - -### 1. Explain NFR Purpose and Scope - -Start by clarifying what NFRs are and why we're selective: - -**NFR Purpose:** -NFRs define HOW WELL the system must perform, not WHAT it must do. They specify quality attributes like performance, security, scalability, etc. - -**Selective Approach:** -We only document NFRs that matter for THIS product. If a category doesn't apply, we skip it entirely. This prevents requirement bloat and focuses on what's actually important. - -### 2. Assess Product Context for NFR Relevance - -Evaluate which NFR categories matter based on product context: - -**Quick Assessment Questions:** - -- **Performance**: Is there user-facing impact of speed? -- **Security**: Are we handling sensitive data or payments? -- **Scalability**: Do we expect rapid user growth? -- **Accessibility**: Are we serving broad public audiences? -- **Integration**: Do we need to connect with other systems? -- **Reliability**: Would downtime cause significant problems? - -### 3. Explore Relevant NFR Categories - -For each relevant category, conduct targeted discovery: - -#### Performance NFRs (If relevant): - -Explore performance requirements: -- What parts of the system need to be fast for users to be successful? -- Are there specific response time expectations? -- What happens if performance is slower than expected? -- Are there concurrent user scenarios we need to support? - -#### Security NFRs (If relevant): - -Explore security requirements: -- What data needs to be protected? -- Who should have access to what? -- What are the security risks we need to mitigate? -- Are there compliance requirements (GDPR, HIPAA, PCI-DSS)? - -#### Scalability NFRs (If relevant): - -Explore scalability requirements: -- How many users do we expect initially? Long-term? -- Are there seasonal or event-based traffic spikes? -- What happens if we exceed our capacity? -- What growth scenarios should we plan for? - -#### Accessibility NFRs (If relevant): - -Explore accessibility requirements: -- Are we serving users with visual, hearing, or motor impairments? -- Are there legal accessibility requirements (WCAG, Section 508)? -- What accessibility features are most important for our users? - -#### Integration NFRs (If relevant): - -Explore integration requirements: -- What external systems do we need to connect with? -- Are there APIs or data formats we must support? -- How reliable do these integrations need to be? - -### 4. Make NFRs Specific and Measurable - -For each relevant NFR category, ensure criteria are testable: - -**From Vague to Specific:** - -- NOT: "The system should be fast" → "User actions complete within 2 seconds" -- NOT: "The system should be secure" → "All data is encrypted at rest and in transit" -- NOT: "The system should scale" → "System supports 10x user growth with <10% performance degradation" - -### 5. Generate NFR Content (Only Relevant Categories) - -Prepare the content to append to the document: - -#### Content Structure (Dynamic based on relevance): - -When saving to document, append these Level 2 and Level 3 sections (only include sections that are relevant): - -```markdown -## Non-Functional Requirements - -### Performance - -[Performance requirements based on conversation - only include if relevant] - -### Security - -[Security requirements based on conversation - only include if relevant] - -### Scalability - -[Scalability requirements based on conversation - only include if relevant] - -### Accessibility - -[Accessibility requirements based on conversation - only include if relevant] - -### Integration - -[Integration requirements based on conversation - only include if relevant] -``` - -### 6. Present MENU OPTIONS - -Present the non-functional requirements for review, then display menu: -- Show defined NFRs (using structure from step 5) -- Note that only relevant categories were included -- Emphasize NFRs specify how well the system needs to perform -- Ask if they'd like to refine further, get other perspectives, or proceed -- Present menu options naturally as part of conversation - -Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Polish Document (Step 11 of 12)" - -#### Menu Handling Logic: -- IF A: Read fully and follow: {advancedElicitationTask} with the current NFR content, process the enhanced quality attribute insights that come back, ask user if they accept the improvements, if yes update content then redisplay menu, if no keep original content then redisplay menu -- IF P: Read fully and follow: {partyModeWorkflow} with the current NFR list, process the collaborative technical validation and additions, ask user if they accept the changes, if yes update content then redisplay menu, if no keep original content then redisplay menu -- IF C: Append the final content to {outputFile}, update frontmatter by adding this step name to the end of the stepsCompleted array, then read fully and follow: {nextStepFile} -- IF Any other: help user respond, then redisplay menu - -#### EXECUTION RULES: -- ALWAYS halt and wait for user input after presenting menu -- ONLY proceed to next step when user selects 'C' -- After other menu items execution, return to this menu - -## APPEND TO DOCUMENT: - -When user selects 'C', append the content directly to the document using the structure from step 5. - -## SUCCESS METRICS: - -✅ Only relevant NFR categories documented (no requirement bloat) -✅ Each NFR is specific and measurable -✅ NFRs connected to actual user needs and business context -✅ Vague requirements converted to testable criteria -✅ Domain-specific compliance requirements included if relevant -✅ A/P/C menu presented and handled correctly -✅ Content properly appended to document when C selected - -## FAILURE MODES: - -❌ Documenting NFR categories that don't apply to the product -❌ Leaving requirements vague and unmeasurable -❌ Not connecting NFRs to actual user or business needs -❌ Missing domain-specific compliance requirements -❌ Creating overly prescriptive technical requirements -❌ Not presenting A/P/C menu after content generation -❌ Appending content without user selecting 'C' - -❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions -❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file -❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols - -## NFR CATEGORY GUIDANCE: - -**Include Performance When:** - -- User-facing response times impact success -- Real-time interactions are critical -- Performance is a competitive differentiator - -**Include Security When:** - -- Handling sensitive user data -- Processing payments or financial information -- Subject to compliance regulations -- Protecting intellectual property - -**Include Scalability When:** - -- Expecting rapid user growth -- Handling variable traffic patterns -- Supporting enterprise-scale usage -- Planning for market expansion - -**Include Accessibility When:** - -- Serving broad public audiences -- Subject to accessibility regulations -- Targeting users with disabilities -- B2B customers with accessibility requirements - -## NEXT STEP: - -After user selects 'C' and content is saved to document, load {nextStepFile} to finalize the PRD and complete the workflow. - -Remember: Do NOT proceed to step-11 until user explicitly selects 'C' from the A/P/C menu and content is saved! diff --git a/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-11-polish.md b/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-11-polish.md deleted file mode 100644 index d0788ebf1..000000000 --- a/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-11-polish.md +++ /dev/null @@ -1,235 +0,0 @@ ---- -name: 'step-11-polish' -description: 'Optimize and polish the complete PRD document for flow, coherence, and readability' - -# File References -nextStepFile: '{project-root}/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-12-complete.md' -outputFile: '{planning_artifacts}/prd.md' -purposeFile: '{project-root}/_bmad/bmm/workflows/2-plan-workflows/create-prd/data/prd-purpose.md' - -# Task References -advancedElicitationTask: 'skill:bmad-advanced-elicitation' -partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md' ---- - -# Step 11: Document Polish - -**Progress: Step 11 of 12** - Next: Complete PRD - -## MANDATORY EXECUTION RULES (READ FIRST): - -- 🛑 CRITICAL: Load the ENTIRE document before making changes -- 📖 CRITICAL: Read complete step file before taking action -- 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read -- ✅ This is a POLISH step - optimize existing content -- 📋 IMPROVE flow, coherence, and readability -- 💬 PRESERVE user's voice and intent -- 🎯 MAINTAIN all essential information while improving presentation -- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` -- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}` - -## EXECUTION PROTOCOLS: - -- 🎯 Load complete document first -- 📝 Review for flow and coherence issues -- ✂️ Reduce duplication while preserving essential info -- 📖 Ensure proper ## Level 2 headers throughout -- 💾 Save optimized document -- ⚠️ Present A/P/C menu after polish -- 🚫 DO NOT skip review steps - -## CONTEXT BOUNDARIES: - -- Complete PRD document exists from all previous steps -- Document may have duplication from progressive append -- Sections may not flow smoothly together -- Level 2 headers ensure document can be split if needed -- Focus on readability and coherence - -## YOUR TASK: - -Optimize the complete PRD document for flow, coherence, and professional presentation while preserving all essential information. - -## DOCUMENT POLISH SEQUENCE: - -### 1. Load Context and Document - -**CRITICAL:** Load the PRD purpose document first: - -- Read `{purposeFile}` to understand what makes a great BMAD PRD -- Internalize the philosophy: information density, traceability, measurable requirements -- Keep the dual-audience nature (humans + LLMs) in mind - -**Then Load the PRD Document:** - -- Read `{outputFile}` completely from start to finish -- Understand the full document structure and content -- Identify all sections and their relationships -- Note areas that need attention - -### 2. Document Quality Review - -Review the entire document with PRD purpose principles in mind: - -**Information Density:** -- Are there wordy phrases that can be condensed? -- Is conversational padding present? -- Can sentences be more direct and concise? - -**Flow and Coherence:** -- Do sections transition smoothly? -- Are there jarring topic shifts? -- Does the document tell a cohesive story? -- Is the progression logical for readers? - -**Duplication Detection:** -- Are ideas repeated across sections? -- Is the same information stated multiple times? -- Can redundant content be consolidated? -- Are there contradictory statements? - -**Header Structure:** -- Are all main sections using ## Level 2 headers? -- Is the hierarchy consistent (##, ###, ####)? -- Can sections be easily extracted or referenced? -- Are headers descriptive and clear? - -**Readability:** -- Are sentences clear and concise? -- Is the language consistent throughout? -- Are technical terms used appropriately? -- Would stakeholders find this easy to understand? - -### 2b. Brainstorming Reconciliation (if brainstorming input exists) - -**Check the PRD frontmatter `inputDocuments` for any brainstorming document** (e.g., `brainstorming-session*.md`, `brainstorming-report.md`). If a brainstorming document was used as input: - -1. **Load the brainstorming document** and extract all distinct ideas, themes, and recommendations -2. **Cross-reference against the PRD** — for each brainstorming idea, check if it landed in any PRD section (requirements, success criteria, user journeys, scope, etc.) -3. **Identify dropped ideas** — ideas from brainstorming that do not appear anywhere in the PRD. Pay special attention to: - - Tone, personality, and interaction design ideas (these are most commonly lost) - - Design philosophy and coaching approach ideas - - "What should this feel like" ideas (UX feel, not just UX function) - - Qualitative/soft ideas that don't map cleanly to functional requirements -4. **Present findings to user**: "These brainstorming ideas did not make it into the PRD: [list]. Should any be incorporated?" -5. **If user wants to incorporate dropped ideas**: Add them to the most appropriate PRD section (success criteria, non-functional requirements, or a new section if needed) - -**Why this matters**: Brainstorming documents are often long, and the PRD's structured template has an implicit bias toward concrete/structural ideas. Soft ideas (tone, philosophy, interaction feel) frequently get silently dropped because they don't map cleanly to FR/NFR format. - -### 3. Optimization Actions - -Make targeted improvements: - -**Improve Flow:** -- Add transition sentences between sections -- Smooth out jarring topic shifts -- Ensure logical progression -- Connect related concepts across sections - -**Reduce Duplication:** -- Consolidate repeated information -- Keep content in the most appropriate section -- Use cross-references instead of repetition -- Remove redundant explanations - -**Enhance Coherence:** -- Ensure consistent terminology throughout -- Align all sections with product differentiator -- Maintain consistent voice and tone -- Verify scope consistency across sections - -**Optimize Headers:** -- Ensure all main sections use ## Level 2 -- Make headers descriptive and action-oriented -- Check that headers follow consistent patterns -- Verify headers support document navigation - -### 4. Preserve Critical Information - -**While optimizing, ensure NOTHING essential is lost:** - -**Must Preserve:** -- All user success criteria -- All functional requirements (capability contract) -- All user journey narratives -- All scope decisions (MVP, Growth, Vision) -- All non-functional requirements -- Product differentiator and vision -- Domain-specific requirements -- Innovation analysis (if present) - -**Can Consolidate:** -- Repeated explanations of the same concept -- Redundant background information -- Multiple versions of similar content -- Overlapping examples - -### 5. Generate Optimized Document - -Create the polished version: - -**Polishing Process:** -1. Start with original document -2. Apply all optimization actions -3. Review to ensure nothing essential was lost -4. Verify improvements enhance readability -5. Prepare optimized version for review - -### 6. Present MENU OPTIONS - -Present the polished document for review, then display menu: -- Show what changed in the polish -- Highlight improvements made (flow, duplication, headers) -- Ask if they'd like to refine further, get other perspectives, or proceed -- Present menu options naturally as part of conversation - -Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Complete PRD (Step 12 of 12)" - -#### Menu Handling Logic: -- IF A: Read fully and follow: {advancedElicitationTask} with the polished document, process the enhanced refinements that come back, ask user "Accept these polish improvements? (y/n)", if yes update content with improvements then redisplay menu, if no keep original polish then redisplay menu -- IF P: Read fully and follow: {partyModeWorkflow} with the polished document, process the collaborative refinements to flow and coherence, ask user "Accept these polish changes? (y/n)", if yes update content with improvements then redisplay menu, if no keep original polish then redisplay menu -- IF C: Save the polished document to {outputFile}, update frontmatter by adding this step name to the end of the stepsCompleted array, then read fully and follow: {nextStepFile} -- IF Any other: help user respond, then redisplay menu - -#### EXECUTION RULES: -- ALWAYS halt and wait for user input after presenting menu -- ONLY proceed to next step when user selects 'C' -- After other menu items execution, return to this menu - -## APPEND TO DOCUMENT: - -When user selects 'C', replace the entire document content with the polished version. - -## SUCCESS METRICS: - -✅ Complete document loaded and reviewed -✅ Flow and coherence improved -✅ Duplication reduced while preserving essential information -✅ All main sections use ## Level 2 headers -✅ Transitions between sections are smooth -✅ User's voice and intent preserved -✅ Document is more readable and professional -✅ A/P/C menu presented and handled correctly -✅ Brainstorming reconciliation completed (if brainstorming input exists) -✅ Polished document saved when C selected - -## FAILURE MODES: - -❌ Loading only partial document (leads to incomplete polish) -❌ Removing essential information while reducing duplication -❌ Not preserving user's voice and intent -❌ Changing content instead of improving presentation -❌ Not ensuring ## Level 2 headers for main sections -❌ Making arbitrary style changes instead of coherence improvements -❌ Not presenting A/P/C menu for user approval -❌ Saving polished document without user selecting 'C' - -❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions -❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file -❌ **CRITICAL**: Making changes without complete understanding of document requirements - -## NEXT STEP: - -After user selects 'C' and polished document is saved, load `{project-root}/_bmad/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-12-complete.md` to complete the workflow. - -Remember: Do NOT proceed to step-12 until user explicitly selects 'C' from the A/P/C menu and polished document is saved! diff --git a/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-12-complete.md b/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-12-complete.md deleted file mode 100644 index 04204e8a9..000000000 --- a/src/bmm/workflows/2-plan-workflows/create-prd/steps-c/step-12-complete.md +++ /dev/null @@ -1,124 +0,0 @@ ---- -name: 'step-12-complete' -description: 'Complete the PRD workflow, update status files, and suggest next steps including validation' - -# File References -outputFile: '{planning_artifacts}/prd.md' -validationFlow: '../steps-v/step-v-01-discovery.md' ---- - -# Step 12: Workflow Completion - -**Final Step - Complete the PRD** - -## MANDATORY EXECUTION RULES (READ FIRST): - -- ✅ THIS IS A FINAL STEP - Workflow completion required -- 📖 CRITICAL: ALWAYS read the complete step file before taking any action -- 🛑 NO content generation - this is a wrap-up step -- 📋 FINALIZE document and update workflow status -- 💬 FOCUS on completion, validation options, and next steps -- 🎯 UPDATE workflow status files with completion information -- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` - -## EXECUTION PROTOCOLS: - -- 🎯 Show your analysis before taking any action -- 💾 Update the main workflow status file with completion information (if exists) -- 📖 Offer validation workflow options to user -- 🚫 DO NOT load additional steps after this one - -## TERMINATION STEP PROTOCOLS: - -- This is a FINAL step - workflow completion required -- Update workflow status file with finalized document -- Suggest validation and next workflow steps -- Mark workflow as complete in status tracking - -## CONTEXT BOUNDARIES: - -- Complete and polished PRD document is available from all previous steps -- Workflow frontmatter shows all completed steps including polish -- All collaborative content has been generated, saved, and optimized -- Focus on completion, validation options, and next steps - -## YOUR TASK: - -Complete the PRD workflow, update status files, offer validation options, and suggest next steps for the project. - -## WORKFLOW COMPLETION SEQUENCE: - -### 1. Announce Workflow Completion - -Inform user that the PRD is complete and polished: -- Celebrate successful completion of comprehensive PRD -- Summarize all sections that were created -- Highlight that document has been polished for flow and coherence -- Emphasize document is ready for downstream work - -### 2. Workflow Status Update - -Update the main workflow status file if there is one: - -- Load `{status_file}` from workflow configuration (if exists) -- Update workflow_status["prd"] = "{default_output_file}" -- Save file, preserving all comments and structure -- Mark current timestamp as completion time - -### 3. Validation Workflow Options - -Offer validation workflows to ensure PRD is ready for implementation: - -**Available Validation Workflows:** - -**Option 1: Check Implementation Readiness** (`{checkImplementationReadinessWorkflow}`) -- Validates PRD has all information needed for development -- Checks epic coverage completeness -- Reviews UX alignment with requirements -- Assesses epic quality and readiness -- Identifies gaps before architecture/design work begins - -**When to use:** Before starting technical architecture or epic breakdown - -**Option 2: Skip for Now** -- Proceed directly to next workflows (architecture, UX, epics) -- Validation can be done later if needed -- Some teams prefer to validate during architecture reviews - -### 4. Suggest Next Workflows - -PRD complete. Invoke the `bmad-help` skill. - -### 5. Final Completion Confirmation - -- Confirm completion with user and summarize what has been accomplished -- Document now contains: Executive Summary, Success Criteria, User Journeys, Domain Requirements (if applicable), Innovation Analysis (if applicable), Project-Type Requirements, Functional Requirements (capability contract), Non-Functional Requirements, and has been polished for flow and coherence -- Ask if they'd like to run validation workflow or proceed to next workflows - -## SUCCESS METRICS: - -✅ PRD document contains all required sections and has been polished -✅ All collaborative content properly saved and optimized -✅ Workflow status file updated with completion information (if exists) -✅ Validation workflow options clearly presented -✅ Clear next step guidance provided to user -✅ Document quality validation completed -✅ User acknowledges completion and understands next options - -## FAILURE MODES: - -❌ Not updating workflow status file with completion information (if exists) -❌ Not offering validation workflow options -❌ Missing clear next step guidance for user -❌ Not confirming document completeness with user -❌ Workflow not properly marked as complete in status tracking (if applicable) -❌ User unclear about what happens next or what validation options exist - -❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions -❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols - -## FINAL REMINDER to give the user: - -The polished PRD serves as the foundation for all subsequent product development activities. All design, architecture, and development work should trace back to the requirements and vision documented in this PRD - update it also as needed as you continue planning. - -**Congratulations on completing the Product Requirements Document for {{project_name}}!** 🎉 diff --git a/src/bmm/workflows/2-plan-workflows/create-prd/templates/prd-template.md b/src/bmm/workflows/2-plan-workflows/create-prd/templates/prd-template.md deleted file mode 100644 index d82219d2f..000000000 --- a/src/bmm/workflows/2-plan-workflows/create-prd/templates/prd-template.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -stepsCompleted: [] -inputDocuments: [] -workflowType: 'prd' ---- - -# Product Requirements Document - {{project_name}} - -**Author:** {{user_name}} -**Date:** {{date}} diff --git a/src/bmm/workflows/2-plan-workflows/create-prd/workflow-create-prd.md b/src/bmm/workflows/2-plan-workflows/create-prd/workflow-create-prd.md deleted file mode 100644 index f7dd26163..000000000 --- a/src/bmm/workflows/2-plan-workflows/create-prd/workflow-create-prd.md +++ /dev/null @@ -1,65 +0,0 @@ ---- -name: create-prd -description: 'Create a PRD from scratch. Use when the user says "lets create a product requirements document" or "I want to create a new PRD"' -standalone: false -main_config: '{project-root}/_bmad/bmm/config.yaml' -nextStep: './steps-c/step-01-init.md' ---- - -# PRD Create Workflow - -**Goal:** Create comprehensive PRDs through structured workflow facilitation. - -**Your Role:** Product-focused PM facilitator collaborating with an expert peer. - -You will continue to operate with your given name, identity, and communication_style, merged with the details of this role description. - -## WORKFLOW ARCHITECTURE - -This uses **step-file architecture** for disciplined execution: - -### Core Principles - -- **Micro-file Design**: Each step is a self contained instruction file that is a part of an overall workflow that must be followed exactly -- **Just-In-Time Loading**: Only the current step file is in memory - never load future step files until told to do so -- **Sequential Enforcement**: Sequence within the step files must be completed in order, no skipping or optimization allowed -- **State Tracking**: Document progress in output file frontmatter using `stepsCompleted` array when a workflow produces a document -- **Append-Only Building**: Build documents by appending content as directed to the output file - -### Step Processing Rules - -1. **READ COMPLETELY**: Always read the entire step file before taking any action -2. **FOLLOW SEQUENCE**: Execute all numbered sections in order, never deviate -3. **WAIT FOR INPUT**: If a menu is presented, halt and wait for user selection -4. **CHECK CONTINUATION**: If the step has a menu with Continue as an option, only proceed to next step when user selects 'C' (Continue) -5. **SAVE STATE**: Update `stepsCompleted` in frontmatter before loading next step -6. **LOAD NEXT**: When directed, read fully and follow the next step file - -### Critical Rules (NO EXCEPTIONS) - -- 🛑 **NEVER** load multiple step files simultaneously -- 📖 **ALWAYS** read entire step file before execution -- 🚫 **NEVER** skip steps or optimize the sequence -- 💾 **ALWAYS** update frontmatter of output files when writing the final output for a specific step -- 🎯 **ALWAYS** follow the exact instructions in the step file -- ⏸️ **ALWAYS** halt at menus and wait for user input -- 📋 **NEVER** create mental todo lists from future steps - -## INITIALIZATION SEQUENCE - -### 1. Configuration Loading - -Load and read full config from {main_config} and resolve: - -- `project_name`, `output_folder`, `planning_artifacts`, `user_name` -- `communication_language`, `document_output_language`, `user_skill_level` -- `date` as system-generated current datetime - -✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the configured `{communication_language}`. -✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}`. - -### 2. Route to Create Workflow - -"**Create Mode: Creating a new PRD from scratch.**" - -Read fully and follow: `{nextStep}` (steps-c/step-01-init.md) diff --git a/src/core/tasks/bmad-create-prd/steps-c/step-01-init.md b/src/core/tasks/bmad-create-prd/steps-c/step-01-init.md index 4b53688d0..8268e6a97 100644 --- a/src/core/tasks/bmad-create-prd/steps-c/step-01-init.md +++ b/src/core/tasks/bmad-create-prd/steps-c/step-01-init.md @@ -1,16 +1,3 @@ ---- -name: 'step-01-init' -description: 'Initialize the PRD workflow by detecting continuation state and setting up the document' - -# File References -nextStepFile: './step-02-discovery.md' -continueStepFile: './step-01b-continue.md' -outputFile: '{planning_artifacts}/prd.md' - -# Template Reference -prdTemplate: '../templates/prd-template.md' ---- - # Step 1: Workflow Initialization **Progress: Step 1 of 11** - Next: Project Discovery @@ -71,11 +58,11 @@ First, check if the output document already exists: ### 2. Handle Continuation (If Document Exists) -If the document exists and has frontmatter with `stepsCompleted` BUT `step-11-complete` is NOT in the list, follow the Continuation Protocol since the document is incomplete: +If the document exists and has frontmatter with `stepsCompleted` BUT `step-12-complete` is NOT in the list, follow the Continuation Protocol since the document is incomplete: **Continuation Protocol:** -- **STOP immediately** and load `{continueStepFile}` +- **STOP immediately** and load `./step-01b-continue.md` - Do not proceed with any initialization tasks - Let step-01b handle all continuation logic - This is an auto-proceed situation - no user choice needed @@ -89,7 +76,7 @@ If no document exists or no `stepsCompleted` in frontmatter: Discover and load context documents using smart discovery. Documents can be in the following locations: - {planning_artifacts}/** - {output_folder}/** -- {product_knowledge}/** +- {project_knowledge}/** - docs/** Also - when searching - documents can be a single markdown file, or a folder with an index and multiple files. For Example, if searching for `*foo*.md` and not found, also search for a folder called *foo*/index.md (which indicates sharded content) @@ -97,7 +84,7 @@ Also - when searching - documents can be a single markdown file, or a folder wit Try to discover the following: - Product Brief (`*brief*.md`) - Research Documents (`/*research*.md`) -- Project Documentation (generally multiple documents might be found for this in the `{product_knowledge}` or `docs` folder.) +- Project Documentation (generally multiple documents might be found for this in the `{project_knowledge}` or `docs` folder.) - Project Context (`**/project-context.md`) Confirm what you have found with the user, along with asking if the user wants to provide anything else. Only after this confirmation will you proceed to follow the loading rules @@ -114,7 +101,7 @@ Try to discover the following: **Document Setup:** -- Copy the template from `{prdTemplate}` to `{outputFile}` +- Copy the template from `../templates/prd-template.md` to `{outputFile}` - Initialize frontmatter with proper structure including inputDocuments array. #### C. Present Initialization Results @@ -151,7 +138,7 @@ Display menu after setup report: #### Menu Handling Logic: -- IF C: Update output file frontmatter, adding this step name to the end of the list of stepsCompleted, then read fully and follow: {nextStepFile} +- IF C: Update output file frontmatter, adding this step name to the end of the list of stepsCompleted, then read fully and follow: ./step-02-discovery.md - IF user provides additional files: Load them, update inputDocuments and documentCounts, redisplay report - IF user asks questions: Answer and redisplay menu @@ -162,7 +149,7 @@ Display menu after setup report: ## CRITICAL STEP COMPLETION NOTE -ONLY WHEN [C continue option] is selected and [frontmatter properly updated with this step added to stepsCompleted and documentCounts], will you then read fully and follow: `{nextStepFile}` to begin project discovery. +ONLY WHEN [C continue option] is selected and [frontmatter properly updated with this step added to stepsCompleted and documentCounts], will you then read fully and follow: `./step-02-discovery.md` to begin project discovery. --- diff --git a/src/core/tasks/bmad-create-prd/steps-c/step-01b-continue.md b/src/core/tasks/bmad-create-prd/steps-c/step-01b-continue.md index d4ae2911d..4351cc122 100644 --- a/src/core/tasks/bmad-create-prd/steps-c/step-01b-continue.md +++ b/src/core/tasks/bmad-create-prd/steps-c/step-01b-continue.md @@ -1,11 +1,3 @@ ---- -name: 'step-01b-continue' -description: 'Resume an interrupted PRD workflow from the last completed step' - -# File References -outputFile: '{planning_artifacts}/prd.md' ---- - # Step 1B: Workflow Continuation ## STEP GOAL: @@ -70,21 +62,38 @@ Review the frontmatter to understand: ### 3. Determine Next Step -**Simplified Next Step Logic:** -1. Get the last element from the `stepsCompleted` array (this is the filename of the last completed step, e.g., "step-03-success.md") -2. Load that step file and read its frontmatter -3. Extract the `nextStepFile` value from the frontmatter -4. That's the next step to load! +**Step Sequence Lookup:** + +Use the following ordered sequence to determine the next step from the last completed step: + +| Last Completed | Next Step | +|---|---| +| step-01-init.md | step-02-discovery.md | +| step-02-discovery.md | step-02b-vision.md | +| step-02b-vision.md | step-02c-executive-summary.md | +| step-02c-executive-summary.md | step-03-success.md | +| step-03-success.md | step-04-journeys.md | +| step-04-journeys.md | step-05-domain.md | +| step-05-domain.md | step-06-innovation.md | +| step-06-innovation.md | step-07-project-type.md | +| step-07-project-type.md | step-08-scoping.md | +| step-08-scoping.md | step-09-functional.md | +| step-09-functional.md | step-10-nonfunctional.md | +| step-10-nonfunctional.md | step-11-polish.md | +| step-11-polish.md | step-12-complete.md | + +1. Get the last element from the `stepsCompleted` array +2. Look it up in the table above to find the next step +3. That's the next step to load! **Example:** - If `stepsCompleted = ["step-01-init.md", "step-02-discovery.md", "step-03-success.md"]` - Last element is `"step-03-success.md"` -- Load `./step-03-success.md`, read its frontmatter -- Read fully and follow: `./step-04-journeys.md` +- Table lookup → next step is `./step-04-journeys.md` ### 4. Handle Workflow Completion -**If `stepsCompleted` array contains `"step-11-complete.md"`:** +**If `stepsCompleted` array contains `"step-12-complete.md"`:** "Great news! It looks like we've already completed the PRD workflow for {{project_name}}. The final document is ready at `{outputFile}` with all sections completed. @@ -104,7 +113,7 @@ What would be most helpful?" **Current Progress:** - Last completed: {last step filename from stepsCompleted array} -- Next up: {nextStepFile determined from that step's frontmatter} +- Next up: {next step from lookup table} - Context documents available: {len(inputDocuments)} files **Document Status:** @@ -119,7 +128,7 @@ Display: "**Select an Option:** [C] Continue to {next step name}" #### Menu Handling Logic: -- IF C: Read fully and follow the {nextStepFile} determined in step 3 +- IF C: Read fully and follow the next step determined from the lookup table in step 3 - IF Any other comments or queries: respond and redisplay menu #### EXECUTION RULES: @@ -129,7 +138,7 @@ Display: "**Select an Option:** [C] Continue to {next step name}" ## CRITICAL STEP COMPLETION NOTE -ONLY WHEN [C continue option] is selected and [current state confirmed], will you then read fully and follow: {nextStepFile} to resume the workflow. +ONLY WHEN [C continue option] is selected and [current state confirmed], will you then read fully and follow the next step (from the lookup table) to resume the workflow. --- @@ -146,7 +155,7 @@ ONLY WHEN [C continue option] is selected and [current state confirmed], will yo - Discovering new input documents instead of reloading existing ones - Modifying content from already completed steps -- Failing to extract nextStepFile from the last completed step's frontmatter +- Failing to determine the next step from the lookup table - Proceeding without user confirmation of current state **Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE. diff --git a/src/core/tasks/bmad-create-prd/steps-c/step-02-discovery.md b/src/core/tasks/bmad-create-prd/steps-c/step-02-discovery.md index 76c8915cb..0e56aa0d3 100644 --- a/src/core/tasks/bmad-create-prd/steps-c/step-02-discovery.md +++ b/src/core/tasks/bmad-create-prd/steps-c/step-02-discovery.md @@ -1,20 +1,3 @@ ---- -name: 'step-02-discovery' -description: 'Discover project type, domain, and context through collaborative dialogue' - -# File References -nextStepFile: './step-02b-vision.md' -outputFile: '{planning_artifacts}/prd.md' - -# Data Files -projectTypesCSV: '../data/project-types.csv' -domainComplexityCSV: '../data/domain-complexity.csv' - -# Task References -advancedElicitationTask: 'skill:bmad-advanced-elicitation' -partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md' ---- - # Step 2: Project Discovery **Progress: Step 2 of 13** - Next: Product Vision @@ -97,7 +80,7 @@ Read the frontmatter from `{outputFile}` to get document counts: **Attempt subprocess data lookup:** **Project Type Lookup:** -"Your task: Lookup data in {projectTypesCSV} +"Your task: Lookup data in ../data/project-types.csv **Search criteria:** - Find row where project_type matches {{detectedProjectType}} @@ -109,7 +92,7 @@ project_type, detection_signals **Do NOT return the entire CSV - only the matching row.**" **Domain Complexity Lookup:** -"Your task: Lookup data in {domainComplexityCSV} +"Your task: Lookup data in ../data/domain-complexity.csv **Search criteria:** - Find row where domain matches {{detectedDomain}} @@ -186,9 +169,9 @@ Present the project classification for review, then display menu: Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Product Vision (Step 2b of 13)" #### Menu Handling Logic: -- IF A: Read fully and follow: {advancedElicitationTask} with the current classification, process the enhanced insights that come back, ask user if they accept the improvements, if yes update classification then redisplay menu, if no keep original classification then redisplay menu -- IF P: Read fully and follow: {partyModeWorkflow} with the current classification, process the collaborative insights, ask user if they accept the changes, if yes update classification then redisplay menu, if no keep original classification then redisplay menu -- IF C: Save classification to {outputFile} frontmatter, add this step name to the end of stepsCompleted array, then read fully and follow: {nextStepFile} +- IF A: Read fully and follow: skill:bmad-advanced-elicitation with the current classification, process the enhanced insights that come back, ask user if they accept the improvements, if yes update classification then redisplay menu, if no keep original classification then redisplay menu +- IF P: Read fully and follow: {project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md with the current classification, process the collaborative insights, ask user if they accept the changes, if yes update classification then redisplay menu, if no keep original classification then redisplay menu +- IF C: Save classification to {outputFile} frontmatter, add this step name to the end of stepsCompleted array, then read fully and follow: ./step-02b-vision.md - IF Any other: help user respond, then redisplay menu #### EXECUTION RULES: @@ -198,7 +181,7 @@ Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Pr ## CRITICAL STEP COMPLETION NOTE -ONLY WHEN [C continue option] is selected and [classification saved to frontmatter], will you then read fully and follow: `{nextStepFile}` to explore product vision. +ONLY WHEN [C continue option] is selected and [classification saved to frontmatter], will you then read fully and follow: `./step-02b-vision.md` to explore product vision. --- diff --git a/src/core/tasks/bmad-create-prd/steps-c/step-02b-vision.md b/src/core/tasks/bmad-create-prd/steps-c/step-02b-vision.md index 6c9e31da0..aa2bee8d2 100644 --- a/src/core/tasks/bmad-create-prd/steps-c/step-02b-vision.md +++ b/src/core/tasks/bmad-create-prd/steps-c/step-02b-vision.md @@ -1,16 +1,3 @@ ---- -name: 'step-02b-vision' -description: 'Discover the product vision and differentiator through collaborative dialogue' - -# File References -nextStepFile: './step-02c-executive-summary.md' -outputFile: '{planning_artifacts}/prd.md' - -# Task References -advancedElicitationTask: 'skill:bmad-advanced-elicitation' -partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md' ---- - # Step 2b: Product Vision Discovery **Progress: Step 2b of 13** - Next: Executive Summary @@ -114,9 +101,9 @@ Present your understanding of the product vision for review, then display menu: Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Executive Summary (Step 2c of 13)" #### Menu Handling Logic: -- IF A: Read fully and follow: {advancedElicitationTask} with the current vision insights, process the enhanced insights that come back, ask user if they accept the improvements, if yes update understanding then redisplay menu, if no keep original understanding then redisplay menu -- IF P: Read fully and follow: {partyModeWorkflow} with the current vision insights, process the collaborative insights, ask user if they accept the changes, if yes update understanding then redisplay menu, if no keep original understanding then redisplay menu -- IF C: Update {outputFile} frontmatter by adding this step name to the end of stepsCompleted array, then read fully and follow: {nextStepFile} +- IF A: Read fully and follow: skill:bmad-advanced-elicitation with the current vision insights, process the enhanced insights that come back, ask user if they accept the improvements, if yes update understanding then redisplay menu, if no keep original understanding then redisplay menu +- IF P: Read fully and follow: {project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md with the current vision insights, process the collaborative insights, ask user if they accept the changes, if yes update understanding then redisplay menu, if no keep original understanding then redisplay menu +- IF C: Update {outputFile} frontmatter by adding this step name to the end of stepsCompleted array, then read fully and follow: ./step-02c-executive-summary.md - IF Any other: help user respond, then redisplay menu #### EXECUTION RULES: @@ -126,7 +113,7 @@ Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Ex ## CRITICAL STEP COMPLETION NOTE -ONLY WHEN [C continue option] is selected and [stepsCompleted updated], will you then read fully and follow: `{nextStepFile}` to generate the Executive Summary. +ONLY WHEN [C continue option] is selected and [stepsCompleted updated], will you then read fully and follow: `./step-02c-executive-summary.md` to generate the Executive Summary. --- diff --git a/src/core/tasks/bmad-create-prd/steps-c/step-02c-executive-summary.md b/src/core/tasks/bmad-create-prd/steps-c/step-02c-executive-summary.md index ed7b6b3ac..c50841d98 100644 --- a/src/core/tasks/bmad-create-prd/steps-c/step-02c-executive-summary.md +++ b/src/core/tasks/bmad-create-prd/steps-c/step-02c-executive-summary.md @@ -1,16 +1,3 @@ ---- -name: 'step-02c-executive-summary' -description: 'Generate and append the Executive Summary section to the PRD document' - -# File References -nextStepFile: './step-03-success.md' -outputFile: '{planning_artifacts}/prd.md' - -# Task References -advancedElicitationTask: 'skill:bmad-advanced-elicitation' -partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md' ---- - # Step 2c: Executive Summary Generation **Progress: Step 2c of 13** - Next: Success Criteria @@ -104,9 +91,9 @@ Present the executive summary content for user review, then display menu: Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Success Criteria (Step 3 of 13)" #### Menu Handling Logic: -- IF A: Read fully and follow: {advancedElicitationTask} with the current executive summary content, process the enhanced content that comes back, ask user if they accept the improvements, if yes update content then redisplay menu, if no keep original content then redisplay menu -- IF P: Read fully and follow: {partyModeWorkflow} with the current executive summary content, process the collaborative improvements, ask user if they accept the changes, if yes update content then redisplay menu, if no keep original content then redisplay menu -- IF C: Append the final content to {outputFile}, update frontmatter by adding this step name to the end of the stepsCompleted array, then read fully and follow: {nextStepFile} +- IF A: Read fully and follow: skill:bmad-advanced-elicitation with the current executive summary content, process the enhanced content that comes back, ask user if they accept the improvements, if yes update content then redisplay menu, if no keep original content then redisplay menu +- IF P: Read fully and follow: {project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md with the current executive summary content, process the collaborative improvements, ask user if they accept the changes, if yes update content then redisplay menu, if no keep original content then redisplay menu +- IF C: Append the final content to {outputFile}, update frontmatter by adding this step name to the end of the stepsCompleted array, then read fully and follow: ./step-03-success.md - IF Any other: help user respond, then redisplay menu #### EXECUTION RULES: @@ -139,7 +126,7 @@ Where: ## CRITICAL STEP COMPLETION NOTE -ONLY WHEN [C continue option] is selected and [content appended to document], will you then read fully and follow: `{nextStepFile}` to define success criteria. +ONLY WHEN [C continue option] is selected and [content appended to document], will you then read fully and follow: `./step-03-success.md` to define success criteria. --- diff --git a/src/core/tasks/bmad-create-prd/steps-c/step-03-success.md b/src/core/tasks/bmad-create-prd/steps-c/step-03-success.md index e1aa04edc..37baad1f1 100644 --- a/src/core/tasks/bmad-create-prd/steps-c/step-03-success.md +++ b/src/core/tasks/bmad-create-prd/steps-c/step-03-success.md @@ -1,16 +1,3 @@ ---- -name: 'step-03-success' -description: 'Define comprehensive success criteria covering user, business, and technical success' - -# File References -nextStepFile: './step-04-journeys.md' -outputFile: '{planning_artifacts}/prd.md' - -# Task References -advancedElicitationTask: 'skill:bmad-advanced-elicitation' -partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md' ---- - # Step 3: Success Criteria Definition **Progress: Step 3 of 11** - Next: User Journey Mapping @@ -176,9 +163,9 @@ Present the success criteria content for user review, then display menu: Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue to User Journey Mapping (Step 4 of 11)" #### Menu Handling Logic: -- IF A: Read fully and follow: {advancedElicitationTask} with the current success criteria content, process the enhanced success metrics that come back, ask user "Accept these improvements to the success criteria? (y/n)", if yes update content with improvements then redisplay menu, if no keep original content then redisplay menu -- IF P: Read fully and follow: {partyModeWorkflow} with the current success criteria, process the collaborative improvements to metrics and scope, ask user "Accept these changes to the success criteria? (y/n)", if yes update content with improvements then redisplay menu, if no keep original content then redisplay menu -- IF C: Append the final content to {outputFile}, update frontmatter by adding this step name to the end of the stepsCompleted array, then read fully and follow: {nextStepFile} +- IF A: Read fully and follow: skill:bmad-advanced-elicitation with the current success criteria content, process the enhanced success metrics that come back, ask user "Accept these improvements to the success criteria? (y/n)", if yes update content with improvements then redisplay menu, if no keep original content then redisplay menu +- IF P: Read fully and follow: {project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md with the current success criteria, process the collaborative improvements to metrics and scope, ask user "Accept these changes to the success criteria? (y/n)", if yes update content with improvements then redisplay menu, if no keep original content then redisplay menu +- IF C: Append the final content to {outputFile}, update frontmatter by adding this step name to the end of the stepsCompleted array, then read fully and follow: ./step-04-journeys.md - IF Any other: help user respond, then redisplay menu #### EXECUTION RULES: diff --git a/src/core/tasks/bmad-create-prd/steps-c/step-04-journeys.md b/src/core/tasks/bmad-create-prd/steps-c/step-04-journeys.md index 4dc16c456..f10ddf3a6 100644 --- a/src/core/tasks/bmad-create-prd/steps-c/step-04-journeys.md +++ b/src/core/tasks/bmad-create-prd/steps-c/step-04-journeys.md @@ -1,16 +1,3 @@ ---- -name: 'step-04-journeys' -description: 'Map ALL user types that interact with the system with narrative story-based journeys' - -# File References -nextStepFile: './step-05-domain.md' -outputFile: '{planning_artifacts}/prd.md' - -# Task References -advancedElicitationTask: 'skill:bmad-advanced-elicitation' -partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md' ---- - # Step 4: User Journey Mapping **Progress: Step 4 of 11** - Next: Domain Requirements @@ -156,9 +143,9 @@ Present the user journey content for review, then display menu: Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Domain Requirements (Step 5 of 11)" #### Menu Handling Logic: -- IF A: Read fully and follow: {advancedElicitationTask} with the current journey content, process the enhanced journey insights that come back, ask user "Accept these improvements to the user journeys? (y/n)", if yes update content with improvements then redisplay menu, if no keep original content then redisplay menu -- IF P: Read fully and follow: {partyModeWorkflow} with the current journeys, process the collaborative journey improvements and additions, ask user "Accept these changes to the user journeys? (y/n)", if yes update content with improvements then redisplay menu, if no keep original content then redisplay menu -- IF C: Append the final content to {outputFile}, update frontmatter by adding this step name to the end of the stepsCompleted array, then read fully and follow: {nextStepFile} +- IF A: Read fully and follow: skill:bmad-advanced-elicitation with the current journey content, process the enhanced journey insights that come back, ask user "Accept these improvements to the user journeys? (y/n)", if yes update content with improvements then redisplay menu, if no keep original content then redisplay menu +- IF P: Read fully and follow: {project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md with the current journeys, process the collaborative journey improvements and additions, ask user "Accept these changes to the user journeys? (y/n)", if yes update content with improvements then redisplay menu, if no keep original content then redisplay menu +- IF C: Append the final content to {outputFile}, update frontmatter by adding this step name to the end of the stepsCompleted array, then read fully and follow: ./step-05-domain.md - IF Any other: help user respond, then redisplay menu #### EXECUTION RULES: diff --git a/src/core/tasks/bmad-create-prd/steps-c/step-05-domain.md b/src/core/tasks/bmad-create-prd/steps-c/step-05-domain.md index 89bf5cda3..551e7b559 100644 --- a/src/core/tasks/bmad-create-prd/steps-c/step-05-domain.md +++ b/src/core/tasks/bmad-create-prd/steps-c/step-05-domain.md @@ -1,24 +1,10 @@ ---- -name: 'step-05-domain' -description: 'Explore domain-specific requirements for complex domains (optional step)' - -# File References -nextStepFile: './step-06-innovation.md' -outputFile: '{planning_artifacts}/prd.md' -domainComplexityCSV: '../data/domain-complexity.csv' - -# Task References -advancedElicitationTask: 'skill:bmad-advanced-elicitation' -partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md' ---- - # Step 5: Domain-Specific Requirements (Optional) **Progress: Step 5 of 13** - Next: Innovation Focus ## STEP GOAL: -For complex domains only that have a mapping in {domainComplexityCSV}, explore domain-specific constraints, compliance requirements, and technical considerations that shape the product. +For complex domains only that have a mapping in ../data/domain-complexity.csv, explore domain-specific constraints, compliance requirements, and technical considerations that shape the product. ## MANDATORY EXECUTION RULES (READ FIRST): @@ -93,7 +79,7 @@ Proceed with domain exploration. **Attempt subprocess data lookup:** -"Your task: Lookup data in {domainComplexityCSV} +"Your task: Lookup data in ../data/domain-complexity.csv **Search criteria:** - Find row where domain matches {{domainFromStep02}} @@ -155,9 +141,9 @@ Acknowledge the domain and explore what makes it complex: Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue - Save and Proceed to Innovation (Step 6 of 13)" #### Menu Handling Logic: -- IF A: Read fully and follow: {advancedElicitationTask}, and when finished redisplay the menu -- IF P: Read fully and follow: {partyModeWorkflow}, and when finished redisplay the menu -- IF C: Save content to {outputFile}, update frontmatter, then read fully and follow: {nextStepFile} +- IF A: Read fully and follow: skill:bmad-advanced-elicitation, and when finished redisplay the menu +- IF P: Read fully and follow: `{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md` and when finished redisplay the menu +- IF C: Save content to {outputFile}, update frontmatter, then read fully and follow: ./step-06-innovation.md - IF Any other comments or queries: help user respond then [Redisplay Menu Options](#n-present-menu-options) #### EXECUTION RULES: @@ -179,7 +165,7 @@ If step was skipped, append nothing and proceed. ## CRITICAL STEP COMPLETION NOTE -ONLY WHEN [C continue option] is selected and [content saved or skipped], will you then read fully and follow: `{nextStepFile}` to explore innovation. +ONLY WHEN [C continue option] is selected and [content saved or skipped], will you then read fully and follow: `./step-06-innovation.md` to explore innovation. --- diff --git a/src/core/tasks/bmad-create-prd/steps-c/step-06-innovation.md b/src/core/tasks/bmad-create-prd/steps-c/step-06-innovation.md index 09cbdbf44..8e886edb5 100644 --- a/src/core/tasks/bmad-create-prd/steps-c/step-06-innovation.md +++ b/src/core/tasks/bmad-create-prd/steps-c/step-06-innovation.md @@ -1,19 +1,3 @@ ---- -name: 'step-06-innovation' -description: 'Detect and explore innovative aspects of the product (optional step)' - -# File References -nextStepFile: './step-07-project-type.md' -outputFile: '{planning_artifacts}/prd.md' - -# Data Files -projectTypesCSV: '../data/project-types.csv' - -# Task References -advancedElicitationTask: 'skill:bmad-advanced-elicitation' -partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md' ---- - # Step 6: Innovation Discovery **Progress: Step 6 of 11** - Next: Project Type Analysis @@ -65,7 +49,7 @@ Detect and explore innovation patterns in the product, focusing on what makes it Load innovation signals specific to this project type: -- Load `{projectTypesCSV}` completely +- Load `../data/project-types.csv` completely - Find the row where `project_type` matches detected type from step-02 - Extract `innovation_signals` (semicolon-separated list) - Extract `web_search_triggers` for potential innovation research @@ -156,9 +140,9 @@ Present the innovation content for review, then display menu: Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Project Type Analysis (Step 7 of 11)" #### Menu Handling Logic: -- IF A: Read fully and follow: {advancedElicitationTask} with the current innovation content, process the enhanced innovation insights that come back, ask user "Accept these improvements to the innovation analysis? (y/n)", if yes update content with improvements then redisplay menu, if no keep original content then redisplay menu -- IF P: Read fully and follow: {partyModeWorkflow} with the current innovation content, process the collaborative innovation exploration and ideation, ask user "Accept these changes to the innovation analysis? (y/n)", if yes update content with improvements then redisplay menu, if no keep original content then redisplay menu -- IF C: Append the final content to {outputFile}, update frontmatter by adding this step name to the end of the stepsCompleted array, then read fully and follow: {nextStepFile} +- IF A: Read fully and follow: skill:bmad-advanced-elicitation with the current innovation content, process the enhanced innovation insights that come back, ask user "Accept these improvements to the innovation analysis? (y/n)", if yes update content with improvements then redisplay menu, if no keep original content then redisplay menu +- IF P: Read fully and follow: {project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md with the current innovation content, process the collaborative innovation exploration and ideation, ask user "Accept these changes to the innovation analysis? (y/n)", if yes update content with improvements then redisplay menu, if no keep original content then redisplay menu +- IF C: Append the final content to {outputFile}, update frontmatter by adding this step name to the end of the stepsCompleted array, then read fully and follow: ./step-07-project-type.md - IF Any other: help user respond, then redisplay menu #### EXECUTION RULES: @@ -177,7 +161,7 @@ Display: "**Select:** [A] Advanced Elicitation - Let's try to find innovative an ### Menu Handling Logic: - IF A: Proceed with content generation anyway, then return to menu -- IF C: Skip this step, then read fully and follow: {nextStepFile} +- IF C: Skip this step, then read fully and follow: ./step-07-project-type.md ### EXECUTION RULES: - ALWAYS halt and wait for user input after presenting menu @@ -213,7 +197,7 @@ When user selects 'C', append the content directly to the document using the str ## SKIP CONDITIONS: -Skip this step and load `{nextStepFile}` if: +Skip this step and load `./step-07-project-type.md` if: - No innovation signals detected in conversation - Product is incremental improvement rather than breakthrough @@ -222,6 +206,6 @@ Skip this step and load `{nextStepFile}` if: ## NEXT STEP: -After user selects 'C' and content is saved to document (or step is skipped), load `{nextStepFile}`. +After user selects 'C' and content is saved to document (or step is skipped), load `./step-07-project-type.md`. Remember: Do NOT proceed to step-07 until user explicitly selects 'C' from the A/P/C menu (or confirms step skip)! diff --git a/src/core/tasks/bmad-create-prd/steps-c/step-07-project-type.md b/src/core/tasks/bmad-create-prd/steps-c/step-07-project-type.md index 45de71dac..66326dbd9 100644 --- a/src/core/tasks/bmad-create-prd/steps-c/step-07-project-type.md +++ b/src/core/tasks/bmad-create-prd/steps-c/step-07-project-type.md @@ -1,19 +1,3 @@ ---- -name: 'step-07-project-type' -description: 'Conduct project-type specific discovery using CSV-driven guidance' - -# File References -nextStepFile: './step-08-scoping.md' -outputFile: '{planning_artifacts}/prd.md' - -# Data Files -projectTypesCSV: '../data/project-types.csv' - -# Task References -advancedElicitationTask: 'skill:bmad-advanced-elicitation' -partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md' ---- - # Step 7: Project-Type Deep Dive **Progress: Step 7 of 11** - Next: Scoping @@ -56,7 +40,7 @@ Conduct project-type specific discovery using CSV-driven guidance to define tech **Attempt subprocess data lookup:** -"Your task: Lookup data in {projectTypesCSV} +"Your task: Lookup data in ../data/project-types.csv **Search criteria:** - Find row where project_type matches {{projectTypeFromStep02}} @@ -173,9 +157,9 @@ Present the project-type content for review, then display menu: Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Scoping (Step 8 of 11)" #### Menu Handling Logic: -- IF A: Read fully and follow: {advancedElicitationTask} with the current project-type content, process the enhanced technical insights that come back, ask user "Accept these improvements to the technical requirements? (y/n)", if yes update content with improvements then redisplay menu, if no keep original content then redisplay menu -- IF P: Read fully and follow: {partyModeWorkflow} with the current project-type requirements, process the collaborative technical expertise and validation, ask user "Accept these changes to the technical requirements? (y/n)", if yes update content with improvements then redisplay menu, if no keep original content then redisplay menu -- IF C: Append the final content to {outputFile}, update frontmatter by adding this step name to the end of the stepsCompleted array, then read fully and follow: {nextStepFile} +- IF A: Read fully and follow: skill:bmad-advanced-elicitation with the current project-type content, process the enhanced technical insights that come back, ask user "Accept these improvements to the technical requirements? (y/n)", if yes update content with improvements then redisplay menu, if no keep original content then redisplay menu +- IF P: Read fully and follow: {project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md with the current project-type requirements, process the collaborative technical expertise and validation, ask user "Accept these changes to the technical requirements? (y/n)", if yes update content with improvements then redisplay menu, if no keep original content then redisplay menu +- IF C: Append the final content to {outputFile}, update frontmatter by adding this step name to the end of the stepsCompleted array, then read fully and follow: ./step-08-scoping.md - IF Any other: help user respond, then redisplay menu #### EXECUTION RULES: @@ -233,6 +217,6 @@ When user selects 'C', append the content directly to the document using the str ## NEXT STEP: -After user selects 'C' and content is saved to document, load `{nextStepFile}` to define project scope. +After user selects 'C' and content is saved to document, load `./step-08-scoping.md` to define project scope. Remember: Do NOT proceed to step-08 (Scoping) until user explicitly selects 'C' from the A/P/C menu and content is saved! diff --git a/src/core/tasks/bmad-create-prd/steps-c/step-08-scoping.md b/src/core/tasks/bmad-create-prd/steps-c/step-08-scoping.md index 368abf536..84b9a4444 100644 --- a/src/core/tasks/bmad-create-prd/steps-c/step-08-scoping.md +++ b/src/core/tasks/bmad-create-prd/steps-c/step-08-scoping.md @@ -1,16 +1,3 @@ ---- -name: 'step-08-scoping' -description: 'Define MVP boundaries and prioritize features across development phases' - -# File References -nextStepFile: './step-09-functional.md' -outputFile: '{planning_artifacts}/prd.md' - -# Task References -advancedElicitationTask: 'skill:bmad-advanced-elicitation' -partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md' ---- - # Step 8: Scoping Exercise - MVP & Future Features **Progress: Step 8 of 11** - Next: Functional Requirements @@ -184,9 +171,9 @@ Present the scoping decisions for review, then display menu: Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Functional Requirements (Step 9 of 11)" #### Menu Handling Logic: -- IF A: Read fully and follow: {advancedElicitationTask} with the current scoping analysis, process the enhanced insights that come back, ask user if they accept the improvements, if yes update content then redisplay menu, if no keep original content then redisplay menu -- IF P: Read fully and follow: {partyModeWorkflow} with the scoping context, process the collaborative insights on MVP and roadmap decisions, ask user if they accept the changes, if yes update content then redisplay menu, if no keep original content then redisplay menu -- IF C: Append the final content to {outputFile}, update frontmatter by adding this step name to the end of the stepsCompleted array, then read fully and follow: {nextStepFile} +- IF A: Read fully and follow: skill:bmad-advanced-elicitation with the current scoping analysis, process the enhanced insights that come back, ask user if they accept the improvements, if yes update content then redisplay menu, if no keep original content then redisplay menu +- IF P: Read fully and follow: {project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md with the scoping context, process the collaborative insights on MVP and roadmap decisions, ask user if they accept the changes, if yes update content then redisplay menu, if no keep original content then redisplay menu +- IF C: Append the final content to {outputFile}, update frontmatter by adding this step name to the end of the stepsCompleted array, then read fully and follow: ./step-09-functional.md - IF Any other: help user respond, then redisplay menu #### EXECUTION RULES: @@ -224,6 +211,6 @@ When user selects 'C', append the content directly to the document using the str ## NEXT STEP: -After user selects 'C' and content is saved to document, load {nextStepFile}. +After user selects 'C' and content is saved to document, load ./step-09-functional.md. Remember: Do NOT proceed to step-09 until user explicitly selects 'C' from the A/P/C menu and content is saved! diff --git a/src/core/tasks/bmad-create-prd/steps-c/step-09-functional.md b/src/core/tasks/bmad-create-prd/steps-c/step-09-functional.md index 412178c09..22f8d63ba 100644 --- a/src/core/tasks/bmad-create-prd/steps-c/step-09-functional.md +++ b/src/core/tasks/bmad-create-prd/steps-c/step-09-functional.md @@ -1,16 +1,3 @@ ---- -name: 'step-09-functional' -description: 'Synthesize all discovery into comprehensive functional requirements' - -# File References -nextStepFile: './step-10-nonfunctional.md' -outputFile: '{planning_artifacts}/prd.md' - -# Task References -advancedElicitationTask: 'skill:bmad-advanced-elicitation' -partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md' ---- - # Step 9: Functional Requirements Synthesis **Progress: Step 9 of 11** - Next: Non-Functional Requirements @@ -182,9 +169,9 @@ Present the functional requirements for review, then display menu: Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Non-Functional Requirements (Step 10 of 11)" #### Menu Handling Logic: -- IF A: Read fully and follow: {advancedElicitationTask} with the current FR list, process the enhanced capability coverage that comes back, ask user if they accept the additions, if yes update content then redisplay menu, if no keep original content then redisplay menu -- IF P: Read fully and follow: {partyModeWorkflow} with the current FR list, process the collaborative capability validation and additions, ask user if they accept the changes, if yes update content then redisplay menu, if no keep original content then redisplay menu -- IF C: Append the final content to {outputFile}, update frontmatter by adding this step name to the end of the stepsCompleted array, then read fully and follow: {nextStepFile} +- IF A: Read fully and follow: skill:bmad-advanced-elicitation with the current FR list, process the enhanced capability coverage that comes back, ask user if they accept the additions, if yes update content then redisplay menu, if no keep original content then redisplay menu +- IF P: Read fully and follow: {project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md with the current FR list, process the collaborative capability validation and additions, ask user if they accept the changes, if yes update content then redisplay menu, if no keep original content then redisplay menu +- IF C: Append the final content to {outputFile}, update frontmatter by adding this step name to the end of the stepsCompleted array, then read fully and follow: ./step-10-nonfunctional.md - IF Any other: help user respond, then redisplay menu #### EXECUTION RULES: @@ -227,6 +214,6 @@ Emphasize to user: "This FR list is now binding. Any feature not listed here wil ## NEXT STEP: -After user selects 'C' and content is saved to document, load {nextStepFile} to define non-functional requirements. +After user selects 'C' and content is saved to document, load ./step-10-nonfunctional.md to define non-functional requirements. Remember: Do NOT proceed to step-10 until user explicitly selects 'C' from the A/P/C menu and content is saved! diff --git a/src/core/tasks/bmad-create-prd/steps-c/step-10-nonfunctional.md b/src/core/tasks/bmad-create-prd/steps-c/step-10-nonfunctional.md index 8a939a15a..cd7fdbf14 100644 --- a/src/core/tasks/bmad-create-prd/steps-c/step-10-nonfunctional.md +++ b/src/core/tasks/bmad-create-prd/steps-c/step-10-nonfunctional.md @@ -1,16 +1,3 @@ ---- -name: 'step-10-nonfunctional' -description: 'Define quality attributes that matter for this specific product' - -# File References -nextStepFile: './step-11-polish.md' -outputFile: '{planning_artifacts}/prd.md' - -# Task References -advancedElicitationTask: 'skill:bmad-advanced-elicitation' -partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md' ---- - # Step 10: Non-Functional Requirements **Progress: Step 10 of 12** - Next: Polish Document @@ -169,9 +156,9 @@ Present the non-functional requirements for review, then display menu: Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Polish Document (Step 11 of 12)" #### Menu Handling Logic: -- IF A: Read fully and follow: {advancedElicitationTask} with the current NFR content, process the enhanced quality attribute insights that come back, ask user if they accept the improvements, if yes update content then redisplay menu, if no keep original content then redisplay menu -- IF P: Read fully and follow: {partyModeWorkflow} with the current NFR list, process the collaborative technical validation and additions, ask user if they accept the changes, if yes update content then redisplay menu, if no keep original content then redisplay menu -- IF C: Append the final content to {outputFile}, update frontmatter by adding this step name to the end of the stepsCompleted array, then read fully and follow: {nextStepFile} +- IF A: Read fully and follow: skill:bmad-advanced-elicitation with the current NFR content, process the enhanced quality attribute insights that come back, ask user if they accept the improvements, if yes update content then redisplay menu, if no keep original content then redisplay menu +- IF P: Read fully and follow: {project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md with the current NFR list, process the collaborative technical validation and additions, ask user if they accept the changes, if yes update content then redisplay menu, if no keep original content then redisplay menu +- IF C: Append the final content to {outputFile}, update frontmatter by adding this step name to the end of the stepsCompleted array, then read fully and follow: ./step-11-polish.md - IF Any other: help user respond, then redisplay menu #### EXECUTION RULES: @@ -238,6 +225,6 @@ When user selects 'C', append the content directly to the document using the str ## NEXT STEP: -After user selects 'C' and content is saved to document, load {nextStepFile} to finalize the PRD and complete the workflow. +After user selects 'C' and content is saved to document, load ./step-11-polish.md to finalize the PRD and complete the workflow. Remember: Do NOT proceed to step-11 until user explicitly selects 'C' from the A/P/C menu and content is saved! diff --git a/src/core/tasks/bmad-create-prd/steps-c/step-11-polish.md b/src/core/tasks/bmad-create-prd/steps-c/step-11-polish.md index e17a11185..3677b0a31 100644 --- a/src/core/tasks/bmad-create-prd/steps-c/step-11-polish.md +++ b/src/core/tasks/bmad-create-prd/steps-c/step-11-polish.md @@ -1,17 +1,3 @@ ---- -name: 'step-11-polish' -description: 'Optimize and polish the complete PRD document for flow, coherence, and readability' - -# File References -nextStepFile: './step-12-complete.md' -outputFile: '{planning_artifacts}/prd.md' -purposeFile: '../data/prd-purpose.md' - -# Task References -advancedElicitationTask: 'skill:bmad-advanced-elicitation' -partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md' ---- - # Step 11: Document Polish **Progress: Step 11 of 12** - Next: Complete PRD @@ -56,7 +42,7 @@ Optimize the complete PRD document for flow, coherence, and professional present **CRITICAL:** Load the PRD purpose document first: -- Read `{purposeFile}` to understand what makes a great BMAD PRD +- Read `../data/prd-purpose.md` to understand what makes a great BMAD PRD - Internalize the philosophy: information density, traceability, measurable requirements - Keep the dual-audience nature (humans + LLMs) in mind @@ -186,9 +172,9 @@ Present the polished document for review, then display menu: Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Complete PRD (Step 12 of 12)" #### Menu Handling Logic: -- IF A: Read fully and follow: {advancedElicitationTask} with the polished document, process the enhanced refinements that come back, ask user "Accept these polish improvements? (y/n)", if yes update content with improvements then redisplay menu, if no keep original polish then redisplay menu -- IF P: Read fully and follow: {partyModeWorkflow} with the polished document, process the collaborative refinements to flow and coherence, ask user "Accept these polish changes? (y/n)", if yes update content with improvements then redisplay menu, if no keep original polish then redisplay menu -- IF C: Save the polished document to {outputFile}, update frontmatter by adding this step name to the end of the stepsCompleted array, then read fully and follow: {nextStepFile} +- IF A: Read fully and follow: skill:bmad-advanced-elicitation with the polished document, process the enhanced refinements that come back, ask user "Accept these polish improvements? (y/n)", if yes update content with improvements then redisplay menu, if no keep original polish then redisplay menu +- IF P: Read fully and follow: {project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md with the polished document, process the collaborative refinements to flow and coherence, ask user "Accept these polish changes? (y/n)", if yes update content with improvements then redisplay menu, if no keep original polish then redisplay menu +- IF C: Save the polished document to {outputFile}, update frontmatter by adding this step name to the end of the stepsCompleted array, then read fully and follow: ./step-12-complete.md - IF Any other: help user respond, then redisplay menu #### EXECUTION RULES: diff --git a/src/core/tasks/bmad-create-prd/steps-c/step-12-complete.md b/src/core/tasks/bmad-create-prd/steps-c/step-12-complete.md index 79b379096..d7b652524 100644 --- a/src/core/tasks/bmad-create-prd/steps-c/step-12-complete.md +++ b/src/core/tasks/bmad-create-prd/steps-c/step-12-complete.md @@ -1,12 +1,3 @@ ---- -name: 'step-12-complete' -description: 'Complete the PRD workflow, update status files, and suggest next steps including validation' - -# File References -outputFile: '{planning_artifacts}/prd.md' -# validationFlow: lives in the validate-prd workflow (separate skill) ---- - # Step 12: Workflow Completion **Final Step - Complete the PRD** @@ -60,8 +51,8 @@ Inform user that the PRD is complete and polished: Update the main workflow status file if there is one: -- Load `{status_file}` from workflow configuration (if exists) -- Update workflow_status["prd"] = "{default_output_file}" +- Check workflow configuration for a status file (if one exists) +- Update workflow_status["prd"] = "{outputFile}" - Save file, preserving all comments and structure - Mark current timestamp as completion time @@ -71,7 +62,7 @@ Offer validation workflows to ensure PRD is ready for implementation: **Available Validation Workflows:** -**Option 1: Check Implementation Readiness** (`{checkImplementationReadinessWorkflow}`) +**Option 1: Check Implementation Readiness** (`skill:bmad-check-implementation-readiness`) - Validates PRD has all information needed for development - Checks epic coverage completeness - Reviews UX alignment with requirements diff --git a/src/core/tasks/bmad-create-prd/workflow.md b/src/core/tasks/bmad-create-prd/workflow.md index a3ac365a0..39f78e9d5 100644 --- a/src/core/tasks/bmad-create-prd/workflow.md +++ b/src/core/tasks/bmad-create-prd/workflow.md @@ -1,6 +1,6 @@ --- main_config: '{project-root}/_bmad/bmm/config.yaml' -nextStep: './steps-c/step-01-init.md' +outputFile: '{planning_artifacts}/prd.md' --- # PRD Create Workflow @@ -59,4 +59,4 @@ Load and read full config from {main_config} and resolve: "**Create Mode: Creating a new PRD from scratch.**" -Read fully and follow: `{nextStep}` (steps-c/step-01-init.md) +Read fully and follow: `./steps-c/step-01-init.md` From 87f47625da7bb4668326db2240b7c6f326a8b1e5 Mon Sep 17 00:00:00 2001 From: Alex Verkhovsky Date: Sat, 14 Mar 2026 16:39:22 -0600 Subject: [PATCH 3/7] refactor(skills): convert market-research to native skill directory Co-Authored-By: Claude Opus 4.6 (1M context) --- src/bmm/agents/analyst.agent.yaml | 2 +- src/bmm/module-help.csv | 2 +- .../research/bmad-market-research/SKILL.md | 6 + .../bmad-skill-manifest.yaml | 1 + .../market-steps/step-01-init.md | 182 +++++++ .../market-steps/step-02-customer-behavior.md | 237 +++++++++ .../step-03-customer-pain-points.md | 249 +++++++++ .../step-04-customer-decisions.md | 259 ++++++++++ .../step-05-competitive-analysis.md | 177 +++++++ .../step-06-research-completion.md | 476 ++++++++++++++++++ .../bmad-market-research/research.template.md | 29 ++ .../research/bmad-market-research/workflow.md | 53 ++ .../research/bmad-skill-manifest.yaml | 4 - .../research/workflow-market-research.md | 1 + 14 files changed, 1672 insertions(+), 6 deletions(-) create mode 100644 src/bmm/workflows/1-analysis/research/bmad-market-research/SKILL.md create mode 100644 src/bmm/workflows/1-analysis/research/bmad-market-research/bmad-skill-manifest.yaml create mode 100644 src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-01-init.md create mode 100644 src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-02-customer-behavior.md create mode 100644 src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-03-customer-pain-points.md create mode 100644 src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-04-customer-decisions.md create mode 100644 src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-05-competitive-analysis.md create mode 100644 src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-06-research-completion.md create mode 100644 src/bmm/workflows/1-analysis/research/bmad-market-research/research.template.md create mode 100644 src/bmm/workflows/1-analysis/research/bmad-market-research/workflow.md delete mode 100644 src/bmm/workflows/1-analysis/research/bmad-skill-manifest.yaml diff --git a/src/bmm/agents/analyst.agent.yaml b/src/bmm/agents/analyst.agent.yaml index 47ad56a57..dbb22c8fb 100644 --- a/src/bmm/agents/analyst.agent.yaml +++ b/src/bmm/agents/analyst.agent.yaml @@ -23,7 +23,7 @@ agent: description: "[BP] Brainstorm Project: Expert Guided Facilitation through a single or multiple techniques with a final report" - trigger: MR or fuzzy match on market-research - exec: "{project-root}/_bmad/bmm/workflows/1-analysis/research/workflow-market-research.md" + exec: "skill:bmad-market-research" description: "[MR] Market Research: Market analysis, competitive landscape, customer needs and trends" - trigger: DR or fuzzy match on domain-research diff --git a/src/bmm/module-help.csv b/src/bmm/module-help.csv index 1c21ac015..bc8b5ab71 100644 --- a/src/bmm/module-help.csv +++ b/src/bmm/module-help.csv @@ -11,7 +11,7 @@ bmm,anytime,Mermaid Generate,MG,,_bmad/bmm/agents/tech-writer/tech-writer.agent. bmm,anytime,Validate Document,VD,,_bmad/bmm/agents/tech-writer/tech-writer.agent.yaml,,false,tech-writer,,"Review the specified document against documentation standards and best practices. Returns specific actionable improvement suggestions organized by priority.",planning_artifacts,"validation report", bmm,anytime,Explain Concept,EC,,_bmad/bmm/agents/tech-writer/tech-writer.agent.yaml,,false,tech-writer,,"Create clear technical explanations with examples and diagrams for complex concepts. Breaks down into digestible sections using task-oriented approach.",project_knowledge,"explanation", bmm,1-analysis,Brainstorm Project,BP,10,skill:bmad-brainstorming,bmad-brainstorming,false,analyst,data=_bmad/bmm/data/project-context-template.md,"Expert Guided Facilitation through a single or multiple techniques",planning_artifacts,"brainstorming session", -bmm,1-analysis,Market Research,MR,20,_bmad/bmm/workflows/1-analysis/research/workflow-market-research.md,bmad-bmm-market-research,false,analyst,Create Mode,"Market analysis competitive landscape customer needs and trends","planning_artifacts|project-knowledge","research documents", +bmm,1-analysis,Market Research,MR,20,skill:bmad-market-research,bmad-bmm-market-research,false,analyst,Create Mode,"Market analysis competitive landscape customer needs and trends","planning_artifacts|project-knowledge","research documents", bmm,1-analysis,Domain Research,DR,21,skill:bmad-domain-research,bmad-bmm-domain-research,false,analyst,Create Mode,"Industry domain deep dive subject matter expertise and terminology","planning_artifacts|project_knowledge","research documents", bmm,1-analysis,Technical Research,TR,22,skill:bmad-technical-research,bmad-bmm-technical-research,false,analyst,Create Mode,"Technical feasibility architecture options and implementation approaches","planning_artifacts|project_knowledge","research documents", bmm,1-analysis,Create Brief,CB,30,skill:bmad-create-product-brief,bmad-bmm-create-product-brief,false,analyst,Create Mode,"A guided experience to nail down your product idea",planning_artifacts,"product brief", diff --git a/src/bmm/workflows/1-analysis/research/bmad-market-research/SKILL.md b/src/bmm/workflows/1-analysis/research/bmad-market-research/SKILL.md new file mode 100644 index 000000000..1e8c1190f --- /dev/null +++ b/src/bmm/workflows/1-analysis/research/bmad-market-research/SKILL.md @@ -0,0 +1,6 @@ +--- +name: bmad-market-research +description: 'Conduct market research on competition and customers. Use when the user says "create a market research report about [business idea]".' +--- + +Follow the instructions in [workflow.md](workflow.md). diff --git a/src/bmm/workflows/1-analysis/research/bmad-market-research/bmad-skill-manifest.yaml b/src/bmm/workflows/1-analysis/research/bmad-market-research/bmad-skill-manifest.yaml new file mode 100644 index 000000000..d0f08abdb --- /dev/null +++ b/src/bmm/workflows/1-analysis/research/bmad-market-research/bmad-skill-manifest.yaml @@ -0,0 +1 @@ +type: skill diff --git a/src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-01-init.md b/src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-01-init.md new file mode 100644 index 000000000..ae9a3ba82 --- /dev/null +++ b/src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-01-init.md @@ -0,0 +1,182 @@ +# Market Research Step 1: Market Research Initialization + +## MANDATORY EXECUTION RULES (READ FIRST): + +- 🛑 NEVER generate research content in init step +- ✅ ALWAYS confirm understanding of user's research goals +- 📋 YOU ARE A MARKET RESEARCH FACILITATOR, not content generator +- 💬 FOCUS on clarifying scope and approach +- 🔍 NO WEB RESEARCH in init - that's for later steps +- 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete research +- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding +- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +## EXECUTION PROTOCOLS: + +- 🎯 Confirm research understanding before proceeding +- ⚠️ Present [C] continue option after scope clarification +- 💾 Write initial scope document immediately +- 📖 Update frontmatter `stepsCompleted: [1]` before loading next step +- 🚫 FORBIDDEN to load next step until C is selected + +## CONTEXT BOUNDARIES: + +- Current document and frontmatter from main workflow discovery are available +- Research type = "market" is already set +- **Research topic = "{{research_topic}}"** - discovered from initial discussion +- **Research goals = "{{research_goals}}"** - captured from initial discussion +- Focus on market research scope clarification +- Web search capabilities are enabled for later steps + +## YOUR TASK: + +Initialize market research by confirming understanding of {{research_topic}} and establishing clear research scope. + +## MARKET RESEARCH INITIALIZATION: + +### 1. Confirm Research Understanding + +**INITIALIZE - DO NOT RESEARCH YET** + +Start with research confirmation: +"I understand you want to conduct **market research** for **{{research_topic}}** with these goals: {{research_goals}} + +**My Understanding of Your Research Needs:** + +- **Research Topic**: {{research_topic}} +- **Research Goals**: {{research_goals}} +- **Research Type**: Market Research +- **Approach**: Comprehensive market analysis with source verification + +**Market Research Areas We'll Cover:** + +- Market size, growth dynamics, and trends +- Customer insights and behavior analysis +- Competitive landscape and positioning +- Strategic recommendations and implementation guidance + +**Does this accurately capture what you're looking for?**" + +### 2. Refine Research Scope + +Gather any clarifications needed: + +#### Scope Clarification Questions: + +- "Are there specific customer segments or aspects of {{research_topic}} we should prioritize?" +- "Should we focus on specific geographic regions or global market?" +- "Is this for market entry, expansion, product development, or other business purpose?" +- "Any competitors or market segments you specifically want us to analyze?" + +### 3. Document Initial Scope + +**WRITE IMMEDIATELY TO DOCUMENT** + +Write initial research scope to document: + +```markdown +# Market Research: {{research_topic}} + +## Research Initialization + +### Research Understanding Confirmed + +**Topic**: {{research_topic}} +**Goals**: {{research_goals}} +**Research Type**: Market Research +**Date**: {{date}} + +### Research Scope + +**Market Analysis Focus Areas:** + +- Market size, growth projections, and dynamics +- Customer segments, behavior patterns, and insights +- Competitive landscape and positioning analysis +- Strategic recommendations and implementation guidance + +**Research Methodology:** + +- Current web data with source verification +- Multiple independent sources for critical claims +- Confidence level assessment for uncertain data +- Comprehensive coverage with no critical gaps + +### Next Steps + +**Research Workflow:** + +1. ✅ Initialization and scope setting (current step) +2. Customer Insights and Behavior Analysis +3. Competitive Landscape Analysis +4. Strategic Synthesis and Recommendations + +**Research Status**: Scope confirmed, ready to proceed with detailed market analysis +``` + +### 4. Present Confirmation and Continue Option + +Show initial scope document and present continue option: +"I've documented our understanding and initial scope for **{{research_topic}}** market research. + +**What I've established:** + +- Research topic and goals confirmed +- Market analysis focus areas defined +- Research methodology verification +- Clear workflow progression + +**Document Status:** Initial scope written to research file for your review + +**Ready to begin detailed market research?** +[C] Continue - Confirm scope and proceed to customer insights analysis +[Modify] Suggest changes to research scope before proceeding + +### 5. Handle User Response + +#### If 'C' (Continue): + +- Update frontmatter: `stepsCompleted: [1]` +- Add confirmation note to document: "Scope confirmed by user on {{date}}" +- Load: `./step-02-customer-behavior.md` + +#### If 'Modify': + +- Gather user changes to scope +- Update document with modifications +- Re-present updated scope for confirmation + +## SUCCESS METRICS: + +✅ Research topic and goals accurately understood +✅ Market research scope clearly defined +✅ Initial scope document written immediately +✅ User opportunity to review and modify scope +✅ [C] continue option presented and handled correctly +✅ Document properly updated with scope confirmation + +## FAILURE MODES: + +❌ Not confirming understanding of research topic and goals +❌ Generating research content instead of just scope clarification +❌ Not writing initial scope document to file +❌ Not providing opportunity for user to modify scope +❌ Proceeding to next step without user confirmation +❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor research decisions +❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file +❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols + +## INITIALIZATION PRINCIPLES: + +This step ensures: + +- Clear mutual understanding of research objectives +- Well-defined research scope and approach +- Immediate documentation for user review +- User control over research direction before detailed work begins + +## NEXT STEP: + +After user confirmation and scope finalization, load `./step-02-customer-behavior.md` to begin detailed market research with customer insights analysis. + +Remember: Init steps confirm understanding and scope, not generate research content! diff --git a/src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-02-customer-behavior.md b/src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-02-customer-behavior.md new file mode 100644 index 000000000..f707a0a3e --- /dev/null +++ b/src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-02-customer-behavior.md @@ -0,0 +1,237 @@ +# Market Research Step 2: Customer Behavior and Segments + +## MANDATORY EXECUTION RULES (READ FIRST): + +- 🛑 NEVER generate content without web search verification +- ✅ Search the web to verify and supplement your knowledge with current facts +- 📋 YOU ARE A CUSTOMER BEHAVIOR ANALYST, not content generator +- 💬 FOCUS on customer behavior patterns and demographic analysis +- 🔍 WEB SEARCH REQUIRED - verify current facts against live sources +- 📝 WRITE CONTENT IMMEDIATELY TO DOCUMENT +- 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete research +- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding +- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +## EXECUTION PROTOCOLS: + +- 🎯 Show web search analysis before presenting findings +- ⚠️ Present [C] continue option after customer behavior content generation +- 📝 WRITE CUSTOMER BEHAVIOR ANALYSIS TO DOCUMENT IMMEDIATELY +- 💾 ONLY proceed when user chooses C (Continue) +- 📖 Update frontmatter `stepsCompleted: [1, 2]` before loading next step +- 🚫 FORBIDDEN to load next step until C is selected + +## CONTEXT BOUNDARIES: + +- Current document and frontmatter from step-01 are available +- Focus on customer behavior patterns and demographic analysis +- Web search capabilities with source verification are enabled +- Previous step confirmed research scope and goals +- **Research topic = "{{research_topic}}"** - established from initial discussion +- **Research goals = "{{research_goals}}"** - established from initial discussion + +## YOUR TASK: + +Conduct customer behavior and segment analysis with emphasis on patterns and demographics. + +## CUSTOMER BEHAVIOR ANALYSIS SEQUENCE: + +### 1. Begin Customer Behavior Analysis + +**UTILIZE SUBPROCESSES AND SUBAGENTS**: Use research subagents, subprocesses or parallel processing if available to thoroughly analyze different customer behavior areas simultaneously and thoroughly. + +Start with customer behavior research approach: +"Now I'll conduct **customer behavior analysis** for **{{research_topic}}** to understand customer patterns. + +**Customer Behavior Focus:** + +- Customer behavior patterns and preferences +- Demographic profiles and segmentation +- Psychographic characteristics and values +- Behavior drivers and influences +- Customer interaction patterns and engagement + +**Let me search for current customer behavior insights.**" + +### 2. Parallel Customer Behavior Research Execution + +**Execute multiple web searches simultaneously:** + +Search the web: "{{research_topic}} customer behavior patterns" +Search the web: "{{research_topic}} customer demographics" +Search the web: "{{research_topic}} psychographic profiles" +Search the web: "{{research_topic}} customer behavior drivers" + +**Analysis approach:** + +- Look for customer behavior studies and research reports +- Search for demographic segmentation and analysis +- Research psychographic profiling and value systems +- Analyze behavior drivers and influencing factors +- Study customer interaction and engagement patterns + +### 3. Analyze and Aggregate Results + +**Collect and analyze findings from all parallel searches:** + +"After executing comprehensive parallel web searches, let me analyze and aggregate customer behavior findings: + +**Research Coverage:** + +- Customer behavior patterns and preferences +- Demographic profiles and segmentation +- Psychographic characteristics and values +- Behavior drivers and influences +- Customer interaction patterns and engagement + +**Cross-Behavior Analysis:** +[Identify patterns connecting demographics, psychographics, and behaviors] + +**Quality Assessment:** +[Overall confidence levels and research gaps identified]" + +### 4. Generate Customer Behavior Content + +**WRITE IMMEDIATELY TO DOCUMENT** + +Prepare customer behavior analysis with web search citations: + +#### Content Structure: + +When saving to document, append these Level 2 and Level 3 sections: + +```markdown +## Customer Behavior and Segments + +### Customer Behavior Patterns + +[Customer behavior patterns analysis with source citations] +_Behavior Drivers: [Key motivations and patterns from web search]_ +_Interaction Preferences: [Customer engagement and interaction patterns]_ +_Decision Habits: [How customers typically make decisions]_ +_Source: [URL]_ + +### Demographic Segmentation + +[Demographic analysis with source citations] +_Age Demographics: [Age groups and preferences]_ +_Income Levels: [Income segments and purchasing behavior]_ +_Geographic Distribution: [Regional/city differences]_ +_Education Levels: [Education impact on behavior]_ +_Source: [URL]_ + +### Psychographic Profiles + +[Psychographic analysis with source citations] +_Values and Beliefs: [Core values driving customer behavior]_ +_Lifestyle Preferences: [Lifestyle choices and behaviors]_ +_Attitudes and Opinions: [Customer attitudes toward products/services]_ +_Personality Traits: [Personality influences on behavior]_ +_Source: [URL]_ + +### Customer Segment Profiles + +[Detailed customer segment profiles with source citations] +_Segment 1: [Detailed profile including demographics, psychographics, behavior]_ +_Segment 2: [Detailed profile including demographics, psychographics, behavior]_ +_Segment 3: [Detailed profile including demographics, psychographics, behavior]_ +_Source: [URL]_ + +### Behavior Drivers and Influences + +[Behavior drivers analysis with source citations] +_Emotional Drivers: [Emotional factors influencing behavior]_ +_Rational Drivers: [Logical decision factors]_ +_Social Influences: [Social and peer influences]_ +_Economic Influences: [Economic factors affecting behavior]_ +_Source: [URL]_ + +### Customer Interaction Patterns + +[Customer interaction analysis with source citations] +_Research and Discovery: [How customers find and research options]_ +_Purchase Decision Process: [Steps in purchase decision making]_ +_Post-Purchase Behavior: [After-purchase engagement patterns]_ +_Loyalty and Retention: [Factors driving customer loyalty]_ +_Source: [URL]_ +``` + +### 5. Present Analysis and Continue Option + +**Show analysis and present continue option:** + +"I've completed **customer behavior analysis** for {{research_topic}}, focusing on customer patterns. + +**Key Customer Behavior Findings:** + +- Customer behavior patterns clearly identified with drivers +- Demographic segmentation thoroughly analyzed +- Psychographic profiles mapped and documented +- Customer interaction patterns captured +- Multiple sources verified for critical insights + +**Ready to proceed to customer pain points?** +[C] Continue - Save this to document and proceed to pain points analysis + +### 6. Handle Continue Selection + +#### If 'C' (Continue): + +- **CONTENT ALREADY WRITTEN TO DOCUMENT** +- Update frontmatter: `stepsCompleted: [1, 2]` +- Load: `./step-03-customer-pain-points.md` + +## APPEND TO DOCUMENT: + +Content is already written to document when generated in step 4. No additional append needed. + +## SUCCESS METRICS: + +✅ Customer behavior patterns identified with current citations +✅ Demographic segmentation thoroughly analyzed +✅ Psychographic profiles clearly documented +✅ Customer interaction patterns captured +✅ Multiple sources verified for critical insights +✅ Content written immediately to document +✅ [C] continue option presented and handled correctly +✅ Proper routing to next step (customer pain points) +✅ Research goals alignment maintained + +## FAILURE MODES: + +❌ Relying solely on training data without web verification for current facts + +❌ Missing critical customer behavior patterns +❌ Incomplete demographic segmentation analysis +❌ Missing psychographic profile documentation +❌ Not writing content immediately to document +❌ Not presenting [C] continue option after content generation +❌ Not routing to customer pain points analysis step +❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor research decisions +❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file +❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols + +## CUSTOMER BEHAVIOR RESEARCH PROTOCOLS: + +- Research customer behavior studies and market research +- Use demographic data from authoritative sources +- Research psychographic profiling and value systems +- Analyze customer interaction and engagement patterns +- Focus on current behavior data and trends +- Present conflicting information when sources disagree +- Apply confidence levels appropriately + +## BEHAVIOR ANALYSIS STANDARDS: + +- Always cite URLs for web search results +- Use authoritative customer research sources +- Note data currency and potential limitations +- Present multiple perspectives when sources conflict +- Apply confidence levels to uncertain data +- Focus on actionable customer insights + +## NEXT STEP: + +After user selects 'C', load `./step-03-customer-pain-points.md` to analyze customer pain points, challenges, and unmet needs for {{research_topic}}. + +Remember: Always write research content to document immediately and emphasize current customer data with rigorous source verification! diff --git a/src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-03-customer-pain-points.md b/src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-03-customer-pain-points.md new file mode 100644 index 000000000..f4d2ae6d8 --- /dev/null +++ b/src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-03-customer-pain-points.md @@ -0,0 +1,249 @@ +# Market Research Step 3: Customer Pain Points and Needs + +## MANDATORY EXECUTION RULES (READ FIRST): + +- 🛑 NEVER generate content without web search verification + +- 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions +- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding +- ✅ Search the web to verify and supplement your knowledge with current facts +- 📋 YOU ARE A CUSTOMER NEEDS ANALYST, not content generator +- 💬 FOCUS on customer pain points, challenges, and unmet needs +- 🔍 WEB SEARCH REQUIRED - verify current facts against live sources +- 📝 WRITE CONTENT IMMEDIATELY TO DOCUMENT +- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +## EXECUTION PROTOCOLS: + +- 🎯 Show web search analysis before presenting findings +- ⚠️ Present [C] continue option after pain points content generation +- 📝 WRITE CUSTOMER PAIN POINTS ANALYSIS TO DOCUMENT IMMEDIATELY +- 💾 ONLY proceed when user chooses C (Continue) +- 📖 Update frontmatter `stepsCompleted: [1, 2, 3]` before loading next step +- 🚫 FORBIDDEN to load next step until C is selected + +## CONTEXT BOUNDARIES: + +- Current document and frontmatter from previous steps are available +- Customer behavior analysis completed in previous step +- Focus on customer pain points, challenges, and unmet needs +- Web search capabilities with source verification are enabled +- **Research topic = "{{research_topic}}"** - established from initial discussion +- **Research goals = "{{research_goals}}"** - established from initial discussion + +## YOUR TASK: + +Conduct customer pain points and needs analysis with emphasis on challenges and frustrations. + +## CUSTOMER PAIN POINTS ANALYSIS SEQUENCE: + +### 1. Begin Customer Pain Points Analysis + +**UTILIZE SUBPROCESSES AND SUBAGENTS**: Use research subagents, subprocesses or parallel processing if available to thoroughly analyze different customer pain point areas simultaneously and thoroughly. + +Start with customer pain points research approach: +"Now I'll conduct **customer pain points analysis** for **{{research_topic}}** to understand customer challenges. + +**Customer Pain Points Focus:** + +- Customer challenges and frustrations +- Unmet needs and unaddressed problems +- Barriers to adoption or usage +- Service and support pain points +- Customer satisfaction gaps + +**Let me search for current customer pain points insights.**" + +### 2. Parallel Pain Points Research Execution + +**Execute multiple web searches simultaneously:** + +Search the web: "{{research_topic}} customer pain points challenges" +Search the web: "{{research_topic}} customer frustrations" +Search the web: "{{research_topic}} unmet customer needs" +Search the web: "{{research_topic}} customer barriers to adoption" + +**Analysis approach:** + +- Look for customer satisfaction surveys and reports +- Search for customer complaints and reviews +- Research customer support and service issues +- Analyze barriers to customer adoption +- Study unmet needs and market gaps + +### 3. Analyze and Aggregate Results + +**Collect and analyze findings from all parallel searches:** + +"After executing comprehensive parallel web searches, let me analyze and aggregate customer pain points findings: + +**Research Coverage:** + +- Customer challenges and frustrations +- Unmet needs and unaddressed problems +- Barriers to adoption or usage +- Service and support pain points + +**Cross-Pain Points Analysis:** +[Identify patterns connecting different types of pain points] + +**Quality Assessment:** +[Overall confidence levels and research gaps identified]" + +### 4. Generate Customer Pain Points Content + +**WRITE IMMEDIATELY TO DOCUMENT** + +Prepare customer pain points analysis with web search citations: + +#### Content Structure: + +When saving to document, append these Level 2 and Level 3 sections: + +```markdown +## Customer Pain Points and Needs + +### Customer Challenges and Frustrations + +[Customer challenges analysis with source citations] +_Primary Frustrations: [Major customer frustrations identified]_ +_Usage Barriers: [Barriers preventing effective usage]_ +_Service Pain Points: [Customer service and support issues]_ +_Frequency Analysis: [How often these challenges occur]_ +_Source: [URL]_ + +### Unmet Customer Needs + +[Unmet needs analysis with source citations] +_Critical Unmet Needs: [Most important unaddressed needs]_ +_Solution Gaps: [Opportunities to address unmet needs]_ +_Market Gaps: [Market opportunities from unmet needs]_ +_Priority Analysis: [Which needs are most critical]_ +_Source: [URL]_ + +### Barriers to Adoption + +[Adoption barriers analysis with source citations] +_Price Barriers: [Cost-related barriers to adoption]_ +_Technical Barriers: [Complexity or technical barriers]_ +_Trust Barriers: [Trust and credibility issues]_ +_Convenience Barriers: [Ease of use or accessibility issues]_ +_Source: [URL]_ + +### Service and Support Pain Points + +[Service pain points analysis with source citations] +_Customer Service Issues: [Common customer service problems]_ +_Support Gaps: [Areas where customer support is lacking]_ +_Communication Issues: [Communication breakdowns and frustrations]_ +_Response Time Issues: [Slow response and resolution problems]_ +_Source: [URL]_ + +### Customer Satisfaction Gaps + +[Satisfaction gap analysis with source citations] +_Expectation Gaps: [Differences between expectations and reality]_ +_Quality Gaps: [Areas where quality expectations aren't met]_ +_Value Perception Gaps: [Perceived value vs actual value]_ +_Trust and Credibility Gaps: [Trust issues affecting satisfaction]_ +_Source: [URL]_ + +### Emotional Impact Assessment + +[Emotional impact analysis with source citations] +_Frustration Levels: [Customer frustration severity assessment]_ +_Loyalty Risks: [How pain points affect customer loyalty]_ +_Reputation Impact: [Impact on brand or product reputation]_ +_Customer Retention Risks: [Risk of customer loss from pain points]_ +_Source: [URL]_ + +### Pain Point Prioritization + +[Pain point prioritization with source citations] +_High Priority Pain Points: [Most critical pain points to address]_ +_Medium Priority Pain Points: [Important but less critical pain points]_ +_Low Priority Pain Points: [Minor pain points with lower impact]_ +_Opportunity Mapping: [Pain points with highest solution opportunity]_ +_Source: [URL]_ +``` + +### 5. Present Analysis and Continue Option + +**Show analysis and present continue option:** + +"I've completed **customer pain points analysis** for {{research_topic}}, focusing on customer challenges. + +**Key Pain Points Findings:** + +- Customer challenges and frustrations thoroughly documented +- Unmet needs and solution gaps clearly identified +- Adoption barriers and service pain points analyzed +- Customer satisfaction gaps assessed +- Pain points prioritized by impact and opportunity + +**Ready to proceed to customer decision processes?** +[C] Continue - Save this to document and proceed to decision processes analysis + +### 6. Handle Continue Selection + +#### If 'C' (Continue): + +- **CONTENT ALREADY WRITTEN TO DOCUMENT** +- Update frontmatter: `stepsCompleted: [1, 2, 3]` +- Load: `./step-04-customer-decisions.md` + +## APPEND TO DOCUMENT: + +Content is already written to document when generated in step 4. No additional append needed. + +## SUCCESS METRICS: + +✅ Customer challenges and frustrations clearly documented +✅ Unmet needs and solution gaps identified +✅ Adoption barriers and service pain points analyzed +✅ Customer satisfaction gaps assessed +✅ Pain points prioritized by impact and opportunity +✅ Content written immediately to document +✅ [C] continue option presented and handled correctly +✅ Proper routing to next step (customer decisions) +✅ Research goals alignment maintained + +## FAILURE MODES: + +❌ Relying solely on training data without web verification for current facts + +❌ Missing critical customer challenges or frustrations +❌ Not identifying unmet needs or solution gaps +❌ Incomplete adoption barriers analysis +❌ Not writing content immediately to document +❌ Not presenting [C] continue option after content generation +❌ Not routing to customer decisions analysis step + +❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions +❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file +❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols + +## CUSTOMER PAIN POINTS RESEARCH PROTOCOLS: + +- Research customer satisfaction surveys and reviews +- Use customer feedback and complaint data +- Analyze customer support and service issues +- Study barriers to customer adoption +- Focus on current pain point data +- Present conflicting information when sources disagree +- Apply confidence levels appropriately + +## PAIN POINTS ANALYSIS STANDARDS: + +- Always cite URLs for web search results +- Use authoritative customer research sources +- Note data currency and potential limitations +- Present multiple perspectives when sources conflict +- Apply confidence levels to uncertain data +- Focus on actionable pain point insights + +## NEXT STEP: + +After user selects 'C', load `./step-04-customer-decisions.md` to analyze customer decision processes, journey mapping, and decision factors for {{research_topic}}. + +Remember: Always write research content to document immediately and emphasize current customer pain points data with rigorous source verification! diff --git a/src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-04-customer-decisions.md b/src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-04-customer-decisions.md new file mode 100644 index 000000000..21544335b --- /dev/null +++ b/src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-04-customer-decisions.md @@ -0,0 +1,259 @@ +# Market Research Step 4: Customer Decisions and Journey + +## MANDATORY EXECUTION RULES (READ FIRST): + +- 🛑 NEVER generate content without web search verification + +- 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions +- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding +- ✅ Search the web to verify and supplement your knowledge with current facts +- 📋 YOU ARE A CUSTOMER DECISION ANALYST, not content generator +- 💬 FOCUS on customer decision processes and journey mapping +- 🔍 WEB SEARCH REQUIRED - verify current facts against live sources +- 📝 WRITE CONTENT IMMEDIATELY TO DOCUMENT +- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +## EXECUTION PROTOCOLS: + +- 🎯 Show web search analysis before presenting findings +- ⚠️ Present [C] continue option after decision processes content generation +- 📝 WRITE CUSTOMER DECISIONS ANALYSIS TO DOCUMENT IMMEDIATELY +- 💾 ONLY proceed when user chooses C (Continue) +- 📖 Update frontmatter `stepsCompleted: [1, 2, 3, 4]` before loading next step +- 🚫 FORBIDDEN to load next step until C is selected + +## CONTEXT BOUNDARIES: + +- Current document and frontmatter from previous steps are available +- Customer behavior and pain points analysis completed in previous steps +- Focus on customer decision processes and journey mapping +- Web search capabilities with source verification are enabled +- **Research topic = "{{research_topic}}"** - established from initial discussion +- **Research goals = "{{research_goals}}"** - established from initial discussion + +## YOUR TASK: + +Conduct customer decision processes and journey analysis with emphasis on decision factors and journey mapping. + +## CUSTOMER DECISIONS ANALYSIS SEQUENCE: + +### 1. Begin Customer Decisions Analysis + +**UTILIZE SUBPROCESSES AND SUBAGENTS**: Use research subagents, subprocesses or parallel processing if available to thoroughly analyze different customer decision areas simultaneously and thoroughly. + +Start with customer decisions research approach: +"Now I'll conduct **customer decision processes analysis** for **{{research_topic}}** to understand customer decision-making. + +**Customer Decisions Focus:** + +- Customer decision-making processes +- Decision factors and criteria +- Customer journey mapping +- Purchase decision influencers +- Information gathering patterns + +**Let me search for current customer decision insights.**" + +### 2. Parallel Decisions Research Execution + +**Execute multiple web searches simultaneously:** + +Search the web: "{{research_topic}} customer decision process" +Search the web: "{{research_topic}} buying criteria factors" +Search the web: "{{research_topic}} customer journey mapping" +Search the web: "{{research_topic}} decision influencing factors" + +**Analysis approach:** + +- Look for customer decision research studies +- Search for buying criteria and factor analysis +- Research customer journey mapping methodologies +- Analyze decision influence factors and channels +- Study information gathering and evaluation patterns + +### 3. Analyze and Aggregate Results + +**Collect and analyze findings from all parallel searches:** + +"After executing comprehensive parallel web searches, let me analyze and aggregate customer decision findings: + +**Research Coverage:** + +- Customer decision-making processes +- Decision factors and criteria +- Customer journey mapping +- Decision influence factors + +**Cross-Decisions Analysis:** +[Identify patterns connecting decision factors and journey stages] + +**Quality Assessment:** +[Overall confidence levels and research gaps identified]" + +### 4. Generate Customer Decisions Content + +**WRITE IMMEDIATELY TO DOCUMENT** + +Prepare customer decisions analysis with web search citations: + +#### Content Structure: + +When saving to document, append these Level 2 and Level 3 sections: + +```markdown +## Customer Decision Processes and Journey + +### Customer Decision-Making Processes + +[Decision processes analysis with source citations] +_Decision Stages: [Key stages in customer decision making]_ +_Decision Timelines: [Timeframes for different decisions]_ +_Complexity Levels: [Decision complexity assessment]_ +_Evaluation Methods: [How customers evaluate options]_ +_Source: [URL]_ + +### Decision Factors and Criteria + +[Decision factors analysis with source citations] +_Primary Decision Factors: [Most important factors in decisions]_ +_Secondary Decision Factors: [Supporting factors influencing decisions]_ +_Weighing Analysis: [How different factors are weighed]_ +_Evoluton Patterns: [How factors change over time]_ +_Source: [URL]_ + +### Customer Journey Mapping + +[Journey mapping analysis with source citations] +_Awareness Stage: [How customers become aware of {{research_topic}}]_ +_Consideration Stage: [Evaluation and comparison process]_ +_Decision Stage: [Final decision-making process]_ +_Purchase Stage: [Purchase execution and completion]_ +_Post-Purchase Stage: [Post-decision evaluation and behavior]_ +_Source: [URL]_ + +### Touchpoint Analysis + +[Touchpoint analysis with source citations] +_Digital Touchpoints: [Online and digital interaction points]_ +_Offline Touchpoints: [Physical and in-person interaction points]_ +_Information Sources: [Where customers get information]_ +_Influence Channels: [What influences customer decisions]_ +_Source: [URL]_ + +### Information Gathering Patterns + +[Information patterns analysis with source citations] +_Research Methods: [How customers research options]_ +_Information Sources Trusted: [Most trusted information sources]_ +_Research Duration: [Time spent gathering information]_ +_Evaluation Criteria: [How customers evaluate information]_ +_Source: [URL]_ + +### Decision Influencers + +[Decision influencer analysis with source citations] +_Peer Influence: [How friends and family influence decisions]_ +_Expert Influence: [How expert opinions affect decisions]_ +_Media Influence: [How media and marketing affect decisions]_ +_Social Proof Influence: [How reviews and testimonials affect decisions]_ +_Source: [URL]_ + +### Purchase Decision Factors + +[Purchase decision factors analysis with source citations] +_Immediate Purchase Drivers: [Factors triggering immediate purchase]_ +_Delayed Purchase Drivers: [Factors causing purchase delays]_ +_Brand Loyalty Factors: [Factors driving repeat purchases]_ +_Price Sensitivity: [How price affects purchase decisions]_ +_Source: [URL]_ + +### Customer Decision Optimizations + +[Decision optimization analysis with source citations] +_Friction Reduction: [Ways to make decisions easier]_ +_Trust Building: [Building customer trust in decisions]_ +_Conversion Optimization: [Optimizing decision-to-purchase rates]_ +_Loyalty Building: [Building long-term customer relationships]_ +_Source: [URL]_ +``` + +### 5. Present Analysis and Continue Option + +**Show analysis and present continue option:** + +"I've completed **customer decision processes analysis** for {{research_topic}}, focusing on customer decision-making. + +**Key Decision Findings:** + +- Customer decision-making processes clearly mapped +- Decision factors and criteria thoroughly analyzed +- Customer journey mapping completed across all stages +- Decision influencers and touchpoints identified +- Information gathering patterns documented + +**Ready to proceed to competitive analysis?** +[C] Continue - Save this to document and proceed to competitive analysis + +### 6. Handle Continue Selection + +#### If 'C' (Continue): + +- **CONTENT ALREADY WRITTEN TO DOCUMENT** +- Update frontmatter: `stepsCompleted: [1, 2, 3, 4]` +- Load: `./step-05-competitive-analysis.md` + +## APPEND TO DOCUMENT: + +Content is already written to document when generated in step 4. No additional append needed. + +## SUCCESS METRICS: + +✅ Customer decision-making processes clearly mapped +✅ Decision factors and criteria thoroughly analyzed +✅ Customer journey mapping completed across all stages +✅ Decision influencers and touchpoints identified +✅ Information gathering patterns documented +✅ Content written immediately to document +✅ [C] continue option presented and handled correctly +✅ Proper routing to next step (competitive analysis) +✅ Research goals alignment maintained + +## FAILURE MODES: + +❌ Relying solely on training data without web verification for current facts + +❌ Missing critical decision-making process stages +❌ Not identifying key decision factors +❌ Incomplete customer journey mapping +❌ Not writing content immediately to document +❌ Not presenting [C] continue option after content generation +❌ Not routing to competitive analysis step + +❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions +❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file +❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols + +## CUSTOMER DECISIONS RESEARCH PROTOCOLS: + +- Research customer decision studies and psychology +- Use customer journey mapping methodologies +- Analyze buying criteria and decision factors +- Study decision influence and touchpoint analysis +- Focus on current decision data +- Present conflicting information when sources disagree +- Apply confidence levels appropriately + +## DECISION ANALYSIS STANDARDS: + +- Always cite URLs for web search results +- Use authoritative customer decision research sources +- Note data currency and potential limitations +- Present multiple perspectives when sources conflict +- Apply confidence levels to uncertain data +- Focus on actionable decision insights + +## NEXT STEP: + +After user selects 'C', load `./step-05-competitive-analysis.md` to analyze competitive landscape, market positioning, and competitive strategies for {{research_topic}}. + +Remember: Always write research content to document immediately and emphasize current customer decision data with rigorous source verification! diff --git a/src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-05-competitive-analysis.md b/src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-05-competitive-analysis.md new file mode 100644 index 000000000..d7387a4fc --- /dev/null +++ b/src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-05-competitive-analysis.md @@ -0,0 +1,177 @@ +# Market Research Step 5: Competitive Analysis + +## MANDATORY EXECUTION RULES (READ FIRST): + +- 🛑 NEVER generate content without web search verification + +- 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions +- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding +- ✅ Search the web to verify and supplement your knowledge with current facts +- 📋 YOU ARE A COMPETITIVE ANALYST, not content generator +- 💬 FOCUS on competitive landscape and market positioning +- 🔍 WEB SEARCH REQUIRED - verify current facts against live sources +- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +## EXECUTION PROTOCOLS: + +- 🎯 Show web search analysis before presenting findings +- ⚠️ Present [C] complete option after competitive analysis content generation +- 💾 ONLY save when user chooses C (Complete) +- 📖 Update frontmatter `stepsCompleted: [1, 2, 3, 4, 5]` before completing workflow +- 🚫 FORBIDDEN to complete workflow until C is selected + +## CONTEXT BOUNDARIES: + +- Current document and frontmatter from previous steps are available +- Focus on competitive landscape and market positioning analysis +- Web search capabilities with source verification are enabled +- May need to search for specific competitor information + +## YOUR TASK: + +Conduct comprehensive competitive analysis with emphasis on market positioning. + +## COMPETITIVE ANALYSIS SEQUENCE: + +### 1. Begin Competitive Analysis + +Start with competitive research approach: +"Now I'll conduct **competitive analysis** to understand the competitive landscape. + +**Competitive Analysis Focus:** + +- Key players and market share +- Competitive positioning strategies +- Strengths and weaknesses analysis +- Market differentiation opportunities +- Competitive threats and challenges + +**Let me search for current competitive information.**" + +### 2. Generate Competitive Analysis Content + +Prepare competitive analysis with web search citations: + +#### Content Structure: + +When saving to document, append these Level 2 and Level 3 sections: + +```markdown +## Competitive Landscape + +### Key Market Players + +[Key players analysis with market share data] +_Source: [URL]_ + +### Market Share Analysis + +[Market share analysis with source citations] +_Source: [URL]_ + +### Competitive Positioning + +[Positioning analysis with source citations] +_Source: [URL]_ + +### Strengths and Weaknesses + +[SWOT analysis with source citations] +_Source: [URL]_ + +### Market Differentiation + +[Differentiation analysis with source citations] +_Source: [URL]_ + +### Competitive Threats + +[Threats analysis with source citations] +_Source: [URL]_ + +### Opportunities + +[Competitive opportunities analysis with source citations] +_Source: [URL]_ +``` + +### 3. Present Analysis and Complete Option + +Show the generated competitive analysis and present complete option: +"I've completed the **competitive analysis** for the competitive landscape. + +**Key Competitive Findings:** + +- Key market players and market share identified +- Competitive positioning strategies mapped +- Strengths and weaknesses thoroughly analyzed +- Market differentiation opportunities identified +- Competitive threats and challenges documented + +**Ready to complete the market research?** +[C] Complete Research - Save final document and conclude + +### 4. Handle Complete Selection + +#### If 'C' (Complete Research): + +- Append the final content to the research document +- Update frontmatter: `stepsCompleted: [1, 2, 3]` +- Complete the market research workflow + +## APPEND TO DOCUMENT: + +When user selects 'C', append the content directly to the research document using the structure from step 2. + +## SUCCESS METRICS: + +✅ Key market players identified +✅ Market share analysis completed with source verification +✅ Competitive positioning strategies clearly mapped +✅ Strengths and weaknesses thoroughly analyzed +✅ Market differentiation opportunities identified +✅ [C] complete option presented and handled correctly +✅ Content properly appended to document when C selected +✅ Market research workflow completed successfully + +## FAILURE MODES: + +❌ Relying solely on training data without web verification for current facts + +❌ Missing key market players or market share data +❌ Incomplete competitive positioning analysis +❌ Not identifying market differentiation opportunities +❌ Not presenting completion option for research workflow +❌ Appending content without user selecting 'C' + +❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions +❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file +❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols + +## COMPETITIVE RESEARCH PROTOCOLS: + +- Search for industry reports and competitive intelligence +- Use competitor company websites and annual reports +- Research market research firm competitive analyses +- Note competitive advantages and disadvantages +- Search for recent market developments and disruptions + +## MARKET RESEARCH COMPLETION: + +When 'C' is selected: + +- All market research steps completed +- Comprehensive market research document generated +- All sections appended with source citations +- Market research workflow status updated +- Final recommendations provided to user + +## NEXT STEPS: + +Market research workflow complete. User may: + +- Use market research to inform product development strategies +- Conduct additional competitive research on specific companies +- Combine market research with other research types for comprehensive insights + +Congratulations on completing comprehensive market research! 🎉 diff --git a/src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-06-research-completion.md b/src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-06-research-completion.md new file mode 100644 index 000000000..0073b554e --- /dev/null +++ b/src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-06-research-completion.md @@ -0,0 +1,476 @@ +# Market Research Step 6: Research Completion + +## MANDATORY EXECUTION RULES (READ FIRST): + +- 🛑 NEVER generate content without web search verification + +- 📖 CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions +- 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding +- ✅ Search the web to verify and supplement your knowledge with current facts +- 📋 YOU ARE A MARKET RESEARCH STRATEGIST, not content generator +- 💬 FOCUS on strategic recommendations and actionable insights +- 🔍 WEB SEARCH REQUIRED - verify current facts against live sources +- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +## EXECUTION PROTOCOLS: + +- 🎯 Show web search analysis before presenting findings +- ⚠️ Present [C] complete option after completion content generation +- 💾 ONLY save when user chooses C (Complete) +- 📖 Update frontmatter `stepsCompleted: [1, 2, 3, 4, 5, 6]` before completing workflow +- 🚫 FORBIDDEN to complete workflow until C is selected +- 📚 GENERATE COMPLETE DOCUMENT STRUCTURE with intro, TOC, and summary + +## CONTEXT BOUNDARIES: + +- Current document and frontmatter from previous steps are available +- **Research topic = "{{research_topic}}"** - comprehensive market analysis +- **Research goals = "{{research_goals}}"** - achieved through exhaustive market research +- All market research sections have been completed (customer behavior, pain points, decisions, competitive analysis) +- Web search capabilities with source verification are enabled +- This is the final synthesis step producing the complete market research document + +## YOUR TASK: + +Produce a comprehensive, authoritative market research document on **{{research_topic}}** with compelling narrative introduction, detailed TOC, and executive summary based on exhaustive market research. + +## MARKET RESEARCH COMPLETION SEQUENCE: + +### 1. Begin Strategic Synthesis + +Start with strategic synthesis approach: +"Now I'll complete our market research with **strategic synthesis and recommendations** . + +**Strategic Synthesis Focus:** + +- Integrated insights from market, customer, and competitive analysis +- Strategic recommendations based on research findings +- Market entry or expansion strategies +- Risk assessment and mitigation approaches +- Actionable next steps and implementation guidance + +**Let me search for current strategic insights and best practices.**" + +### 2. Web Search for Market Entry Strategies + +Search for current market strategies: +Search the web: "market entry strategies best practices" + +**Strategy focus:** + +- Market entry timing and approaches +- Go-to-market strategies and frameworks +- Market positioning and differentiation tactics +- Customer acquisition and growth strategies + +### 3. Web Search for Risk Assessment + +Search for current risk approaches: +Search the web: "market research risk assessment frameworks" + +**Risk focus:** + +- Market risks and uncertainty management +- Competitive threats and mitigation strategies +- Regulatory and compliance risks +- Economic and market volatility considerations + +### 4. Generate Complete Market Research Document + +Prepare comprehensive market research document with full structure: + +#### Complete Document Structure: + +```markdown +# [Compelling Title]: Comprehensive {{research_topic}} Market Research + +## Executive Summary + +[Brief compelling overview of key market findings and strategic implications] + +## Table of Contents + +- Market Research Introduction and Methodology +- {{research_topic}} Market Analysis and Dynamics +- Customer Insights and Behavior Analysis +- Competitive Landscape and Positioning +- Strategic Market Recommendations +- Market Entry and Growth Strategies +- Risk Assessment and Mitigation +- Implementation Roadmap and Success Metrics +- Future Market Outlook and Opportunities +- Market Research Methodology and Source Documentation +- Market Research Appendices and Additional Resources + +## 1. Market Research Introduction and Methodology + +### Market Research Significance + +**Compelling market narrative about why {{research_topic}} research is critical now** +_Market Importance: [Strategic market significance with up-to-date context]_ +_Business Impact: [Business implications of market research]_ +_Source: [URL]_ + +### Market Research Methodology + +[Comprehensive description of market research approach including:] + +- **Market Scope**: [Comprehensive market coverage areas] +- **Data Sources**: [Authoritative market sources and verification approach] +- **Analysis Framework**: [Structured market analysis methodology] +- **Time Period**: [current focus and market evolution context] +- **Geographic Coverage**: [Regional/global market scope] + +### Market Research Goals and Objectives + +**Original Market Goals:** {{research_goals}} + +**Achieved Market Objectives:** + +- [Market Goal 1 achievement with supporting evidence] +- [Market Goal 2 achievement with supporting evidence] +- [Additional market insights discovered during research] + +## 2. {{research_topic}} Market Analysis and Dynamics + +### Market Size and Growth Projections + +_[Comprehensive market analysis]_ +_Market Size: [Current market valuation and size]_ +_Growth Rate: [CAGR and market growth projections]_ +_Market Drivers: [Key factors driving market growth]_ +_Market Segments: [Detailed market segmentation analysis]_ +_Source: [URL]_ + +### Market Trends and Dynamics + +[Current market trends analysis] +_Emerging Trends: [Key market trends and their implications]_ +_Market Dynamics: [Forces shaping market evolution]_ +_Consumer Behavior Shifts: [Changes in customer behavior and preferences]_ +_Source: [URL]_ + +### Pricing and Business Model Analysis + +[Comprehensive pricing and business model analysis] +_Pricing Strategies: [Current pricing approaches and models]_ +_Business Model Evolution: [Emerging and successful business models]_ +_Value Proposition Analysis: [Customer value proposition assessment]_ +_Source: [URL]_ + +## 3. Customer Insights and Behavior Analysis + +### Customer Behavior Patterns + +[Customer insights analysis with current context] +_Behavior Patterns: [Key customer behavior trends and patterns]_ +_Customer Journey: [Complete customer journey mapping]_ +_Decision Factors: [Factors influencing customer decisions]_ +_Source: [URL]_ + +### Customer Pain Points and Needs + +[Comprehensive customer pain point analysis] +_Pain Points: [Key customer challenges and frustrations]_ +_Unmet Needs: [Unsolved customer needs and opportunities]_ +_Customer Expectations: [Current customer expectations and requirements]_ +_Source: [URL]_ + +### Customer Segmentation and Targeting + +[Detailed customer segmentation analysis] +_Customer Segments: [Detailed customer segment profiles]_ +_Target Market Analysis: [Most attractive customer segments]_ +_Segment-specific Strategies: [Tailored approaches for key segments]_ +_Source: [URL]_ + +## 4. Competitive Landscape and Positioning + +### Competitive Analysis + +[Comprehensive competitive analysis] +_Market Leaders: [Dominant competitors and their strategies]_ +_Emerging Competitors: [New entrants and innovative approaches]_ +_Competitive Advantages: [Key differentiators and competitive advantages]_ +_Source: [URL]_ + +### Market Positioning Strategies + +[Strategic positioning analysis] +_Positioning Opportunities: [Opportunities for market differentiation]_ +_Competitive Gaps: [Unserved market needs and opportunities]_ +_Positioning Framework: [Recommended positioning approach]_ +_Source: [URL]_ + +## 5. Strategic Market Recommendations + +### Market Opportunity Assessment + +[Strategic market opportunities analysis] +_High-Value Opportunities: [Most attractive market opportunities]_ +_Market Entry Timing: [Optimal timing for market entry or expansion]_ +_Growth Strategies: [Recommended approaches for market growth]_ +_Source: [URL]_ + +### Strategic Recommendations + +[Comprehensive strategic recommendations] +_Market Entry Strategy: [Recommended approach for market entry/expansion]_ +_Competitive Strategy: [Recommended competitive positioning and approach]_ +_Customer Acquisition Strategy: [Recommended customer acquisition approach]_ +_Source: [URL]_ + +## 6. Market Entry and Growth Strategies + +### Go-to-Market Strategy + +[Comprehensive go-to-market approach] +_Market Entry Approach: [Recommended market entry strategy and tactics]_ +_Channel Strategy: [Optimal channels for market reach and customer acquisition]_ +_Partnership Strategy: [Strategic partnership and collaboration opportunities]_ +_Source: [URL]_ + +### Growth and Scaling Strategy + +[Market growth and scaling analysis] +_Growth Phases: [Recommended phased approach to market growth]_ +_Scaling Considerations: [Key factors for successful market scaling]_ +_Expansion Opportunities: [Opportunities for geographic or segment expansion]_ +_Source: [URL]_ + +## 7. Risk Assessment and Mitigation + +### Market Risk Analysis + +[Comprehensive market risk assessment] +_Market Risks: [Key market-related risks and uncertainties]_ +_Competitive Risks: [Competitive threats and mitigation strategies]_ +_Regulatory Risks: [Regulatory and compliance considerations]_ +_Source: [URL]_ + +### Mitigation Strategies + +[Risk mitigation and contingency planning] +_Risk Mitigation Approaches: [Strategies for managing identified risks]_ +_Contingency Planning: [Backup plans and alternative approaches]_ +_Market Sensitivity Analysis: [Impact of market changes on strategy]_ +_Source: [URL]_ + +## 8. Implementation Roadmap and Success Metrics + +### Implementation Framework + +[Comprehensive implementation guidance] +_Implementation Timeline: [Recommended phased implementation approach]_ +_Required Resources: [Key resources and capabilities needed]_ +_Implementation Milestones: [Key milestones and success criteria]_ +_Source: [URL]_ + +### Success Metrics and KPIs + +[Comprehensive success measurement framework] +_Key Performance Indicators: [Critical metrics for measuring success]_ +_Monitoring and Reporting: [Approach for tracking and reporting progress]_ +_Success Criteria: [Clear criteria for determining success]_ +_Source: [URL]_ + +## 9. Future Market Outlook and Opportunities + +### Future Market Trends + +[Forward-looking market analysis] +_Near-term Market Evolution: [1-2 year market development expectations]_ +_Medium-term Market Trends: [3-5 year expected market developments]_ +_Long-term Market Vision: [5+ year market outlook for {{research_topic}}]_ +_Source: [URL]_ + +### Strategic Opportunities + +[Market opportunity analysis and recommendations] +_Emerging Opportunities: [New market opportunities and their potential]_ +_Innovation Opportunities: [Areas for market innovation and differentiation]_ +_Strategic Market Investments: [Recommended market investments and priorities]_ +_Source: [URL]_ + +## 10. Market Research Methodology and Source Verification + +### Comprehensive Market Source Documentation + +[Complete documentation of all market research sources] +_Primary Market Sources: [Key authoritative market sources used]_ +_Secondary Market Sources: [Supporting market research and analysis]_ +_Market Web Search Queries: [Complete list of market search queries used]_ + +### Market Research Quality Assurance + +[Market research quality assurance and validation approach] +_Market Source Verification: [All market claims verified with multiple sources]_ +_Market Confidence Levels: [Confidence assessments for uncertain market data]_ +_Market Research Limitations: [Market research limitations and areas for further investigation]_ +_Methodology Transparency: [Complete transparency about market research approach]_ + +## 11. Market Research Appendices and Additional Resources + +### Detailed Market Data Tables + +[Comprehensive market data tables supporting research findings] +_Market Size Data: [Detailed market size and growth data tables]_ +_Customer Analysis Data: [Detailed customer behavior and segmentation data]_ +_Competitive Analysis Data: [Detailed competitor comparison and positioning data]_ + +### Market Resources and References + +[Valuable market resources for continued research and implementation] +_Market Research Reports: [Authoritative market research reports and publications]_ +_Industry Associations: [Key industry organizations and market resources]_ +_Market Analysis Tools: [Tools and resources for ongoing market analysis]_ + +--- + +## Market Research Conclusion + +### Summary of Key Market Findings + +[Comprehensive summary of the most important market research findings] + +### Strategic Market Impact Assessment + +[Assessment of market implications for {{research_topic}}] + +### Next Steps Market Recommendations + +[Specific next steps for leveraging this market research] + +--- + +**Market Research Completion Date:** {{date}} +**Research Period:** current comprehensive market analysis +**Document Length:** As needed for comprehensive market coverage +**Source Verification:** All market facts cited with current sources +**Market Confidence Level:** High - based on multiple authoritative market sources + +_This comprehensive market research document serves as an authoritative market reference on {{research_topic}} and provides strategic market insights for informed decision-making._ +``` + +### 5. Present Complete Market Research Document and Final Option + +**Market Research Document Completion Presentation:** + +"I've completed the **comprehensive market research document synthesis** for **{{research_topic}}**, producing an authoritative market research document with: + +**Document Features:** + +- **Compelling Market Introduction**: Engaging opening that establishes market research significance +- **Comprehensive Market TOC**: Complete navigation structure for market reference +- **Exhaustive Market Research Coverage**: All market aspects of {{research_topic}} thoroughly analyzed +- **Executive Market Summary**: Key market findings and strategic implications highlighted +- **Strategic Market Recommendations**: Actionable market insights based on comprehensive research +- **Complete Market Source Citations**: Every market claim verified with current sources + +**Market Research Completeness:** + +- Market analysis and dynamics fully documented +- Customer insights and behavior analysis comprehensively covered +- Competitive landscape and positioning detailed +- Strategic market recommendations and implementation guidance provided + +**Document Standards Met:** + +- Exhaustive market research with no critical gaps +- Professional market structure and compelling narrative +- As long as needed for comprehensive market coverage +- Multiple independent sources for all market claims +- current market data throughout with proper citations + +**Ready to complete this comprehensive market research document?** +[C] Complete Research - Save final comprehensive market research document + +### 6. Handle Complete Selection + +#### If 'C' (Complete Research): + +- **Replace** the template placeholder `[Research overview and methodology will be appended here]` in the `## Research Overview` section near the top of the document with a concise 2-3 paragraph overview summarizing the research scope, key findings, and a pointer to the full executive summary in the Research Synthesis section +- Append the final content to the research document +- Update frontmatter: `stepsCompleted: [1, 2, 3, 4]` +- Complete the market research workflow + +## APPEND TO DOCUMENT: + +When user selects 'C', append the content directly to the research document using the structure from step 4. Also replace the `[Research overview and methodology will be appended here]` placeholder in the Research Overview section at the top of the document. + +## SUCCESS METRICS: + +✅ Compelling market introduction with research significance +✅ Comprehensive market table of contents with complete document structure +✅ Exhaustive market research coverage across all market aspects +✅ Executive market summary with key findings and strategic implications +✅ Strategic market recommendations grounded in comprehensive research +✅ Complete market source verification with current citations +✅ Professional market document structure and compelling narrative +✅ [C] complete option presented and handled correctly +✅ Market research workflow completed with comprehensive document + +## FAILURE MODES: + +❌ Not producing compelling market introduction +❌ Missing comprehensive market table of contents +❌ Incomplete market research coverage across market aspects +❌ Not providing executive market summary with key findings +❌ Missing strategic market recommendations based on research +❌ Relying solely on training data without web verification for current facts +❌ Producing market document without professional structure +❌ Not presenting completion option for final market document + +❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions +❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file +❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols + +## STRATEGIC RESEARCH PROTOCOLS: + +- Search for current market strategy frameworks and best practices +- Research successful market entry cases and approaches +- Identify risk management methodologies and frameworks +- Research implementation planning and execution strategies +- Consider market timing and readiness factors + +## COMPREHENSIVE MARKET DOCUMENT STANDARDS: + +This step ensures the final market research document: + +- Serves as an authoritative market reference on {{research_topic}} +- Provides strategic market insights for informed decision-making +- Includes comprehensive market coverage with no gaps +- Maintains rigorous market source verification standards +- Delivers strategic market insights and actionable recommendations +- Meets professional market research document quality standards + +## MARKET RESEARCH WORKFLOW COMPLETION: + +When 'C' is selected: + +- All market research steps completed (1-4) +- Comprehensive market research document generated +- Professional market document structure with intro, TOC, and summary +- All market sections appended with source citations +- Market research workflow status updated to complete +- Final comprehensive market research document delivered to user + +## FINAL MARKET DELIVERABLE: + +Complete authoritative market research document on {{research_topic}} that: + +- Establishes professional market credibility through comprehensive research +- Provides strategic market insights for informed decision-making +- Serves as market reference document for continued use +- Maintains highest market research quality standards with current verification + +## NEXT STEPS: + +Comprehensive market research workflow complete. User may: + +- Use market research document to inform business strategies and decisions +- Conduct additional market research on specific segments or opportunities +- Combine market research with other research types for comprehensive insights +- Move forward with implementation based on strategic market recommendations + +Congratulations on completing comprehensive market research with professional documentation! 🎉 diff --git a/src/bmm/workflows/1-analysis/research/bmad-market-research/research.template.md b/src/bmm/workflows/1-analysis/research/bmad-market-research/research.template.md new file mode 100644 index 000000000..1d9952470 --- /dev/null +++ b/src/bmm/workflows/1-analysis/research/bmad-market-research/research.template.md @@ -0,0 +1,29 @@ +--- +stepsCompleted: [] +inputDocuments: [] +workflowType: 'research' +lastStep: 1 +research_type: '{{research_type}}' +research_topic: '{{research_topic}}' +research_goals: '{{research_goals}}' +user_name: '{{user_name}}' +date: '{{date}}' +web_research_enabled: true +source_verification: true +--- + +# Research Report: {{research_type}} + +**Date:** {{date}} +**Author:** {{user_name}} +**Research Type:** {{research_type}} + +--- + +## Research Overview + +[Research overview and methodology will be appended here] + +--- + + diff --git a/src/bmm/workflows/1-analysis/research/bmad-market-research/workflow.md b/src/bmm/workflows/1-analysis/research/bmad-market-research/workflow.md new file mode 100644 index 000000000..f991d5484 --- /dev/null +++ b/src/bmm/workflows/1-analysis/research/bmad-market-research/workflow.md @@ -0,0 +1,53 @@ +--- +{} +--- + +# Market Research Workflow + +**Goal:** Conduct comprehensive market research using current web data and verified sources to produce complete research documents with compelling narratives and proper citations. + +**Your Role:** You are a market research facilitator working with an expert partner. This is a collaboration where you bring research methodology and web search capabilities, while your partner brings domain knowledge and research direction. + +## PREREQUISITE + +**⛔ Web search required.** If unavailable, abort and tell the user. + +## CONFIGURATION + +Load config from `{project-root}/_bmad/bmm/config.yaml` and resolve: +- `project_name`, `output_folder`, `planning_artifacts`, `user_name` +- `communication_language`, `document_output_language`, `user_skill_level` +- `date` as a system-generated value + +## QUICK TOPIC DISCOVERY + +"Welcome {{user_name}}! Let's get started with your **market research**. + +**What topic, problem, or area do you want to research?** + +For example: +- 'The electric vehicle market in Europe' +- 'Plant-based food alternatives market' +- 'Mobile payment solutions in Southeast Asia' +- 'Or anything else you have in mind...'" + +### Topic Clarification + +Based on the user's topic, briefly clarify: +1. **Core Topic**: "What exactly about [topic] are you most interested in?" +2. **Research Goals**: "What do you hope to achieve with this research?" +3. **Scope**: "Should we focus broadly or dive deep into specific aspects?" + +## ROUTE TO MARKET RESEARCH STEPS + +After gathering the topic and goals: + +1. Set `research_type = "market"` +2. Set `research_topic = [discovered topic from discussion]` +3. Set `research_goals = [discovered goals from discussion]` +4. Create the starter output file: `{planning_artifacts}/research/market-{{research_topic}}-research-{{date}}.md` with exact copy of the `./research.template.md` contents +5. Load: `./market-steps/step-01-init.md` with topic context + +**Note:** The discovered topic from the discussion should be passed to the initialization step, so it doesn't need to ask "What do you want to research?" again - it can focus on refining the scope for market research. + +**✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`** diff --git a/src/bmm/workflows/1-analysis/research/bmad-skill-manifest.yaml b/src/bmm/workflows/1-analysis/research/bmad-skill-manifest.yaml deleted file mode 100644 index 04a998889..000000000 --- a/src/bmm/workflows/1-analysis/research/bmad-skill-manifest.yaml +++ /dev/null @@ -1,4 +0,0 @@ -workflow-market-research.md: - canonicalId: bmad-market-research - type: workflow - description: "Conduct market research on competition and customers. Use when the user says 'create a market research report about [business idea]'" diff --git a/src/bmm/workflows/1-analysis/research/workflow-market-research.md b/src/bmm/workflows/1-analysis/research/workflow-market-research.md index 8a77a67cd..d1e00bfac 100644 --- a/src/bmm/workflows/1-analysis/research/workflow-market-research.md +++ b/src/bmm/workflows/1-analysis/research/workflow-market-research.md @@ -1,6 +1,7 @@ --- name: market-research description: 'Conduct market research on competition and customers. Use when the user says "create a market research report about [business idea]".' +standalone: false --- # Market Research Workflow From a136713dc97f06276e36be1f0a4565092032a145 Mon Sep 17 00:00:00 2001 From: Alex Verkhovsky Date: Sat, 14 Mar 2026 16:22:01 -0600 Subject: [PATCH 4/7] refactor(skills): convert validate-prd to native skill directory Move validate-prd from a workflow entry in create-prd manifest to a self-contained skill at src/bmm/workflows/2-plan-workflows/bmad-validate-prd/. Update pm.agent.yaml and module-help.csv to use skill: URI. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/bmm/agents/pm.agent.yaml | 2 +- src/bmm/module-help.csv | 2 +- .../bmad-validate-prd/SKILL.md | 6 + .../bmad-skill-manifest.yaml | 1 + .../data/domain-complexity.csv | 15 + .../bmad-validate-prd/data/prd-purpose.md | 197 +++++++++++++ .../bmad-validate-prd/data/project-types.csv | 11 + .../steps-v/step-v-01-discovery.md | 226 +++++++++++++++ .../steps-v/step-v-02-format-detection.md | 191 +++++++++++++ .../steps-v/step-v-02b-parity-check.md | 209 ++++++++++++++ .../steps-v/step-v-03-density-validation.md | 174 ++++++++++++ .../step-v-04-brief-coverage-validation.md | 214 ++++++++++++++ .../step-v-05-measurability-validation.md | 228 +++++++++++++++ .../step-v-06-traceability-validation.md | 217 ++++++++++++++ ...-v-07-implementation-leakage-validation.md | 205 ++++++++++++++ .../step-v-08-domain-compliance-validation.md | 243 ++++++++++++++++ .../step-v-09-project-type-validation.md | 263 +++++++++++++++++ .../steps-v/step-v-10-smart-validation.md | 209 ++++++++++++++ .../step-v-11-holistic-quality-validation.md | 265 ++++++++++++++++++ .../step-v-12-completeness-validation.md | 242 ++++++++++++++++ .../steps-v/step-v-13-report-complete.md | 232 +++++++++++++++ .../bmad-validate-prd/workflow.md | 62 ++++ .../create-prd/bmad-skill-manifest.yaml | 4 - .../create-prd/workflow-validate-prd.md | 1 + 24 files changed, 3413 insertions(+), 6 deletions(-) create mode 100644 src/bmm/workflows/2-plan-workflows/bmad-validate-prd/SKILL.md create mode 100644 src/bmm/workflows/2-plan-workflows/bmad-validate-prd/bmad-skill-manifest.yaml create mode 100644 src/bmm/workflows/2-plan-workflows/bmad-validate-prd/data/domain-complexity.csv create mode 100644 src/bmm/workflows/2-plan-workflows/bmad-validate-prd/data/prd-purpose.md create mode 100644 src/bmm/workflows/2-plan-workflows/bmad-validate-prd/data/project-types.csv create mode 100644 src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-01-discovery.md create mode 100644 src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-02-format-detection.md create mode 100644 src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-02b-parity-check.md create mode 100644 src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-03-density-validation.md create mode 100644 src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-04-brief-coverage-validation.md create mode 100644 src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-05-measurability-validation.md create mode 100644 src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-06-traceability-validation.md create mode 100644 src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-07-implementation-leakage-validation.md create mode 100644 src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-08-domain-compliance-validation.md create mode 100644 src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-09-project-type-validation.md create mode 100644 src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-10-smart-validation.md create mode 100644 src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-11-holistic-quality-validation.md create mode 100644 src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-12-completeness-validation.md create mode 100644 src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-13-report-complete.md create mode 100644 src/bmm/workflows/2-plan-workflows/bmad-validate-prd/workflow.md delete mode 100644 src/bmm/workflows/2-plan-workflows/create-prd/bmad-skill-manifest.yaml diff --git a/src/bmm/agents/pm.agent.yaml b/src/bmm/agents/pm.agent.yaml index 707d17da6..b9e5c4ed3 100644 --- a/src/bmm/agents/pm.agent.yaml +++ b/src/bmm/agents/pm.agent.yaml @@ -24,7 +24,7 @@ agent: description: "[CP] Create PRD: Expert led facilitation to produce your Product Requirements Document" - trigger: VP or fuzzy match on validate-prd - exec: "{project-root}/_bmad/bmm/workflows/2-plan-workflows/create-prd/workflow-validate-prd.md" + exec: "skill:bmad-validate-prd" description: "[VP] Validate PRD: Validate a Product Requirements Document is comprehensive, lean, well organized and cohesive" - trigger: EP or fuzzy match on edit-prd diff --git a/src/bmm/module-help.csv b/src/bmm/module-help.csv index df5118a58..d88ce3278 100644 --- a/src/bmm/module-help.csv +++ b/src/bmm/module-help.csv @@ -16,7 +16,7 @@ bmm,1-analysis,Domain Research,DR,21,skill:bmad-domain-research,bmad-bmm-domain- bmm,1-analysis,Technical Research,TR,22,skill:bmad-technical-research,bmad-bmm-technical-research,false,analyst,Create Mode,"Technical feasibility architecture options and implementation approaches","planning_artifacts|project_knowledge","research documents", bmm,1-analysis,Create Brief,CB,30,skill:bmad-create-product-brief,bmad-bmm-create-product-brief,false,analyst,Create Mode,"A guided experience to nail down your product idea",planning_artifacts,"product brief", bmm,2-planning,Create PRD,CP,10,skill:bmad-create-prd,bmad-bmm-create-prd,true,pm,Create Mode,"Expert led facilitation to produce your Product Requirements Document",planning_artifacts,prd, -bmm,2-planning,Validate PRD,VP,20,_bmad/bmm/workflows/2-plan-workflows/create-prd/workflow-validate-prd.md,bmad-bmm-validate-prd,false,pm,Validate Mode,"Validate PRD is comprehensive lean well organized and cohesive",planning_artifacts,"prd validation report", +bmm,2-planning,Validate PRD,VP,20,skill:bmad-validate-prd,bmad-bmm-validate-prd,false,pm,Validate Mode,"Validate PRD is comprehensive lean well organized and cohesive",planning_artifacts,"prd validation report", bmm,2-planning,Edit PRD,EP,25,skill:bmad-edit-prd,bmad-bmm-edit-prd,false,pm,Edit Mode,"Improve and enhance an existing PRD",planning_artifacts,"updated prd", bmm,2-planning,Create UX,CU,30,skill:bmad-create-ux-design,bmad-bmm-create-ux-design,false,ux-designer,Create Mode,"Guidance through realizing the plan for your UX, strongly recommended if a UI is a primary piece of the proposed project",planning_artifacts,"ux design", bmm,3-solutioning,Create Architecture,CA,10,skill:bmad-create-architecture,bmad-bmm-create-architecture,true,architect,Create Mode,"Guided Workflow to document technical decisions",planning_artifacts,architecture, diff --git a/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/SKILL.md b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/SKILL.md new file mode 100644 index 000000000..7c9eb0bd5 --- /dev/null +++ b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/SKILL.md @@ -0,0 +1,6 @@ +--- +name: bmad-validate-prd +description: 'Validate a PRD against standards. Use when the user says "validate this PRD" or "run PRD validation"' +--- + +Follow the instructions in [workflow.md](workflow.md). diff --git a/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/bmad-skill-manifest.yaml b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/bmad-skill-manifest.yaml new file mode 100644 index 000000000..d0f08abdb --- /dev/null +++ b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/bmad-skill-manifest.yaml @@ -0,0 +1 @@ +type: skill diff --git a/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/data/domain-complexity.csv b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/data/domain-complexity.csv new file mode 100644 index 000000000..60a7b503f --- /dev/null +++ b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/data/domain-complexity.csv @@ -0,0 +1,15 @@ +domain,signals,complexity,key_concerns,required_knowledge,suggested_workflow,web_searches,special_sections +healthcare,"medical,diagnostic,clinical,FDA,patient,treatment,HIPAA,therapy,pharma,drug",high,"FDA approval;Clinical validation;HIPAA compliance;Patient safety;Medical device classification;Liability","Regulatory pathways;Clinical trial design;Medical standards;Data privacy;Integration requirements","domain-research","FDA software medical device guidance {date};HIPAA compliance software requirements;Medical software standards {date};Clinical validation software","clinical_requirements;regulatory_pathway;validation_methodology;safety_measures" +fintech,"payment,banking,trading,investment,crypto,wallet,transaction,KYC,AML,funds,fintech",high,"Regional compliance;Security standards;Audit requirements;Fraud prevention;Data protection","KYC/AML requirements;PCI DSS;Open banking;Regional laws (US/EU/APAC);Crypto regulations","domain-research","fintech regulations {date};payment processing compliance {date};open banking API standards;cryptocurrency regulations {date}","compliance_matrix;security_architecture;audit_requirements;fraud_prevention" +govtech,"government,federal,civic,public sector,citizen,municipal,voting",high,"Procurement rules;Security clearance;Accessibility (508);FedRAMP;Privacy;Transparency","Government procurement;Security frameworks;Accessibility standards;Privacy laws;Open data requirements","domain-research","government software procurement {date};FedRAMP compliance requirements;section 508 accessibility;government security standards","procurement_compliance;security_clearance;accessibility_standards;transparency_requirements" +edtech,"education,learning,student,teacher,curriculum,assessment,K-12,university,LMS",medium,"Student privacy (COPPA/FERPA);Accessibility;Content moderation;Age verification;Curriculum standards","Educational privacy laws;Learning standards;Accessibility requirements;Content guidelines;Assessment validity","domain-research","educational software privacy {date};COPPA FERPA compliance;WCAG education requirements;learning management standards","privacy_compliance;content_guidelines;accessibility_features;curriculum_alignment" +aerospace,"aircraft,spacecraft,aviation,drone,satellite,propulsion,flight,radar,navigation",high,"Safety certification;DO-178C compliance;Performance validation;Simulation accuracy;Export controls","Aviation standards;Safety analysis;Simulation validation;ITAR/export controls;Performance requirements","domain-research + technical-model","DO-178C software certification;aerospace simulation standards {date};ITAR export controls software;aviation safety requirements","safety_certification;simulation_validation;performance_requirements;export_compliance" +automotive,"vehicle,car,autonomous,ADAS,automotive,driving,EV,charging",high,"Safety standards;ISO 26262;V2X communication;Real-time requirements;Certification","Automotive standards;Functional safety;V2X protocols;Real-time systems;Testing requirements","domain-research","ISO 26262 automotive software;automotive safety standards {date};V2X communication protocols;EV charging standards","safety_standards;functional_safety;communication_protocols;certification_requirements" +scientific,"research,algorithm,simulation,modeling,computational,analysis,data science,ML,AI",medium,"Reproducibility;Validation methodology;Peer review;Performance;Accuracy;Computational resources","Scientific method;Statistical validity;Computational requirements;Domain expertise;Publication standards","technical-model","scientific computing best practices {date};research reproducibility standards;computational modeling validation;peer review software","validation_methodology;accuracy_metrics;reproducibility_plan;computational_requirements" +legaltech,"legal,law,contract,compliance,litigation,patent,attorney,court",high,"Legal ethics;Bar regulations;Data retention;Attorney-client privilege;Court system integration","Legal practice rules;Ethics requirements;Court filing systems;Document standards;Confidentiality","domain-research","legal technology ethics {date};law practice management software requirements;court filing system standards;attorney client privilege technology","ethics_compliance;data_retention;confidentiality_measures;court_integration" +insuretech,"insurance,claims,underwriting,actuarial,policy,risk,premium",high,"Insurance regulations;Actuarial standards;Data privacy;Fraud detection;State compliance","Insurance regulations by state;Actuarial methods;Risk modeling;Claims processing;Regulatory reporting","domain-research","insurance software regulations {date};actuarial standards software;insurance fraud detection;state insurance compliance","regulatory_requirements;risk_modeling;fraud_detection;reporting_compliance" +energy,"energy,utility,grid,solar,wind,power,electricity,oil,gas",high,"Grid compliance;NERC standards;Environmental regulations;Safety requirements;Real-time operations","Energy regulations;Grid standards;Environmental compliance;Safety protocols;SCADA systems","domain-research","energy sector software compliance {date};NERC CIP standards;smart grid requirements;renewable energy software standards","grid_compliance;safety_protocols;environmental_compliance;operational_requirements" +process_control,"industrial automation,process control,PLC,SCADA,DCS,HMI,operational technology,OT,control system,cyberphysical,MES,historian,instrumentation,I&C,P&ID",high,"Functional safety;OT cybersecurity;Real-time control requirements;Legacy system integration;Process safety and hazard analysis;Environmental compliance and permitting;Engineering authority and PE requirements","Functional safety standards;OT security frameworks;Industrial protocols;Process control architecture;Plant reliability and maintainability","domain-research + technical-model","IEC 62443 OT cybersecurity requirements {date};functional safety software requirements {date};industrial process control architecture;ISA-95 manufacturing integration","functional_safety;ot_security;process_requirements;engineering_authority" +building_automation,"building automation,BAS,BMS,HVAC,smart building,lighting control,fire alarm,fire protection,fire suppression,life safety,elevator,access control,DDC,energy management,sequence of operations,commissioning",high,"Life safety codes;Building energy standards;Multi-trade coordination and interoperability;Commissioning and ongoing operational performance;Indoor environmental quality and occupant comfort;Engineering authority and PE requirements","Building automation protocols;HVAC and mechanical controls;Fire alarm, fire protection, and life safety design;Commissioning process and sequence of operations;Building codes and energy standards","domain-research","smart building software architecture {date};BACnet integration best practices;building automation cybersecurity {date};ASHRAE building standards","life_safety;energy_compliance;commissioning_requirements;engineering_authority" +gaming,"game,player,gameplay,level,character,multiplayer,quest",redirect,"REDIRECT TO GAME WORKFLOWS","Game design","game-brief","NA","NA" +general,"",low,"Standard requirements;Basic security;User experience;Performance","General software practices","continue","software development best practices {date}","standard_requirements" \ No newline at end of file diff --git a/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/data/prd-purpose.md b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/data/prd-purpose.md new file mode 100644 index 000000000..755230be7 --- /dev/null +++ b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/data/prd-purpose.md @@ -0,0 +1,197 @@ +# BMAD PRD Purpose + +**The PRD is the top of the required funnel that feeds all subsequent product development work in rhw BMad Method.** + +--- + +## What is a BMAD PRD? + +A dual-audience document serving: +1. **Human Product Managers and builders** - Vision, strategy, stakeholder communication +2. **LLM Downstream Consumption** - UX Design → Architecture → Epics → Development AI Agents + +Each successive document becomes more AI-tailored and granular. + +--- + +## Core Philosophy: Information Density + +**High Signal-to-Noise Ratio** + +Every sentence must carry information weight. LLMs consume precise, dense content efficiently. + +**Anti-Patterns (Eliminate These):** +- ❌ "The system will allow users to..." → ✅ "Users can..." +- ❌ "It is important to note that..." → ✅ State the fact directly +- ❌ "In order to..." → ✅ "To..." +- ❌ Conversational filler and padding → ✅ Direct, concise statements + +**Goal:** Maximum information per word. Zero fluff. + +--- + +## The Traceability Chain + +**PRD starts the chain:** +``` +Vision → Success Criteria → User Journeys → Functional Requirements → (future: User Stories) +``` + +**In the PRD, establish:** +- Vision → Success Criteria alignment +- Success Criteria → User Journey coverage +- User Journey → Functional Requirement mapping +- All requirements traceable to user needs + +**Why:** Each downstream artifact (UX, Architecture, Epics, Stories) must trace back to documented user needs and business objectives. This chain ensures we build the right thing. + +--- + +## What Makes Great Functional Requirements? + +### FRs are Capabilities, Not Implementation + +**Good FR:** "Users can reset their password via email link" +**Bad FR:** "System sends JWT via email and validates with database" (implementation leakage) + +**Good FR:** "Dashboard loads in under 2 seconds for 95th percentile" +**Bad FR:** "Fast loading time" (subjective, unmeasurable) + +### SMART Quality Criteria + +**Specific:** Clear, precisely defined capability +**Measurable:** Quantifiable with test criteria +**Attainable:** Realistic within constraints +**Relevant:** Aligns with business objectives +**Traceable:** Links to source (executive summary or user journey) + +### FR Anti-Patterns + +**Subjective Adjectives:** +- ❌ "easy to use", "intuitive", "user-friendly", "fast", "responsive" +- ✅ Use metrics: "completes task in under 3 clicks", "loads in under 2 seconds" + +**Implementation Leakage:** +- ❌ Technology names, specific libraries, implementation details +- ✅ Focus on capability and measurable outcomes + +**Vague Quantifiers:** +- ❌ "multiple users", "several options", "various formats" +- ✅ "up to 100 concurrent users", "3-5 options", "PDF, DOCX, TXT formats" + +**Missing Test Criteria:** +- ❌ "The system shall provide notifications" +- ✅ "The system shall send email notifications within 30 seconds of trigger event" + +--- + +## What Makes Great Non-Functional Requirements? + +### NFRs Must Be Measurable + +**Template:** +``` +"The system shall [metric] [condition] [measurement method]" +``` + +**Examples:** +- ✅ "The system shall respond to API requests in under 200ms for 95th percentile as measured by APM monitoring" +- ✅ "The system shall maintain 99.9% uptime during business hours as measured by cloud provider SLA" +- ✅ "The system shall support 10,000 concurrent users as measured by load testing" + +### NFR Anti-Patterns + +**Unmeasurable Claims:** +- ❌ "The system shall be scalable" → ✅ "The system shall handle 10x load growth through horizontal scaling" +- ❌ "High availability required" → ✅ "99.9% uptime as measured by cloud provider SLA" + +**Missing Context:** +- ❌ "Response time under 1 second" → ✅ "API response time under 1 second for 95th percentile under normal load" + +--- + +## Domain-Specific Requirements + +**Auto-Detect and Enforce Based on Project Context** + +Certain industries have mandatory requirements that must be present: + +- **Healthcare:** HIPAA Privacy & Security Rules, PHI encryption, audit logging, MFA +- **Fintech:** PCI-DSS Level 1, AML/KYC compliance, SOX controls, financial audit trails +- **GovTech:** NIST framework, Section 508 accessibility (WCAG 2.1 AA), FedRAMP, data residency +- **E-Commerce:** PCI-DSS for payments, inventory accuracy, tax calculation by jurisdiction + +**Why:** Missing these requirements in the PRD means they'll be missed in architecture and implementation, creating expensive rework. During PRD creation there is a step to cover this - during validation we want to make sure it was covered. For this purpose steps will utilize a domain-complexity.csv and project-types.csv. + +--- + +## Document Structure (Markdown, Human-Readable) + +### Required Sections +1. **Executive Summary** - Vision, differentiator, target users +2. **Success Criteria** - Measurable outcomes (SMART) +3. **Product Scope** - MVP, Growth, Vision phases +4. **User Journeys** - Comprehensive coverage +5. **Domain Requirements** - Industry-specific compliance (if applicable) +6. **Innovation Analysis** - Competitive differentiation (if applicable) +7. **Project-Type Requirements** - Platform-specific needs +8. **Functional Requirements** - Capability contract (FRs) +9. **Non-Functional Requirements** - Quality attributes (NFRs) + +### Formatting for Dual Consumption + +**For Humans:** +- Clear, professional language +- Logical flow from vision to requirements +- Easy for stakeholders to review and approve + +**For LLMs:** +- ## Level 2 headers for all main sections (enables extraction) +- Consistent structure and patterns +- Precise, testable language +- High information density + +--- + +## Downstream Impact + +**How the PRD Feeds Next Artifacts:** + +**UX Design:** +- User journeys → interaction flows +- FRs → design requirements +- Success criteria → UX metrics + +**Architecture:** +- FRs → system capabilities +- NFRs → architecture decisions +- Domain requirements → compliance architecture +- Project-type requirements → platform choices + +**Epics & Stories (created after architecture):** +- FRs → user stories (1 FR could map to 1-3 stories potentially) +- Acceptance criteria → story acceptance tests +- Priority → sprint sequencing +- Traceability → stories map back to vision + +**Development AI Agents:** +- Precise requirements → implementation clarity +- Test criteria → automated test generation +- Domain requirements → compliance enforcement +- Measurable NFRs → performance targets + +--- + +## Summary: What Makes a Great BMAD PRD? + +✅ **High Information Density** - Every sentence carries weight, zero fluff +✅ **Measurable Requirements** - All FRs and NFRs are testable with specific criteria +✅ **Clear Traceability** - Each requirement links to user need and business objective +✅ **Domain Awareness** - Industry-specific requirements auto-detected and included +✅ **Zero Anti-Patterns** - No subjective adjectives, implementation leakage, or vague quantifiers +✅ **Dual Audience Optimized** - Human-readable AND LLM-consumable +✅ **Markdown Format** - Professional, clean, accessible to all stakeholders + +--- + +**Remember:** The PRD is the foundation. Quality here ripples through every subsequent phase. A dense, precise, well-traced PRD makes UX design, architecture, epic breakdown, and AI development dramatically more effective. diff --git a/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/data/project-types.csv b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/data/project-types.csv new file mode 100644 index 000000000..6f71c513a --- /dev/null +++ b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/data/project-types.csv @@ -0,0 +1,11 @@ +project_type,detection_signals,key_questions,required_sections,skip_sections,web_search_triggers,innovation_signals +api_backend,"API,REST,GraphQL,backend,service,endpoints","Endpoints needed?;Authentication method?;Data formats?;Rate limits?;Versioning?;SDK needed?","endpoint_specs;auth_model;data_schemas;error_codes;rate_limits;api_docs","ux_ui;visual_design;user_journeys","framework best practices;OpenAPI standards","API composition;New protocol" +mobile_app,"iOS,Android,app,mobile,iPhone,iPad","Native or cross-platform?;Offline needed?;Push notifications?;Device features?;Store compliance?","platform_reqs;device_permissions;offline_mode;push_strategy;store_compliance","desktop_features;cli_commands","app store guidelines;platform requirements","Gesture innovation;AR/VR features" +saas_b2b,"SaaS,B2B,platform,dashboard,teams,enterprise","Multi-tenant?;Permission model?;Subscription tiers?;Integrations?;Compliance?","tenant_model;rbac_matrix;subscription_tiers;integration_list;compliance_reqs","cli_interface;mobile_first","compliance requirements;integration guides","Workflow automation;AI agents" +developer_tool,"SDK,library,package,npm,pip,framework","Language support?;Package managers?;IDE integration?;Documentation?;Examples?","language_matrix;installation_methods;api_surface;code_examples;migration_guide","visual_design;store_compliance","package manager best practices;API design patterns","New paradigm;DSL creation" +cli_tool,"CLI,command,terminal,bash,script","Interactive or scriptable?;Output formats?;Config method?;Shell completion?","command_structure;output_formats;config_schema;scripting_support","visual_design;ux_principles;touch_interactions","CLI design patterns;shell integration","Natural language CLI;AI commands" +web_app,"website,webapp,browser,SPA,PWA","SPA or MPA?;Browser support?;SEO needed?;Real-time?;Accessibility?","browser_matrix;responsive_design;performance_targets;seo_strategy;accessibility_level","native_features;cli_commands","web standards;WCAG guidelines","New interaction;WebAssembly use" +game,"game,player,gameplay,level,character","REDIRECT TO USE THE BMad Method Game Module Agent and Workflows - HALT","game-brief;GDD","most_sections","game design patterns","Novel mechanics;Genre mixing" +desktop_app,"desktop,Windows,Mac,Linux,native","Cross-platform?;Auto-update?;System integration?;Offline?","platform_support;system_integration;update_strategy;offline_capabilities","web_seo;mobile_features","desktop guidelines;platform requirements","Desktop AI;System automation" +iot_embedded,"IoT,embedded,device,sensor,hardware","Hardware specs?;Connectivity?;Power constraints?;Security?;OTA updates?","hardware_reqs;connectivity_protocol;power_profile;security_model;update_mechanism","visual_ui;browser_support","IoT standards;protocol specs","Edge AI;New sensors" +blockchain_web3,"blockchain,crypto,DeFi,NFT,smart contract","Chain selection?;Wallet integration?;Gas optimization?;Security audit?","chain_specs;wallet_support;smart_contracts;security_audit;gas_optimization","traditional_auth;centralized_db","blockchain standards;security patterns","Novel tokenomics;DAO structure" \ No newline at end of file diff --git a/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-01-discovery.md b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-01-discovery.md new file mode 100644 index 000000000..e10611c8e --- /dev/null +++ b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-01-discovery.md @@ -0,0 +1,226 @@ +--- +name: 'step-v-01-discovery' +description: 'Document Discovery & Confirmation - Handle fresh context validation, confirm PRD path, discover input documents' + +# File references (ONLY variables used in this step) +nextStepFile: './step-v-02-format-detection.md' +advancedElicitationTask: 'skill:bmad-advanced-elicitation' +partyModeWorkflow: '{project-root}/_bmad/core/workflows/bmad-party-mode/workflow.md' +prdPurpose: '../data/prd-purpose.md' +--- + +# Step 1: Document Discovery & Confirmation + +## STEP GOAL: + +Handle fresh context validation by confirming PRD path, discovering and loading input documents from frontmatter, and initializing the validation report. + +## MANDATORY EXECUTION RULES (READ FIRST): + +### Universal Rules: + +- 🛑 NEVER generate content without user input +- 📖 CRITICAL: Read the complete step file before taking any action +- 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read +- 📋 YOU ARE A FACILITATOR, not a content generator +- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +### Role Reinforcement: + +- ✅ You are a Validation Architect and Quality Assurance Specialist +- ✅ If you already have been given communication or persona patterns, continue to use those while playing this new role +- ✅ We engage in collaborative dialogue, not command-response +- ✅ You bring systematic validation expertise and analytical rigor +- ✅ User brings domain knowledge and specific PRD context + +### Step-Specific Rules: + +- 🎯 Focus ONLY on discovering PRD and input documents, not validating yet +- 🚫 FORBIDDEN to perform any validation checks in this step +- 💬 Approach: Systematic discovery with clear reporting to user +- 🚪 This is the setup step - get everything ready for validation + +## EXECUTION PROTOCOLS: + +- 🎯 Discover and confirm PRD to validate +- 💾 Load PRD and all input documents from frontmatter +- 📖 Initialize validation report next to PRD +- 🚫 FORBIDDEN to load next step until user confirms setup + +## CONTEXT BOUNDARIES: + +- Available context: PRD path (user-specified or discovered), workflow configuration +- Focus: Document discovery and setup only +- Limits: Don't perform validation, don't skip discovery +- Dependencies: Configuration loaded from PRD workflow.md initialization + +## MANDATORY SEQUENCE + +**CRITICAL:** Follow this sequence exactly. Do not skip, reorder, or improvise unless user explicitly requests a change. + +### 1. Load PRD Purpose and Standards + +Load and read the complete file at: +`{prdPurpose}` + +This file contains the BMAD PRD philosophy, standards, and validation criteria that will guide all validation checks. Internalize this understanding - it defines what makes a great BMAD PRD. + +### 2. Discover PRD to Validate + +**If PRD path provided as invocation parameter:** +- Use provided path + +**If no PRD path provided, auto-discover:** +- Search `{planning_artifacts}` for files matching `*prd*.md` +- Also check for sharded PRDs: `{planning_artifacts}/*prd*/*.md` + +**If exactly ONE PRD found:** +- Use it automatically +- Inform user: "Found PRD: {discovered_path} — using it for validation." + +**If MULTIPLE PRDs found:** +- List all discovered PRDs with numbered options +- "I found multiple PRDs. Which one would you like to validate?" +- Wait for user selection + +**If NO PRDs found:** +- "I couldn't find any PRD files in {planning_artifacts}. Please provide the path to the PRD file you want to validate." +- Wait for user to provide PRD path. + +### 3. Validate PRD Exists and Load + +Once PRD path is provided: + +- Check if PRD file exists at specified path +- If not found: "I cannot find a PRD at that path. Please check the path and try again." +- If found: Load the complete PRD file including frontmatter + +### 4. Extract Frontmatter and Input Documents + +From the loaded PRD frontmatter, extract: + +- `inputDocuments: []` array (if present) +- Any other relevant metadata (classification, date, etc.) + +**If no inputDocuments array exists:** +Note this and proceed with PRD-only validation + +### 5. Load Input Documents + +For each document listed in `inputDocuments`: + +- Attempt to load the document +- Track successfully loaded documents +- Note any documents that fail to load + +**Build list of loaded input documents:** +- Product Brief (if present) +- Research documents (if present) +- Other reference materials (if present) + +### 6. Ask About Additional Reference Documents + +"**I've loaded the following documents from your PRD frontmatter:** + +{list loaded documents with file names} + +**Are there any additional reference documents you'd like me to include in this validation?** + +These could include: +- Additional research or context documents +- Project documentation not tracked in frontmatter +- Standards or compliance documents +- Competitive analysis or benchmarks + +Please provide paths to any additional documents, or type 'none' to proceed." + +**Load any additional documents provided by user.** + +### 7. Initialize Validation Report + +Create validation report at: `{validationReportPath}` + +**Initialize with frontmatter:** +```yaml +--- +validationTarget: '{prd_path}' +validationDate: '{current_date}' +inputDocuments: [list of all loaded documents] +validationStepsCompleted: [] +validationStatus: IN_PROGRESS +--- +``` + +**Initial content:** +```markdown +# PRD Validation Report + +**PRD Being Validated:** {prd_path} +**Validation Date:** {current_date} + +## Input Documents + +{list all documents loaded for validation} + +## Validation Findings + +[Findings will be appended as validation progresses] +``` + +### 8. Present Discovery Summary + +"**Setup Complete!** + +**PRD to Validate:** {prd_path} + +**Input Documents Loaded:** +- PRD: {prd_name} ✓ +- Product Brief: {count} {if count > 0}✓{else}(none found){/if} +- Research: {count} {if count > 0}✓{else}(none found){/if} +- Additional References: {count} {if count > 0}✓{else}(none){/if} + +**Validation Report:** {validationReportPath} + +**Ready to begin validation.**" + +### 9. Present MENU OPTIONS + +Display: **Select an Option:** [A] Advanced Elicitation [P] Party Mode [C] Continue to Format Detection + +#### EXECUTION RULES: + +- ALWAYS halt and wait for user input after presenting menu +- ONLY proceed to next step when user selects 'C' +- User can ask questions or add more documents - always respond and redisplay menu + +#### Menu Handling Logic: + +- IF A: Read fully and follow: {advancedElicitationTask}, and when finished redisplay the menu +- IF P: Read fully and follow: {partyModeWorkflow}, and when finished redisplay the menu +- IF C: Read fully and follow: {nextStepFile} to begin format detection +- IF user provides additional document: Load it, update report, redisplay summary +- IF Any other: help user, then redisplay menu + +--- + +## 🚨 SYSTEM SUCCESS/FAILURE METRICS + +### ✅ SUCCESS: + +- PRD path discovered and confirmed +- PRD file exists and loads successfully +- All input documents from frontmatter loaded +- Additional reference documents (if any) loaded +- Validation report initialized next to PRD +- User clearly informed of setup status +- Menu presented and user input handled correctly + +### ❌ SYSTEM FAILURE: + +- Proceeding with non-existent PRD file +- Not loading input documents from frontmatter +- Creating validation report in wrong location +- Proceeding without user confirming setup +- Not handling missing input documents gracefully + +**Master Rule:** Complete discovery and setup BEFORE validation. This step ensures everything is in place for systematic validation checks. diff --git a/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-02-format-detection.md b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-02-format-detection.md new file mode 100644 index 000000000..a354b5aff --- /dev/null +++ b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-02-format-detection.md @@ -0,0 +1,191 @@ +--- +name: 'step-v-02-format-detection' +description: 'Format Detection & Structure Analysis - Classify PRD format and route appropriately' + +# File references (ONLY variables used in this step) +nextStepFile: './step-v-03-density-validation.md' +altStepFile: './step-v-02b-parity-check.md' +prdFile: '{prd_file_path}' +validationReportPath: '{validation_report_path}' +--- + +# Step 2: Format Detection & Structure Analysis + +## STEP GOAL: + +Detect if PRD follows BMAD format and route appropriately - classify as BMAD Standard / BMAD Variant / Non-Standard, with optional parity check for non-standard formats. + +## MANDATORY EXECUTION RULES (READ FIRST): + +### Universal Rules: + +- 🛑 NEVER generate content without user input +- 📖 CRITICAL: Read the complete step file before taking any action +- 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read +- 📋 YOU ARE A FACILITATOR, not a content generator +- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +### Role Reinforcement: + +- ✅ You are a Validation Architect and Quality Assurance Specialist +- ✅ If you already have been given communication or persona patterns, continue to use those while playing this new role +- ✅ We engage in collaborative dialogue, not command-response +- ✅ You bring systematic validation expertise and pattern recognition +- ✅ User brings domain knowledge and PRD context + +### Step-Specific Rules: + +- 🎯 Focus ONLY on detecting format and classifying structure +- 🚫 FORBIDDEN to perform other validation checks in this step +- 💬 Approach: Analytical and systematic, clear reporting of findings +- 🚪 This is a branch step - may route to parity check for non-standard PRDs + +## EXECUTION PROTOCOLS: + +- 🎯 Analyze PRD structure systematically +- 💾 Append format findings to validation report +- 📖 Route appropriately based on format classification +- 🚫 FORBIDDEN to skip format detection or proceed without classification + +## CONTEXT BOUNDARIES: + +- Available context: PRD file loaded in step 1, validation report initialized +- Focus: Format detection and classification only +- Limits: Don't perform other validation, don't skip classification +- Dependencies: Step 1 completed - PRD loaded and report initialized + +## MANDATORY SEQUENCE + +**CRITICAL:** Follow this sequence exactly. Do not skip, reorder, or improvise unless user explicitly requests a change. + +### 1. Extract PRD Structure + +Load the complete PRD file and extract: + +**All Level 2 (##) headers:** +- Scan through entire PRD document +- Extract all ## section headers +- List them in order + +**PRD frontmatter:** +- Extract classification.domain if present +- Extract classification.projectType if present +- Note any other relevant metadata + +### 2. Check for BMAD PRD Core Sections + +Check if the PRD contains the following BMAD PRD core sections: + +1. **Executive Summary** (or variations: ## Executive Summary, ## Overview, ## Introduction) +2. **Success Criteria** (or: ## Success Criteria, ## Goals, ## Objectives) +3. **Product Scope** (or: ## Product Scope, ## Scope, ## In Scope, ## Out of Scope) +4. **User Journeys** (or: ## User Journeys, ## User Stories, ## User Flows) +5. **Functional Requirements** (or: ## Functional Requirements, ## Features, ## Capabilities) +6. **Non-Functional Requirements** (or: ## Non-Functional Requirements, ## NFRs, ## Quality Attributes) + +**Count matches:** +- How many of these 6 core sections are present? +- Which specific sections are present? +- Which are missing? + +### 3. Classify PRD Format + +Based on core section count, classify: + +**BMAD Standard:** +- 5-6 core sections present +- Follows BMAD PRD structure closely + +**BMAD Variant:** +- 3-4 core sections present +- Generally follows BMAD patterns but may have structural differences +- Missing some sections but recognizable as BMAD-style + +**Non-Standard:** +- Fewer than 3 core sections present +- Does not follow BMAD PRD structure +- May be completely custom format, legacy format, or from another framework + +### 4. Report Format Findings to Validation Report + +Append to validation report: + +```markdown +## Format Detection + +**PRD Structure:** +[List all ## Level 2 headers found] + +**BMAD Core Sections Present:** +- Executive Summary: [Present/Missing] +- Success Criteria: [Present/Missing] +- Product Scope: [Present/Missing] +- User Journeys: [Present/Missing] +- Functional Requirements: [Present/Missing] +- Non-Functional Requirements: [Present/Missing] + +**Format Classification:** [BMAD Standard / BMAD Variant / Non-Standard] +**Core Sections Present:** [count]/6 +``` + +### 5. Route Based on Format Classification + +**IF format is BMAD Standard or BMAD Variant:** + +Display: "**Format Detected:** {classification} + +Proceeding to systematic validation checks..." + +Without delay, read fully and follow: {nextStepFile} (step-v-03-density-validation.md) + +**IF format is Non-Standard (< 3 core sections):** + +Display: "**Format Detected:** Non-Standard PRD + +This PRD does not follow BMAD standard structure (only {count}/6 core sections present). + +You have options:" + +Present MENU OPTIONS below for user selection + +### 6. Present MENU OPTIONS (Non-Standard PRDs Only) + +**[A] Parity Check** - Analyze gaps and estimate effort to reach BMAD PRD parity +**[B] Validate As-Is** - Proceed with validation using current structure +**[C] Exit** - Exit validation and review format findings + +#### EXECUTION RULES: + +- ALWAYS halt and wait for user input +- Only proceed based on user selection + +#### Menu Handling Logic: + +- IF A (Parity Check): Read fully and follow: {altStepFile} (step-v-02b-parity-check.md) +- IF B (Validate As-Is): Display "Proceeding with validation..." then read fully and follow: {nextStepFile} +- IF C (Exit): Display format findings summary and exit validation +- IF Any other: help user respond, then redisplay menu + +--- + +## 🚨 SYSTEM SUCCESS/FAILURE METRICS + +### ✅ SUCCESS: + +- All ## Level 2 headers extracted successfully +- BMAD core sections checked systematically +- Format classified correctly based on section count +- Findings reported to validation report +- BMAD Standard/Variant PRDs proceed directly to next validation step +- Non-Standard PRDs pause and present options to user +- User can choose parity check, validate as-is, or exit + +### ❌ SYSTEM FAILURE: + +- Not extracting all headers before classification +- Incorrect format classification +- Not reporting findings to validation report +- Not pausing for non-standard PRDs +- Proceeding without user decision for non-standard formats + +**Master Rule:** Format detection determines validation path. Non-standard PRDs require user choice before proceeding. diff --git a/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-02b-parity-check.md b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-02b-parity-check.md new file mode 100644 index 000000000..604265a9a --- /dev/null +++ b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-02b-parity-check.md @@ -0,0 +1,209 @@ +--- +name: 'step-v-02b-parity-check' +description: 'Document Parity Check - Analyze non-standard PRD and identify gaps to achieve BMAD PRD parity' + +# File references (ONLY variables used in this step) +nextStepFile: './step-v-03-density-validation.md' +prdFile: '{prd_file_path}' +validationReportPath: '{validation_report_path}' +--- + +# Step 2B: Document Parity Check + +## STEP GOAL: + +Analyze non-standard PRD and identify gaps to achieve BMAD PRD parity, presenting user with options for how to proceed. + +## MANDATORY EXECUTION RULES (READ FIRST): + +### Universal Rules: + +- 🛑 NEVER generate content without user input +- 📖 CRITICAL: Read the complete step file before taking any action +- 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read +- 📋 YOU ARE A FACILITATOR, not a content generator +- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +### Role Reinforcement: + +- ✅ You are a Validation Architect and Quality Assurance Specialist +- ✅ If you already have been given communication or persona patterns, continue to use those while playing this new role +- ✅ We engage in collaborative dialogue, not command-response +- ✅ You bring BMAD PRD standards expertise and gap analysis +- ✅ User brings domain knowledge and PRD context + +### Step-Specific Rules: + +- 🎯 Focus ONLY on analyzing gaps and estimating parity effort +- 🚫 FORBIDDEN to perform other validation checks in this step +- 💬 Approach: Systematic gap analysis with clear recommendations +- 🚪 This is an optional branch step - user chooses next action + +## EXECUTION PROTOCOLS: + +- 🎯 Analyze each BMAD PRD section for gaps +- 💾 Append parity analysis to validation report +- 📖 Present options and await user decision +- 🚫 FORBIDDEN to proceed without user selection + +## CONTEXT BOUNDARIES: + +- Available context: Non-standard PRD from step 2, validation report in progress +- Focus: Parity analysis only - what's missing, what's needed +- Limits: Don't perform validation checks, don't auto-proceed +- Dependencies: Step 2 classified PRD as non-standard and user chose parity check + +## MANDATORY SEQUENCE + +**CRITICAL:** Follow this sequence exactly. Do not skip, reorder, or improvise unless user explicitly requests a change. + +### 1. Analyze Each BMAD PRD Section + +For each of the 6 BMAD PRD core sections, analyze: + +**Executive Summary:** +- Does PRD have vision/overview? +- Is problem statement clear? +- Are target users identified? +- Gap: [What's missing or incomplete] + +**Success Criteria:** +- Are measurable goals defined? +- Is success clearly defined? +- Gap: [What's missing or incomplete] + +**Product Scope:** +- Is scope clearly defined? +- Are in-scope items listed? +- Are out-of-scope items listed? +- Gap: [What's missing or incomplete] + +**User Journeys:** +- Are user types/personas identified? +- Are user flows documented? +- Gap: [What's missing or incomplete] + +**Functional Requirements:** +- Are features/capabilities listed? +- Are requirements structured? +- Gap: [What's missing or incomplete] + +**Non-Functional Requirements:** +- Are quality attributes defined? +- Are performance/security/etc. requirements documented? +- Gap: [What's missing or incomplete] + +### 2. Estimate Effort to Reach Parity + +For each missing or incomplete section, estimate: + +**Effort Level:** +- Minimal - Section exists but needs minor enhancements +- Moderate - Section missing but content exists elsewhere in PRD +- Significant - Section missing, requires new content creation + +**Total Parity Effort:** +- Based on individual section estimates +- Classify overall: Quick / Moderate / Substantial effort + +### 3. Report Parity Analysis to Validation Report + +Append to validation report: + +```markdown +## Parity Analysis (Non-Standard PRD) + +### Section-by-Section Gap Analysis + +**Executive Summary:** +- Status: [Present/Missing/Incomplete] +- Gap: [specific gap description] +- Effort to Complete: [Minimal/Moderate/Significant] + +**Success Criteria:** +- Status: [Present/Missing/Incomplete] +- Gap: [specific gap description] +- Effort to Complete: [Minimal/Moderate/Significant] + +**Product Scope:** +- Status: [Present/Missing/Incomplete] +- Gap: [specific gap description] +- Effort to Complete: [Minimal/Moderate/Significant] + +**User Journeys:** +- Status: [Present/Missing/Incomplete] +- Gap: [specific gap description] +- Effort to Complete: [Minimal/Moderate/Significant] + +**Functional Requirements:** +- Status: [Present/Missing/Incomplete] +- Gap: [specific gap description] +- Effort to Complete: [Minimal/Moderate/Significant] + +**Non-Functional Requirements:** +- Status: [Present/Missing/Incomplete] +- Gap: [specific gap description] +- Effort to Complete: [Minimal/Moderate/Significant] + +### Overall Parity Assessment + +**Overall Effort to Reach BMAD Standard:** [Quick/Moderate/Substantial] +**Recommendation:** [Brief recommendation based on analysis] +``` + +### 4. Present Parity Analysis and Options + +Display: + +"**Parity Analysis Complete** + +Your PRD is missing {count} of 6 core BMAD PRD sections. The overall effort to reach BMAD standard is: **{effort level}** + +**Quick Summary:** +[2-3 sentence summary of key gaps] + +**Recommendation:** +{recommendation from analysis} + +**How would you like to proceed?**" + +### 5. Present MENU OPTIONS + +**[C] Continue Validation** - Proceed with validation using current structure +**[E] Exit & Review** - Exit validation and review parity report +**[S] Save & Exit** - Save parity report and exit + +#### EXECUTION RULES: + +- ALWAYS halt and wait for user input +- Only proceed based on user selection + +#### Menu Handling Logic: + +- IF C (Continue): Display "Proceeding with validation..." then read fully and follow: {nextStepFile} +- IF E (Exit): Display parity summary and exit validation +- IF S (Save): Confirm saved, display summary, exit +- IF Any other: help user respond, then redisplay menu + +--- + +## 🚨 SYSTEM SUCCESS/FAILURE METRICS + +### ✅ SUCCESS: + +- All 6 BMAD PRD sections analyzed for gaps +- Effort estimates provided for each gap +- Overall parity effort assessed correctly +- Parity analysis reported to validation report +- Clear summary presented to user +- User can choose to continue validation, exit, or save report + +### ❌ SYSTEM FAILURE: + +- Not analyzing all 6 sections systematically +- Missing effort estimates +- Not reporting parity analysis to validation report +- Auto-proceeding without user decision +- Unclear recommendations + +**Master Rule:** Parity check informs user of gaps and effort, but user decides whether to proceed with validation or address gaps first. diff --git a/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-03-density-validation.md b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-03-density-validation.md new file mode 100644 index 000000000..d00478c10 --- /dev/null +++ b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-03-density-validation.md @@ -0,0 +1,174 @@ +--- +name: 'step-v-03-density-validation' +description: 'Information Density Check - Scan for anti-patterns that violate information density principles' + +# File references (ONLY variables used in this step) +nextStepFile: './step-v-04-brief-coverage-validation.md' +prdFile: '{prd_file_path}' +validationReportPath: '{validation_report_path}' +--- + +# Step 3: Information Density Validation + +## STEP GOAL: + +Validate PRD meets BMAD information density standards by scanning for conversational filler, wordy phrases, and redundant expressions that violate conciseness principles. + +## MANDATORY EXECUTION RULES (READ FIRST): + +### Universal Rules: + +- 🛑 NEVER generate content without user input +- 📖 CRITICAL: Read the complete step file before taking any action +- 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read +- 📋 YOU ARE A FACILITATOR, not a content generator +- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +### Role Reinforcement: + +- ✅ You are a Validation Architect and Quality Assurance Specialist +- ✅ If you already have been given communication or persona patterns, continue to use those while playing this new role +- ✅ We engage in systematic validation, not collaborative dialogue +- ✅ You bring analytical rigor and attention to detail +- ✅ This step runs autonomously - no user input needed + +### Step-Specific Rules: + +- 🎯 Focus ONLY on information density anti-patterns +- 🚫 FORBIDDEN to validate other aspects in this step +- 💬 Approach: Systematic scanning and categorization +- 🚪 This is a validation sequence step - auto-proceeds when complete + +## EXECUTION PROTOCOLS: + +- 🎯 Scan PRD for density anti-patterns systematically +- 💾 Append density findings to validation report +- 📖 Display "Proceeding to next check..." and load next step +- 🚫 FORBIDDEN to pause or request user input + +## CONTEXT BOUNDARIES: + +- Available context: PRD file, validation report with format findings +- Focus: Information density validation only +- Limits: Don't validate other aspects, don't pause for user input +- Dependencies: Step 2 completed - format classification done + +## MANDATORY SEQUENCE + +**CRITICAL:** Follow this sequence exactly. Do not skip, reorder, or improvise unless user explicitly requests a change. + +### 1. Attempt Sub-Process Validation + +**Try to use Task tool to spawn a subprocess:** + +"Perform information density validation on this PRD: + +1. Load the PRD file +2. Scan for the following anti-patterns: + - Conversational filler phrases (examples: 'The system will allow users to...', 'It is important to note that...', 'In order to') + - Wordy phrases (examples: 'Due to the fact that', 'In the event of', 'For the purpose of') + - Redundant phrases (examples: 'Future plans', 'Absolutely essential', 'Past history') +3. Count violations by category with line numbers +4. Classify severity: Critical (>10 violations), Warning (5-10), Pass (<5) + +Return structured findings with counts and examples." + +### 2. Graceful Degradation (if Task tool unavailable) + +If Task tool unavailable, perform analysis directly: + +**Scan for conversational filler patterns:** +- "The system will allow users to..." +- "It is important to note that..." +- "In order to" +- "For the purpose of" +- "With regard to" +- Count occurrences and note line numbers + +**Scan for wordy phrases:** +- "Due to the fact that" (use "because") +- "In the event of" (use "if") +- "At this point in time" (use "now") +- "In a manner that" (use "how") +- Count occurrences and note line numbers + +**Scan for redundant phrases:** +- "Future plans" (just "plans") +- "Past history" (just "history") +- "Absolutely essential" (just "essential") +- "Completely finish" (just "finish") +- Count occurrences and note line numbers + +### 3. Classify Severity + +**Calculate total violations:** +- Conversational filler count +- Wordy phrases count +- Redundant phrases count +- Total = sum of all categories + +**Determine severity:** +- **Critical:** Total > 10 violations +- **Warning:** Total 5-10 violations +- **Pass:** Total < 5 violations + +### 4. Report Density Findings to Validation Report + +Append to validation report: + +```markdown +## Information Density Validation + +**Anti-Pattern Violations:** + +**Conversational Filler:** {count} occurrences +[If count > 0, list examples with line numbers] + +**Wordy Phrases:** {count} occurrences +[If count > 0, list examples with line numbers] + +**Redundant Phrases:** {count} occurrences +[If count > 0, list examples with line numbers] + +**Total Violations:** {total} + +**Severity Assessment:** [Critical/Warning/Pass] + +**Recommendation:** +[If Critical] "PRD requires significant revision to improve information density. Every sentence should carry weight without filler." +[If Warning] "PRD would benefit from reducing wordiness and eliminating filler phrases." +[If Pass] "PRD demonstrates good information density with minimal violations." +``` + +### 5. Display Progress and Auto-Proceed + +Display: "**Information Density Validation Complete** + +Severity: {Critical/Warning/Pass} + +**Proceeding to next validation check...**" + +Without delay, read fully and follow: {nextStepFile} (step-v-04-brief-coverage-validation.md) + +--- + +## 🚨 SYSTEM SUCCESS/FAILURE METRICS + +### ✅ SUCCESS: + +- PRD scanned for all three anti-pattern categories +- Violations counted with line numbers +- Severity classified correctly +- Findings reported to validation report +- Auto-proceeds to next validation step +- Subprocess attempted with graceful degradation + +### ❌ SYSTEM FAILURE: + +- Not scanning all anti-pattern categories +- Missing severity classification +- Not reporting findings to validation report +- Pausing for user input (should auto-proceed) +- Not attempting subprocess architecture + +**Master Rule:** Information density validation runs autonomously. Scan, classify, report, auto-proceed. No user interaction needed. diff --git a/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-04-brief-coverage-validation.md b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-04-brief-coverage-validation.md new file mode 100644 index 000000000..60ad8684f --- /dev/null +++ b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-04-brief-coverage-validation.md @@ -0,0 +1,214 @@ +--- +name: 'step-v-04-brief-coverage-validation' +description: 'Product Brief Coverage Check - Validate PRD covers all content from Product Brief (if used as input)' + +# File references (ONLY variables used in this step) +nextStepFile: './step-v-05-measurability-validation.md' +prdFile: '{prd_file_path}' +productBrief: '{product_brief_path}' +validationReportPath: '{validation_report_path}' +--- + +# Step 4: Product Brief Coverage Validation + +## STEP GOAL: + +Validate that PRD covers all content from Product Brief (if brief was used as input), mapping brief content to PRD sections and identifying gaps. + +## MANDATORY EXECUTION RULES (READ FIRST): + +### Universal Rules: + +- 🛑 NEVER generate content without user input +- 📖 CRITICAL: Read the complete step file before taking any action +- 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read +- 📋 YOU ARE A FACILITATOR, not a content generator +- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +### Role Reinforcement: + +- ✅ You are a Validation Architect and Quality Assurance Specialist +- ✅ If you already have been given communication or persona patterns, continue to use those while playing this new role +- ✅ We engage in systematic validation, not collaborative dialogue +- ✅ You bring analytical rigor and traceability expertise +- ✅ This step runs autonomously - no user input needed + +### Step-Specific Rules: + +- 🎯 Focus ONLY on Product Brief coverage (conditional on brief existence) +- 🚫 FORBIDDEN to validate other aspects in this step +- 💬 Approach: Systematic mapping and gap analysis +- 🚪 This is a validation sequence step - auto-proceeds when complete + +## EXECUTION PROTOCOLS: + +- 🎯 Check if Product Brief exists in input documents +- 💬 If no brief: Skip this check and report "N/A - No Product Brief" +- 🎯 If brief exists: Map brief content to PRD sections +- 💾 Append coverage findings to validation report +- 📖 Display "Proceeding to next check..." and load next step +- 🚫 FORBIDDEN to pause or request user input + +## CONTEXT BOUNDARIES: + +- Available context: PRD file, input documents from step 1, validation report +- Focus: Product Brief coverage only (conditional) +- Limits: Don't validate other aspects, conditional execution +- Dependencies: Step 1 completed - input documents loaded + +## MANDATORY SEQUENCE + +**CRITICAL:** Follow this sequence exactly. Do not skip, reorder, or improvise unless user explicitly requests a change. + +### 1. Check for Product Brief + +Check if Product Brief was loaded in step 1's inputDocuments: + +**IF no Product Brief found:** +Append to validation report: +```markdown +## Product Brief Coverage + +**Status:** N/A - No Product Brief was provided as input +``` + +Display: "**Product Brief Coverage: Skipped** (No Product Brief provided) + +**Proceeding to next validation check...**" + +Without delay, read fully and follow: {nextStepFile} + +**IF Product Brief exists:** Continue to step 2 below + +### 2. Attempt Sub-Process Validation + +**Try to use Task tool to spawn a subprocess:** + +"Perform Product Brief coverage validation: + +1. Load the Product Brief +2. Extract key content: + - Vision statement + - Target users/personas + - Problem statement + - Key features + - Goals/objectives + - Differentiators + - Constraints +3. For each item, search PRD for corresponding coverage +4. Classify coverage: Fully Covered / Partially Covered / Not Found / Intentionally Excluded +5. Note any gaps with severity: Critical / Moderate / Informational + +Return structured coverage map with classifications." + +### 3. Graceful Degradation (if Task tool unavailable) + +If Task tool unavailable, perform analysis directly: + +**Extract from Product Brief:** +- Vision: What is this product? +- Users: Who is it for? +- Problem: What problem does it solve? +- Features: What are the key capabilities? +- Goals: What are the success criteria? +- Differentiators: What makes it unique? + +**For each item, search PRD:** +- Scan Executive Summary for vision +- Check User Journeys or user personas +- Look for problem statement +- Review Functional Requirements for features +- Check Success Criteria section +- Search for differentiators + +**Classify coverage:** +- **Fully Covered:** Content present and complete +- **Partially Covered:** Content present but incomplete +- **Not Found:** Content missing from PRD +- **Intentionally Excluded:** Content explicitly out of scope + +### 4. Assess Coverage and Severity + +**For each gap (Partially Covered or Not Found):** +- Is this Critical? (Core vision, primary users, main features) +- Is this Moderate? (Secondary features, some goals) +- Is this Informational? (Nice-to-have features, minor details) + +**Note:** Some exclusions may be intentional (valid scoping decisions) + +### 5. Report Coverage Findings to Validation Report + +Append to validation report: + +```markdown +## Product Brief Coverage + +**Product Brief:** {brief_file_name} + +### Coverage Map + +**Vision Statement:** [Fully/Partially/Not Found/Intentionally Excluded] +[If gap: Note severity and specific missing content] + +**Target Users:** [Fully/Partially/Not Found/Intentionally Excluded] +[If gap: Note severity and specific missing content] + +**Problem Statement:** [Fully/Partially/Not Found/Intentionally Excluded] +[If gap: Note severity and specific missing content] + +**Key Features:** [Fully/Partially/Not Found/Intentionally Excluded] +[If gap: List specific features with severity] + +**Goals/Objectives:** [Fully/Partially/Not Found/Intentionally Excluded] +[If gap: Note severity and specific missing content] + +**Differentiators:** [Fully/Partially/Not Found/Intentionally Excluded] +[If gap: Note severity and specific missing content] + +### Coverage Summary + +**Overall Coverage:** [percentage or qualitative assessment] +**Critical Gaps:** [count] [list if any] +**Moderate Gaps:** [count] [list if any] +**Informational Gaps:** [count] [list if any] + +**Recommendation:** +[If critical gaps exist] "PRD should be revised to cover critical Product Brief content." +[If moderate gaps] "Consider addressing moderate gaps for complete coverage." +[If minimal gaps] "PRD provides good coverage of Product Brief content." +``` + +### 6. Display Progress and Auto-Proceed + +Display: "**Product Brief Coverage Validation Complete** + +Overall Coverage: {assessment} + +**Proceeding to next validation check...**" + +Without delay, read fully and follow: {nextStepFile} (step-v-05-measurability-validation.md) + +--- + +## 🚨 SYSTEM SUCCESS/FAILURE METRICS + +### ✅ SUCCESS: + +- Checked for Product Brief existence correctly +- If no brief: Reported "N/A" and skipped gracefully +- If brief exists: Mapped all key brief content to PRD sections +- Coverage classified appropriately (Fully/Partially/Not Found/Intentionally Excluded) +- Severity assessed for gaps (Critical/Moderate/Informational) +- Findings reported to validation report +- Auto-proceeds to next validation step +- Subprocess attempted with graceful degradation + +### ❌ SYSTEM FAILURE: + +- Not checking for brief existence before attempting validation +- If brief exists: not mapping all key content areas +- Missing coverage classifications +- Not reporting findings to validation report +- Not auto-proceeding + +**Master Rule:** Product Brief coverage is conditional - skip if no brief, validate thoroughly if brief exists. Always auto-proceed. diff --git a/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-05-measurability-validation.md b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-05-measurability-validation.md new file mode 100644 index 000000000..a97187184 --- /dev/null +++ b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-05-measurability-validation.md @@ -0,0 +1,228 @@ +--- +name: 'step-v-05-measurability-validation' +description: 'Measurability Validation - Validate that all requirements (FRs and NFRs) are measurable and testable' + +# File references (ONLY variables used in this step) +nextStepFile: './step-v-06-traceability-validation.md' +prdFile: '{prd_file_path}' +validationReportPath: '{validation_report_path}' +--- + +# Step 5: Measurability Validation + +## STEP GOAL: + +Validate that all Functional Requirements (FRs) and Non-Functional Requirements (NFRs) are measurable, testable, and follow proper format without implementation details. + +## MANDATORY EXECUTION RULES (READ FIRST): + +### Universal Rules: + +- 🛑 NEVER generate content without user input +- 📖 CRITICAL: Read the complete step file before taking any action +- 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read +- 📋 YOU ARE A FACILITATOR, not a content generator +- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +### Role Reinforcement: + +- ✅ You are a Validation Architect and Quality Assurance Specialist +- ✅ If you already have been given communication or persona patterns, continue to use those while playing this new role +- ✅ We engage in systematic validation, not collaborative dialogue +- ✅ You bring analytical rigor and requirements engineering expertise +- ✅ This step runs autonomously - no user input needed + +### Step-Specific Rules: + +- 🎯 Focus ONLY on FR and NFR measurability +- 🚫 FORBIDDEN to validate other aspects in this step +- 💬 Approach: Systematic requirement-by-requirement analysis +- 🚪 This is a validation sequence step - auto-proceeds when complete + +## EXECUTION PROTOCOLS: + +- 🎯 Extract all FRs and NFRs from PRD +- 💾 Validate each for measurability and format +- 📖 Append findings to validation report +- 📖 Display "Proceeding to next check..." and load next step +- 🚫 FORBIDDEN to pause or request user input + +## CONTEXT BOUNDARIES: + +- Available context: PRD file, validation report +- Focus: FR and NFR measurability only +- Limits: Don't validate other aspects, don't pause for user input +- Dependencies: Steps 2-4 completed - initial validation checks done + +## MANDATORY SEQUENCE + +**CRITICAL:** Follow this sequence exactly. Do not skip, reorder, or improvise unless user explicitly requests a change. + +### 1. Attempt Sub-Process Validation + +**Try to use Task tool to spawn a subprocess:** + +"Perform measurability validation on this PRD: + +**Functional Requirements (FRs):** +1. Extract all FRs from Functional Requirements section +2. Check each FR for: + - '[Actor] can [capability]' format compliance + - No subjective adjectives (easy, fast, simple, intuitive, etc.) + - No vague quantifiers (multiple, several, some, many, etc.) + - No implementation details (technology names, library names, data structures unless capability-relevant) +3. Document violations with line numbers + +**Non-Functional Requirements (NFRs):** +1. Extract all NFRs from Non-Functional Requirements section +2. Check each NFR for: + - Specific metrics with measurement methods + - Template compliance (criterion, metric, measurement method, context) + - Context included (why this matters, who it affects) +3. Document violations with line numbers + +Return structured findings with violation counts and examples." + +### 2. Graceful Degradation (if Task tool unavailable) + +If Task tool unavailable, perform analysis directly: + +**Functional Requirements Analysis:** + +Extract all FRs and check each for: + +**Format compliance:** +- Does it follow "[Actor] can [capability]" pattern? +- Is actor clearly defined? +- Is capability actionable and testable? + +**No subjective adjectives:** +- Scan for: easy, fast, simple, intuitive, user-friendly, responsive, quick, efficient (without metrics) +- Note line numbers + +**No vague quantifiers:** +- Scan for: multiple, several, some, many, few, various, number of +- Note line numbers + +**No implementation details:** +- Scan for: React, Vue, Angular, PostgreSQL, MongoDB, AWS, Docker, Kubernetes, Redux, etc. +- Unless capability-relevant (e.g., "API consumers can access...") +- Note line numbers + +**Non-Functional Requirements Analysis:** + +Extract all NFRs and check each for: + +**Specific metrics:** +- Is there a measurable criterion? (e.g., "response time < 200ms", not "fast response") +- Can this be measured or tested? + +**Template compliance:** +- Criterion defined? +- Metric specified? +- Measurement method included? +- Context provided? + +### 3. Tally Violations + +**FR Violations:** +- Format violations: count +- Subjective adjectives: count +- Vague quantifiers: count +- Implementation leakage: count +- Total FR violations: sum + +**NFR Violations:** +- Missing metrics: count +- Incomplete template: count +- Missing context: count +- Total NFR violations: sum + +**Total violations:** FR violations + NFR violations + +### 4. Report Measurability Findings to Validation Report + +Append to validation report: + +```markdown +## Measurability Validation + +### Functional Requirements + +**Total FRs Analyzed:** {count} + +**Format Violations:** {count} +[If violations exist, list examples with line numbers] + +**Subjective Adjectives Found:** {count} +[If found, list examples with line numbers] + +**Vague Quantifiers Found:** {count} +[If found, list examples with line numbers] + +**Implementation Leakage:** {count} +[If found, list examples with line numbers] + +**FR Violations Total:** {total} + +### Non-Functional Requirements + +**Total NFRs Analyzed:** {count} + +**Missing Metrics:** {count} +[If missing, list examples with line numbers] + +**Incomplete Template:** {count} +[If incomplete, list examples with line numbers] + +**Missing Context:** {count} +[If missing, list examples with line numbers] + +**NFR Violations Total:** {total} + +### Overall Assessment + +**Total Requirements:** {FRs + NFRs} +**Total Violations:** {FR violations + NFR violations} + +**Severity:** [Critical if >10 violations, Warning if 5-10, Pass if <5] + +**Recommendation:** +[If Critical] "Many requirements are not measurable or testable. Requirements must be revised to be testable for downstream work." +[If Warning] "Some requirements need refinement for measurability. Focus on violating requirements above." +[If Pass] "Requirements demonstrate good measurability with minimal issues." +``` + +### 5. Display Progress and Auto-Proceed + +Display: "**Measurability Validation Complete** + +Total Violations: {count} ({severity}) + +**Proceeding to next validation check...**" + +Without delay, read fully and follow: {nextStepFile} (step-v-06-traceability-validation.md) + +--- + +## 🚨 SYSTEM SUCCESS/FAILURE METRICS + +### ✅ SUCCESS: + +- All FRs extracted and analyzed for measurability +- All NFRs extracted and analyzed for measurability +- Violations documented with line numbers +- Severity assessed correctly +- Findings reported to validation report +- Auto-proceeds to next validation step +- Subprocess attempted with graceful degradation + +### ❌ SYSTEM FAILURE: + +- Not analyzing all FRs and NFRs +- Missing line numbers for violations +- Not reporting findings to validation report +- Not assessing severity +- Not auto-proceeding + +**Master Rule:** Requirements must be testable to be useful. Validate every requirement for measurability, document violations, auto-proceed. diff --git a/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-06-traceability-validation.md b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-06-traceability-validation.md new file mode 100644 index 000000000..84bf9cce9 --- /dev/null +++ b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-06-traceability-validation.md @@ -0,0 +1,217 @@ +--- +name: 'step-v-06-traceability-validation' +description: 'Traceability Validation - Validate the traceability chain from vision → success → journeys → FRs is intact' + +# File references (ONLY variables used in this step) +nextStepFile: './step-v-07-implementation-leakage-validation.md' +prdFile: '{prd_file_path}' +validationReportPath: '{validation_report_path}' +--- + +# Step 6: Traceability Validation + +## STEP GOAL: + +Validate the traceability chain from Executive Summary → Success Criteria → User Journeys → Functional Requirements is intact, ensuring every requirement traces back to a user need or business objective. + +## MANDATORY EXECUTION RULES (READ FIRST): + +### Universal Rules: + +- 🛑 NEVER generate content without user input +- 📖 CRITICAL: Read the complete step file before taking any action +- 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read +- 📋 YOU ARE A FACILITATOR, not a content generator +- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +### Role Reinforcement: + +- ✅ You are a Validation Architect and Quality Assurance Specialist +- ✅ If you already have been given communication or persona patterns, continue to use those while playing this new role +- ✅ We engage in systematic validation, not collaborative dialogue +- ✅ You bring analytical rigor and traceability matrix expertise +- ✅ This step runs autonomously - no user input needed + +### Step-Specific Rules: + +- 🎯 Focus ONLY on traceability chain validation +- 🚫 FORBIDDEN to validate other aspects in this step +- 💬 Approach: Systematic chain validation and orphan detection +- 🚪 This is a validation sequence step - auto-proceeds when complete + +## EXECUTION PROTOCOLS: + +- 🎯 Build and validate traceability matrix +- 💾 Identify broken chains and orphan requirements +- 📖 Append findings to validation report +- 📖 Display "Proceeding to next check..." and load next step +- 🚫 FORBIDDEN to pause or request user input + +## CONTEXT BOUNDARIES: + +- Available context: PRD file, validation report +- Focus: Traceability chain validation only +- Limits: Don't validate other aspects, don't pause for user input +- Dependencies: Steps 2-5 completed - initial validations done + +## MANDATORY SEQUENCE + +**CRITICAL:** Follow this sequence exactly. Do not skip, reorder, or improvise unless user explicitly requests a change. + +### 1. Attempt Sub-Process Validation + +**Try to use Task tool to spawn a subprocess:** + +"Perform traceability validation on this PRD: + +1. Extract content from Executive Summary (vision, goals) +2. Extract Success Criteria +3. Extract User Journeys (user types, flows, outcomes) +4. Extract Functional Requirements (FRs) +5. Extract Product Scope (in-scope items) + +**Validate chains:** +- Executive Summary → Success Criteria: Does vision align with defined success? +- Success Criteria → User Journeys: Are success criteria supported by user journeys? +- User Journeys → Functional Requirements: Does each FR trace back to a user journey? +- Scope → FRs: Do MVP scope FRs align with in-scope items? + +**Identify orphans:** +- FRs not traceable to any user journey or business objective +- Success criteria not supported by user journeys +- User journeys without supporting FRs + +Build traceability matrix and identify broken chains and orphan FRs. + +Return structured findings with chain status and orphan list." + +### 2. Graceful Degradation (if Task tool unavailable) + +If Task tool unavailable, perform analysis directly: + +**Step 1: Extract key elements** +- Executive Summary: Note vision, goals, objectives +- Success Criteria: List all criteria +- User Journeys: List user types and their flows +- Functional Requirements: List all FRs +- Product Scope: List in-scope items + +**Step 2: Validate Executive Summary → Success Criteria** +- Does Executive Summary mention the success dimensions? +- Are Success Criteria aligned with vision? +- Note any misalignment + +**Step 3: Validate Success Criteria → User Journeys** +- For each success criterion, is there a user journey that achieves it? +- Note success criteria without supporting journeys + +**Step 4: Validate User Journeys → FRs** +- For each user journey/flow, are there FRs that enable it? +- List FRs with no clear user journey origin +- Note orphan FRs (requirements without traceable source) + +**Step 5: Validate Scope → FR Alignment** +- Does MVP scope align with essential FRs? +- Are in-scope items supported by FRs? +- Note misalignments + +**Step 6: Build traceability matrix** +- Map each FR to its source (journey or business objective) +- Note orphan FRs +- Identify broken chains + +### 3. Tally Traceability Issues + +**Broken chains:** +- Executive Summary → Success Criteria gaps: count +- Success Criteria → User Journeys gaps: count +- User Journeys → FRs gaps: count +- Scope → FR misalignments: count + +**Orphan elements:** +- Orphan FRs (no traceable source): count +- Unsupported success criteria: count +- User journeys without FRs: count + +**Total issues:** Sum of all broken chains and orphans + +### 4. Report Traceability Findings to Validation Report + +Append to validation report: + +```markdown +## Traceability Validation + +### Chain Validation + +**Executive Summary → Success Criteria:** [Intact/Gaps Identified] +{If gaps: List specific misalignments} + +**Success Criteria → User Journeys:** [Intact/Gaps Identified] +{If gaps: List unsupported success criteria} + +**User Journeys → Functional Requirements:** [Intact/Gaps Identified] +{If gaps: List journeys without supporting FRs} + +**Scope → FR Alignment:** [Intact/Misaligned] +{If misaligned: List specific issues} + +### Orphan Elements + +**Orphan Functional Requirements:** {count} +{List orphan FRs with numbers} + +**Unsupported Success Criteria:** {count} +{List unsupported criteria} + +**User Journeys Without FRs:** {count} +{List journeys without FRs} + +### Traceability Matrix + +{Summary table showing traceability coverage} + +**Total Traceability Issues:** {total} + +**Severity:** [Critical if orphan FRs exist, Warning if gaps, Pass if intact] + +**Recommendation:** +[If Critical] "Orphan requirements exist - every FR must trace back to a user need or business objective." +[If Warning] "Traceability gaps identified - strengthen chains to ensure all requirements are justified." +[If Pass] "Traceability chain is intact - all requirements trace to user needs or business objectives." +``` + +### 5. Display Progress and Auto-Proceed + +Display: "**Traceability Validation Complete** + +Total Issues: {count} ({severity}) + +**Proceeding to next validation check...**" + +Without delay, read fully and follow: {nextStepFile} (step-v-07-implementation-leakage-validation.md) + +--- + +## 🚨 SYSTEM SUCCESS/FAILURE METRICS + +### ✅ SUCCESS: + +- All traceability chains validated systematically +- Orphan FRs identified with numbers +- Broken chains documented +- Traceability matrix built +- Severity assessed correctly +- Findings reported to validation report +- Auto-proceeds to next validation step +- Subprocess attempted with graceful degradation + +### ❌ SYSTEM FAILURE: + +- Not validating all traceability chains +- Missing orphan FR detection +- Not building traceability matrix +- Not reporting findings to validation report +- Not auto-proceeding + +**Master Rule:** Every requirement should trace to a user need or business objective. Orphan FRs indicate broken traceability that must be fixed. diff --git a/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-07-implementation-leakage-validation.md b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-07-implementation-leakage-validation.md new file mode 100644 index 000000000..923f99691 --- /dev/null +++ b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-07-implementation-leakage-validation.md @@ -0,0 +1,205 @@ +--- +name: 'step-v-07-implementation-leakage-validation' +description: 'Implementation Leakage Check - Ensure FRs and NFRs don\'t include implementation details' + +# File references (ONLY variables used in this step) +nextStepFile: './step-v-08-domain-compliance-validation.md' +prdFile: '{prd_file_path}' +validationReportPath: '{validation_report_path}' +--- + +# Step 7: Implementation Leakage Validation + +## STEP GOAL: + +Ensure Functional Requirements and Non-Functional Requirements don't include implementation details - they should specify WHAT, not HOW. + +## MANDATORY EXECUTION RULES (READ FIRST): + +### Universal Rules: + +- 🛑 NEVER generate content without user input +- 📖 CRITICAL: Read the complete step file before taking any action +- 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read +- 📋 YOU ARE A FACILITATOR, not a content generator +- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +### Role Reinforcement: + +- ✅ You are a Validation Architect and Quality Assurance Specialist +- ✅ If you already have been given communication or persona patterns, continue to use those while playing this new role +- ✅ We engage in systematic validation, not collaborative dialogue +- ✅ You bring analytical rigor and separation of concerns expertise +- ✅ This step runs autonomously - no user input needed + +### Step-Specific Rules: + +- 🎯 Focus ONLY on implementation leakage detection +- 🚫 FORBIDDEN to validate other aspects in this step +- 💬 Approach: Systematic scanning for technology and implementation terms +- 🚪 This is a validation sequence step - auto-proceeds when complete + +## EXECUTION PROTOCOLS: + +- 🎯 Scan FRs and NFRs for implementation terms +- 💾 Distinguish capability-relevant vs leakage +- 📖 Append findings to validation report +- 📖 Display "Proceeding to next check..." and load next step +- 🚫 FORBIDDEN to pause or request user input + +## CONTEXT BOUNDARIES: + +- Available context: PRD file, validation report +- Focus: Implementation leakage detection only +- Limits: Don't validate other aspects, don't pause for user input +- Dependencies: Steps 2-6 completed - initial validations done + +## MANDATORY SEQUENCE + +**CRITICAL:** Follow this sequence exactly. Do not skip, reorder, or improvise unless user explicitly requests a change. + +### 1. Attempt Sub-Process Validation + +**Try to use Task tool to spawn a subprocess:** + +"Perform implementation leakage validation on this PRD: + +**Scan for:** +1. Technology names (React, Vue, Angular, PostgreSQL, MongoDB, AWS, GCP, Azure, Docker, Kubernetes, etc.) +2. Library names (Redux, axios, lodash, Express, Django, Rails, Spring, etc.) +3. Data structures (JSON, XML, CSV) unless relevant to capability +4. Architecture patterns (MVC, microservices, serverless) unless business requirement +5. Protocol names (HTTP, REST, GraphQL, WebSockets) - check if capability-relevant + +**For each term found:** +- Is this capability-relevant? (e.g., 'API consumers can access...' - API is capability) +- Or is this implementation detail? (e.g., 'React component for...' - implementation) + +Document violations with line numbers and explanation. + +Return structured findings with leakage counts and examples." + +### 2. Graceful Degradation (if Task tool unavailable) + +If Task tool unavailable, perform analysis directly: + +**Implementation leakage terms to scan for:** + +**Frontend Frameworks:** +React, Vue, Angular, Svelte, Solid, Next.js, Nuxt, etc. + +**Backend Frameworks:** +Express, Django, Rails, Spring, Laravel, FastAPI, etc. + +**Databases:** +PostgreSQL, MySQL, MongoDB, Redis, DynamoDB, Cassandra, etc. + +**Cloud Platforms:** +AWS, GCP, Azure, Cloudflare, Vercel, Netlify, etc. + +**Infrastructure:** +Docker, Kubernetes, Terraform, Ansible, etc. + +**Libraries:** +Redux, Zustand, axios, fetch, lodash, jQuery, etc. + +**Data Formats:** +JSON, XML, YAML, CSV (unless capability-relevant) + +**For each term found in FRs/NFRs:** +- Determine if it's capability-relevant or implementation leakage +- Example: "API consumers can access data via REST endpoints" - API/REST is capability +- Example: "React components fetch data using Redux" - implementation leakage + +**Count violations and note line numbers** + +### 3. Tally Implementation Leakage + +**By category:** +- Frontend framework leakage: count +- Backend framework leakage: count +- Database leakage: count +- Cloud platform leakage: count +- Infrastructure leakage: count +- Library leakage: count +- Other implementation details: count + +**Total implementation leakage violations:** sum + +### 4. Report Implementation Leakage Findings to Validation Report + +Append to validation report: + +```markdown +## Implementation Leakage Validation + +### Leakage by Category + +**Frontend Frameworks:** {count} violations +{If violations, list examples with line numbers} + +**Backend Frameworks:** {count} violations +{If violations, list examples with line numbers} + +**Databases:** {count} violations +{If violations, list examples with line numbers} + +**Cloud Platforms:** {count} violations +{If violations, list examples with line numbers} + +**Infrastructure:** {count} violations +{If violations, list examples with line numbers} + +**Libraries:** {count} violations +{If violations, list examples with line numbers} + +**Other Implementation Details:** {count} violations +{If violations, list examples with line numbers} + +### Summary + +**Total Implementation Leakage Violations:** {total} + +**Severity:** [Critical if >5 violations, Warning if 2-5, Pass if <2] + +**Recommendation:** +[If Critical] "Extensive implementation leakage found. Requirements specify HOW instead of WHAT. Remove all implementation details - these belong in architecture, not PRD." +[If Warning] "Some implementation leakage detected. Review violations and remove implementation details from requirements." +[If Pass] "No significant implementation leakage found. Requirements properly specify WHAT without HOW." + +**Note:** API consumers, GraphQL (when required), and other capability-relevant terms are acceptable when they describe WHAT the system must do, not HOW to build it. +``` + +### 5. Display Progress and Auto-Proceed + +Display: "**Implementation Leakage Validation Complete** + +Total Violations: {count} ({severity}) + +**Proceeding to next validation check...**" + +Without delay, read fully and follow: {nextStepFile} (step-v-08-domain-compliance-validation.md) + +--- + +## 🚨 SYSTEM SUCCESS/FAILURE METRICS + +### ✅ SUCCESS: + +- Scanned FRs and NFRs for all implementation term categories +- Distinguished capability-relevant from implementation leakage +- Violations documented with line numbers and explanations +- Severity assessed correctly +- Findings reported to validation report +- Auto-proceeds to next validation step +- Subprocess attempted with graceful degradation + +### ❌ SYSTEM FAILURE: + +- Not scanning all implementation term categories +- Not distinguishing capability-relevant from leakage +- Missing line numbers for violations +- Not reporting findings to validation report +- Not auto-proceeding + +**Master Rule:** Requirements specify WHAT, not HOW. Implementation details belong in architecture documents, not PRDs. diff --git a/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-08-domain-compliance-validation.md b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-08-domain-compliance-validation.md new file mode 100644 index 000000000..562697eda --- /dev/null +++ b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-08-domain-compliance-validation.md @@ -0,0 +1,243 @@ +--- +name: 'step-v-08-domain-compliance-validation' +description: 'Domain Compliance Validation - Validate domain-specific requirements are present for high-complexity domains' + +# File references (ONLY variables used in this step) +nextStepFile: './step-v-09-project-type-validation.md' +prdFile: '{prd_file_path}' +prdFrontmatter: '{prd_frontmatter}' +validationReportPath: '{validation_report_path}' +domainComplexityData: '../data/domain-complexity.csv' +--- + +# Step 8: Domain Compliance Validation + +## STEP GOAL: + +Validate domain-specific requirements are present for high-complexity domains (Healthcare, Fintech, GovTech, etc.), ensuring regulatory and compliance requirements are properly documented. + +## MANDATORY EXECUTION RULES (READ FIRST): + +### Universal Rules: + +- 🛑 NEVER generate content without user input +- 📖 CRITICAL: Read the complete step file before taking any action +- 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read +- 📋 YOU ARE A FACILITATOR, not a content generator +- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +### Role Reinforcement: + +- ✅ You are a Validation Architect and Quality Assurance Specialist +- ✅ If you already have been given communication or persona patterns, continue to use those while playing this new role +- ✅ We engage in systematic validation, not collaborative dialogue +- ✅ You bring domain expertise and compliance knowledge +- ✅ This step runs autonomously - no user input needed + +### Step-Specific Rules: + +- 🎯 Focus ONLY on domain-specific compliance requirements +- 🚫 FORBIDDEN to validate other aspects in this step +- 💬 Approach: Conditional validation based on domain classification +- 🚪 This is a validation sequence step - auto-proceeds when complete + +## EXECUTION PROTOCOLS: + +- 🎯 Check classification.domain from PRD frontmatter +- 💬 If low complexity (general): Skip detailed checks +- 🎯 If high complexity: Validate required special sections +- 💾 Append compliance findings to validation report +- 📖 Display "Proceeding to next check..." and load next step +- 🚫 FORBIDDEN to pause or request user input + +## CONTEXT BOUNDARIES: + +- Available context: PRD file with frontmatter classification, validation report +- Focus: Domain compliance only (conditional on domain complexity) +- Limits: Don't validate other aspects, conditional execution +- Dependencies: Steps 2-7 completed - format and requirements validation done + +## MANDATORY SEQUENCE + +**CRITICAL:** Follow this sequence exactly. Do not skip, reorder, or improvise unless user explicitly requests a change. + +### 1. Load Domain Complexity Data + +Load and read the complete file at: +`{domainComplexityData}` (../data/domain-complexity.csv) + +This CSV contains: +- Domain classifications and complexity levels (high/medium/low) +- Required special sections for each domain +- Key concerns and requirements for regulated industries + +Internalize this data - it drives which domains require special compliance sections. + +### 2. Extract Domain Classification + +From PRD frontmatter, extract: +- `classification.domain` - what domain is this PRD for? + +**If no domain classification found:** +Treat as "general" (low complexity) and proceed to step 4 + +### 2. Determine Domain Complexity + +**Low complexity domains (skip detailed checks):** +- General +- Consumer apps (standard e-commerce, social, productivity) +- Content websites +- Business tools (standard) + +**High complexity domains (require special sections):** +- Healthcare / Healthtech +- Fintech / Financial services +- GovTech / Public sector +- EdTech (educational records, accredited courses) +- Legal tech +- Other regulated domains + +### 3. For High-Complexity Domains: Validate Required Special Sections + +**Attempt subprocess validation:** + +"Perform domain compliance validation for {domain}: + +Based on {domain} requirements, check PRD for: + +**Healthcare:** +- Clinical Requirements section +- Regulatory Pathway (FDA, HIPAA, etc.) +- Safety Measures +- HIPAA Compliance (data privacy, security) +- Patient safety considerations + +**Fintech:** +- Compliance Matrix (SOC2, PCI-DSS, GDPR, etc.) +- Security Architecture +- Audit Requirements +- Fraud Prevention measures +- Financial transaction handling + +**GovTech:** +- Accessibility Standards (WCAG 2.1 AA, Section 508) +- Procurement Compliance +- Security Clearance requirements +- Data residency requirements + +**Other regulated domains:** +- Check for domain-specific regulatory sections +- Compliance requirements +- Special considerations + +For each required section: +- Is it present in PRD? +- Is it adequately documented? +- Note any gaps + +Return compliance matrix with presence/adequacy assessment." + +**Graceful degradation (if no Task tool):** +- Manually check for required sections based on domain +- List present sections and missing sections +- Assess adequacy of documentation + +### 5. For Low-Complexity Domains: Skip Detailed Checks + +Append to validation report: +```markdown +## Domain Compliance Validation + +**Domain:** {domain} +**Complexity:** Low (general/standard) +**Assessment:** N/A - No special domain compliance requirements + +**Note:** This PRD is for a standard domain without regulatory compliance requirements. +``` + +Display: "**Domain Compliance Validation Skipped** + +Domain: {domain} (low complexity) + +**Proceeding to next validation check...**" + +Without delay, read fully and follow: {nextStepFile} + +### 6. Report Compliance Findings (High-Complexity Domains) + +Append to validation report: + +```markdown +## Domain Compliance Validation + +**Domain:** {domain} +**Complexity:** High (regulated) + +### Required Special Sections + +**{Section 1 Name}:** [Present/Missing/Adequate] +{If missing or inadequate: Note specific gaps} + +**{Section 2 Name}:** [Present/Missing/Adequate] +{If missing or inadequate: Note specific gaps} + +[Continue for all required sections] + +### Compliance Matrix + +| Requirement | Status | Notes | +|-------------|--------|-------| +| {Requirement 1} | [Met/Partial/Missing] | {Notes} | +| {Requirement 2} | [Met/Partial/Missing] | {Notes} | +[... continue for all requirements] + +### Summary + +**Required Sections Present:** {count}/{total} +**Compliance Gaps:** {count} + +**Severity:** [Critical if missing regulatory sections, Warning if incomplete, Pass if complete] + +**Recommendation:** +[If Critical] "PRD is missing required domain-specific compliance sections. These are essential for {domain} products." +[If Warning] "Some domain compliance sections are incomplete. Strengthen documentation for full compliance." +[If Pass] "All required domain compliance sections are present and adequately documented." +``` + +### 7. Display Progress and Auto-Proceed + +Display: "**Domain Compliance Validation Complete** + +Domain: {domain} ({complexity}) +Compliance Status: {status} + +**Proceeding to next validation check...**" + +Without delay, read fully and follow: {nextStepFile} (step-v-09-project-type-validation.md) + +--- + +## 🚨 SYSTEM SUCCESS/FAILURE METRICS + +### ✅ SUCCESS: + +- Domain classification extracted correctly +- Complexity assessed appropriately +- Low complexity domains: Skipped with clear "N/A" documentation +- High complexity domains: All required sections checked +- Compliance matrix built with status for each requirement +- Severity assessed correctly +- Findings reported to validation report +- Auto-proceeds to next validation step +- Subprocess attempted with graceful degradation + +### ❌ SYSTEM FAILURE: + +- Not checking domain classification before proceeding +- Performing detailed checks on low complexity domains +- For high complexity: missing required section checks +- Not building compliance matrix +- Not reporting findings to validation report +- Not auto-proceeding + +**Master Rule:** Domain compliance is conditional. High-complexity domains require special sections - low complexity domains skip these checks. diff --git a/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-09-project-type-validation.md b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-09-project-type-validation.md new file mode 100644 index 000000000..aea41d924 --- /dev/null +++ b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-09-project-type-validation.md @@ -0,0 +1,263 @@ +--- +name: 'step-v-09-project-type-validation' +description: 'Project-Type Compliance Validation - Validate project-type specific requirements are properly documented' + +# File references (ONLY variables used in this step) +nextStepFile: './step-v-10-smart-validation.md' +prdFile: '{prd_file_path}' +prdFrontmatter: '{prd_frontmatter}' +validationReportPath: '{validation_report_path}' +projectTypesData: '../data/project-types.csv' +--- + +# Step 9: Project-Type Compliance Validation + +## STEP GOAL: + +Validate project-type specific requirements are properly documented - different project types (api_backend, web_app, mobile_app, etc.) have different required and excluded sections. + +## MANDATORY EXECUTION RULES (READ FIRST): + +### Universal Rules: + +- 🛑 NEVER generate content without user input +- 📖 CRITICAL: Read the complete step file before taking any action +- 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read +- 📋 YOU ARE A FACILITATOR, not a content generator +- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +### Role Reinforcement: + +- ✅ You are a Validation Architect and Quality Assurance Specialist +- ✅ If you already have been given communication or persona patterns, continue to use those while playing this new role +- ✅ We engage in systematic validation, not collaborative dialogue +- ✅ You bring project type expertise and architectural knowledge +- ✅ This step runs autonomously - no user input needed + +### Step-Specific Rules: + +- 🎯 Focus ONLY on project-type compliance +- 🚫 FORBIDDEN to validate other aspects in this step +- 💬 Approach: Validate required sections present, excluded sections absent +- 🚪 This is a validation sequence step - auto-proceeds when complete + +## EXECUTION PROTOCOLS: + +- 🎯 Check classification.projectType from PRD frontmatter +- 🎯 Validate required sections for that project type are present +- 🎯 Validate excluded sections for that project type are absent +- 💾 Append compliance findings to validation report +- 📖 Display "Proceeding to next check..." and load next step +- 🚫 FORBIDDEN to pause or request user input + +## CONTEXT BOUNDARIES: + +- Available context: PRD file with frontmatter classification, validation report +- Focus: Project-type compliance only +- Limits: Don't validate other aspects, don't pause for user input +- Dependencies: Steps 2-8 completed - domain and requirements validation done + +## MANDATORY SEQUENCE + +**CRITICAL:** Follow this sequence exactly. Do not skip, reorder, or improvise unless user explicitly requests a change. + +### 1. Load Project Types Data + +Load and read the complete file at: +`{projectTypesData}` (../data/project-types.csv) + +This CSV contains: +- Detection signals for each project type +- Required sections for each project type +- Skip/excluded sections for each project type +- Innovation signals + +Internalize this data - it drives what sections must be present or absent for each project type. + +### 2. Extract Project Type Classification + +From PRD frontmatter, extract: +- `classification.projectType` - what type of project is this? + +**Common project types:** +- api_backend +- web_app +- mobile_app +- desktop_app +- data_pipeline +- ml_system +- library_sdk +- infrastructure +- other + +**If no projectType classification found:** +Assume "web_app" (most common) and note in findings + +### 3. Determine Required and Excluded Sections from CSV Data + +**From loaded project-types.csv data, for this project type:** + +**Required sections:** (from required_sections column) +These MUST be present in the PRD + +**Skip sections:** (from skip_sections column) +These MUST NOT be present in the PRD + +**Example mappings from CSV:** +- api_backend: Required=[endpoint_specs, auth_model, data_schemas], Skip=[ux_ui, visual_design] +- mobile_app: Required=[platform_reqs, device_permissions, offline_mode], Skip=[desktop_features, cli_commands] +- cli_tool: Required=[command_structure, output_formats, config_schema], Skip=[visual_design, ux_principles, touch_interactions] +- etc. + +### 4. Validate Against CSV-Based Requirements + +**Based on project type, determine:** + +**api_backend:** +- Required: Endpoint Specs, Auth Model, Data Schemas, API Versioning +- Excluded: UX/UI sections, mobile-specific sections + +**web_app:** +- Required: User Journeys, UX/UI Requirements, Responsive Design +- Excluded: None typically + +**mobile_app:** +- Required: Mobile UX, Platform specifics (iOS/Android), Offline mode +- Excluded: Desktop-specific sections + +**desktop_app:** +- Required: Desktop UX, Platform specifics (Windows/Mac/Linux) +- Excluded: Mobile-specific sections + +**data_pipeline:** +- Required: Data Sources, Data Transformation, Data Sinks, Error Handling +- Excluded: UX/UI sections + +**ml_system:** +- Required: Model Requirements, Training Data, Inference Requirements, Model Performance +- Excluded: UX/UI sections (unless ML UI) + +**library_sdk:** +- Required: API Surface, Usage Examples, Integration Guide +- Excluded: UX/UI sections, deployment sections + +**infrastructure:** +- Required: Infrastructure Components, Deployment, Monitoring, Scaling +- Excluded: Feature requirements (this is infrastructure, not product) + +### 4. Attempt Sub-Process Validation + +"Perform project-type compliance validation for {projectType}: + +**Check that required sections are present:** +{List required sections for this project type} +For each: Is it present in PRD? Is it adequately documented? + +**Check that excluded sections are absent:** +{List excluded sections for this project type} +For each: Is it absent from PRD? (Should not be present) + +Build compliance table showing: +- Required sections: [Present/Missing/Incomplete] +- Excluded sections: [Absent/Present] (Present = violation) + +Return compliance table with findings." + +**Graceful degradation (if no Task tool):** +- Manually check PRD for required sections +- Manually check PRD for excluded sections +- Build compliance table + +### 5. Build Compliance Table + +**Required sections check:** +- For each required section: Present / Missing / Incomplete +- Count: Required sections present vs total required + +**Excluded sections check:** +- For each excluded section: Absent / Present (violation) +- Count: Excluded sections present (violations) + +**Total compliance score:** +- Required: {present}/{total} +- Excluded violations: {count} + +### 6. Report Project-Type Compliance Findings to Validation Report + +Append to validation report: + +```markdown +## Project-Type Compliance Validation + +**Project Type:** {projectType} + +### Required Sections + +**{Section 1}:** [Present/Missing/Incomplete] +{If missing or incomplete: Note specific gaps} + +**{Section 2}:** [Present/Missing/Incomplete] +{If missing or incomplete: Note specific gaps} + +[Continue for all required sections] + +### Excluded Sections (Should Not Be Present) + +**{Section 1}:** [Absent/Present] ✓ +{If present: This section should not be present for {projectType}} + +**{Section 2}:** [Absent/Present] ✓ +{If present: This section should not be present for {projectType}} + +[Continue for all excluded sections] + +### Compliance Summary + +**Required Sections:** {present}/{total} present +**Excluded Sections Present:** {violations} (should be 0) +**Compliance Score:** {percentage}% + +**Severity:** [Critical if required sections missing, Warning if incomplete, Pass if complete] + +**Recommendation:** +[If Critical] "PRD is missing required sections for {projectType}. Add missing sections to properly specify this type of project." +[If Warning] "Some required sections for {projectType} are incomplete. Strengthen documentation." +[If Pass] "All required sections for {projectType} are present. No excluded sections found." +``` + +### 7. Display Progress and Auto-Proceed + +Display: "**Project-Type Compliance Validation Complete** + +Project Type: {projectType} +Compliance: {score}% + +**Proceeding to next validation check...**" + +Without delay, read fully and follow: {nextStepFile} (step-v-10-smart-validation.md) + +--- + +## 🚨 SYSTEM SUCCESS/FAILURE METRICS + +### ✅ SUCCESS: + +- Project type extracted correctly (or default assumed) +- Required sections validated for presence and completeness +- Excluded sections validated for absence +- Compliance table built with status for all sections +- Severity assessed correctly +- Findings reported to validation report +- Auto-proceeds to next validation step +- Subprocess attempted with graceful degradation + +### ❌ SYSTEM FAILURE: + +- Not checking project type before proceeding +- Missing required section checks +- Missing excluded section checks +- Not building compliance table +- Not reporting findings to validation report +- Not auto-proceeding + +**Master Rule:** Different project types have different requirements. API PRDs don't need UX sections - validate accordingly. diff --git a/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-10-smart-validation.md b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-10-smart-validation.md new file mode 100644 index 000000000..0c44b00da --- /dev/null +++ b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-10-smart-validation.md @@ -0,0 +1,209 @@ +--- +name: 'step-v-10-smart-validation' +description: 'SMART Requirements Validation - Validate Functional Requirements meet SMART quality criteria' + +# File references (ONLY variables used in this step) +nextStepFile: './step-v-11-holistic-quality-validation.md' +prdFile: '{prd_file_path}' +validationReportPath: '{validation_report_path}' +--- + +# Step 10: SMART Requirements Validation + +## STEP GOAL: + +Validate Functional Requirements meet SMART quality criteria (Specific, Measurable, Attainable, Relevant, Traceable), ensuring high-quality requirements. + +## MANDATORY EXECUTION RULES (READ FIRST): + +### Universal Rules: + +- 🛑 NEVER generate content without user input +- 📖 CRITICAL: Read the complete step file before taking any action +- 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read +- 📋 YOU ARE A FACILITATOR, not a content generator +- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` +- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}` + +### Role Reinforcement: + +- ✅ You are a Validation Architect and Quality Assurance Specialist +- ✅ If you already have been given communication or persona patterns, continue to use those while playing this new role +- ✅ We engage in systematic validation, not collaborative dialogue +- ✅ You bring requirements engineering expertise and quality assessment +- ✅ This step runs autonomously - no user input needed + +### Step-Specific Rules: + +- 🎯 Focus ONLY on FR quality assessment using SMART framework +- 🚫 FORBIDDEN to validate other aspects in this step +- 💬 Approach: Score each FR on SMART criteria (1-5 scale) +- 🚪 This is a validation sequence step - auto-proceeds when complete + +## EXECUTION PROTOCOLS: + +- 🎯 Extract all FRs from PRD +- 🎯 Score each FR on SMART criteria (Specific, Measurable, Attainable, Relevant, Traceable) +- 💾 Flag FRs with score < 3 in any category +- 📖 Append scoring table and suggestions to validation report +- 📖 Display "Proceeding to next check..." and load next step +- 🚫 FORBIDDEN to pause or request user input + +## CONTEXT BOUNDARIES: + +- Available context: PRD file, validation report +- Focus: FR quality assessment only using SMART framework +- Limits: Don't validate NFRs or other aspects, don't pause for user input +- Dependencies: Steps 2-9 completed - comprehensive validation checks done + +## MANDATORY SEQUENCE + +**CRITICAL:** Follow this sequence exactly. Do not skip, reorder, or improvise unless user explicitly requests a change. + +### 1. Extract All Functional Requirements + +From the PRD's Functional Requirements section, extract: +- All FRs with their FR numbers (FR-001, FR-002, etc.) +- Count total FRs + +### 2. Attempt Sub-Process Validation + +**Try to use Task tool to spawn a subprocess:** + +"Perform SMART requirements validation on these Functional Requirements: + +{List all FRs} + +**For each FR, score on SMART criteria (1-5 scale):** + +**Specific (1-5):** +- 5: Clear, unambiguous, well-defined +- 3: Somewhat clear but could be more specific +- 1: Vague, ambiguous, unclear + +**Measurable (1-5):** +- 5: Quantifiable metrics, testable +- 3: Partially measurable +- 1: Not measurable, subjective + +**Attainable (1-5):** +- 5: Realistic, achievable with constraints +- 3: Probably achievable but uncertain +- 1: Unrealistic, technically infeasible + +**Relevant (1-5):** +- 5: Clearly aligned with user needs and business objectives +- 3: Somewhat relevant but connection unclear +- 1: Not relevant, doesn't align with goals + +**Traceable (1-5):** +- 5: Clearly traces to user journey or business objective +- 3: Partially traceable +- 1: Orphan requirement, no clear source + +**For each FR with score < 3 in any category:** +- Provide specific improvement suggestions + +Return scoring table with all FR scores and improvement suggestions for low-scoring FRs." + +**Graceful degradation (if no Task tool):** +- Manually score each FR on SMART criteria +- Note FRs with low scores +- Provide improvement suggestions + +### 3. Build Scoring Table + +For each FR: +- FR number +- Specific score (1-5) +- Measurable score (1-5) +- Attainable score (1-5) +- Relevant score (1-5) +- Traceable score (1-5) +- Average score +- Flag if any category < 3 + +**Calculate overall FR quality:** +- Percentage of FRs with all scores ≥ 3 +- Percentage of FRs with all scores ≥ 4 +- Average score across all FRs and categories + +### 4. Report SMART Findings to Validation Report + +Append to validation report: + +```markdown +## SMART Requirements Validation + +**Total Functional Requirements:** {count} + +### Scoring Summary + +**All scores ≥ 3:** {percentage}% ({count}/{total}) +**All scores ≥ 4:** {percentage}% ({count}/{total}) +**Overall Average Score:** {average}/5.0 + +### Scoring Table + +| FR # | Specific | Measurable | Attainable | Relevant | Traceable | Average | Flag | +|------|----------|------------|------------|----------|-----------|--------|------| +| FR-001 | {s1} | {m1} | {a1} | {r1} | {t1} | {avg1} | {X if any <3} | +| FR-002 | {s2} | {m2} | {a2} | {r2} | {t2} | {avg2} | {X if any <3} | +[Continue for all FRs] + +**Legend:** 1=Poor, 3=Acceptable, 5=Excellent +**Flag:** X = Score < 3 in one or more categories + +### Improvement Suggestions + +**Low-Scoring FRs:** + +**FR-{number}:** {specific suggestion for improvement} +[For each FR with score < 3 in any category] + +### Overall Assessment + +**Severity:** [Critical if >30% flagged FRs, Warning if 10-30%, Pass if <10%] + +**Recommendation:** +[If Critical] "Many FRs have quality issues. Revise flagged FRs using SMART framework to improve clarity and testability." +[If Warning] "Some FRs would benefit from SMART refinement. Focus on flagged requirements above." +[If Pass] "Functional Requirements demonstrate good SMART quality overall." +``` + +### 5. Display Progress and Auto-Proceed + +Display: "**SMART Requirements Validation Complete** + +FR Quality: {percentage}% with acceptable scores ({severity}) + +**Proceeding to next validation check...**" + +Without delay, read fully and follow: {nextStepFile} (step-v-11-holistic-quality-validation.md) + +--- + +## 🚨 SYSTEM SUCCESS/FAILURE METRICS + +### ✅ SUCCESS: + +- All FRs extracted from PRD +- Each FR scored on all 5 SMART criteria (1-5 scale) +- FRs with scores < 3 flagged for improvement +- Improvement suggestions provided for low-scoring FRs +- Scoring table built with all FR scores +- Overall quality assessment calculated +- Findings reported to validation report +- Auto-proceeds to next validation step +- Subprocess attempted with graceful degradation + +### ❌ SYSTEM FAILURE: + +- Not scoring all FRs on all SMART criteria +- Missing improvement suggestions for low-scoring FRs +- Not building scoring table +- Not calculating overall quality metrics +- Not reporting findings to validation report +- Not auto-proceeding + +**Master Rule:** FRs should be high-quality, not just present. SMART framework provides objective quality measure. diff --git a/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-11-holistic-quality-validation.md b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-11-holistic-quality-validation.md new file mode 100644 index 000000000..f5be09bad --- /dev/null +++ b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-11-holistic-quality-validation.md @@ -0,0 +1,265 @@ +--- +name: 'step-v-11-holistic-quality-validation' +description: 'Holistic Quality Assessment - Assess PRD as cohesive, compelling document - is it a good PRD?' + +# File references (ONLY variables used in this step) +nextStepFile: './step-v-12-completeness-validation.md' +prdFile: '{prd_file_path}' +validationReportPath: '{validation_report_path}' +advancedElicitationTask: 'skill:bmad-advanced-elicitation' +--- + +# Step 11: Holistic Quality Assessment + +## STEP GOAL: + +Assess the PRD as a cohesive, compelling document - evaluating document flow, dual audience effectiveness (humans and LLMs), BMAD PRD principles compliance, and overall quality rating. + +## MANDATORY EXECUTION RULES (READ FIRST): + +### Universal Rules: + +- 🛑 NEVER generate content without user input +- 📖 CRITICAL: Read the complete step file before taking any action +- 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read +- 📋 YOU ARE A FACILITATOR, not a content generator +- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` +- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}` + +### Role Reinforcement: + +- ✅ You are a Validation Architect and Quality Assurance Specialist +- ✅ If you already have been given communication or persona patterns, continue to use those while playing this new role +- ✅ We engage in systematic validation, not collaborative dialogue +- ✅ You bring analytical rigor and document quality expertise +- ✅ This step runs autonomously - no user input needed +- ✅ Uses Advanced Elicitation for multi-perspective evaluation + +### Step-Specific Rules: + +- 🎯 Focus ONLY on holistic document quality assessment +- 🚫 FORBIDDEN to validate individual components (done in previous steps) +- 💬 Approach: Multi-perspective evaluation using Advanced Elicitation +- 🚪 This is a validation sequence step - auto-proceeds when complete + +## EXECUTION PROTOCOLS: + +- 🎯 Use Advanced Elicitation for multi-perspective assessment +- 🎯 Evaluate document flow, dual audience, BMAD principles +- 💾 Append comprehensive assessment to validation report +- 📖 Display "Proceeding to next check..." and load next step +- 🚫 FORBIDDEN to pause or request user input + +## CONTEXT BOUNDARIES: + +- Available context: Complete PRD file, validation report with findings from steps 1-10 +- Focus: Holistic quality - the WHOLE document +- Limits: Don't re-validate individual components, don't pause for user input +- Dependencies: Steps 1-10 completed - all systematic checks done + +## MANDATORY SEQUENCE + +**CRITICAL:** Follow this sequence exactly. Do not skip, reorder, or improvise unless user explicitly requests a change. + +### 1. Attempt Sub-Process with Advanced Elicitation + +**Try to use Task tool to spawn a subprocess using Advanced Elicitation:** + +"Perform holistic quality assessment on this PRD using multi-perspective evaluation: + +**Read fully and follow the Advanced Elicitation workflow:** +{advancedElicitationTask} + +**Evaluate the PRD from these perspectives:** + +**1. Document Flow & Coherence:** +- Read entire PRD +- Evaluate narrative flow - does it tell a cohesive story? +- Check transitions between sections +- Assess consistency - is it coherent throughout? +- Evaluate readability - is it clear and well-organized? + +**2. Dual Audience Effectiveness:** + +**For Humans:** +- Executive-friendly: Can executives understand vision and goals quickly? +- Developer clarity: Do developers have clear requirements to build from? +- Designer clarity: Do designers understand user needs and flows? +- Stakeholder decision-making: Can stakeholders make informed decisions? + +**For LLMs:** +- Machine-readable structure: Is the PRD structured for LLM consumption? +- UX readiness: Can an LLM generate UX designs from this? +- Architecture readiness: Can an LLM generate architecture from this? +- Epic/Story readiness: Can an LLM break down into epics and stories? + +**3. BMAD PRD Principles Compliance:** +- Information density: Every sentence carries weight? +- Measurability: Requirements testable? +- Traceability: Requirements trace to sources? +- Domain awareness: Domain-specific considerations included? +- Zero anti-patterns: No filler or wordiness? +- Dual audience: Works for both humans and LLMs? +- Markdown format: Proper structure and formatting? + +**4. Overall Quality Rating:** +Rate the PRD on 5-point scale: +- Excellent (5/5): Exemplary, ready for production use +- Good (4/5): Strong with minor improvements needed +- Adequate (3/5): Acceptable but needs refinement +- Needs Work (2/5): Significant gaps or issues +- Problematic (1/5): Major flaws, needs substantial revision + +**5. Top 3 Improvements:** +Identify the 3 most impactful improvements to make this a great PRD + +Return comprehensive assessment with all perspectives, rating, and top 3 improvements." + +**Graceful degradation (if no Task tool or Advanced Elicitation unavailable):** +- Perform holistic assessment directly in current context +- Read complete PRD +- Evaluate document flow, coherence, transitions +- Assess dual audience effectiveness +- Check BMAD principles compliance +- Assign overall quality rating +- Identify top 3 improvements + +### 2. Synthesize Assessment + +**Compile findings from multi-perspective evaluation:** + +**Document Flow & Coherence:** +- Overall assessment: [Excellent/Good/Adequate/Needs Work/Problematic] +- Key strengths: [list] +- Key weaknesses: [list] + +**Dual Audience Effectiveness:** +- For Humans: [assessment] +- For LLMs: [assessment] +- Overall dual audience score: [1-5] + +**BMAD Principles Compliance:** +- Principles met: [count]/7 +- Principles with issues: [list] + +**Overall Quality Rating:** [1-5 with label] + +**Top 3 Improvements:** +1. [Improvement 1] +2. [Improvement 2] +3. [Improvement 3] + +### 3. Report Holistic Quality Findings to Validation Report + +Append to validation report: + +```markdown +## Holistic Quality Assessment + +### Document Flow & Coherence + +**Assessment:** [Excellent/Good/Adequate/Needs Work/Problematic] + +**Strengths:** +{List key strengths} + +**Areas for Improvement:** +{List key weaknesses} + +### Dual Audience Effectiveness + +**For Humans:** +- Executive-friendly: [assessment] +- Developer clarity: [assessment] +- Designer clarity: [assessment] +- Stakeholder decision-making: [assessment] + +**For LLMs:** +- Machine-readable structure: [assessment] +- UX readiness: [assessment] +- Architecture readiness: [assessment] +- Epic/Story readiness: [assessment] + +**Dual Audience Score:** {score}/5 + +### BMAD PRD Principles Compliance + +| Principle | Status | Notes | +|-----------|--------|-------| +| Information Density | [Met/Partial/Not Met] | {notes} | +| Measurability | [Met/Partial/Not Met] | {notes} | +| Traceability | [Met/Partial/Not Met] | {notes} | +| Domain Awareness | [Met/Partial/Not Met] | {notes} | +| Zero Anti-Patterns | [Met/Partial/Not Met] | {notes} | +| Dual Audience | [Met/Partial/Not Met] | {notes} | +| Markdown Format | [Met/Partial/Not Met] | {notes} | + +**Principles Met:** {count}/7 + +### Overall Quality Rating + +**Rating:** {rating}/5 - {label} + +**Scale:** +- 5/5 - Excellent: Exemplary, ready for production use +- 4/5 - Good: Strong with minor improvements needed +- 3/5 - Adequate: Acceptable but needs refinement +- 2/5 - Needs Work: Significant gaps or issues +- 1/5 - Problematic: Major flaws, needs substantial revision + +### Top 3 Improvements + +1. **{Improvement 1}** + {Brief explanation of why and how} + +2. **{Improvement 2}** + {Brief explanation of why and how} + +3. **{Improvement 3}** + {Brief explanation of why and how} + +### Summary + +**This PRD is:** {one-sentence overall assessment} + +**To make it great:** Focus on the top 3 improvements above. +``` + +### 4. Display Progress and Auto-Proceed + +Display: "**Holistic Quality Assessment Complete** + +Overall Rating: {rating}/5 - {label} + +**Proceeding to final validation checks...**" + +Without delay, read fully and follow: {nextStepFile} (step-v-12-completeness-validation.md) + +--- + +## 🚨 SYSTEM SUCCESS/FAILURE METRICS + +### ✅ SUCCESS: + +- Advanced Elicitation used for multi-perspective evaluation (or graceful degradation) +- Document flow & coherence assessed +- Dual audience effectiveness evaluated (humans and LLMs) +- BMAD PRD principles compliance checked +- Overall quality rating assigned (1-5 scale) +- Top 3 improvements identified +- Comprehensive assessment reported to validation report +- Auto-proceeds to next validation step +- Subprocess attempted with graceful degradation + +### ❌ SYSTEM FAILURE: + +- Not using Advanced Elicitation for multi-perspective evaluation +- Missing document flow assessment +- Missing dual audience evaluation +- Not checking all BMAD principles +- Not assigning overall quality rating +- Missing top 3 improvements +- Not reporting comprehensive assessment to validation report +- Not auto-proceeding + +**Master Rule:** This evaluates the WHOLE document, not just components. Answers "Is this a good PRD?" and "What would make it great?" diff --git a/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-12-completeness-validation.md b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-12-completeness-validation.md new file mode 100644 index 000000000..00c477981 --- /dev/null +++ b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-12-completeness-validation.md @@ -0,0 +1,242 @@ +--- +name: 'step-v-12-completeness-validation' +description: 'Completeness Check - Final comprehensive completeness check before report generation' + +# File references (ONLY variables used in this step) +nextStepFile: './step-v-13-report-complete.md' +prdFile: '{prd_file_path}' +prdFrontmatter: '{prd_frontmatter}' +validationReportPath: '{validation_report_path}' +--- + +# Step 12: Completeness Validation + +## STEP GOAL: + +Final comprehensive completeness check - validate no template variables remain, each section has required content, section-specific completeness, and frontmatter is properly populated. + +## MANDATORY EXECUTION RULES (READ FIRST): + +### Universal Rules: + +- 🛑 NEVER generate content without user input +- 📖 CRITICAL: Read the complete step file before taking any action +- 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read +- 📋 YOU ARE A FACILITATOR, not a content generator +- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` + +### Role Reinforcement: + +- ✅ You are a Validation Architect and Quality Assurance Specialist +- ✅ If you already have been given communication or persona patterns, continue to use those while playing this new role +- ✅ We engage in systematic validation, not collaborative dialogue +- ✅ You bring attention to detail and completeness verification +- ✅ This step runs autonomously - no user input needed + +### Step-Specific Rules: + +- 🎯 Focus ONLY on completeness verification +- 🚫 FORBIDDEN to validate quality (done in step 11) or other aspects +- 💬 Approach: Systematic checklist-style verification +- 🚪 This is a validation sequence step - auto-proceeds when complete + +## EXECUTION PROTOCOLS: + +- 🎯 Check template completeness (no variables remaining) +- 🎯 Validate content completeness (each section has required content) +- 🎯 Validate section-specific completeness +- 🎯 Validate frontmatter completeness +- 💾 Append completeness matrix to validation report +- 📖 Display "Proceeding to final step..." and load next step +- 🚫 FORBIDDEN to pause or request user input + +## CONTEXT BOUNDARIES: + +- Available context: Complete PRD file, frontmatter, validation report +- Focus: Completeness verification only (final gate) +- Limits: Don't assess quality, don't pause for user input +- Dependencies: Steps 1-11 completed - all validation checks done + +## MANDATORY SEQUENCE + +**CRITICAL:** Follow this sequence exactly. Do not skip, reorder, or improvise unless user explicitly requests a change. + +### 1. Attempt Sub-Process Validation + +**Try to use Task tool to spawn a subprocess:** + +"Perform completeness validation on this PRD - final gate check: + +**1. Template Completeness:** +- Scan PRD for any remaining template variables +- Look for: {variable}, {{variable}}, {placeholder}, [placeholder], etc. +- List any found with line numbers + +**2. Content Completeness:** +- Executive Summary: Has vision statement? ({key content}) +- Success Criteria: All criteria measurable? ({metrics present}) +- Product Scope: In-scope and out-of-scope defined? ({both present}) +- User Journeys: User types identified? ({users listed}) +- Functional Requirements: FRs listed with proper format? ({FRs present}) +- Non-Functional Requirements: NFRs with metrics? ({NFRs present}) + +For each section: Is required content present? (Yes/No/Partial) + +**3. Section-Specific Completeness:** +- Success Criteria: Each has specific measurement method? +- User Journeys: Cover all user types? +- Functional Requirements: Cover MVP scope? +- Non-Functional Requirements: Each has specific criteria? + +**4. Frontmatter Completeness:** +- stepsCompleted: Populated? +- classification: Present (domain, projectType)? +- inputDocuments: Tracked? +- date: Present? + +Return completeness matrix with status for each check." + +**Graceful degradation (if no Task tool):** +- Manually scan for template variables +- Manually check each section for required content +- Manually verify frontmatter fields +- Build completeness matrix + +### 2. Build Completeness Matrix + +**Template Completeness:** +- Template variables found: count +- List if any found + +**Content Completeness by Section:** +- Executive Summary: Complete / Incomplete / Missing +- Success Criteria: Complete / Incomplete / Missing +- Product Scope: Complete / Incomplete / Missing +- User Journeys: Complete / Incomplete / Missing +- Functional Requirements: Complete / Incomplete / Missing +- Non-Functional Requirements: Complete / Incomplete / Missing +- Other sections: [List completeness] + +**Section-Specific Completeness:** +- Success criteria measurable: All / Some / None +- Journeys cover all users: Yes / Partial / No +- FRs cover MVP scope: Yes / Partial / No +- NFRs have specific criteria: All / Some / None + +**Frontmatter Completeness:** +- stepsCompleted: Present / Missing +- classification: Present / Missing +- inputDocuments: Present / Missing +- date: Present / Missing + +**Overall completeness:** +- Sections complete: X/Y +- Critical gaps: [list if any] + +### 3. Report Completeness Findings to Validation Report + +Append to validation report: + +```markdown +## Completeness Validation + +### Template Completeness + +**Template Variables Found:** {count} +{If count > 0, list variables with line numbers} +{If count = 0, note: No template variables remaining ✓} + +### Content Completeness by Section + +**Executive Summary:** [Complete/Incomplete/Missing] +{If incomplete or missing, note specific gaps} + +**Success Criteria:** [Complete/Incomplete/Missing] +{If incomplete or missing, note specific gaps} + +**Product Scope:** [Complete/Incomplete/Missing] +{If incomplete or missing, note specific gaps} + +**User Journeys:** [Complete/Incomplete/Missing] +{If incomplete or missing, note specific gaps} + +**Functional Requirements:** [Complete/Incomplete/Missing] +{If incomplete or missing, note specific gaps} + +**Non-Functional Requirements:** [Complete/Incomplete/Missing] +{If incomplete or missing, note specific gaps} + +### Section-Specific Completeness + +**Success Criteria Measurability:** [All/Some/None] measurable +{If Some or None, note which criteria lack metrics} + +**User Journeys Coverage:** [Yes/Partial/No] - covers all user types +{If Partial or No, note missing user types} + +**FRs Cover MVP Scope:** [Yes/Partial/No] +{If Partial or No, note scope gaps} + +**NFRs Have Specific Criteria:** [All/Some/None] +{If Some or None, note which NFRs lack specificity} + +### Frontmatter Completeness + +**stepsCompleted:** [Present/Missing] +**classification:** [Present/Missing] +**inputDocuments:** [Present/Missing] +**date:** [Present/Missing] + +**Frontmatter Completeness:** {complete_fields}/4 + +### Completeness Summary + +**Overall Completeness:** {percentage}% ({complete_sections}/{total_sections}) + +**Critical Gaps:** [count] [list if any] +**Minor Gaps:** [count] [list if any] + +**Severity:** [Critical if template variables exist or critical sections missing, Warning if minor gaps, Pass if complete] + +**Recommendation:** +[If Critical] "PRD has completeness gaps that must be addressed before use. Fix template variables and complete missing sections." +[If Warning] "PRD has minor completeness gaps. Address minor gaps for complete documentation." +[If Pass] "PRD is complete with all required sections and content present." +``` + +### 4. Display Progress and Auto-Proceed + +Display: "**Completeness Validation Complete** + +Overall Completeness: {percentage}% ({severity}) + +**Proceeding to final step...**" + +Without delay, read fully and follow: {nextStepFile} (step-v-13-report-complete.md) + +--- + +## 🚨 SYSTEM SUCCESS/FAILURE METRICS + +### ✅ SUCCESS: + +- Scanned for template variables systematically +- Validated each section for required content +- Validated section-specific completeness (measurability, coverage, scope) +- Validated frontmatter completeness +- Completeness matrix built with all checks +- Severity assessed correctly +- Findings reported to validation report +- Auto-proceeds to final step +- Subprocess attempted with graceful degradation + +### ❌ SYSTEM FAILURE: + +- Not scanning for template variables +- Missing section-specific completeness checks +- Not validating frontmatter +- Not building completeness matrix +- Not reporting findings to validation report +- Not auto-proceeding + +**Master Rule:** Final gate to ensure document is complete before presenting findings. Template variables or critical gaps must be fixed. diff --git a/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-13-report-complete.md b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-13-report-complete.md new file mode 100644 index 000000000..decc5579a --- /dev/null +++ b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/steps-v/step-v-13-report-complete.md @@ -0,0 +1,232 @@ +--- +name: 'step-v-13-report-complete' +description: 'Validation Report Complete - Finalize report, summarize findings, present to user, offer next steps' + +# File references (ONLY variables used in this step) +validationReportPath: '{validation_report_path}' +prdFile: '{prd_file_path}' +--- + +# Step 13: Validation Report Complete + +## STEP GOAL: + +Finalize validation report, summarize all findings from steps 1-12, present summary to user conversationally, and offer actionable next steps. + +## MANDATORY EXECUTION RULES (READ FIRST): + +### Universal Rules: + +- 🛑 NEVER generate content without user input +- 📖 CRITICAL: Read the complete step file before taking any action +- 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read +- 📋 YOU ARE A FACILITATOR, not a content generator +- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}` +- ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}` + +### Role Reinforcement: + +- ✅ You are a Validation Architect and Quality Assurance Specialist +- ✅ If you already have been given communication or persona patterns, continue to use those while playing this new role +- ✅ We engage in collaborative dialogue, not command-response +- ✅ You bring synthesis and summary expertise +- ✅ This is the FINAL step - requires user interaction + +### Step-Specific Rules: + +- 🎯 Focus ONLY on summarizing findings and presenting options +- 🚫 FORBIDDEN to perform additional validation +- 💬 Approach: Conversational summary with clear next steps +- 🚪 This is the final step - no next step after this + +## EXECUTION PROTOCOLS: + +- 🎯 Load complete validation report +- 🎯 Summarize all findings from steps 1-12 +- 🎯 Update report frontmatter with final status +- 💬 Present summary to user conversationally +- 💬 Offer menu options for next actions +- 🚫 FORBIDDEN to proceed without user selection + +## CONTEXT BOUNDARIES: + +- Available context: Complete validation report with findings from all validation steps +- Focus: Summary and presentation only (no new validation) +- Limits: Don't add new findings, just synthesize existing +- Dependencies: Steps 1-12 completed - all validation checks done + +## MANDATORY SEQUENCE + +**CRITICAL:** Follow this sequence exactly. Do not skip, reorder, or improvise unless user explicitly requests a change. + +### 1. Load Complete Validation Report + +Read the entire validation report from {validationReportPath} + +Extract all findings from: +- Format Detection (Step 2) +- Parity Analysis (Step 2B, if applicable) +- Information Density (Step 3) +- Product Brief Coverage (Step 4) +- Measurability (Step 5) +- Traceability (Step 6) +- Implementation Leakage (Step 7) +- Domain Compliance (Step 8) +- Project-Type Compliance (Step 9) +- SMART Requirements (Step 10) +- Holistic Quality (Step 11) +- Completeness (Step 12) + +### 2. Update Report Frontmatter with Final Status + +Update validation report frontmatter: + +```yaml +--- +validationTarget: '{prd_path}' +validationDate: '{current_date}' +inputDocuments: [list of documents] +validationStepsCompleted: ['step-v-01-discovery', 'step-v-02-format-detection', 'step-v-03-density-validation', 'step-v-04-brief-coverage-validation', 'step-v-05-measurability-validation', 'step-v-06-traceability-validation', 'step-v-07-implementation-leakage-validation', 'step-v-08-domain-compliance-validation', 'step-v-09-project-type-validation', 'step-v-10-smart-validation', 'step-v-11-holistic-quality-validation', 'step-v-12-completeness-validation'] +validationStatus: COMPLETE +holisticQualityRating: '{rating from step 11}' +overallStatus: '{Pass/Warning/Critical based on all findings}' +--- +``` + +### 3. Create Summary of Findings + +**Overall Status:** +- Determine from all validation findings +- **Pass:** All critical checks pass, minor warnings acceptable +- **Warning:** Some issues found but PRD is usable +- **Critical:** Major issues that prevent PRD from being fit for purpose + +**Quick Results Table:** +- Format: [classification] +- Information Density: [severity] +- Measurability: [severity] +- Traceability: [severity] +- Implementation Leakage: [severity] +- Domain Compliance: [status] +- Project-Type Compliance: [compliance score] +- SMART Quality: [percentage] +- Holistic Quality: [rating/5] +- Completeness: [percentage] + +**Critical Issues:** List from all validation steps +**Warnings:** List from all validation steps +**Strengths:** List positives from all validation steps + +**Holistic Quality Rating:** From step 11 +**Top 3 Improvements:** From step 11 + +**Recommendation:** Based on overall status + +### 4. Present Summary to User Conversationally + +Display: + +"**✓ PRD Validation Complete** + +**Overall Status:** {Pass/Warning/Critical} + +**Quick Results:** +{Present quick results table with key findings} + +**Critical Issues:** {count or "None"} +{If any, list briefly} + +**Warnings:** {count or "None"} +{If any, list briefly} + +**Strengths:** +{List key strengths} + +**Holistic Quality:** {rating}/5 - {label} + +**Top 3 Improvements:** +1. {Improvement 1} +2. {Improvement 2} +3. {Improvement 3} + +**Recommendation:** +{Based on overall status: +- Pass: "PRD is in good shape. Address minor improvements to make it great." +- Warning: "PRD is usable but has issues that should be addressed. Review warnings and improve where needed." +- Critical: "PRD has significant issues that should be fixed before use. Focus on critical issues above."} + +**What would you like to do next?**" + +### 5. Present MENU OPTIONS + +Display: + +**[R] Review Detailed Findings** - Walk through validation report section by section +**[E] Use Edit Workflow** - Use validation report with Edit workflow for systematic improvements +**[F] Fix Simpler Items** - Immediate fixes for simple issues (anti-patterns, leakage, missing headers) +**[X] Exit** - Exit and Suggest Next Steps. + +#### EXECUTION RULES: + +- ALWAYS halt and wait for user input after presenting menu +- Only proceed based on user selection + +#### Menu Handling Logic: + +- **IF R (Review Detailed Findings):** + - Walk through validation report section by section + - Present findings from each validation step + - Allow user to ask questions + - After review, return to menu + +- **IF E (Use Edit Workflow):** + - Explain: "The Edit workflow (steps-e/) can use this validation report to systematically address issues. Edit mode will guide you through discovering what to edit, reviewing the PRD, and applying targeted improvements." + - Offer: "Would you like to launch Edit mode now? It will help you fix validation findings systematically." + - If yes: Read fully and follow: steps-e/step-e-01-discovery.md + - If no: Return to menu + +- **IF F (Fix Simpler Items):** + - Offer immediate fixes for: + - Template variables (fill in with appropriate content) + - Conversational filler (remove wordy phrases) + - Implementation leakage (remove technology names from FRs/NFRs) + - Missing section headers (add ## headers) + - Ask: "Which simple fixes would you like me to make?" + - If user specifies fixes, make them and update validation report + - Return to menu + +- **IF X (Exit):** + - Display: "**Validation Report Saved:** {validationReportPath}" + - Display: "**Summary:** {overall status} - {recommendation}" + - PRD Validation complete. Invoke the `bmad-help` skill. + +- **IF Any other:** Help user, then redisplay menu + +--- + +## 🚨 SYSTEM SUCCESS/FAILURE METRICS + +### ✅ SUCCESS: + +- Complete validation report loaded successfully +- All findings from steps 1-12 summarized +- Report frontmatter updated with final status +- Overall status determined correctly (Pass/Warning/Critical) +- Quick results table presented +- Critical issues, warnings, and strengths listed +- Holistic quality rating included +- Top 3 improvements presented +- Clear recommendation provided +- Menu options presented with clear explanations +- User can review findings, get help, or exit + +### ❌ SYSTEM FAILURE: + +- Not loading complete validation report +- Missing summary of findings +- Not updating report frontmatter +- Not determining overall status +- Missing menu options +- Unclear next steps + +**Master Rule:** User needs clear summary and actionable next steps. Edit workflow is best for complex issues; immediate fixes available for simpler ones. diff --git a/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/workflow.md b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/workflow.md new file mode 100644 index 000000000..3de6ff24f --- /dev/null +++ b/src/bmm/workflows/2-plan-workflows/bmad-validate-prd/workflow.md @@ -0,0 +1,62 @@ +--- +main_config: '{project-root}/_bmad/bmm/config.yaml' +validateWorkflow: './steps-v/step-v-01-discovery.md' +--- + +# PRD Validate Workflow + +**Goal:** Validate existing PRDs against BMAD standards through comprehensive review. + +**Your Role:** Validation Architect and Quality Assurance Specialist. + +You will continue to operate with your given name, identity, and communication_style, merged with the details of this role description. + +## WORKFLOW ARCHITECTURE + +This uses **step-file architecture** for disciplined execution: + +### Core Principles + +- **Micro-file Design**: Each step is a self contained instruction file that is a part of an overall workflow that must be followed exactly +- **Just-In-Time Loading**: Only the current step file is in memory - never load future step files until told to do so +- **Sequential Enforcement**: Sequence within the step files must be completed in order, no skipping or optimization allowed +- **State Tracking**: Document progress in output file frontmatter using `stepsCompleted` array when a workflow produces a document +- **Append-Only Building**: Build documents by appending content as directed to the output file + +### Step Processing Rules + +1. **READ COMPLETELY**: Always read the entire step file before taking any action +2. **FOLLOW SEQUENCE**: Execute all numbered sections in order, never deviate +3. **WAIT FOR INPUT**: If a menu is presented, halt and wait for user selection +4. **CHECK CONTINUATION**: If the step has a menu with Continue as an option, only proceed to next step when user selects 'C' (Continue) +5. **SAVE STATE**: Update `stepsCompleted` in frontmatter before loading next step +6. **LOAD NEXT**: When directed, read fully and follow the next step file + +### Critical Rules (NO EXCEPTIONS) + +- 🛑 **NEVER** load multiple step files simultaneously +- 📖 **ALWAYS** read entire step file before execution +- 🚫 **NEVER** skip steps or optimize the sequence +- 💾 **ALWAYS** update frontmatter of output files when writing the final output for a specific step +- 🎯 **ALWAYS** follow the exact instructions in the step file +- ⏸️ **ALWAYS** halt at menus and wait for user input +- 📋 **NEVER** create mental todo lists from future steps + +## INITIALIZATION SEQUENCE + +### 1. Configuration Loading + +Load and read full config from {main_config} and resolve: + +- `project_name`, `output_folder`, `planning_artifacts`, `user_name` +- `communication_language`, `document_output_language`, `user_skill_level` +- `date` as system-generated current datetime + +✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the configured `{communication_language}`. +✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}`. + +### 2. Route to Validate Workflow + +"**Validate Mode: Validating an existing PRD against BMAD standards.**" + +Then read fully and follow: `{validateWorkflow}` (steps-v/step-v-01-discovery.md) diff --git a/src/bmm/workflows/2-plan-workflows/create-prd/bmad-skill-manifest.yaml b/src/bmm/workflows/2-plan-workflows/create-prd/bmad-skill-manifest.yaml deleted file mode 100644 index f7eed5f7b..000000000 --- a/src/bmm/workflows/2-plan-workflows/create-prd/bmad-skill-manifest.yaml +++ /dev/null @@ -1,4 +0,0 @@ -workflow-validate-prd.md: - canonicalId: bmad-validate-prd - type: workflow - description: "Validate a PRD against standards. Use when the user says 'validate this PRD' or 'run PRD validation'" diff --git a/src/bmm/workflows/2-plan-workflows/create-prd/workflow-validate-prd.md b/src/bmm/workflows/2-plan-workflows/create-prd/workflow-validate-prd.md index 6c38a086c..86ccc7d05 100644 --- a/src/bmm/workflows/2-plan-workflows/create-prd/workflow-validate-prd.md +++ b/src/bmm/workflows/2-plan-workflows/create-prd/workflow-validate-prd.md @@ -1,6 +1,7 @@ --- name: validate-prd description: 'Validate a PRD against standards. Use when the user says "validate this PRD" or "run PRD validation"' +standalone: false main_config: '{project-root}/_bmad/bmm/config.yaml' validateWorkflow: './steps-v/step-v-01-discovery.md' --- From f07695780736d766d1a0cf48aec0c8f77aa8394c Mon Sep 17 00:00:00 2001 From: Alex Verkhovsky Date: Sat, 14 Mar 2026 20:04:15 -0600 Subject: [PATCH 5/7] fix: remove leftover empty frontmatter from market-research workflow Co-Authored-By: Claude Opus 4.6 (1M context) --- .../1-analysis/research/bmad-market-research/workflow.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/bmm/workflows/1-analysis/research/bmad-market-research/workflow.md b/src/bmm/workflows/1-analysis/research/bmad-market-research/workflow.md index f991d5484..1809266b2 100644 --- a/src/bmm/workflows/1-analysis/research/bmad-market-research/workflow.md +++ b/src/bmm/workflows/1-analysis/research/bmad-market-research/workflow.md @@ -1,7 +1,3 @@ ---- -{} ---- - # Market Research Workflow **Goal:** Conduct comprehensive market research using current web data and verified sources to produce complete research documents with compelling narratives and proper citations. From da4426237ef51dde9054249ec3e68bc2ddc8f9f6 Mon Sep 17 00:00:00 2001 From: Alex Verkhovsky Date: Sat, 14 Mar 2026 20:11:09 -0600 Subject: [PATCH 6/7] fix: resolve skill validation findings in market-research - Add co-located HALT instructions after every menu in all 6 step files - Fix step-05 to route to step-06 instead of declaring workflow complete - Rename market-steps/ to steps/ for standard naming convention Co-Authored-By: Claude Opus 4.6 (1M context) --- .../{market-steps => steps}/step-01-init.md | 2 ++ .../step-02-customer-behavior.md | 2 ++ .../step-03-customer-pain-points.md | 2 ++ .../step-04-customer-decisions.md | 2 ++ .../step-05-competitive-analysis.md | 18 +++++++----------- .../step-06-research-completion.md | 2 ++ .../research/bmad-market-research/workflow.md | 2 +- 7 files changed, 18 insertions(+), 12 deletions(-) rename src/bmm/workflows/1-analysis/research/bmad-market-research/{market-steps => steps}/step-01-init.md (99%) rename src/bmm/workflows/1-analysis/research/bmad-market-research/{market-steps => steps}/step-02-customer-behavior.md (99%) rename src/bmm/workflows/1-analysis/research/bmad-market-research/{market-steps => steps}/step-03-customer-pain-points.md (99%) rename src/bmm/workflows/1-analysis/research/bmad-market-research/{market-steps => steps}/step-04-customer-decisions.md (99%) rename src/bmm/workflows/1-analysis/research/bmad-market-research/{market-steps => steps}/step-05-competitive-analysis.md (91%) rename src/bmm/workflows/1-analysis/research/bmad-market-research/{market-steps => steps}/step-06-research-completion.md (99%) diff --git a/src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-01-init.md b/src/bmm/workflows/1-analysis/research/bmad-market-research/steps/step-01-init.md similarity index 99% rename from src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-01-init.md rename to src/bmm/workflows/1-analysis/research/bmad-market-research/steps/step-01-init.md index ae9a3ba82..4cf627634 100644 --- a/src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-01-init.md +++ b/src/bmm/workflows/1-analysis/research/bmad-market-research/steps/step-01-init.md @@ -132,6 +132,8 @@ Show initial scope document and present continue option: [C] Continue - Confirm scope and proceed to customer insights analysis [Modify] Suggest changes to research scope before proceeding +**HALT — wait for user response before proceeding.** + ### 5. Handle User Response #### If 'C' (Continue): diff --git a/src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-02-customer-behavior.md b/src/bmm/workflows/1-analysis/research/bmad-market-research/steps/step-02-customer-behavior.md similarity index 99% rename from src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-02-customer-behavior.md rename to src/bmm/workflows/1-analysis/research/bmad-market-research/steps/step-02-customer-behavior.md index f707a0a3e..810e22de8 100644 --- a/src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-02-customer-behavior.md +++ b/src/bmm/workflows/1-analysis/research/bmad-market-research/steps/step-02-customer-behavior.md @@ -173,6 +173,8 @@ _Source: [URL]_ **Ready to proceed to customer pain points?** [C] Continue - Save this to document and proceed to pain points analysis +**HALT — wait for user response before proceeding.** + ### 6. Handle Continue Selection #### If 'C' (Continue): diff --git a/src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-03-customer-pain-points.md b/src/bmm/workflows/1-analysis/research/bmad-market-research/steps/step-03-customer-pain-points.md similarity index 99% rename from src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-03-customer-pain-points.md rename to src/bmm/workflows/1-analysis/research/bmad-market-research/steps/step-03-customer-pain-points.md index f4d2ae6d8..280730c30 100644 --- a/src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-03-customer-pain-points.md +++ b/src/bmm/workflows/1-analysis/research/bmad-market-research/steps/step-03-customer-pain-points.md @@ -184,6 +184,8 @@ _Source: [URL]_ **Ready to proceed to customer decision processes?** [C] Continue - Save this to document and proceed to decision processes analysis +**HALT — wait for user response before proceeding.** + ### 6. Handle Continue Selection #### If 'C' (Continue): diff --git a/src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-04-customer-decisions.md b/src/bmm/workflows/1-analysis/research/bmad-market-research/steps/step-04-customer-decisions.md similarity index 99% rename from src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-04-customer-decisions.md rename to src/bmm/workflows/1-analysis/research/bmad-market-research/steps/step-04-customer-decisions.md index 21544335b..4f0e5504a 100644 --- a/src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-04-customer-decisions.md +++ b/src/bmm/workflows/1-analysis/research/bmad-market-research/steps/step-04-customer-decisions.md @@ -194,6 +194,8 @@ _Source: [URL]_ **Ready to proceed to competitive analysis?** [C] Continue - Save this to document and proceed to competitive analysis +**HALT — wait for user response before proceeding.** + ### 6. Handle Continue Selection #### If 'C' (Continue): diff --git a/src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-05-competitive-analysis.md b/src/bmm/workflows/1-analysis/research/bmad-market-research/steps/step-05-competitive-analysis.md similarity index 91% rename from src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-05-competitive-analysis.md rename to src/bmm/workflows/1-analysis/research/bmad-market-research/steps/step-05-competitive-analysis.md index d7387a4fc..868b12421 100644 --- a/src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-05-competitive-analysis.md +++ b/src/bmm/workflows/1-analysis/research/bmad-market-research/steps/step-05-competitive-analysis.md @@ -109,15 +109,17 @@ Show the generated competitive analysis and present complete option: - Competitive threats and challenges documented **Ready to complete the market research?** -[C] Complete Research - Save final document and conclude +[C] Complete Research - Save competitive analysis and proceed to research completion + +**HALT — wait for user response before proceeding.** ### 4. Handle Complete Selection #### If 'C' (Complete Research): - Append the final content to the research document -- Update frontmatter: `stepsCompleted: [1, 2, 3]` -- Complete the market research workflow +- Update frontmatter: `stepsCompleted: [1, 2, 3, 4, 5]` +- Load: `./step-06-research-completion.md` ## APPEND TO DOCUMENT: @@ -166,12 +168,6 @@ When 'C' is selected: - Market research workflow status updated - Final recommendations provided to user -## NEXT STEPS: +## NEXT STEP: -Market research workflow complete. User may: - -- Use market research to inform product development strategies -- Conduct additional competitive research on specific companies -- Combine market research with other research types for comprehensive insights - -Congratulations on completing comprehensive market research! 🎉 +After user selects 'C', load `./step-06-research-completion.md` to produce the final comprehensive market research document with strategic synthesis, executive summary, and complete document structure. diff --git a/src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-06-research-completion.md b/src/bmm/workflows/1-analysis/research/bmad-market-research/steps/step-06-research-completion.md similarity index 99% rename from src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-06-research-completion.md rename to src/bmm/workflows/1-analysis/research/bmad-market-research/steps/step-06-research-completion.md index 0073b554e..59ca4ae89 100644 --- a/src/bmm/workflows/1-analysis/research/bmad-market-research/market-steps/step-06-research-completion.md +++ b/src/bmm/workflows/1-analysis/research/bmad-market-research/steps/step-06-research-completion.md @@ -385,6 +385,8 @@ _This comprehensive market research document serves as an authoritative market r **Ready to complete this comprehensive market research document?** [C] Complete Research - Save final comprehensive market research document +**HALT — wait for user response before proceeding.** + ### 6. Handle Complete Selection #### If 'C' (Complete Research): diff --git a/src/bmm/workflows/1-analysis/research/bmad-market-research/workflow.md b/src/bmm/workflows/1-analysis/research/bmad-market-research/workflow.md index 1809266b2..23822ca3b 100644 --- a/src/bmm/workflows/1-analysis/research/bmad-market-research/workflow.md +++ b/src/bmm/workflows/1-analysis/research/bmad-market-research/workflow.md @@ -42,7 +42,7 @@ After gathering the topic and goals: 2. Set `research_topic = [discovered topic from discussion]` 3. Set `research_goals = [discovered goals from discussion]` 4. Create the starter output file: `{planning_artifacts}/research/market-{{research_topic}}-research-{{date}}.md` with exact copy of the `./research.template.md` contents -5. Load: `./market-steps/step-01-init.md` with topic context +5. Load: `./steps/step-01-init.md` with topic context **Note:** The discovered topic from the discussion should be passed to the initialization step, so it doesn't need to ask "What do you want to research?" again - it can focus on refining the scope for market research. From a6fdf4349f97e93d216ed95fc0e17f33655b5b09 Mon Sep 17 00:00:00 2001 From: Alex Verkhovsky Date: Sat, 14 Mar 2026 20:23:12 -0600 Subject: [PATCH 7/7] fix: remove obsolete workflow-market-research.md superseded by skill The market-research workflow now lives entirely in bmad-market-research/ as a native skill directory. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../research/workflow-market-research.md | 55 ------------------- 1 file changed, 55 deletions(-) delete mode 100644 src/bmm/workflows/1-analysis/research/workflow-market-research.md diff --git a/src/bmm/workflows/1-analysis/research/workflow-market-research.md b/src/bmm/workflows/1-analysis/research/workflow-market-research.md deleted file mode 100644 index d1e00bfac..000000000 --- a/src/bmm/workflows/1-analysis/research/workflow-market-research.md +++ /dev/null @@ -1,55 +0,0 @@ ---- -name: market-research -description: 'Conduct market research on competition and customers. Use when the user says "create a market research report about [business idea]".' -standalone: false ---- - -# Market Research Workflow - -**Goal:** Conduct comprehensive market research using current web data and verified sources to produce complete research documents with compelling narratives and proper citations. - -**Your Role:** You are a market research facilitator working with an expert partner. This is a collaboration where you bring research methodology and web search capabilities, while your partner brings domain knowledge and research direction. - -## PREREQUISITE - -**⛔ Web search required.** If unavailable, abort and tell the user. - -## CONFIGURATION - -Load config from `{project-root}/_bmad/bmm/config.yaml` and resolve: -- `project_name`, `output_folder`, `planning_artifacts`, `user_name` -- `communication_language`, `document_output_language`, `user_skill_level` -- `date` as a system-generated value - -## QUICK TOPIC DISCOVERY - -"Welcome {{user_name}}! Let's get started with your **market research**. - -**What topic, problem, or area do you want to research?** - -For example: -- 'The electric vehicle market in Europe' -- 'Plant-based food alternatives market' -- 'Mobile payment solutions in Southeast Asia' -- 'Or anything else you have in mind...'" - -### Topic Clarification - -Based on the user's topic, briefly clarify: -1. **Core Topic**: "What exactly about [topic] are you most interested in?" -2. **Research Goals**: "What do you hope to achieve with this research?" -3. **Scope**: "Should we focus broadly or dive deep into specific aspects?" - -## ROUTE TO MARKET RESEARCH STEPS - -After gathering the topic and goals: - -1. Set `research_type = "market"` -2. Set `research_topic = [discovered topic from discussion]` -3. Set `research_goals = [discovered goals from discussion]` -4. Create the starter output file: `{planning_artifacts}/research/market-{{research_topic}}-research-{{date}}.md` with exact copy of the `./research.template.md` contents -5. Load: `./market-steps/step-01-init.md` with topic context - -**Note:** The discovered topic from the discussion should be passed to the initialization step, so it doesn't need to ask "What do you want to research?" again - it can focus on refining the scope for market research. - -**✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`**