bundle agents front matter optimized, along with the orchestrators activation instructions;

This commit is contained in:
Brian Madison
2025-10-03 21:46:53 -05:00
parent 5ac18cb55c
commit 9e8c7f3503
86 changed files with 289 additions and 3227 deletions

View File

@@ -15,7 +15,7 @@
<handler type="workflow">
When menu item has: workflow="workflow-id"
1. Find workflow node by id in this bundle (e.g., &lt;workflow id="workflow-id"&gt;)
2. CRITICAL: Always LOAD bmad/core/tasks/workflow.md if referenced
2. CRITICAL: Always LOAD bmad/core/tasks/workflow.xml if referenced
3. Execute the workflow content precisely following all steps
4. Save outputs after completing EACH workflow step (never batch)
5. If workflow id is "todo", inform user it hasn't been implemented yet
@@ -48,7 +48,7 @@
<handler type="validate-workflow">
When menu item has: validate-workflow="workflow-id"
1. MUST LOAD bmad/core/tasks/validate-workflow.md
1. MUST LOAD bmad/core/tasks/validate-workflow.xml
2. Execute all validation instructions from that file
3. Check workflow's validation property for schema
4. Identify file to validate or ask user to specify

View File

@@ -1,9 +1,4 @@
<!-- BMAD-CORE™ Advanced Elicitation Task v2.0 (LLM-Native) -->
# Advanced Elicitation v2.0 (LLM-Native)
```xml
<task id="bmad/core/tasks/adv-elicit.md" name="Advanced Elicitation">
<task id="bmad/core/tasks/adv-elicit.xml" name="Advanced Elicitation">
<llm critical="true">
<i>MANDATORY: Execute ALL steps in the flow section IN EXACT ORDER</i>
<i>DO NOT skip steps or change the sequence</i>
@@ -66,7 +61,8 @@
<i>Apply the method creatively to the current section content being enhanced</i>
<i>Display the enhanced version showing what the method revealed or improved</i>
<i>CRITICAL: Ask the user if they would like to apply the changes to the doc (y/n/other) and HALT to await response.</i>
<i>CRITICAL: ONLY if Yes, apply the changes. IF No, discard your memory of the proposed changes. If any other reply, try best to follow the instructions given by the user.</i>
<i>CRITICAL: ONLY if Yes, apply the changes. IF No, discard your memory of the proposed changes. If any other reply, try best to
follow the instructions given by the user.</i>
<i>CRITICAL: Re-present the same 1-5,r,x prompt to allow additional elicitations</i>
</case>
<case n="r">
@@ -105,5 +101,4 @@
<i> 3. Return to the prompt for additional elicitations or completion</i>
</step>
</flow>
</task>
```
</task>

View File

@@ -1,8 +1,3 @@
<!-- BMAD-CORE™ Index Documentation Task -->
# Index Docs v1.1
```xml
<task id="bmad/core/tasks/index-docs" name="Index Docs" webskip="true">
<llm critical="true">
<i>MANDATORY: Execute ALL steps in the flow section IN EXACT ORDER</i>
@@ -65,5 +60,4 @@
<i>Sort alphabetically within groups</i>
<i>Skip hidden files (starting with .) unless specified</i>
</validation>
</task>
```
</task>

View File

@@ -1,57 +0,0 @@
<!-- BMAD-CORE™ Document Sharding Task -->
# Shard Doc v1.1
```xml
<task id="bmad/core/tasks/shard-doc.md" name="Shard Doc">
<llm critical="true">
<i>MANDATORY: Execute ALL steps in the flow section IN EXACT ORDER</i>
<i>DO NOT skip steps or change the sequence</i>
<i>HALT immediately when halt-conditions are met</i>
<i>Each action xml tag within step xml tag is a REQUIRED action to complete that step</i>
<i>Sections outside flow (validation, output, critical-context) provide essential context - review and apply throughout execution</i>
</llm>
<flow>
<step n="1" title="Check for Tool">
<i>First check if md-tree command is available</i>
</step>
<step n="2" title="Install if Needed">
<i>If not available, ask user permission to install: npm install -g @kayvan/markdown-tree-parser</i>
</step>
<step n="3" title="Shard Document">
<i>Use the explode command to split the document</i>
</step>
</flow>
<usage>
<commands>
# Install the tool (if needed)
npm install -g @kayvan/markdown-tree-parser
# Shard a document
md-tree explode [source-document] [destination-folder]
# Examples
md-tree explode docs/prd.md docs/prd
md-tree explode docs/architecture.md docs/architecture
</commands>
</usage>
<halt-conditions critical="true">
<i>HALT if md-tree command fails and user declines installation</i>
<i>HALT if source document does not exist at specified path</i>
<i>HALT if destination folder exists and user does not confirm overwrite</i>
</halt-conditions>
<validation>
<title>Error Handling</title>
<desc>If the md-tree command fails:</desc>
<i>1. Check if the tool is installed globally</i>
<i>2. Ask user permission to install it</i>
<i>3. Retry the operation after installation</i>
</validation>
</task>
```

