Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

step-05-completion.md 9.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  1. ---
  2. name: 'step-05-completion'
  3. description: 'Generate completion certificate, final progress update, congratulate learner'
  4. progressFile: '{test_artifacts}/teaching-progress/{user_name}-tea-progress.yaml'
  5. certificateTemplate: '../templates/certificate-template.md'
  6. certificateFile: '{test_artifacts}/tea-academy/{user_name}/tea-completion-certificate.md'
  7. ---
  8. # Step 5: Completion & Certificate Generation
  9. ## STEP GOAL:
  10. To generate the TEA Academy completion certificate, update final progress, and congratulate the learner on completing all 7 sessions.
  11. ## MANDATORY EXECUTION RULES (READ FIRST):
  12. ### Universal Rules:
  13. - 🛑 NEVER generate content without user input
  14. - 📖 CRITICAL: Read complete step file before action
  15. - ✅ SPEAK OUTPUT In {communication_language}
  16. ### Role Reinforcement:
  17. - ✅ Master Test Architect and Teaching Guide
  18. - ✅ Celebrating completion
  19. ### Step-Specific Rules:
  20. - 🎯 Focus on completion and celebration
  21. - 🚫 FORBIDDEN to proceed without verifying all 7 sessions complete
  22. - 💬 Approach: Congratulate, generate certificate, inspire next steps
  23. ## EXECUTION PROTOCOLS:
  24. - 🎯 Verify all sessions complete
  25. - 💾 Generate completion certificate
  26. - 📖 Final progress update
  27. - 🎉 This is the final step - no next step
  28. ## CONTEXT BOUNDARIES:
  29. - Available context: Progress file with all 7 sessions completed
  30. - Focus: Certificate generation and celebration
  31. - Dependencies: All 7 sessions must be complete
  32. ## MANDATORY SEQUENCE
  33. ### 1. Verify All Sessions Complete
  34. Load {progressFile} and check:
  35. - All 7 sessions have `status: 'completed'`
  36. - All 7 sessions have scores
  37. - sessions_completed == 7
  38. **If any session NOT complete:**
  39. Display:
  40. "⚠️ **Not all sessions complete!**
  41. You still have {7 - sessions_completed} sessions remaining.
  42. Please return to the session menu to complete the remaining sessions before generating your certificate."
  43. **THEN:** Stop and do not proceed. This is an error state.
  44. ---
  45. **If all 7 sessions complete:** Proceed to step 2.
  46. ### 2. Calculate Final Metrics
  47. From progress file, calculate:
  48. **Average Score:**
  49. - Sum all 7 session scores
  50. - Divide by 7
  51. - Round to nearest integer
  52. **Total Duration:**
  53. - Calculate days between started_date and current_date
  54. - Format as "{N} days" or "{N} weeks"
  55. **Individual Session Scores:**
  56. - Extract score for each session (session-01 through session-07)
  57. ### 3. Congratulations Message
  58. Display:
  59. "🏆 **CONGRATULATIONS, {user_name}!**
  60. You've completed all 7 sessions of TEA Academy!
  61. **Your Achievement:**
  62. - **Started:** {started_date}
  63. - **Completed:** {current_date}
  64. - **Duration:** {total_duration}
  65. - **Average Score:** {average_score}/100
  66. - **Sessions Completed:** 7 of 7 (100%)
  67. **Session Scores:**
  68. - Session 1 (Quick Start): {session_01_score}/100
  69. - Session 2 (Core Concepts): {session_02_score}/100
  70. - Session 3 (Architecture): {session_03_score}/100
  71. - Session 4 (Test Design): {session_04_score}/100
  72. - Session 5 (ATDD & Automate): {session_05_score}/100
  73. - Session 6 (Quality & Trace): {session_06_score}/100
  74. - Session 7 (Advanced Patterns): {session_07_score}/100
  75. Generating your completion certificate..."
  76. ### 4. Generate Completion Certificate
  77. Load {certificateTemplate} and create {certificateFile} with:
  78. ```markdown
  79. ---
  80. certificate_type: tea-academy-completion
  81. user: { user_name }
  82. role: { role }
  83. completion_date: { current_date }
  84. started_date: { started_date }
  85. total_duration: { total_duration }
  86. average_score: { average_score }
  87. ---
  88. # 🏆 TEA Academy Completion Certificate
  89. ---
  90. ## Certificate of Completion
  91. **This certifies that**
  92. # {user_name}
  93. **has successfully completed the TEA Academy testing curriculum**
  94. ---
  95. ### Program Details
  96. **Role:** {role}
  97. **Started:** {started_date}
  98. **Completed:** {current_date}
  99. **Total Duration:** {total_duration}
  100. **Average Score:** {average_score}/100
  101. ---
  102. ### Sessions Completed
  103. ✅ **Session 1:** Quick Start (30 min) - Score: {session_01_score}/100
  104. ✅ **Session 2:** Core Concepts (45 min) - Score: {session_02_score}/100
  105. ✅ **Session 3:** Architecture & Patterns (60 min) - Score: {session_03_score}/100
  106. ✅ **Session 4:** Test Design (60 min) - Score: {session_04_score}/100
  107. ✅ **Session 5:** ATDD & Automate (60 min) - Score: {session_05_score}/100
  108. ✅ **Session 6:** Quality & Trace (45 min) - Score: {session_06_score}/100
  109. ✅ **Session 7:** Advanced Patterns (ongoing) - Score: {session_07_score}/100
  110. ---
  111. ### Skills Acquired
  112. {user_name} has demonstrated proficiency in:
  113. - ✅ **Testing Fundamentals:** Risk-based testing, test pyramid, test types, P0-P3 prioritization
  114. - ✅ **TEA Methodology:** 9 workflows (Teach Me Testing, Framework, Test Design, ATDD, Automate, Test Review, Trace, NFR, CI)
  115. - ✅ **Architecture Patterns:** Fixture composition, network-first patterns, data factories, step-file architecture
  116. - ✅ **Test Design:** Risk assessment (Probability × Impact), coverage planning, test levels framework
  117. - ✅ **Test Development:** ATDD red-green TDD approach, test automation, API testing patterns
  118. - ✅ **Quality Assurance:** Test review (5 dimensions), traceability, release gates, quality metrics
  119. - ✅ **Advanced Techniques:** Knowledge fragments explored, Playwright Utils integration
  120. ---
  121. ### Learning Artifacts
  122. All session notes and progress tracking available at:
  123. `{test_artifacts}/tea-academy/{user_name}/`
  124. **Session Notes:**
  125. - session-01-notes.md - Quick Start
  126. - session-02-notes.md - Core Concepts
  127. - session-03-notes.md - Architecture & Patterns
  128. - session-04-notes.md - Test Design
  129. - session-05-notes.md - ATDD & Automate
  130. - session-06-notes.md - Quality & Trace
  131. - session-07-notes.md - Advanced Patterns
  132. **Progress File:**
  133. `{test_artifacts}/teaching-progress/{user_name}-tea-progress.yaml`
  134. ---
  135. ### Next Steps
  136. **Recommended Actions:**
  137. 1. **Apply TEA to your project:** Start with Framework setup workflow
  138. 2. **Run TEA workflows:** Test Design → ATDD/Automate → Test Review
  139. 3. **Share knowledge:** Help team members through TEA Academy
  140. 4. **Explore knowledge fragments:** 42 fragments for just-in-time learning
  141. 5. **Contribute improvements:** Share feedback on TEA methodology
  142. **TEA Resources:**
  143. - **Documentation:** https://bmad-code-org.github.io/bmad-method-test-architecture-enterprise/
  144. - **Knowledge Base:** https://bmad-code-org.github.io/bmad-method-test-architecture-enterprise/reference/knowledge-base/
  145. - **GitHub Fragments:** https://github.com/bmad-code-org/bmad-method-test-architecture-enterprise/tree/main/src/agents/bmad-tea/resources/knowledge
  146. ---
  147. **Generated by:** TEA Academy - Teach Me Testing Workflow
  148. **Module:** Test Architecture Enterprise (TEA)
  149. **Completion Date:** {current_date}
  150. ---
  151. 🧪 **Master Test Architect and Quality Advisor**
  152. ```
  153. Save certificate to {certificateFile}.
  154. ### 5. Update Progress File (Final)
  155. Load {progressFile} and make final updates:
  156. **Update session-07 (if not already):**
  157. - `status: 'completed'`
  158. - `completed_date: {current_date}`
  159. - `score: 100` (exploratory session, completion based)
  160. - `notes_artifact: '{sessionNotesFile}'`
  161. **Update completion fields:**
  162. - `sessions_completed: 7`
  163. - `completion_percentage: 100`
  164. - `certificate_generated: true`
  165. - `certificate_path: '{certificateFile}'`
  166. - `completion_date: {current_date}`
  167. **Update stepsCompleted:**
  168. - Append 'step-04-session-07' (if session 7 just completed)
  169. - Append 'step-05-completion'
  170. - Update lastStep: 'step-05-completion'
  171. Save final progress file.
  172. ### 6. Display Certificate
  173. Display the complete certificate content to the user.
  174. ### 7. Final Celebration
  175. Display:
  176. "🎉 **CONGRATULATIONS, {user_name}!** 🎉
  177. You've successfully completed the entire TEA Academy curriculum!
  178. **Your Achievement:**
  179. - ✅ 7 sessions completed
  180. - ✅ Average score: {average_score}/100
  181. - ✅ {total_duration} of dedicated learning
  182. - ✅ Certificate generated
  183. **All Your Artifacts:**
  184. - **Certificate:** {certificateFile}
  185. - **Progress:** {progressFile}
  186. - **Session Notes:** {test_artifacts}/tea-academy/{user_name}/
  187. **You're now equipped to:**
  188. - Write high-quality tests following TEA principles
  189. - Use all 9 TEA workflows effectively
  190. - Apply risk-based testing (P0-P3 prioritization)
  191. - Implement architecture patterns (fixtures, network-first)
  192. - Maintain quality through Test Review and Trace
  193. - Explore 42 knowledge fragments as needed
  194. **Next Steps:**
  195. 1. Apply TEA to your current project
  196. 2. Share this workflow with your team
  197. 3. Help onboard new team members
  198. 4. Continue learning through knowledge fragments
  199. **Thank you for investing in testing excellence!** 🧪
  200. ---
  201. **TEA Academy - Mission Accomplished** ✅"
  202. ### 8. Workflow Complete
  203. **This is the final step - no menu, no next step.**
  204. Workflow ends here. User can run the workflow again to re-take sessions or explore more fragments.
  205. ---
  206. ## 🚨 SYSTEM SUCCESS/FAILURE METRICS
  207. ### ✅ SUCCESS:
  208. - All 7 sessions verified complete before certificate generation
  209. - Average score calculated correctly
  210. - Certificate generated with all session data
  211. - Certificate saved to file
  212. - Progress file updated with completion status
  213. - Final celebration message displayed
  214. - All artifacts paths provided to user
  215. - Workflow completes successfully
  216. ### ❌ SYSTEM FAILURE:
  217. - Generating certificate without verifying all sessions complete
  218. - Incorrect average score calculation
  219. - Missing session data in certificate
  220. - Not updating progress file with completion status
  221. - Not providing artifact paths to user
  222. - Proceeding to next step (this is final - no next step)
  223. **Master Rule:** Verify completion, generate certificate, celebrate achievement, end workflow. This is the finale.
  224. ## On Complete
  225. Run: `python3 {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --key workflow.on_complete`
  226. If the resolver succeeds and returns a non-empty `workflow.on_complete`, execute that value as the final terminal instruction before exiting.
  227. If the resolver fails, returns no output, or resolves an empty value, skip the hook and exit normally.