docs: add comments explaining hardcoded bmm/config.yaml in prompts
Clarify that bmm/config.yaml is safe to hardcode in generated prompt content because these prompts are only created when bmm module data (bmad-help.csv, agent artifacts) exists. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
7ead66576c
commit
2db8d7f428
|
|
@ -269,6 +269,8 @@ You must fully embody this agent's persona and follow all activation instruction
|
||||||
*/
|
*/
|
||||||
createWorkflowPromptContent(entry, workflowFile) {
|
createWorkflowPromptContent(entry, workflowFile) {
|
||||||
const description = this.escapeYamlSingleQuote(this.createPromptDescription(entry.name));
|
const description = this.escapeYamlSingleQuote(this.createPromptDescription(entry.name));
|
||||||
|
// bmm/config.yaml is safe to hardcode here: these prompts are only generated when
|
||||||
|
// bmad-help.csv exists (bmm module data), so bmm is guaranteed to be installed.
|
||||||
const configLine = '1. Load {project-root}/_bmad/bmm/config.yaml and store ALL fields as session variables';
|
const configLine = '1. Load {project-root}/_bmad/bmm/config.yaml and store ALL fields as session variables';
|
||||||
|
|
||||||
let body;
|
let body;
|
||||||
|
|
@ -395,6 +397,8 @@ tools: ['read', 'edit', 'search', 'execute']
|
||||||
const agentPath = artifact.agentPath || artifact.relativePath;
|
const agentPath = artifact.agentPath || artifact.relativePath;
|
||||||
const agentFilePath = `{project-root}/_bmad/${agentPath}`;
|
const agentFilePath = `{project-root}/_bmad/${agentPath}`;
|
||||||
|
|
||||||
|
// bmm/config.yaml is safe to hardcode: agent activators are only generated from
|
||||||
|
// bmm agent artifacts, so bmm is guaranteed to be installed.
|
||||||
return `---
|
return `---
|
||||||
description: '${safeDescription}'
|
description: '${safeDescription}'
|
||||||
agent: 'agent'
|
agent: 'agent'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue