You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. ---
  2. name: 'step-v-01-validate'
  3. description: 'Validate teach-me-testing workflow quality against BMAD standards'
  4. workflowPath: '{skill-root}'
  5. checklistFile: '{skill-root}/checklist.md'
  6. validationReport: '{test_artifacts}/workflow-validation/teach-me-testing-validation-{date}.md'
  7. ---
  8. # Validate Step 1: Quality Validation
  9. ## STEP GOAL:
  10. To systematically validate the teach-me-testing workflow against BMAD quality standards and generate a comprehensive validation report.
  11. ## MANDATORY EXECUTION RULES (READ FIRST):
  12. ### Universal Rules:
  13. - 🛑 NEVER skip validation checks
  14. - 📖 CRITICAL: Read complete step file before action
  15. - ✅ SPEAK OUTPUT In {communication_language}
  16. ### Role Reinforcement:
  17. - ✅ You are a workflow quality assurance specialist
  18. - ✅ Systematic validation against standards
  19. ### Step-Specific Rules:
  20. - 🎯 Focus on comprehensive validation
  21. - 🚫 FORBIDDEN to skip any checks
  22. - 💬 Report findings clearly
  23. ## EXECUTION PROTOCOLS:
  24. - 🎯 Run all validation checks
  25. - 💾 Generate validation report
  26. - 📖 Provide remediation guidance
  27. ## MANDATORY SEQUENCE
  28. ### 1. Validation Start
  29. "**Validating Workflow: teach-me-testing**
  30. Running comprehensive quality checks against BMAD standards...
  31. This will validate:
  32. - Foundation structure
  33. - Step file quality (12 CREATE, 2 EDIT, 1 VALIDATE)
  34. - Template quality
  35. - Data file completeness
  36. - Frontmatter compliance
  37. - Menu handling patterns
  38. - State management
  39. - Documentation
  40. **Starting validation...**"
  41. ### 2. Foundation Structure Validation
  42. **Check:**
  43. - [ ] SKILL.md exists with proper frontmatter
  44. - [ ] customize.toml defines workflow customization surface
  45. - [ ] Tri-modal routing logic present
  46. - [ ] Configuration loading correct
  47. - [ ] First step path correct
  48. - [ ] Folder structure complete (steps-c/, steps-e/, steps-v/, data/, templates/)
  49. Report findings: Pass/Fail for each check.
  50. ### 3. Template Validation
  51. **Check templates/:**
  52. - [ ] progress-template.yaml has complete schema
  53. - [ ] All 7 sessions defined
  54. - [ ] Session status fields present
  55. - [ ] stepsCompleted array present
  56. - [ ] session-notes-template.md has required sections
  57. - [ ] certificate-template.md includes all 7 sessions
  58. Report findings.
  59. ### 4. Step File Validation (CREATE Mode)
  60. **For each of 12 steps in steps-c/:**
  61. - [ ] Frontmatter valid (name, description present)
  62. - [ ] All frontmatter variables used in body
  63. - [ ] File references use relative paths correctly
  64. - [ ] Menu handling follows standards
  65. - [ ] Step goal clearly stated
  66. - [ ] MANDATORY SEQUENCE present
  67. - [ ] Success/failure metrics present
  68. - [ ] File size reasonable (<250 lines recommended)
  69. Report findings per step.
  70. ### 5. Data File Validation
  71. **Check data/:**
  72. - [ ] curriculum.yaml defines all 7 sessions
  73. - [ ] role-paths.yaml has all 4 roles (QA/Dev/Lead/VP)
  74. - [ ] session-content-map.yaml maps sessions to resources
  75. - [ ] quiz-questions.yaml has questions for sessions 1-6
  76. - [ ] tea-resources-index.yaml has complete documentation index
  77. Report findings.
  78. ### 6. Content Quality Validation
  79. **Check session steps:**
  80. - [ ] Teaching content present and comprehensive
  81. - [ ] Role-adapted examples present
  82. - [ ] Quiz questions validate understanding
  83. - [ ] TEA resource references correct
  84. - [ ] Knowledge fragment references accurate
  85. - [ ] Online URLs functional
  86. Report findings.
  87. ### 7. State Management Validation
  88. **Check continuable workflow features:**
  89. - [ ] step-01-init checks for existing progress
  90. - [ ] step-01b-continue loads and displays progress
  91. - [ ] All session steps update stepsCompleted array
  92. - [ ] Progress file schema matches template
  93. - [ ] Session menu reads progress correctly
  94. - [ ] Completion step verifies all sessions done
  95. Report findings.
  96. ### 8. User Experience Validation
  97. **Check UX:**
  98. - [ ] Clear navigation instructions
  99. - [ ] Progress visibility (percentage, indicators)
  100. - [ ] Auto-save after sessions
  101. - [ ] Resume capability
  102. - [ ] Exit options clear
  103. - [ ] Session descriptions helpful
  104. Report findings.
  105. ### 9. Generate Validation Report
  106. Create {validationReport}:
  107. ```markdown
  108. ---
  109. workflow: teach-me-testing
  110. validation_date: { current_date }
  111. validator: TEA Validation Workflow
  112. overall_status: PASS / FAIL / PASS_WITH_WARNINGS
  113. ---
  114. # Teach Me Testing - Validation Report
  115. **Date:** {current_date}
  116. **Workflow Version:** 1.0.0
  117. **Overall Status:** {status}
  118. ---
  119. ## Validation Summary
  120. **Total Checks:** {count}
  121. **Passed:** {pass_count}
  122. **Failed:** {fail_count}
  123. **Warnings:** {warning_count}
  124. **Overall Quality Score:** {score}/100
  125. ---
  126. ## Foundation Structure
  127. {Report findings}
  128. ## Template Quality
  129. {Report findings}
  130. ## Step File Quality
  131. {Report findings for all 15 steps}
  132. ## Data File Quality
  133. {Report findings}
  134. ## Content Quality
  135. {Report findings}
  136. ## State Management
  137. {Report findings}
  138. ## User Experience
  139. {Report findings}
  140. ---
  141. ## Issues Found
  142. {List all failures and warnings}
  143. ---
  144. ## Remediation Recommendations
  145. {For each issue, provide fix guidance}
  146. ---
  147. ## Conclusion
  148. {Overall assessment}
  149. **Status:** {READY_FOR_PRODUCTION / NEEDS_FIXES / PASS_WITH_MINOR_ISSUES}
  150. ```
  151. ### 10. Display Results
  152. "**Validation Complete!**
  153. **Overall Status:** {status}
  154. **Quality Score:** {score}/100
  155. **Report saved:** {validationReport}
  156. {If PASS:}
  157. ✅ **Workflow is ready for production!**
  158. {If FAIL:}
  159. ❌ **Issues found that need fixing.**
  160. See report for details: {validationReport}
  161. {If WARNINGS:}
  162. ⚠️ **Minor issues found.**
  163. Workflow is usable but could be improved.
  164. **Validation report generated.**"
  165. **This is the final validation step - workflow ends here.**
  166. ---
  167. ## 🚨 SUCCESS METRICS
  168. ✅ All validation checks run, comprehensive report generated, issues identified with remediation guidance, overall status determined.
  169. **Master Rule:** Check everything systematically, report findings clearly, provide actionable remediation.
  170. ## On Complete
  171. Run: `python3 {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --key workflow.on_complete`
  172. If the resolver succeeds and returns a non-empty `workflow.on_complete`, execute that value as the final terminal instruction before exiting.
  173. If the resolver fails, returns no output, or resolves an empty value, skip the hook and exit normally.