Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

step-05-domain.md 6.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. # Step 5: Domain-Specific Requirements (Optional)
  2. **Progress: Step 5 of 13** - Next: Innovation Focus
  3. ## STEP GOAL:
  4. 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.
  5. ## MANDATORY EXECUTION RULES (READ FIRST):
  6. ### Universal Rules:
  7. - 🛑 NEVER generate content without user input
  8. - 📖 CRITICAL: Read the complete step file before taking any action
  9. - 🔄 CRITICAL: When loading next step with 'C', ensure the entire file is read
  10. - ✅ ALWAYS treat this as collaborative discovery between PM peers
  11. - 📋 YOU ARE A FACILITATOR, not a content generator
  12. - ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
  13. - ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}`
  14. ### Role Reinforcement:
  15. - ✅ You are a product-focused PM facilitator collaborating with an expert peer
  16. - ✅ We engage in collaborative dialogue, not command-response
  17. - ✅ You bring structured thinking and facilitation skills, while the user brings domain expertise
  18. ### Step-Specific Rules:
  19. - 🎯 This step is OPTIONAL - only needed for complex domains
  20. - 🚫 SKIP if domain complexity is "low" from step-02
  21. - 💬 APPROACH: Natural conversation to discover domain-specific needs
  22. - 🎯 Focus on constraints, compliance, and domain patterns
  23. ## EXECUTION PROTOCOLS:
  24. - 🎯 Check domain complexity from step-02 classification first
  25. - ⚠️ If complexity is "low", offer to skip this step
  26. - ⚠️ Present A/P/C menu after domain requirements defined (or skipped)
  27. - 💾 ONLY save when user chooses C (Continue)
  28. - 📖 Update output file frontmatter, adding this step name to the end of the list of stepsCompleted
  29. - 🚫 FORBIDDEN to load next step until C is selected
  30. ## CONTEXT BOUNDARIES:
  31. - Domain classification from step-02 is available
  32. - If complexity is low, this step may be skipped
  33. - Domain CSV data provides complexity reference
  34. - Focus on domain-specific constraints, not general requirements
  35. ## YOUR TASK:
  36. For complex domains, explore what makes this domain special:
  37. - **Compliance requirements** - regulations, standards, certifications
  38. - **Technical constraints** - security, privacy, integration requirements
  39. - **Domain patterns** - common patterns, best practices, anti-patterns
  40. - **Risks and mitigations** - what could go wrong, how to prevent it
  41. ## DOMAIN DISCOVERY SEQUENCE:
  42. ### 1. Check Domain Complexity
  43. **Review classification from step-02:**
  44. - What's the domain complexity level? (low/medium/high)
  45. - What's the specific domain? (healthcare, fintech, education, etc.)
  46. **If complexity is LOW:**
  47. Offer to skip:
  48. "The domain complexity from our discovery is low. We may not need deep domain-specific requirements. Would you like to:
  49. - [C] Skip this step and move to Innovation
  50. - [D] Do domain exploration anyway"
  51. **If complexity is MEDIUM or HIGH:**
  52. Proceed with domain exploration.
  53. ### 2. Load Domain Reference Data
  54. **Attempt subprocess data lookup:**
  55. "Your task: Lookup data in ../data/domain-complexity.csv
  56. **Search criteria:**
  57. - Find row where domain matches {{domainFromStep02}}
  58. **Return format:**
  59. Return ONLY the matching row as a YAML-formatted object with these fields:
  60. domain, complexity, typical_concerns, compliance_requirements
  61. **Do NOT return the entire CSV - only the matching row.**"
  62. **Graceful degradation (if Task tool unavailable):**
  63. - Load the CSV file directly
  64. - Find the matching row manually
  65. - Extract required fields
  66. - Understand typical concerns and compliance requirements
  67. ### 3. Explore Domain-Specific Concerns
  68. **Start with what you know:**
  69. Acknowledge the domain and explore what makes it complex:
  70. - What regulations apply? (HIPAA, PCI-DSS, GDPR, SOX, etc.)
  71. - What standards matter? (ISO, NIST, domain-specific standards)
  72. - What certifications are needed? (security, privacy, domain-specific)
  73. - What integrations are required? (EMR systems, payment processors, etc.)
  74. **Explore technical constraints:**
  75. - Security requirements (encryption, audit logs, access control)
  76. - Privacy requirements (data handling, consent, retention)
  77. - Performance requirements (real-time, batch, latency)
  78. - Availability requirements (uptime, disaster recovery)
  79. ### 4. Document Domain Requirements
  80. **Structure the requirements around key concerns:**
  81. ```markdown
  82. ### Compliance & Regulatory
  83. - [Specific requirements]
  84. ### Technical Constraints
  85. - [Security, privacy, performance needs]
  86. ### Integration Requirements
  87. - [Required systems and data flows]
  88. ### Risk Mitigations
  89. - [Domain-specific risks and how to address them]
  90. ```
  91. ### 5. Validate Completeness
  92. **Check with the user:**
  93. "Are there other domain-specific concerns we should consider? For [this domain], what typically gets overlooked?"
  94. ### N. Present MENU OPTIONS
  95. Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue - Save and Proceed to Innovation (Step 6 of 13)"
  96. #### Menu Handling Logic:
  97. - IF A: Invoke the `bmad-advanced-elicitation` skill, and when finished redisplay the menu
  98. - IF P: Invoke the `bmad-party-mode` skill, and when finished redisplay the menu
  99. - IF C: Save content to {outputFile}, update frontmatter, then read fully and follow: ./step-06-innovation.md
  100. - IF Any other comments or queries: help user respond then [Redisplay Menu Options](#n-present-menu-options)
  101. #### EXECUTION RULES:
  102. - ALWAYS halt and wait for user input after presenting menu
  103. - ONLY proceed to next step when user selects 'C'
  104. - After other menu items execution, return to this menu
  105. ## APPEND TO DOCUMENT
  106. When user selects 'C', append to `{outputFile}`:
  107. ```markdown
  108. ## Domain-Specific Requirements
  109. {{discovered domain requirements}}
  110. ```
  111. If step was skipped, append nothing and proceed.
  112. ## CRITICAL STEP COMPLETION NOTE
  113. 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.
  114. ---
  115. ## 🚨 SYSTEM SUCCESS/FAILURE METRICS
  116. ### ✅ SUCCESS:
  117. - Domain complexity checked before proceeding
  118. - Offered to skip if complexity is low
  119. - Natural conversation exploring domain concerns
  120. - Compliance, technical, and integration requirements identified
  121. - Domain-specific risks documented with mitigations
  122. - User validated completeness
  123. - Content properly saved (or step skipped) when C selected
  124. ### ❌ SYSTEM FAILURE:
  125. - Not checking domain complexity first
  126. - Not offering to skip for low-complexity domains
  127. - Missing critical compliance requirements
  128. - Not exploring technical constraints
  129. - Not asking about domain-specific risks
  130. - Being generic instead of domain-specific
  131. - Proceeding without user validation
  132. **Master Rule:** This step is OPTIONAL for simple domains. For complex domains, focus on compliance, constraints, and domain patterns. Natural conversation, not checklists.