Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

step-05-validate-and-summary.md 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. ---
  2. name: 'step-05-validate-and-summary'
  3. description: 'Validate against checklist and summarize'
  4. outputFile: '{test_artifacts}/framework-setup-progress.md'
  5. ---
  6. # Step 5: Validate & Summarize
  7. ## STEP GOAL
  8. Validate framework setup and provide a completion summary.
  9. ## MANDATORY EXECUTION RULES
  10. - 📖 Read the entire step file before acting
  11. - ✅ Speak in `{communication_language}`
  12. ---
  13. ## EXECUTION PROTOCOLS:
  14. - 🎯 Follow the MANDATORY SEQUENCE exactly
  15. - 💾 Record outputs before proceeding
  16. - 📖 Load the next step only when instructed
  17. ## CONTEXT BOUNDARIES:
  18. - Available context: config, loaded artifacts, and knowledge fragments
  19. - Focus: this step's goal only
  20. - Limits: do not execute future steps
  21. - Dependencies: prior steps' outputs (if any)
  22. ## MANDATORY SEQUENCE
  23. **CRITICAL:** Follow this sequence exactly. Do not skip, reorder, or improvise.
  24. ## 1. Validation
  25. Validate against `checklist.md`:
  26. - Preflight success
  27. - Directory structure created
  28. - Config correctness
  29. - Fixtures/factories created
  30. - Docs and scripts present
  31. Fix any gaps before completion.
  32. ---
  33. ## 2. Completion Summary
  34. Report:
  35. - Framework selected
  36. - Artifacts created
  37. - Next steps (install deps, run tests)
  38. - Knowledge fragments applied
  39. ---
  40. ### 3. Save Progress
  41. **Save this step's accumulated work to `{outputFile}`.**
  42. - **If `{outputFile}` does not exist** (first save), create it with YAML frontmatter:
  43. ```yaml
  44. ---
  45. stepsCompleted: ['step-05-validate-and-summary']
  46. lastStep: 'step-05-validate-and-summary'
  47. lastSaved: '{date}'
  48. ---
  49. ```
  50. Then write this step's output below the frontmatter.
  51. - **If `{outputFile}` already exists**, update:
  52. - Add `'step-05-validate-and-summary'` to `stepsCompleted` array (only if not already present)
  53. - Set `lastStep: 'step-05-validate-and-summary'`
  54. - Set `lastSaved: '{date}'`
  55. - Append this step's output to the appropriate section of the document.
  56. ## 🚨 SYSTEM SUCCESS/FAILURE METRICS:
  57. ### ✅ SUCCESS:
  58. - Step completed in full with required outputs
  59. ### ❌ SYSTEM FAILURE:
  60. - Skipped sequence steps or missing outputs
  61. **Master Rule:** Skipping steps is FORBIDDEN.
  62. ## On Complete
  63. Run: `python3 {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --key workflow.on_complete`
  64. If the resolver succeeds and returns a non-empty `workflow.on_complete`, execute that value as the final terminal instruction before exiting.
  65. If the resolver fails, returns no output, or resolves an empty value, skip the hook and exit normally.