From b696e9a2463bbe2346366b449f016cc53a10251a Mon Sep 17 00:00:00 2001 From: Nikolas de Hor Date: Wed, 11 Mar 2026 19:40:24 -0300 Subject: [PATCH] fix: use double quotes in skill templates to prevent YAML parse errors Default skill templates used single-quoted YAML values for name and description fields. When descriptions contain apostrophes (e.g., "agent's workflow"), the generated YAML frontmatter would be invalid, causing parse failures in IDEs like Antigravity. Switches templates to double quotes and escapes any double quotes in the description during template rendering. Fixes #1744 --- tools/cli/installers/lib/ide/_config-driven.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/cli/installers/lib/ide/_config-driven.js b/tools/cli/installers/lib/ide/_config-driven.js index 714aa752b..c62ff3834 100644 --- a/tools/cli/installers/lib/ide/_config-driven.js +++ b/tools/cli/installers/lib/ide/_config-driven.js @@ -403,8 +403,8 @@ class ConfigDrivenIdeSetup extends BaseIdeSetup { getDefaultTemplate(artifactType) { if (artifactType === 'agent') { return `--- -name: '{{name}}' -description: '{{description}}' +name: "{{name}}" +description: "{{description}}" disable-model-invocation: true --- @@ -418,8 +418,8 @@ You must fully embody this agent's persona and follow all activation instruction `; } return `--- -name: '{{name}}' -description: '{{description}}' +name: "{{name}}" +description: "{{description}}" --- # {{name}} @@ -468,7 +468,7 @@ LOAD and execute from: {project-root}/{{bmadFolderName}}/{{path}} .replaceAll('{{name}}', artifact.name || '') .replaceAll('{{module}}', artifact.module || 'core') .replaceAll('{{path}}', pathToUse) - .replaceAll('{{description}}', artifact.description || `${artifact.name} ${artifact.type || ''}`) + .replaceAll('{{description}}', (artifact.description || `${artifact.name} ${artifact.type || ''}`).replaceAll('"', String.raw`\"`)) .replaceAll('{{workflow_path}}', pathToUse); return rendered;