workflow.yaml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Review Story Workflow
  2. name: code-review
  3. description: "Perform an ADVERSARIAL Senior Developer code review that finds 3-10 specific problems in every story. Challenges everything: code quality, test coverage, architecture compliance, security, performance. NEVER accepts `looks good` - must find minimum issues and can auto-fix with user approval."
  4. author: "BMad"
  5. # Critical variables from config
  6. config_source: "{project-root}/_bmad/bmm/config.yaml"
  7. user_name: "{config_source}:user_name"
  8. communication_language: "{config_source}:communication_language"
  9. user_skill_level: "{config_source}:user_skill_level"
  10. document_output_language: "{config_source}:document_output_language"
  11. date: system-generated
  12. planning_artifacts: "{config_source}:planning_artifacts"
  13. implementation_artifacts: "{config_source}:implementation_artifacts"
  14. output_folder: "{implementation_artifacts}"
  15. sprint_status: "{implementation_artifacts}/sprint-status.yaml"
  16. # Workflow components
  17. installed_path: "{project-root}/_bmad/bmm/workflows/4-implementation/code-review"
  18. instructions: "{installed_path}/instructions.xml"
  19. validation: "{installed_path}/checklist.md"
  20. template: false
  21. variables:
  22. # Project context
  23. project_context: "**/project-context.md"
  24. story_dir: "{implementation_artifacts}"
  25. # Smart input file references - handles both whole docs and sharded docs
  26. # Priority: Whole document first, then sharded version
  27. # Strategy: SELECTIVE LOAD - only load the specific epic needed for this story review
  28. input_file_patterns:
  29. architecture:
  30. description: "System architecture for review context"
  31. whole: "{planning_artifacts}/*architecture*.md"
  32. sharded: "{planning_artifacts}/*architecture*/*.md"
  33. load_strategy: "FULL_LOAD"
  34. ux_design:
  35. description: "UX design specification (if UI review)"
  36. whole: "{planning_artifacts}/*ux*.md"
  37. sharded: "{planning_artifacts}/*ux*/*.md"
  38. load_strategy: "FULL_LOAD"
  39. epics:
  40. description: "Epic containing story being reviewed"
  41. whole: "{planning_artifacts}/*epic*.md"
  42. sharded_index: "{planning_artifacts}/*epic*/index.md"
  43. sharded_single: "{planning_artifacts}/*epic*/epic-{{epic_num}}.md"
  44. load_strategy: "SELECTIVE_LOAD"
  45. standalone: true