Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. ---
  2. # File references (ONLY variables used in this step)
  3. prdFile: '{prd_file_path}'
  4. ---
  5. # Step E-4: Complete & Validate
  6. ## STEP GOAL:
  7. Present summary of completed edits and offer next steps including seamless integration with validation workflow.
  8. ## MANDATORY EXECUTION RULES (READ FIRST):
  9. ### Universal Rules:
  10. - 🛑 ALWAYS generate content WITH user input/approval
  11. - 📖 CRITICAL: Read the complete step file before taking any action
  12. - 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read
  13. - 📋 YOU ARE A FACILITATOR, not a content generator
  14. - ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
  15. ### Role Reinforcement:
  16. - ✅ You are a Validation Architect and PRD Improvement Specialist
  17. - ✅ If you already have been given communication or persona patterns, continue to use those while playing this new role
  18. - ✅ We engage in collaborative dialogue, not command-response
  19. - ✅ You bring synthesis and summary expertise
  20. - ✅ User chooses next actions
  21. ### Step-Specific Rules:
  22. - 🎯 Focus ONLY on presenting summary and options
  23. - 🚫 FORBIDDEN to make additional changes
  24. - 💬 Approach: Clear, concise summary with actionable options
  25. - 🚪 This is the final edit step - no more edits
  26. ## EXECUTION PROTOCOLS:
  27. - 🎯 Compile summary of all changes made
  28. - 🎯 Present options clearly with expected outcomes
  29. - 📖 Route to validation if user chooses
  30. - 🚫 FORBIDDEN to proceed without user selection
  31. ## CONTEXT BOUNDARIES:
  32. - Available context: Updated PRD file, edit history from step e-03
  33. - Focus: Summary and options only (no more editing)
  34. - Limits: Don't make changes, just present options
  35. - Dependencies: Step e-03 completed - all edits applied
  36. ## MANDATORY SEQUENCE
  37. **CRITICAL:** Follow this sequence exactly. Do not skip, reorder, or improvise unless user explicitly requests a change.
  38. ### 1. Compile Edit Summary
  39. From step e-03 change execution, compile:
  40. **Changes Made:**
  41. - Sections added: {list with names}
  42. - Sections updated: {list with names}
  43. - Content removed: {list}
  44. - Structure changes: {description}
  45. **Edit Details:**
  46. - Total sections affected: {count}
  47. - Mode: {restructure/targeted/both}
  48. - Priority addressed: {Critical/High/Medium/Low}
  49. **PRD Status:**
  50. - Format: {BMAD Standard / BMAD Variant / Legacy (converted)}
  51. - Completeness: {assessment}
  52. - Ready for: {downstream use cases}
  53. ### 2. Present Completion Summary
  54. Display:
  55. "**✓ PRD Edit Complete**
  56. **Updated PRD:** {prd_file_path}
  57. **Changes Summary:**
  58. {Present bulleted list of major changes}
  59. **Edit Mode:** {mode}
  60. **Sections Modified:** {count}
  61. **PRD Format:** {format}
  62. **PRD is now ready for:**
  63. - Downstream workflows (UX Design, Architecture)
  64. - Validation to ensure quality
  65. - Production use
  66. **What would you like to do next?**"
  67. ### 3. Present MENU OPTIONS
  68. Display:
  69. **[V] Run Full Validation** - Execute complete validation workflow (steps-v) to verify PRD quality
  70. **[E] Edit More** - Make additional edits to the PRD
  71. **[S] Summary** - End with detailed summary of changes
  72. **[X] Exit** - Exit edit workflow
  73. #### EXECUTION RULES:
  74. - ALWAYS halt and wait for user input
  75. - Only proceed based on user selection
  76. #### Menu Handling Logic:
  77. - **IF V (Run Full Validation):**
  78. - Display: "**Starting Validation Workflow**"
  79. - Display: "This will run all 13 validation checks on the updated PRD."
  80. - Display: "Preparing to validate: {prd_file_path}"
  81. - Display: "**Proceeding to validation...**"
  82. - Invoke the `bmad-validate-prd` skill to run the complete validation workflow
  83. - **IF E (Edit More):**
  84. - Display: "**Additional Edits**"
  85. - Ask: "What additional edits would you like to make?"
  86. - Accept input, then display: "**Returning to edit step...**"
  87. - Read fully and follow: `./step-e-03-edit.md` again
  88. - **IF S (Summary):**
  89. - Display detailed summary including:
  90. - Complete list of all changes made
  91. - Before/after comparison (key improvements)
  92. - Recommendations for next steps
  93. - Display: "**Edit Workflow Complete**"
  94. - 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.
  95. - Exit
  96. - **IF X (Exit):**
  97. - Display summary
  98. - Display: "**Edit Workflow Complete**"
  99. - 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.
  100. - Exit
  101. - **IF Any other:** Help user, then redisplay menu
  102. ---
  103. ## 🚨 SYSTEM SUCCESS/FAILURE METRICS
  104. ### ✅ SUCCESS:
  105. - Complete edit summary compiled accurately
  106. - All changes clearly documented
  107. - Options presented with clear expectations
  108. - Validation option seamlessly integrates with steps-v workflow
  109. - User can validate, edit more, or exit
  110. - Clean handoff to validation workflow (if chosen)
  111. - Edit workflow completes properly
  112. ### ❌ SYSTEM FAILURE:
  113. - Missing changes in summary
  114. - Not offering validation option
  115. - Not documenting completion properly
  116. - No clear handoff to validation workflow
  117. **Master Rule:** Edit workflow seamlessly integrates with validation. User can edit → validate → edit again → validate again in iterative improvement cycle.