workflow.yaml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. date: system-generated
  9. planning_artifacts: "{config_source}:planning_artifacts"
  10. implementation_artifacts: "{config_source}:implementation_artifacts"
  11. output_folder: "{implementation_artifacts}"
  12. story_dir: "{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. variables:
  20. sprint_status: "{implementation_artifacts}/sprint-status.yaml" # Primary source for story tracking
  21. epics_file: "{planning_artifacts}/epics.md" # Enhanced epics+stories with BDD and source hints
  22. prd_file: "{planning_artifacts}/prd.md" # Fallback for requirements (if not in epics file)
  23. architecture_file: "{planning_artifacts}/architecture.md" # Fallback for constraints (if not in epics file)
  24. ux_file: "{planning_artifacts}/*ux*.md" # Fallback for UX requirements (if not in epics file)
  25. story_title: "" # Will be elicited if not derivable
  26. # Project context
  27. project_context: "**/project-context.md"
  28. default_output_file: "{story_dir}/{{story_key}}.md"
  29. # Smart input file references - Simplified for enhanced approach
  30. # The epics+stories file should contain everything needed with source hints
  31. input_file_patterns:
  32. prd:
  33. description: "PRD (fallback - epics file should have most content)"
  34. whole: "{planning_artifacts}/*prd*.md"
  35. sharded: "{planning_artifacts}/*prd*/*.md"
  36. load_strategy: "SELECTIVE_LOAD" # Only load if needed
  37. architecture:
  38. description: "Architecture (fallback - epics file should have relevant sections)"
  39. whole: "{planning_artifacts}/*architecture*.md"
  40. sharded: "{planning_artifacts}/*architecture*/*.md"
  41. load_strategy: "SELECTIVE_LOAD" # Only load if needed
  42. ux:
  43. description: "UX design (fallback - epics file should have relevant sections)"
  44. whole: "{planning_artifacts}/*ux*.md"
  45. sharded: "{planning_artifacts}/*ux*/*.md"
  46. load_strategy: "SELECTIVE_LOAD" # Only load if needed
  47. epics:
  48. description: "Enhanced epics+stories file with BDD and source hints"
  49. whole: "{planning_artifacts}/*epic*.md"
  50. sharded: "{planning_artifacts}/*epic*/*.md"
  51. load_strategy: "SELECTIVE_LOAD" # Only load needed epic
  52. standalone: true