View File

@@ -1,7 +1,4 @@
# Validate Workflow
```xml
<task id="bmad/core/tasks/validate-workflow.md" name="Validate Workflow Output">
<task id="bmad/core/tasks/validate-workflow.xml" name="Validate Workflow Output">
<objective>Run a checklist against a document with thorough analysis and produce a validation report</objective>
<inputs>
@@ -88,5 +85,4 @@
<rule>Save report to document's folder automatically</rule>
<rule>HALT after presenting summary - wait for user</rule>
</critical-rules>
</task>
```
</task>

View File

@@ -1,9 +1,4 @@
<!-- BMAD Method v6 Workflow Execution Task (Simplified) -->
# Workflow
```xml
<task id="bmad/core/tasks/workflow.md" name="Execute Workflow">
<task id="bmad/core/tasks/workflow.xml" name="Execute Workflow">
<objective>Execute given workflow by loading its configuration, following instructions, and producing output</objective>
<llm critical="true">
@@ -63,12 +58,12 @@
<action>Process step instructions (markdown or XML tags)</action>
<action>Replace {{variables}} with values (ask user if unknown)</action>
<execute-tags>
<tag><action> → Perform the action</tag>
<tag><check> → Evaluate condition</tag>
<tag><ask> → Prompt user and WAIT for response</tag>
<tag><invoke-workflow> → Execute another workflow with given inputs</tag>
<tag><invoke-task> → Execute specified task</tag>
<tag><goto step="x"> → Jump to specified step</tag>
<tag>action xml tag → Perform the action</tag>
<tag>check xml tag → Evaluate condition</tag>
<tag>ask xml tag → Prompt user and WAIT for response</tag>
<tag>invoke-workflow xml tag → Execute another workflow with given inputs</tag>
<tag>invoke-task xml tag → Execute specified task</tag>
<tag>goto step="x" → Jump to specified step</tag>
</execute-tags>
</substep>
@@ -82,8 +77,9 @@
</if>
<if tag="elicit-required">
<mandate critical="true">YOU MUST READ the file at {project-root}/bmad/core/tasks/adv-elicit.md using Read tool BEFORE presenting any elicitation menu</mandate>
<action>Load and run task {project-root}/bmad/core/tasks/adv-elicit.md with current context</action>
<mandate critical="true">YOU MUST READ the file at {project-root}/bmad/core/tasks/adv-elicit.xml using Read tool BEFORE presenting
any elicitation menu</mandate>
<action>Load and run task {project-root}/bmad/core/tasks/adv-elicit.xml with current context</action>
<action>Show elicitation menu 5 relevant options (list 1-5 options, Continue [c] or Reshuffle [r])</action>
<mandate>HALT and WAIT for user selection</mandate>
</if>
@@ -137,5 +133,4 @@
<mandate>You MUST Follow instructions exactly as written and maintain conversation context between steps</mandate>
<mandate>If confused, re-read this task, the workflow yaml, and any yaml indicated files</mandate>
</llm>
</task>
```
</task>

View File

@@ -1,6 +1,6 @@
# Party Mode - Multi-Agent Discussion Instructions
<critical>The workflow execution engine is governed by: {project_root}/bmad/core/tasks/workflow.md</critical>
<critical>The workflow execution engine is governed by: {project_root}/bmad/core/tasks/workflow.xml</critical>
<critical>This workflow orchestrates group discussions between all installed BMAD agents</critical>
<workflow>