workflow.yaml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. name: create-story
  2. description: 'Creates a dedicated story file with all the context the agent will need to implement it later. Use when the user says "create the next story" or "create story [story identifier]"'
  3. # Critical variables from config
  4. config_source: "{project-root}/_bmad/bmm/config.yaml"
  5. user_name: "{config_source}:user_name"
  6. communication_language: "{config_source}:communication_language"
  7. document_output_language: "{config_source}:document_output_language"
  8. user_skill_level: "{config_source}:user_skill_level"
  9. date: system-generated
  10. planning_artifacts: "{config_source}:planning_artifacts"
  11. implementation_artifacts: "{config_source}:implementation_artifacts"
  12. # Workflow components
  13. installed_path: "{project-root}/_bmad/bmm/workflows/4-implementation/create-story"
  14. template: "{installed_path}/template.md"
  15. instructions: "{installed_path}/instructions.xml"
  16. validation: "{installed_path}/checklist.md"
  17. # Variables and inputs
  18. sprint_status: "{implementation_artifacts}/sprint-status.yaml" # Primary source for story tracking
  19. epics_file: "{planning_artifacts}/epics.md" # Enhanced epics+stories with BDD and source hints
  20. prd_file: "{planning_artifacts}/prd.md" # Fallback for requirements (if not in epics file)
  21. architecture_file: "{planning_artifacts}/architecture.md" # Fallback for constraints (if not in epics file)
  22. ux_file: "{planning_artifacts}/*ux*.md" # Fallback for UX requirements (if not in epics file)
  23. story_title: "" # Will be elicited if not derivable
  24. project_context: "**/project-context.md"
  25. default_output_file: "{implementation_artifacts}/{{story_key}}.md"
  26. # Smart input file references - Simplified for enhanced approach
  27. # The epics+stories file should contain everything needed with source hints
  28. input_file_patterns:
  29. prd:
  30. description: "PRD (fallback - epics file should have most content)"
  31. whole: "{planning_artifacts}/*prd*.md"
  32. sharded: "{planning_artifacts}/*prd*/*.md"
  33. load_strategy: "SELECTIVE_LOAD" # Only load if needed
  34. architecture:
  35. description: "Architecture (fallback - epics file should have relevant sections)"
  36. whole: "{planning_artifacts}/*architecture*.md"
  37. sharded: "{planning_artifacts}/*architecture*/*.md"
  38. load_strategy: "SELECTIVE_LOAD" # Only load if needed
  39. ux:
  40. description: "UX design (fallback - epics file should have relevant sections)"
  41. whole: "{planning_artifacts}/*ux*.md"
  42. sharded: "{planning_artifacts}/*ux*/*.md"
  43. load_strategy: "SELECTIVE_LOAD" # Only load if needed
  44. epics:
  45. description: "Enhanced epics+stories file with BDD and source hints"
  46. whole: "{planning_artifacts}/*epic*.md"
  47. sharded: "{planning_artifacts}/*epic*/*.md"
  48. load_strategy: "SELECTIVE_LOAD" # Only load needed epic