From 71cbe727190ae6bdc619a169d40a84a9dfbf45f6 Mon Sep 17 00:00:00 2001 From: Nikolai Zhirinas <75691177+n-zhi@users.noreply.github.com> Date: Thu, 5 Mar 2026 00:47:26 +0200 Subject: [PATCH 1/3] fix(installer): resolve Antigravity command failures by alignment template names MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Investigating the command-loading failures in Antigravity revealed a structural bug introduced in commit 27c18e0. The ConfigDrivenIdeSetup class resolves template names by appending an artifact type suffix to the platform’s template_type, expecting specific files like antigravity-workflow.md or antigravity-agent.md. Previously, only a generic antigravity.md was provided, causing the loadTemplate() fallback mechanism to silently use default-*.md templates. These default templates inject standard YAML frontmatter (name and quoted description) which Antigravity rejects. Changes: - Replaced generic antigravity.md with specific artifact-typed templates (antigravity-agent.md, antigravity-workflow.md, etc.) - Removed redundant 'name' field from Antigravity templates - Removed wrapping single quotes from 'description' field to satisfy Antigravity requirements --- .../ide/templates/combined/antigravity-agent.md | 14 ++++++++++++++ .../lib/ide/templates/combined/antigravity-task.md | 9 +++++++++ .../lib/ide/templates/combined/antigravity-tool.md | 9 +++++++++ .../combined/antigravity-workflow-yaml.md | 13 +++++++++++++ .../ide/templates/combined/antigravity-workflow.md | 5 +++++ .../lib/ide/templates/combined/antigravity.md | 8 -------- 6 files changed, 50 insertions(+), 8 deletions(-) create mode 100644 tools/cli/installers/lib/ide/templates/combined/antigravity-agent.md create mode 100644 tools/cli/installers/lib/ide/templates/combined/antigravity-task.md create mode 100644 tools/cli/installers/lib/ide/templates/combined/antigravity-tool.md create mode 100644 tools/cli/installers/lib/ide/templates/combined/antigravity-workflow-yaml.md create mode 100644 tools/cli/installers/lib/ide/templates/combined/antigravity-workflow.md delete mode 100644 tools/cli/installers/lib/ide/templates/combined/antigravity.md diff --git a/tools/cli/installers/lib/ide/templates/combined/antigravity-agent.md b/tools/cli/installers/lib/ide/templates/combined/antigravity-agent.md new file mode 100644 index 000000000..a3160303a --- /dev/null +++ b/tools/cli/installers/lib/ide/templates/combined/antigravity-agent.md @@ -0,0 +1,14 @@ +--- +description: {{description}} +--- + +You must fully embody this agent's persona and follow all activation instructions exactly as specified. NEVER break character until given an exit command. + + +1. LOAD the FULL agent file from {project-root}/_bmad/{{path}} +2. READ its entire contents - this contains the complete agent persona, menu, and instructions +3. FOLLOW every step in the section precisely +4. DISPLAY the welcome/greeting as instructed +5. PRESENT the numbered menu +6. WAIT for user input before proceeding + diff --git a/tools/cli/installers/lib/ide/templates/combined/antigravity-task.md b/tools/cli/installers/lib/ide/templates/combined/antigravity-task.md new file mode 100644 index 000000000..007c29b83 --- /dev/null +++ b/tools/cli/installers/lib/ide/templates/combined/antigravity-task.md @@ -0,0 +1,9 @@ +--- +description: {{description}} +--- + +# {{name}} + +Read the entire task file at: {project-root}/{{bmadFolderName}}/{{path}} + +Follow all instructions in the task file exactly as written. diff --git a/tools/cli/installers/lib/ide/templates/combined/antigravity-tool.md b/tools/cli/installers/lib/ide/templates/combined/antigravity-tool.md new file mode 100644 index 000000000..16350cc09 --- /dev/null +++ b/tools/cli/installers/lib/ide/templates/combined/antigravity-tool.md @@ -0,0 +1,9 @@ +--- +description: {{description}} +--- + +# {{name}} + +Read the entire tool file at: {project-root}/{{bmadFolderName}}/{{path}} + +Follow all instructions in the tool file exactly as written. diff --git a/tools/cli/installers/lib/ide/templates/combined/antigravity-workflow-yaml.md b/tools/cli/installers/lib/ide/templates/combined/antigravity-workflow-yaml.md new file mode 100644 index 000000000..dd5f83034 --- /dev/null +++ b/tools/cli/installers/lib/ide/templates/combined/antigravity-workflow-yaml.md @@ -0,0 +1,13 @@ +--- +description: {{description}} +--- + +IT IS CRITICAL THAT YOU FOLLOW THESE STEPS - while staying in character as the current agent persona you may have loaded: + + +1. Always LOAD the FULL {project-root}/{{bmadFolderName}}/core/tasks/workflow.xml +2. READ its entire contents - this is the CORE OS for EXECUTING the specific workflow-config {project-root}/{{bmadFolderName}}/{{path}} +3. Pass the yaml path {project-root}/{{bmadFolderName}}/{{path}} as 'workflow-config' parameter to the workflow.xml instructions +4. Follow workflow.xml instructions EXACTLY as written to process and follow the specific workflow config and its instructions +5. Save outputs after EACH section when generating any documents from templates + diff --git a/tools/cli/installers/lib/ide/templates/combined/antigravity-workflow.md b/tools/cli/installers/lib/ide/templates/combined/antigravity-workflow.md new file mode 100644 index 000000000..3834a5118 --- /dev/null +++ b/tools/cli/installers/lib/ide/templates/combined/antigravity-workflow.md @@ -0,0 +1,5 @@ +--- +description: {{description}} +--- + +IT IS CRITICAL THAT YOU FOLLOW THIS COMMAND: LOAD the FULL {project-root}/{{bmadFolderName}}/{{path}}, READ its entire contents and follow its directions exactly! diff --git a/tools/cli/installers/lib/ide/templates/combined/antigravity.md b/tools/cli/installers/lib/ide/templates/combined/antigravity.md deleted file mode 100644 index 88e806e9d..000000000 --- a/tools/cli/installers/lib/ide/templates/combined/antigravity.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -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. From 2896a46584b243889b1771b803beca46a62a28ab Mon Sep 17 00:00:00 2001 From: Nikolai Zhirinas <75691177+n-zhi@users.noreply.github.com> Date: Thu, 5 Mar 2026 02:54:59 +0200 Subject: [PATCH 2/3] fix(installer): wrap description in double quotes for Antigravity This prevents command loading errors when the description contains a colon followed by a space (': '). --- .../installers/lib/ide/templates/combined/antigravity-agent.md | 2 +- .../installers/lib/ide/templates/combined/antigravity-task.md | 2 +- .../installers/lib/ide/templates/combined/antigravity-tool.md | 2 +- .../lib/ide/templates/combined/antigravity-workflow-yaml.md | 2 +- .../lib/ide/templates/combined/antigravity-workflow.md | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/cli/installers/lib/ide/templates/combined/antigravity-agent.md b/tools/cli/installers/lib/ide/templates/combined/antigravity-agent.md index a3160303a..d921bbe4b 100644 --- a/tools/cli/installers/lib/ide/templates/combined/antigravity-agent.md +++ b/tools/cli/installers/lib/ide/templates/combined/antigravity-agent.md @@ -1,5 +1,5 @@ --- -description: {{description}} +description: "{{description}}" --- You must fully embody this agent's persona and follow all activation instructions exactly as specified. NEVER break character until given an exit command. diff --git a/tools/cli/installers/lib/ide/templates/combined/antigravity-task.md b/tools/cli/installers/lib/ide/templates/combined/antigravity-task.md index 007c29b83..07bae149c 100644 --- a/tools/cli/installers/lib/ide/templates/combined/antigravity-task.md +++ b/tools/cli/installers/lib/ide/templates/combined/antigravity-task.md @@ -1,5 +1,5 @@ --- -description: {{description}} +description: "{{description}}" --- # {{name}} diff --git a/tools/cli/installers/lib/ide/templates/combined/antigravity-tool.md b/tools/cli/installers/lib/ide/templates/combined/antigravity-tool.md index 16350cc09..191cf97ae 100644 --- a/tools/cli/installers/lib/ide/templates/combined/antigravity-tool.md +++ b/tools/cli/installers/lib/ide/templates/combined/antigravity-tool.md @@ -1,5 +1,5 @@ --- -description: {{description}} +description: "{{description}}" --- # {{name}} diff --git a/tools/cli/installers/lib/ide/templates/combined/antigravity-workflow-yaml.md b/tools/cli/installers/lib/ide/templates/combined/antigravity-workflow-yaml.md index dd5f83034..863419d9c 100644 --- a/tools/cli/installers/lib/ide/templates/combined/antigravity-workflow-yaml.md +++ b/tools/cli/installers/lib/ide/templates/combined/antigravity-workflow-yaml.md @@ -1,5 +1,5 @@ --- -description: {{description}} +description: "{{description}}" --- IT IS CRITICAL THAT YOU FOLLOW THESE STEPS - while staying in character as the current agent persona you may have loaded: diff --git a/tools/cli/installers/lib/ide/templates/combined/antigravity-workflow.md b/tools/cli/installers/lib/ide/templates/combined/antigravity-workflow.md index 3834a5118..1b42261a3 100644 --- a/tools/cli/installers/lib/ide/templates/combined/antigravity-workflow.md +++ b/tools/cli/installers/lib/ide/templates/combined/antigravity-workflow.md @@ -1,5 +1,5 @@ --- -description: {{description}} +description: "{{description}}" --- IT IS CRITICAL THAT YOU FOLLOW THIS COMMAND: LOAD the FULL {project-root}/{{bmadFolderName}}/{{path}}, READ its entire contents and follow its directions exactly! From 603780ee41d818ebc9c0158cd66166c01de22744 Mon Sep 17 00:00:00 2001 From: Nikolai Zhirinas <75691177+n-zhi@users.noreply.github.com> Date: Thu, 5 Mar 2026 16:02:23 +0200 Subject: [PATCH 3/3] fix(installer): restore name field and use double quotes for Antigravity templates The 'name' field is supported in Antigravity workflows. The previous loading issues were caused by single quotes wrapping the YAML frontmatter values, not the presence of the field itself. This update synchronizes Antigravity templates with default ones while ensuring double quotes are used for 'name' and 'description' fields. --- .../installers/lib/ide/templates/combined/antigravity-agent.md | 1 + .../installers/lib/ide/templates/combined/antigravity-task.md | 1 + .../installers/lib/ide/templates/combined/antigravity-tool.md | 1 + .../lib/ide/templates/combined/antigravity-workflow-yaml.md | 1 + .../lib/ide/templates/combined/antigravity-workflow.md | 1 + 5 files changed, 5 insertions(+) diff --git a/tools/cli/installers/lib/ide/templates/combined/antigravity-agent.md b/tools/cli/installers/lib/ide/templates/combined/antigravity-agent.md index d921bbe4b..f1e2437a1 100644 --- a/tools/cli/installers/lib/ide/templates/combined/antigravity-agent.md +++ b/tools/cli/installers/lib/ide/templates/combined/antigravity-agent.md @@ -1,4 +1,5 @@ --- +name: "{{name}}" description: "{{description}}" --- diff --git a/tools/cli/installers/lib/ide/templates/combined/antigravity-task.md b/tools/cli/installers/lib/ide/templates/combined/antigravity-task.md index 07bae149c..30920e834 100644 --- a/tools/cli/installers/lib/ide/templates/combined/antigravity-task.md +++ b/tools/cli/installers/lib/ide/templates/combined/antigravity-task.md @@ -1,4 +1,5 @@ --- +name: "{{name}}" description: "{{description}}" --- diff --git a/tools/cli/installers/lib/ide/templates/combined/antigravity-tool.md b/tools/cli/installers/lib/ide/templates/combined/antigravity-tool.md index 191cf97ae..2c97bad9f 100644 --- a/tools/cli/installers/lib/ide/templates/combined/antigravity-tool.md +++ b/tools/cli/installers/lib/ide/templates/combined/antigravity-tool.md @@ -1,4 +1,5 @@ --- +name: "{{name}}" description: "{{description}}" --- diff --git a/tools/cli/installers/lib/ide/templates/combined/antigravity-workflow-yaml.md b/tools/cli/installers/lib/ide/templates/combined/antigravity-workflow-yaml.md index 863419d9c..8c1317653 100644 --- a/tools/cli/installers/lib/ide/templates/combined/antigravity-workflow-yaml.md +++ b/tools/cli/installers/lib/ide/templates/combined/antigravity-workflow-yaml.md @@ -1,4 +1,5 @@ --- +name: "{{name}}" description: "{{description}}" --- diff --git a/tools/cli/installers/lib/ide/templates/combined/antigravity-workflow.md b/tools/cli/installers/lib/ide/templates/combined/antigravity-workflow.md index 1b42261a3..3f2df4c42 100644 --- a/tools/cli/installers/lib/ide/templates/combined/antigravity-workflow.md +++ b/tools/cli/installers/lib/ide/templates/combined/antigravity-workflow.md @@ -1,4 +1,5 @@ --- +name: "{{name}}" description: "{{description}}" ---