workflow.yaml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. name: create-story
  2. description: "Create the next user story from epics+stories with enhanced context analysis and direct ready-for-dev marking"
  3. author: "BMad"
  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. document_output_language: "{config_source}:document_output_language"
  9. user_skill_level: "{config_source}:user_skill_level"
  10. date: system-generated
  11. planning_artifacts: "{config_source}:planning_artifacts"
  12. implementation_artifacts: "{config_source}:implementation_artifacts"
  13. # Workflow components
  14. installed_path: "{project-root}/_bmad/bmm/workflows/4-implementation/create-story"
  15. template: "{installed_path}/template.md"
  16. instructions: "{installed_path}/instructions.xml"
  17. validation: "{installed_path}/checklist.md"
  18. # Variables and inputs
  19. sprint_status: "{implementation_artifacts}/sprint-status.yaml" # Primary source for story tracking
  20. epics_file: "{planning_artifacts}/epics.md" # Enhanced epics+stories with BDD and source hints
  21. prd_file: "{planning_artifacts}/prd.md" # Fallback for requirements (if not in epics file)
  22. architecture_file: "{planning_artifacts}/architecture.md" # Fallback for constraints (if not in epics file)
  23. ux_file: "{planning_artifacts}/*ux*.md" # Fallback for UX requirements (if not in epics file)
  24. story_title: "" # Will be elicited if not derivable
  25. project_context: "**/project-context.md"
  26. default_output_file: "{implementation_artifacts}/{{story_key}}.md"
  27. # Smart input file references - Simplified for enhanced approach
  28. # The epics+stories file should contain everything needed with source hints
  29. input_file_patterns:
  30. prd:
  31. description: "PRD (fallback - epics file should have most content)"
  32. whole: "{planning_artifacts}/*prd*.md"
  33. sharded: "{planning_artifacts}/*prd*/*.md"
  34. load_strategy: "SELECTIVE_LOAD" # Only load if needed
  35. architecture:
  36. description: "Architecture (fallback - epics file should have relevant sections)"
  37. whole: "{planning_artifacts}/*architecture*.md"
  38. sharded: "{planning_artifacts}/*architecture*/*.md"
  39. load_strategy: "SELECTIVE_LOAD" # Only load if needed
  40. ux:
  41. description: "UX design (fallback - epics file should have relevant sections)"
  42. whole: "{planning_artifacts}/*ux*.md"
  43. sharded: "{planning_artifacts}/*ux*/*.md"
  44. load_strategy: "SELECTIVE_LOAD" # Only load if needed
  45. epics:
  46. description: "Enhanced epics+stories file with BDD and source hints"
  47. whole: "{planning_artifacts}/*epic*.md"
  48. sharded: "{planning_artifacts}/*epic*/*.md"
  49. load_strategy: "SELECTIVE_LOAD" # Only load needed epic