Execute given workflow by loading its configuration, following instructions, and producing output Always read COMPLETE files - NEVER use offset/limit when reading any workflow related files Instructions are MANDATORY - either as file path, steps or embedded list in YAML, XML or markdown Execute ALL steps in instructions IN EXACT ORDER Save to template output file after EVERY "template-output" tag NEVER delegate a step - YOU are responsible for every steps execution Steps execute in exact numerical order (1, 2, 3...) Optional steps: Ask user unless #yolo mode active Template-output tags: Save content → Show user → Get approval before continuing Elicit tags: Execute immediately unless #yolo mode (which skips ALL elicitation) User must approve each major section before continuing UNLESS #yolo mode active Read workflow.yaml from provided path Load config_source (REQUIRED for all modules) Load external config from config_source path Resolve all {config_source}: references with values from config Resolve system variables (date:system-generated) and paths ({project-root}, {installed_path}) Ask user for input of any variables that are still unknown Instructions: Read COMPLETE file from path OR embedded list (REQUIRED) If template path → Read COMPLETE template file If validation path → Note path for later loading when needed If template: false → Mark as action-workflow (else template-workflow) Data files (csv, json) → Store paths only, load on-demand when instructions reference them Resolve default_output_file path with all variables and {{date}} Create output directory if doesn't exist If template-workflow → Write template to output file with placeholders If action-workflow → Skip file creation For each step in instructions: If optional="true" and NOT #yolo → Ask user to include If if="condition" → Evaluate condition If for-each="item" → Repeat step for each item If repeat="n" → Repeat step n times Process step instructions (markdown or XML tags) Replace {{variables}} with values (ask user if unknown) action xml tag → Perform the action check if="condition" xml tag → Conditional block wrapping actions (requires closing </check>) ask xml tag → Prompt user and WAIT for response invoke-workflow xml tag → Execute another workflow with given inputs invoke-task xml tag → Execute specified task goto step="x" → Jump to specified step Generate content for this section Save to file (Write first time, Edit subsequent) Show checkpoint separator: ━━━━━━━━━━━━━━━━━━━━━━━ Display generated content Continue [c] or Edit [e]? WAIT for response YOU MUST READ the file at {project-root}/bmad/core/tasks/adv-elicit.xml using Read tool BEFORE presenting any elicitation menu Load and run task {project-root}/bmad/core/tasks/adv-elicit.xml with current context Show elicitation menu 5 relevant options (list 1-5 options, Continue [c] or Reshuffle [r]) HALT and WAIT for user selection If no special tags and NOT #yolo: Continue to next step? (y/n/edit) If checklist exists → Run validation If template: false → Confirm actions completed Else → Confirm document saved to output path Report workflow completion Full user interaction at all decision points Skip optional sections, skip all elicitation, minimize prompts step n="X" goal="..." - Define step with number and goal optional="true" - Step can be skipped if="condition" - Conditional execution for-each="collection" - Iterate over items repeat="n" - Repeat n times action - Required action to perform action if="condition" - Single conditional action (inline, no closing tag needed) check if="condition">...</check> - Conditional block wrapping multiple items (closing tag required) ask - Get user input (wait for response) goto - Jump to another step invoke-workflow - Call another workflow invoke-task - Call a task template-output - Save content checkpoint elicit-required - Trigger enhancement critical - Cannot be skipped example - Show example output One action with a condition <action if="condition">Do something</action> <action if="file exists">Load the file</action> Cleaner and more concise for single items Multiple actions/tags under same condition <check if="condition"> <action>First action</action> <action>Second action</action> </check> <check if="validation fails"> <action>Log error</action> <goto step="1">Retry</goto> </check> Explicit scope boundaries prevent ambiguity Else/alternative branches <check if="condition A">...</check> <check if="else">...</check> Clear branching logic with explicit blocks This is the complete workflow execution engine You MUST Follow instructions exactly as written and maintain conversation context between steps If confused, re-read this task, the workflow yaml, and any yaml indicated files