refactor: consolidate OpenCode templates and add support for tasks, tools, and workflows (#1556)
- Move opencode/body.md to combined/opencode-agent.md with frontmatter
- Add combined templates for tasks, tools, and workflows (both .md and .yaml)
- Replace hardcoded _bmad path with {{bmadFolderName}} variable
- Remove split/opencode/ templates (header.md, body.md)
- Add .gitkeep to preserve empty split/ directory
This commit is contained in:
parent
7c0e5d5e1d
commit
f7b5f03800
|
|
@ -1,7 +1,12 @@
|
||||||
|
---
|
||||||
|
mode: primary
|
||||||
|
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.
|
You must fully embody this agent's persona and follow all activation instructions exactly as specified. NEVER break character until given an exit command.
|
||||||
|
|
||||||
<agent-activation CRITICAL="TRUE">
|
<agent-activation CRITICAL="TRUE">
|
||||||
1. LOAD the FULL agent file from {project-root}/_bmad/{{path}}
|
1. LOAD the FULL agent file from {project-root}/{{bmadFolderName}}/{{path}}
|
||||||
2. READ its entire contents - this contains the complete agent persona, menu, and instructions
|
2. READ its entire contents - this contains the complete agent persona, menu, and instructions
|
||||||
3. FOLLOW every step in the <activation> section precisely
|
3. FOLLOW every step in the <activation> section precisely
|
||||||
4. DISPLAY the welcome/greeting as instructed
|
4. DISPLAY the welcome/greeting as instructed
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
---
|
||||||
|
description: '{{description}}'
|
||||||
|
---
|
||||||
|
|
||||||
|
Execute the BMAD '{{name}}' task.
|
||||||
|
|
||||||
|
TASK INSTRUCTIONS:
|
||||||
|
1. LOAD the task file from {project-root}/{{bmadFolderName}}/{{path}}
|
||||||
|
2. READ its entire contents
|
||||||
|
3. FOLLOW every instruction precisely as specified
|
||||||
|
|
||||||
|
TASK FILE: {project-root}/{{bmadFolderName}}/{{path}}
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
---
|
||||||
|
description: '{{description}}'
|
||||||
|
---
|
||||||
|
|
||||||
|
Execute the BMAD '{{name}}' tool.
|
||||||
|
|
||||||
|
TOOL INSTRUCTIONS:
|
||||||
|
1. LOAD the tool file from {project-root}/{{bmadFolderName}}/{{path}}
|
||||||
|
2. READ its entire contents
|
||||||
|
3. FOLLOW every instruction precisely as specified
|
||||||
|
|
||||||
|
TOOL FILE: {project-root}/{{bmadFolderName}}/{{path}}
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
---
|
||||||
|
description: '{{description}}'
|
||||||
|
---
|
||||||
|
|
||||||
|
Execute the BMAD '{{name}}' workflow.
|
||||||
|
|
||||||
|
CRITICAL: You must load and follow the workflow definition exactly.
|
||||||
|
|
||||||
|
WORKFLOW INSTRUCTIONS:
|
||||||
|
1. LOAD the workflow file from {project-root}/{{bmadFolderName}}/{{path}}
|
||||||
|
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}}
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
---
|
||||||
|
description: '{{description}}'
|
||||||
|
---
|
||||||
|
|
||||||
|
Execute the BMAD '{{name}}' workflow.
|
||||||
|
|
||||||
|
CRITICAL: You must load and follow the workflow definition exactly.
|
||||||
|
|
||||||
|
WORKFLOW INSTRUCTIONS:
|
||||||
|
1. LOAD the workflow file from {project-root}/{{bmadFolderName}}/{{path}}
|
||||||
|
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}}
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
---
|
|
||||||
name: '{{name}}'
|
|
||||||
description: '{{description}}'
|
|
||||||
---
|
|
||||||
Loading…
Reference in New Issue