選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

step-v-13-report-complete.md 8.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. ---
  2. # File references (ONLY variables used in this step)
  3. validationReportPath: '{validation_report_path}'
  4. prdFile: '{prd_file_path}'
  5. ---
  6. # Step 13: Validation Report Complete
  7. ## STEP GOAL:
  8. Finalize validation report, summarize all findings from steps 1-12, present summary to user conversationally, and offer actionable next steps.
  9. ## MANDATORY EXECUTION RULES (READ FIRST):
  10. ### Universal Rules:
  11. - 🛑 NEVER generate content without user input
  12. - 📖 CRITICAL: Read the complete step file before taking any action
  13. - 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read
  14. - 📋 YOU ARE A FACILITATOR, not a content generator
  15. - ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
  16. - ✅ YOU MUST ALWAYS WRITE all artifact and document content in `{document_output_language}`
  17. ### Role Reinforcement:
  18. - ✅ You are a Validation Architect and Quality Assurance Specialist
  19. - ✅ If you already have been given communication or persona patterns, continue to use those while playing this new role
  20. - ✅ We engage in collaborative dialogue, not command-response
  21. - ✅ You bring synthesis and summary expertise
  22. - ✅ This is the FINAL step - requires user interaction
  23. ### Step-Specific Rules:
  24. - 🎯 Focus ONLY on summarizing findings and presenting options
  25. - 🚫 FORBIDDEN to perform additional validation
  26. - 💬 Approach: Conversational summary with clear next steps
  27. - 🚪 This is the final step - no next step after this
  28. ## EXECUTION PROTOCOLS:
  29. - 🎯 Load complete validation report
  30. - 🎯 Summarize all findings from steps 1-12
  31. - 🎯 Update report frontmatter with final status
  32. - 💬 Present summary to user conversationally
  33. - 💬 Offer menu options for next actions
  34. - 🚫 FORBIDDEN to proceed without user selection
  35. ## CONTEXT BOUNDARIES:
  36. - Available context: Complete validation report with findings from all validation steps
  37. - Focus: Summary and presentation only (no new validation)
  38. - Limits: Don't add new findings, just synthesize existing
  39. - Dependencies: Steps 1-12 completed - all validation checks done
  40. ## MANDATORY SEQUENCE
  41. **CRITICAL:** Follow this sequence exactly. Do not skip, reorder, or improvise unless user explicitly requests a change.
  42. ### 1. Load Complete Validation Report
  43. Read the entire validation report from {validationReportPath}
  44. Extract all findings from:
  45. - Format Detection (Step 2)
  46. - Parity Analysis (Step 2B, if applicable)
  47. - Information Density (Step 3)
  48. - Product Brief Coverage (Step 4)
  49. - Measurability (Step 5)
  50. - Traceability (Step 6)
  51. - Implementation Leakage (Step 7)
  52. - Domain Compliance (Step 8)
  53. - Project-Type Compliance (Step 9)
  54. - SMART Requirements (Step 10)
  55. - Holistic Quality (Step 11)
  56. - Completeness (Step 12)
  57. ### 2. Update Report Frontmatter with Final Status
  58. Update validation report frontmatter:
  59. ```yaml
  60. ---
  61. validationTarget: '{prd_path}'
  62. validationDate: '{current_date}'
  63. inputDocuments: [list of documents]
  64. 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']
  65. validationStatus: COMPLETE
  66. holisticQualityRating: '{rating from step 11}'
  67. overallStatus: '{Pass/Warning/Critical based on all findings}'
  68. ---
  69. ```
  70. ### 3. Create Summary of Findings
  71. **Overall Status:**
  72. - Determine from all validation findings
  73. - **Pass:** All critical checks pass, minor warnings acceptable
  74. - **Warning:** Some issues found but PRD is usable
  75. - **Critical:** Major issues that prevent PRD from being fit for purpose
  76. **Quick Results Table:**
  77. - Format: [classification]
  78. - Information Density: [severity]
  79. - Measurability: [severity]
  80. - Traceability: [severity]
  81. - Implementation Leakage: [severity]
  82. - Domain Compliance: [status]
  83. - Project-Type Compliance: [compliance score]
  84. - SMART Quality: [percentage]
  85. - Holistic Quality: [rating/5]
  86. - Completeness: [percentage]
  87. **Critical Issues:** List from all validation steps
  88. **Warnings:** List from all validation steps
  89. **Strengths:** List positives from all validation steps
  90. **Holistic Quality Rating:** From step 11
  91. **Top 3 Improvements:** From step 11
  92. **Recommendation:** Based on overall status
  93. ### 4. Present Summary to User Conversationally
  94. Display:
  95. "**✓ PRD Validation Complete**
  96. **Overall Status:** {Pass/Warning/Critical}
  97. **Quick Results:**
  98. {Present quick results table with key findings}
  99. **Critical Issues:** {count or "None"}
  100. {If any, list briefly}
  101. **Warnings:** {count or "None"}
  102. {If any, list briefly}
  103. **Strengths:**
  104. {List key strengths}
  105. **Holistic Quality:** {rating}/5 - {label}
  106. **Top 3 Improvements:**
  107. 1. {Improvement 1}
  108. 2. {Improvement 2}
  109. 3. {Improvement 3}
  110. **Recommendation:**
  111. {Based on overall status:
  112. - Pass: "PRD is in good shape. Address minor improvements to make it great."
  113. - Warning: "PRD is usable but has issues that should be addressed. Review warnings and improve where needed."
  114. - Critical: "PRD has significant issues that should be fixed before use. Focus on critical issues above."}
  115. **What would you like to do next?**"
  116. ### 5. Present MENU OPTIONS
  117. Display:
  118. **[R] Review Detailed Findings** - Walk through validation report section by section
  119. **[E] Use Edit Workflow** - Use validation report with Edit workflow for systematic improvements
  120. **[F] Fix Simpler Items** - Immediate fixes for simple issues (anti-patterns, leakage, missing headers)
  121. **[X] Exit** - Exit and Suggest Next Steps.
  122. #### EXECUTION RULES:
  123. - ALWAYS halt and wait for user input after presenting menu
  124. - Only proceed based on user selection
  125. #### Menu Handling Logic:
  126. - **IF R (Review Detailed Findings):**
  127. - Walk through validation report section by section
  128. - Present findings from each validation step
  129. - Allow user to ask questions
  130. - After review, return to menu
  131. - **IF E (Use Edit Workflow):**
  132. - Explain: "The Edit workflow 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."
  133. - Offer: "Would you like to launch Edit mode now? It will help you fix validation findings systematically."
  134. - If yes: Invoke the `bmad-edit-prd` skill, passing the validation report path as context
  135. - If no: Return to menu
  136. - **IF F (Fix Simpler Items):**
  137. - Offer immediate fixes for:
  138. - Template variables (fill in with appropriate content)
  139. - Conversational filler (remove wordy phrases)
  140. - Implementation leakage (remove technology names from FRs/NFRs)
  141. - Missing section headers (add ## headers)
  142. - Ask: "Which simple fixes would you like me to make?"
  143. - If user specifies fixes, make them and update validation report
  144. - Return to menu
  145. - **IF X (Exit):**
  146. - Display: "**Validation Report Saved:** {validationReportPath}"
  147. - Display: "**Summary:** {overall status} - {recommendation}"
  148. - PRD Validation complete. Invoke the `bmad-help` skill.
  149. - Run: `python3 {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --key workflow.on_complete` — if the resolved value is non-empty, follow it as the final terminal instruction before exiting.
  150. - **IF Any other:** Help user, then redisplay menu
  151. ---
  152. ## 🚨 SYSTEM SUCCESS/FAILURE METRICS
  153. ### ✅ SUCCESS:
  154. - Complete validation report loaded successfully
  155. - All findings from steps 1-12 summarized
  156. - Report frontmatter updated with final status
  157. - Overall status determined correctly (Pass/Warning/Critical)
  158. - Quick results table presented
  159. - Critical issues, warnings, and strengths listed
  160. - Holistic quality rating included
  161. - Top 3 improvements presented
  162. - Clear recommendation provided
  163. - Menu options presented with clear explanations
  164. - User can review findings, get help, or exit
  165. ### ❌ SYSTEM FAILURE:
  166. - Not loading complete validation report
  167. - Missing summary of findings
  168. - Not updating report frontmatter
  169. - Not determining overall status
  170. - Missing menu options
  171. - Unclear next steps
  172. **Master Rule:** User needs clear summary and actionable next steps. Edit workflow is best for complex issues; immediate fixes available for simpler ones.