您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. ---
  2. name: 'step-04-validate-and-summary'
  3. description: 'Validate pipeline and summarize'
  4. outputFile: '{test_artifacts}/ci-pipeline-progress.md'
  5. ---
  6. # Step 4: Validate & Summarize
  7. ## STEP GOAL
  8. Validate CI configuration and report completion details.
  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. - Config file created
  27. - Stages and sharding configured
  28. - Burn-in and artifacts enabled
  29. - Secrets/variables documented
  30. Fix gaps before completion.
  31. ---
  32. ## 2. Completion Summary
  33. Report:
  34. - CI platform and config path
  35. - Key stages enabled
  36. - Artifacts and notifications
  37. - Next steps (set secrets, run pipeline)
  38. ---
  39. ### 3. Save Progress
  40. **Save this step's accumulated work to `{outputFile}`.**
  41. - **If `{outputFile}` does not exist** (first save), create it with YAML frontmatter:
  42. ```yaml
  43. ---
  44. stepsCompleted: ['step-04-validate-and-summary']
  45. lastStep: 'step-04-validate-and-summary'
  46. lastSaved: '{date}'
  47. ---
  48. ```
  49. Then write this step's output below the frontmatter.
  50. - **If `{outputFile}` already exists**, update:
  51. - Add `'step-04-validate-and-summary'` to `stepsCompleted` array (only if not already present)
  52. - Set `lastStep: 'step-04-validate-and-summary'`
  53. - Set `lastSaved: '{date}'`
  54. - Append this step's output to the appropriate section of the document.
  55. ## 🚨 SYSTEM SUCCESS/FAILURE METRICS:
  56. ### ✅ SUCCESS:
  57. - Step completed in full with required outputs
  58. ### ❌ SYSTEM FAILURE:
  59. - Skipped sequence steps or missing outputs
  60. **Master Rule:** Skipping steps is FORBIDDEN.
  61. ## On Complete
  62. Run: `python3 {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --key workflow.on_complete`
  63. If the resolver succeeds and returns a non-empty `workflow.on_complete`, execute that value as the final terminal instruction before exiting.
  64. If the resolver fails, returns no output, or resolves an empty value, skip the hook and exit normally.