From 3aaa37125b26f5eab4a810cdc7aac2739f521f84 Mon Sep 17 00:00:00 2001 From: Dicky Moore Date: Sun, 8 Feb 2026 22:37:04 +0000 Subject: [PATCH] fix: route IDE workflow templates through workflow runner --- .../lib/ide/templates/combined/antigravity.md | 7 ++++--- .../ide/templates/combined/default-workflow.md | 6 +++++- .../templates/combined/gemini-workflow-yaml.toml | 16 ++++++---------- .../ide/templates/combined/gemini-workflow.toml | 10 ++++------ .../lib/ide/templates/combined/kiro-workflow.md | 9 ++++++++- .../templates/combined/opencode-workflow-yaml.md | 10 ++++------ .../ide/templates/combined/opencode-workflow.md | 10 ++++------ .../lib/ide/templates/combined/rovodev.md | 7 ++++--- .../lib/ide/templates/combined/trae.md | 7 ++++--- .../ide/templates/combined/windsurf-workflow.md | 7 ++++--- .../lib/ide/templates/workflow-commander.md | 6 +++++- 11 files changed, 52 insertions(+), 43 deletions(-) diff --git a/tools/cli/installers/lib/ide/templates/combined/antigravity.md b/tools/cli/installers/lib/ide/templates/combined/antigravity.md index 88e806e9d..682dbeb17 100644 --- a/tools/cli/installers/lib/ide/templates/combined/antigravity.md +++ b/tools/cli/installers/lib/ide/templates/combined/antigravity.md @@ -3,6 +3,7 @@ name: '{{name}}' description: '{{description}}' --- -Read the entire workflow file at: {project-root}/_bmad/{{workflow_path}} - -Follow all instructions in the workflow file exactly as written. +1. Load the workflow runner at {project-root}/_bmad/core/tasks/workflow.md +2. Read the runner fully +3. Run it with workflow-config: {{workflow_path}} +4. Follow all runner instructions exactly diff --git a/tools/cli/installers/lib/ide/templates/combined/default-workflow.md b/tools/cli/installers/lib/ide/templates/combined/default-workflow.md index 8c4fa818f..b4ebc7647 100644 --- a/tools/cli/installers/lib/ide/templates/combined/default-workflow.md +++ b/tools/cli/installers/lib/ide/templates/combined/default-workflow.md @@ -4,4 +4,8 @@ description: '{{description}}' disable-model-invocation: true --- -IT IS CRITICAL THAT YOU FOLLOW THIS COMMAND: LOAD the FULL @{project-root}/{{bmadFolderName}}/{{path}}, READ its entire contents and follow its directions exactly! +IT IS CRITICAL THAT YOU FOLLOW THESE STEPS: +1. LOAD the FULL @{project-root}/{{bmadFolderName}}/core/tasks/workflow.md +2. READ its entire contents +3. Execute workflow runner with parameter: workflow-config: {{bmadFolderName}}/{{path}} +4. FOLLOW the runner instructions exactly as written diff --git a/tools/cli/installers/lib/ide/templates/combined/gemini-workflow-yaml.toml b/tools/cli/installers/lib/ide/templates/combined/gemini-workflow-yaml.toml index 063ca0d0b..252e6e6f6 100644 --- a/tools/cli/installers/lib/ide/templates/combined/gemini-workflow-yaml.toml +++ b/tools/cli/installers/lib/ide/templates/combined/gemini-workflow-yaml.toml @@ -2,15 +2,11 @@ description = """{{description}}""" prompt = """ Execute the BMAD '{{name}}' workflow. -CRITICAL: This is a structured YAML workflow. Follow these steps precisely: +CRITICAL: Use the workflow runner task, not direct workflow-file execution. -1. LOAD the workflow definition from {project-root}/{{bmadFolderName}}/{{workflow_path}} -2. PARSE the YAML structure to understand: - - Workflow phases and steps - - Required inputs and outputs - - Dependencies between steps -3. EXECUTE each step in order -4. VALIDATE outputs before proceeding to next step - -WORKFLOW FILE: {project-root}/{{bmadFolderName}}/{{workflow_path}} +WORKFLOW INSTRUCTIONS: +1. LOAD the workflow runner from {project-root}/{{bmadFolderName}}/core/tasks/workflow.md +2. READ its entire contents +3. PASS this parameter to the runner: workflow-config: {{workflow_path}} +4. FOLLOW every runner step exactly as specified """ diff --git a/tools/cli/installers/lib/ide/templates/combined/gemini-workflow.toml b/tools/cli/installers/lib/ide/templates/combined/gemini-workflow.toml index 526241061..252e6e6f6 100644 --- a/tools/cli/installers/lib/ide/templates/combined/gemini-workflow.toml +++ b/tools/cli/installers/lib/ide/templates/combined/gemini-workflow.toml @@ -2,13 +2,11 @@ description = """{{description}}""" prompt = """ Execute the BMAD '{{name}}' workflow. -CRITICAL: You must load and follow the workflow definition exactly. +CRITICAL: Use the workflow runner task, not direct workflow-file execution. WORKFLOW INSTRUCTIONS: -1. LOAD the workflow file from {project-root}/{{bmadFolderName}}/{{workflow_path}} +1. LOAD the workflow runner from {project-root}/{{bmadFolderName}}/core/tasks/workflow.md 2. READ its entire contents -3. FOLLOW every step precisely as specified -4. DO NOT skip or modify any steps - -WORKFLOW FILE: {project-root}/{{bmadFolderName}}/{{workflow_path}} +3. PASS this parameter to the runner: workflow-config: {{workflow_path}} +4. FOLLOW every runner step exactly as specified """ diff --git a/tools/cli/installers/lib/ide/templates/combined/kiro-workflow.md b/tools/cli/installers/lib/ide/templates/combined/kiro-workflow.md index e1847f414..117846b84 100644 --- a/tools/cli/installers/lib/ide/templates/combined/kiro-workflow.md +++ b/tools/cli/installers/lib/ide/templates/combined/kiro-workflow.md @@ -4,4 +4,11 @@ inclusion: manual # {{name}} -IT IS CRITICAL THAT YOU FOLLOW THIS COMMAND: LOAD the FULL #[[file:{{bmadFolderName}}/{{path}}]], READ its entire contents and follow its directions exactly! +IT IS CRITICAL THAT YOU FOLLOW THESE STEPS: +1. Always LOAD the FULL #[[file:{{bmadFolderName}}/core/tasks/workflow.md]] +2. READ its entire contents +3. Execute workflow runner with YAML parameter: + ```yaml + workflow-config: {{bmadFolderName}}/{{path}} + ``` +4. FOLLOW the runner instructions exactly as written diff --git a/tools/cli/installers/lib/ide/templates/combined/opencode-workflow-yaml.md b/tools/cli/installers/lib/ide/templates/combined/opencode-workflow-yaml.md index d1e2b0af2..1cf929ace 100644 --- a/tools/cli/installers/lib/ide/templates/combined/opencode-workflow-yaml.md +++ b/tools/cli/installers/lib/ide/templates/combined/opencode-workflow-yaml.md @@ -4,12 +4,10 @@ description: '{{description}}' Execute the BMAD '{{name}}' workflow. -CRITICAL: You must load and follow the workflow definition exactly. +CRITICAL: Use the workflow runner task, not direct workflow-file execution. WORKFLOW INSTRUCTIONS: -1. LOAD the workflow file from {project-root}/{{bmadFolderName}}/{{path}} +1. LOAD the workflow runner from {project-root}/{{bmadFolderName}}/core/tasks/workflow.md 2. READ its entire contents -3. FOLLOW every step precisely as specified -4. DO NOT skip or modify any steps - -WORKFLOW FILE: {project-root}/{{bmadFolderName}}/{{path}} +3. PASS this parameter to the runner: workflow-config: {{bmadFolderName}}/{{path}} +4. FOLLOW every runner step exactly as specified diff --git a/tools/cli/installers/lib/ide/templates/combined/opencode-workflow.md b/tools/cli/installers/lib/ide/templates/combined/opencode-workflow.md index d1e2b0af2..1cf929ace 100644 --- a/tools/cli/installers/lib/ide/templates/combined/opencode-workflow.md +++ b/tools/cli/installers/lib/ide/templates/combined/opencode-workflow.md @@ -4,12 +4,10 @@ description: '{{description}}' Execute the BMAD '{{name}}' workflow. -CRITICAL: You must load and follow the workflow definition exactly. +CRITICAL: Use the workflow runner task, not direct workflow-file execution. WORKFLOW INSTRUCTIONS: -1. LOAD the workflow file from {project-root}/{{bmadFolderName}}/{{path}} +1. LOAD the workflow runner from {project-root}/{{bmadFolderName}}/core/tasks/workflow.md 2. READ its entire contents -3. FOLLOW every step precisely as specified -4. DO NOT skip or modify any steps - -WORKFLOW FILE: {project-root}/{{bmadFolderName}}/{{path}} +3. PASS this parameter to the runner: workflow-config: {{bmadFolderName}}/{{path}} +4. FOLLOW every runner step exactly as specified diff --git a/tools/cli/installers/lib/ide/templates/combined/rovodev.md b/tools/cli/installers/lib/ide/templates/combined/rovodev.md index 066945ee5..721b2d2f0 100644 --- a/tools/cli/installers/lib/ide/templates/combined/rovodev.md +++ b/tools/cli/installers/lib/ide/templates/combined/rovodev.md @@ -4,6 +4,7 @@ --- -Read the entire workflow file at: {project-root}/_bmad/{{workflow_path}} - -Follow all instructions in the workflow file exactly as written. +1. Load the workflow runner at {project-root}/_bmad/core/tasks/workflow.md +2. Read the runner fully +3. Run it with workflow-config: {{workflow_path}} +4. Follow all runner instructions exactly diff --git a/tools/cli/installers/lib/ide/templates/combined/trae.md b/tools/cli/installers/lib/ide/templates/combined/trae.md index b4d43d7af..33b5bccfa 100644 --- a/tools/cli/installers/lib/ide/templates/combined/trae.md +++ b/tools/cli/installers/lib/ide/templates/combined/trae.md @@ -4,6 +4,7 @@ ## Instructions -Read the entire workflow file at: {project-root}/_bmad/{{workflow_path}} - -Follow all instructions in the workflow file exactly as written. +1. Load the workflow runner at {project-root}/_bmad/core/tasks/workflow.md +2. Read the runner fully +3. Run it with workflow-config: {{workflow_path}} +4. Follow all runner instructions exactly diff --git a/tools/cli/installers/lib/ide/templates/combined/windsurf-workflow.md b/tools/cli/installers/lib/ide/templates/combined/windsurf-workflow.md index 6366425c7..806d6d587 100644 --- a/tools/cli/installers/lib/ide/templates/combined/windsurf-workflow.md +++ b/tools/cli/installers/lib/ide/templates/combined/windsurf-workflow.md @@ -5,6 +5,7 @@ auto_execution_mode: "iterate" # {{name}} -Read the entire workflow file at {project-root}/_bmad/{{workflow_path}} - -Follow all instructions in the workflow file exactly as written. +1. Load the workflow runner at {project-root}/_bmad/core/tasks/workflow.md +2. Read the runner fully +3. Run it with workflow-config: {{workflow_path}} +4. Follow all runner instructions exactly diff --git a/tools/cli/installers/lib/ide/templates/workflow-commander.md b/tools/cli/installers/lib/ide/templates/workflow-commander.md index d49c8319d..272ef4f5b 100644 --- a/tools/cli/installers/lib/ide/templates/workflow-commander.md +++ b/tools/cli/installers/lib/ide/templates/workflow-commander.md @@ -3,4 +3,8 @@ description: '{{description}}' disable-model-invocation: true --- -IT IS CRITICAL THAT YOU FOLLOW THIS COMMAND: LOAD the FULL @{{workflow_path}}, READ its entire contents and follow its directions exactly! +IT IS CRITICAL THAT YOU FOLLOW THESE STEPS: +1. LOAD the FULL @{project-root}/_bmad/core/tasks/workflow.md +2. READ its entire contents +3. Execute workflow runner with parameter: workflow-config: {{workflow_path}} +4. FOLLOW the runner instructions exactly as written