workflow.yaml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Review Story Workflow
  2. name: code-review
  3. description: 'Perform adversarial code review finding specific issues. Use when the user says "run code review" or "review this code"'
  4. # Critical variables from config
  5. config_source: "{project-root}/_bmad/bmm/config.yaml"
  6. user_name: "{config_source}:user_name"
  7. communication_language: "{config_source}:communication_language"
  8. user_skill_level: "{config_source}:user_skill_level"
  9. document_output_language: "{config_source}:document_output_language"
  10. date: system-generated
  11. planning_artifacts: "{config_source}:planning_artifacts"
  12. implementation_artifacts: "{config_source}:implementation_artifacts"
  13. sprint_status: "{implementation_artifacts}/sprint-status.yaml"
  14. # Workflow components
  15. installed_path: "{project-root}/_bmad/bmm/workflows/4-implementation/code-review"
  16. instructions: "{installed_path}/instructions.xml"
  17. validation: "{installed_path}/checklist.md"
  18. template: false
  19. project_context: "**/project-context.md"
  20. # Smart input file references - handles both whole docs and sharded docs
  21. # Priority: Whole document first, then sharded version
  22. # Strategy: SELECTIVE LOAD - only load the specific epic needed for this story review
  23. input_file_patterns:
  24. architecture:
  25. description: "System architecture for review context"
  26. whole: "{planning_artifacts}/*architecture*.md"
  27. sharded: "{planning_artifacts}/*architecture*/*.md"
  28. load_strategy: "FULL_LOAD"
  29. ux_design:
  30. description: "UX design specification (if UI review)"
  31. whole: "{planning_artifacts}/*ux*.md"
  32. sharded: "{planning_artifacts}/*ux*/*.md"
  33. load_strategy: "FULL_LOAD"
  34. epics:
  35. description: "Epic containing story being reviewed"
  36. whole: "{planning_artifacts}/*epic*.md"
  37. sharded_index: "{planning_artifacts}/*epic*/index.md"
  38. sharded_single: "{planning_artifacts}/*epic*/epic-{{epic_num}}.md"
  39. load_strategy: "SELECTIVE_LOAD"