Compare commits

...

2 Commits

Author SHA1 Message Date
Nikolas Hor 794c317dda
Merge b696e9a246 into be555aad8b 2026-03-18 16:09:53 -07:00
Nikolas de Hor b696e9a246 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
2026-03-11 19:40:24 -03:00
1 changed files with 5 additions and 5 deletions

View File

@ -406,8 +406,8 @@ class ConfigDrivenIdeSetup extends BaseIdeSetup {
getDefaultTemplate(artifactType) {
if (artifactType === 'agent') {
return `---
name: '{{name}}'
description: '{{description}}'
name: "{{name}}"
description: "{{description}}"
disable-model-invocation: true
---
@ -421,8 +421,8 @@ You must fully embody this agent's persona and follow all activation instruction
`;
}
return `---
name: '{{name}}'
description: '{{description}}'
name: "{{name}}"
description: "{{description}}"
---
# {{name}}
@ -471,7 +471,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;