bmad-method 4.21.2 → 4.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +5 -3
- package/bmad-core/core-config.yml +1 -1
- package/dist/agents/analyst.txt +45 -48
- package/dist/agents/architect.txt +45 -48
- package/dist/agents/bmad-master.txt +45 -48
- package/dist/agents/bmad-orchestrator.txt +45 -48
- package/dist/agents/pm.txt +45 -48
- package/dist/agents/ux-expert.txt +45 -48
- package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.txt +45 -48
- package/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +45 -48
- package/dist/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.txt +45 -48
- package/dist/teams/team-all.txt +45 -48
- package/dist/teams/team-fullstack.txt +45 -48
- package/dist/teams/team-ide-minimal.txt +45 -48
- package/dist/teams/team-no-ui.txt +45 -48
- package/expansion-packs/bmad-2d-phaser-game-dev/config.yml +1 -1
- package/expansion-packs/bmad-creator-tools/config.yml +1 -1
- package/expansion-packs/bmad-infrastructure-devops/config.yml +1 -1
- package/package.json +1 -1
- package/tools/installer/package.json +1 -1
package/dist/agents/pm.txt
CHANGED
|
@@ -104,76 +104,73 @@ dependencies:
|
|
|
104
104
|
|
|
105
105
|
## Purpose
|
|
106
106
|
|
|
107
|
-
|
|
107
|
+
Generate documents from templates by EXECUTING (not just reading) embedded instructions from the perspective of the selected agent persona.
|
|
108
108
|
|
|
109
|
-
##
|
|
110
|
-
|
|
111
|
-
### 1. Identify Template and Context
|
|
112
|
-
|
|
113
|
-
- Determine which template to use (user-provided or list available for selection to user)
|
|
109
|
+
## CRITICAL RULES
|
|
114
110
|
|
|
115
|
-
|
|
111
|
+
1. **Templates are PROGRAMS** - Execute every [[LLM:]] instruction exactly as written
|
|
112
|
+
2. **NEVER show markup** - Hide all [[LLM:]], {{placeholders}}, @{examples}, and template syntax
|
|
113
|
+
3. **STOP and EXECUTE** - When you see "apply tasks#" or "execute tasks#", STOP and run that task immediately
|
|
114
|
+
4. **WAIT for user input** - At review points and after elicitation tasks
|
|
116
115
|
|
|
117
|
-
|
|
118
|
-
dependencies:
|
|
119
|
-
templates: - prd-tmpl - architecture-tmpl
|
|
120
|
-
@{/example}
|
|
116
|
+
## Execution Flow
|
|
121
117
|
|
|
122
|
-
|
|
118
|
+
### 1. Identify Template
|
|
123
119
|
|
|
124
|
-
-
|
|
125
|
-
-
|
|
120
|
+
- Load from `templates#*` or `{root}/templates directory`
|
|
121
|
+
- Agent-specific templates are listed in agent's dependencies
|
|
122
|
+
- If agent has `templates: [prd-tmpl, architecture-tmpl]`, offer to create "PRD" and "Architecture" documents
|
|
126
123
|
|
|
127
|
-
### 2.
|
|
124
|
+
### 2. Ask Interaction Mode
|
|
128
125
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
- **Incremental:** Work through chunks of the document.
|
|
132
|
-
- **YOLO Mode:** Draft complete document making reasonable assumptions in one shot. (Can be entered also after starting incremental by just typing /yolo)
|
|
126
|
+
> 1. **Incremental** - Section by section with reviews
|
|
127
|
+
> 2. **YOLO Mode** - Complete draft then review (user can type `/yolo` anytime to switch)
|
|
133
128
|
|
|
134
129
|
### 3. Execute Template
|
|
135
130
|
|
|
136
|
-
-
|
|
137
|
-
-
|
|
138
|
-
- Process
|
|
131
|
+
- Replace {{placeholders}} with real content
|
|
132
|
+
- Execute [[LLM:]] instructions as you encounter them
|
|
133
|
+
- Process <<REPEAT>> loops and ^^CONDITIONS^^
|
|
134
|
+
- Use @{examples} for guidance but never output them
|
|
139
135
|
|
|
140
|
-
### 4.
|
|
136
|
+
### 4. Key Execution Patterns
|
|
141
137
|
|
|
142
|
-
|
|
138
|
+
**When you see:** `[[LLM: Draft X and immediately execute tasks#advanced-elicitation]]`
|
|
143
139
|
|
|
144
|
-
-
|
|
145
|
-
-
|
|
146
|
-
-
|
|
147
|
-
-
|
|
148
|
-
- Use @{examples} for guidance but never output them
|
|
140
|
+
- Draft the content
|
|
141
|
+
- Present it to user
|
|
142
|
+
- IMMEDIATELY execute the task
|
|
143
|
+
- Wait for completion before continuing
|
|
149
144
|
|
|
150
|
-
|
|
145
|
+
**When you see:** `[[LLM: After section completion, apply tasks#Y]]`
|
|
151
146
|
|
|
152
|
-
-
|
|
153
|
-
-
|
|
154
|
-
-
|
|
155
|
-
- Incorporate user feedback and iterate as needed
|
|
147
|
+
- Finish the section
|
|
148
|
+
- STOP and execute the task
|
|
149
|
+
- Wait for user input
|
|
156
150
|
|
|
157
|
-
###
|
|
151
|
+
### 5. Validation & Final Presentation
|
|
158
152
|
|
|
159
|
-
|
|
153
|
+
- Run any specified checklists
|
|
154
|
+
- Present clean, formatted content only
|
|
155
|
+
- No truncation or summarization
|
|
156
|
+
- Begin directly with content (no preamble)
|
|
157
|
+
- Include any handoff prompts from template
|
|
160
158
|
|
|
161
|
-
|
|
162
|
-
- Document completion status for each item
|
|
163
|
-
- Address any deficiencies found
|
|
164
|
-
- Present validation summary to user
|
|
159
|
+
## Common Mistakes to Avoid
|
|
165
160
|
|
|
166
|
-
|
|
161
|
+
❌ Skipping elicitation tasks
|
|
162
|
+
❌ Showing template markup to users
|
|
163
|
+
❌ Continuing past STOP signals
|
|
164
|
+
❌ Combining multiple review points
|
|
167
165
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
- Include any handoff prompts specified in template
|
|
166
|
+
✅ Execute ALL instructions in sequence
|
|
167
|
+
✅ Present only clean, formatted content
|
|
168
|
+
✅ Stop at every elicitation point
|
|
169
|
+
✅ Wait for user confirmation when instructed
|
|
173
170
|
|
|
174
|
-
##
|
|
171
|
+
## Remember
|
|
175
172
|
|
|
176
|
-
|
|
173
|
+
Templates contain precise instructions for a reason. Follow them exactly to ensure document quality and completeness.
|
|
177
174
|
==================== END: tasks#create-doc ====================
|
|
178
175
|
|
|
179
176
|
==================== START: tasks#correct-course ====================
|
|
@@ -464,76 +464,73 @@ Present these numbered options to the user:
|
|
|
464
464
|
|
|
465
465
|
## Purpose
|
|
466
466
|
|
|
467
|
-
|
|
467
|
+
Generate documents from templates by EXECUTING (not just reading) embedded instructions from the perspective of the selected agent persona.
|
|
468
468
|
|
|
469
|
-
##
|
|
470
|
-
|
|
471
|
-
### 1. Identify Template and Context
|
|
472
|
-
|
|
473
|
-
- Determine which template to use (user-provided or list available for selection to user)
|
|
469
|
+
## CRITICAL RULES
|
|
474
470
|
|
|
475
|
-
|
|
471
|
+
1. **Templates are PROGRAMS** - Execute every [[LLM:]] instruction exactly as written
|
|
472
|
+
2. **NEVER show markup** - Hide all [[LLM:]], {{placeholders}}, @{examples}, and template syntax
|
|
473
|
+
3. **STOP and EXECUTE** - When you see "apply tasks#" or "execute tasks#", STOP and run that task immediately
|
|
474
|
+
4. **WAIT for user input** - At review points and after elicitation tasks
|
|
476
475
|
|
|
477
|
-
|
|
478
|
-
dependencies:
|
|
479
|
-
templates: - prd-tmpl - architecture-tmpl
|
|
480
|
-
@{/example}
|
|
476
|
+
## Execution Flow
|
|
481
477
|
|
|
482
|
-
|
|
478
|
+
### 1. Identify Template
|
|
483
479
|
|
|
484
|
-
-
|
|
485
|
-
-
|
|
480
|
+
- Load from `templates#*` or `{root}/templates directory`
|
|
481
|
+
- Agent-specific templates are listed in agent's dependencies
|
|
482
|
+
- If agent has `templates: [prd-tmpl, architecture-tmpl]`, offer to create "PRD" and "Architecture" documents
|
|
486
483
|
|
|
487
|
-
### 2.
|
|
484
|
+
### 2. Ask Interaction Mode
|
|
488
485
|
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
- **Incremental:** Work through chunks of the document.
|
|
492
|
-
- **YOLO Mode:** Draft complete document making reasonable assumptions in one shot. (Can be entered also after starting incremental by just typing /yolo)
|
|
486
|
+
> 1. **Incremental** - Section by section with reviews
|
|
487
|
+
> 2. **YOLO Mode** - Complete draft then review (user can type `/yolo` anytime to switch)
|
|
493
488
|
|
|
494
489
|
### 3. Execute Template
|
|
495
490
|
|
|
496
|
-
-
|
|
497
|
-
-
|
|
498
|
-
- Process
|
|
491
|
+
- Replace {{placeholders}} with real content
|
|
492
|
+
- Execute [[LLM:]] instructions as you encounter them
|
|
493
|
+
- Process <<REPEAT>> loops and ^^CONDITIONS^^
|
|
494
|
+
- Use @{examples} for guidance but never output them
|
|
499
495
|
|
|
500
|
-
### 4.
|
|
496
|
+
### 4. Key Execution Patterns
|
|
501
497
|
|
|
502
|
-
|
|
498
|
+
**When you see:** `[[LLM: Draft X and immediately execute tasks#advanced-elicitation]]`
|
|
503
499
|
|
|
504
|
-
-
|
|
505
|
-
-
|
|
506
|
-
-
|
|
507
|
-
-
|
|
508
|
-
- Use @{examples} for guidance but never output them
|
|
500
|
+
- Draft the content
|
|
501
|
+
- Present it to user
|
|
502
|
+
- IMMEDIATELY execute the task
|
|
503
|
+
- Wait for completion before continuing
|
|
509
504
|
|
|
510
|
-
|
|
505
|
+
**When you see:** `[[LLM: After section completion, apply tasks#Y]]`
|
|
511
506
|
|
|
512
|
-
-
|
|
513
|
-
-
|
|
514
|
-
-
|
|
515
|
-
- Incorporate user feedback and iterate as needed
|
|
507
|
+
- Finish the section
|
|
508
|
+
- STOP and execute the task
|
|
509
|
+
- Wait for user input
|
|
516
510
|
|
|
517
|
-
###
|
|
511
|
+
### 5. Validation & Final Presentation
|
|
518
512
|
|
|
519
|
-
|
|
513
|
+
- Run any specified checklists
|
|
514
|
+
- Present clean, formatted content only
|
|
515
|
+
- No truncation or summarization
|
|
516
|
+
- Begin directly with content (no preamble)
|
|
517
|
+
- Include any handoff prompts from template
|
|
520
518
|
|
|
521
|
-
|
|
522
|
-
- Document completion status for each item
|
|
523
|
-
- Address any deficiencies found
|
|
524
|
-
- Present validation summary to user
|
|
519
|
+
## Common Mistakes to Avoid
|
|
525
520
|
|
|
526
|
-
|
|
521
|
+
❌ Skipping elicitation tasks
|
|
522
|
+
❌ Showing template markup to users
|
|
523
|
+
❌ Continuing past STOP signals
|
|
524
|
+
❌ Combining multiple review points
|
|
527
525
|
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
- Include any handoff prompts specified in template
|
|
526
|
+
✅ Execute ALL instructions in sequence
|
|
527
|
+
✅ Present only clean, formatted content
|
|
528
|
+
✅ Stop at every elicitation point
|
|
529
|
+
✅ Wait for user confirmation when instructed
|
|
533
530
|
|
|
534
|
-
##
|
|
531
|
+
## Remember
|
|
535
532
|
|
|
536
|
-
|
|
533
|
+
Templates contain precise instructions for a reason. Follow them exactly to ensure document quality and completeness.
|
|
537
534
|
==================== END: tasks#create-doc ====================
|
|
538
535
|
|
|
539
536
|
==================== START: tasks#execute-checklist ====================
|
|
@@ -104,76 +104,73 @@ dependencies:
|
|
|
104
104
|
|
|
105
105
|
## Purpose
|
|
106
106
|
|
|
107
|
-
|
|
107
|
+
Generate documents from templates by EXECUTING (not just reading) embedded instructions from the perspective of the selected agent persona.
|
|
108
108
|
|
|
109
|
-
##
|
|
110
|
-
|
|
111
|
-
### 1. Identify Template and Context
|
|
112
|
-
|
|
113
|
-
- Determine which template to use (user-provided or list available for selection to user)
|
|
109
|
+
## CRITICAL RULES
|
|
114
110
|
|
|
115
|
-
|
|
111
|
+
1. **Templates are PROGRAMS** - Execute every [[LLM:]] instruction exactly as written
|
|
112
|
+
2. **NEVER show markup** - Hide all [[LLM:]], {{placeholders}}, @{examples}, and template syntax
|
|
113
|
+
3. **STOP and EXECUTE** - When you see "apply tasks#" or "execute tasks#", STOP and run that task immediately
|
|
114
|
+
4. **WAIT for user input** - At review points and after elicitation tasks
|
|
116
115
|
|
|
117
|
-
|
|
118
|
-
dependencies:
|
|
119
|
-
templates: - prd-tmpl - architecture-tmpl
|
|
120
|
-
@{/example}
|
|
116
|
+
## Execution Flow
|
|
121
117
|
|
|
122
|
-
|
|
118
|
+
### 1. Identify Template
|
|
123
119
|
|
|
124
|
-
-
|
|
125
|
-
-
|
|
120
|
+
- Load from `templates#*` or `{root}/templates directory`
|
|
121
|
+
- Agent-specific templates are listed in agent's dependencies
|
|
122
|
+
- If agent has `templates: [prd-tmpl, architecture-tmpl]`, offer to create "PRD" and "Architecture" documents
|
|
126
123
|
|
|
127
|
-
### 2.
|
|
124
|
+
### 2. Ask Interaction Mode
|
|
128
125
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
- **Incremental:** Work through chunks of the document.
|
|
132
|
-
- **YOLO Mode:** Draft complete document making reasonable assumptions in one shot. (Can be entered also after starting incremental by just typing /yolo)
|
|
126
|
+
> 1. **Incremental** - Section by section with reviews
|
|
127
|
+
> 2. **YOLO Mode** - Complete draft then review (user can type `/yolo` anytime to switch)
|
|
133
128
|
|
|
134
129
|
### 3. Execute Template
|
|
135
130
|
|
|
136
|
-
-
|
|
137
|
-
-
|
|
138
|
-
- Process
|
|
131
|
+
- Replace {{placeholders}} with real content
|
|
132
|
+
- Execute [[LLM:]] instructions as you encounter them
|
|
133
|
+
- Process <<REPEAT>> loops and ^^CONDITIONS^^
|
|
134
|
+
- Use @{examples} for guidance but never output them
|
|
139
135
|
|
|
140
|
-
### 4.
|
|
136
|
+
### 4. Key Execution Patterns
|
|
141
137
|
|
|
142
|
-
|
|
138
|
+
**When you see:** `[[LLM: Draft X and immediately execute tasks#advanced-elicitation]]`
|
|
143
139
|
|
|
144
|
-
-
|
|
145
|
-
-
|
|
146
|
-
-
|
|
147
|
-
-
|
|
148
|
-
- Use @{examples} for guidance but never output them
|
|
140
|
+
- Draft the content
|
|
141
|
+
- Present it to user
|
|
142
|
+
- IMMEDIATELY execute the task
|
|
143
|
+
- Wait for completion before continuing
|
|
149
144
|
|
|
150
|
-
|
|
145
|
+
**When you see:** `[[LLM: After section completion, apply tasks#Y]]`
|
|
151
146
|
|
|
152
|
-
-
|
|
153
|
-
-
|
|
154
|
-
-
|
|
155
|
-
- Incorporate user feedback and iterate as needed
|
|
147
|
+
- Finish the section
|
|
148
|
+
- STOP and execute the task
|
|
149
|
+
- Wait for user input
|
|
156
150
|
|
|
157
|
-
###
|
|
151
|
+
### 5. Validation & Final Presentation
|
|
158
152
|
|
|
159
|
-
|
|
153
|
+
- Run any specified checklists
|
|
154
|
+
- Present clean, formatted content only
|
|
155
|
+
- No truncation or summarization
|
|
156
|
+
- Begin directly with content (no preamble)
|
|
157
|
+
- Include any handoff prompts from template
|
|
160
158
|
|
|
161
|
-
|
|
162
|
-
- Document completion status for each item
|
|
163
|
-
- Address any deficiencies found
|
|
164
|
-
- Present validation summary to user
|
|
159
|
+
## Common Mistakes to Avoid
|
|
165
160
|
|
|
166
|
-
|
|
161
|
+
❌ Skipping elicitation tasks
|
|
162
|
+
❌ Showing template markup to users
|
|
163
|
+
❌ Continuing past STOP signals
|
|
164
|
+
❌ Combining multiple review points
|
|
167
165
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
- Include any handoff prompts specified in template
|
|
166
|
+
✅ Execute ALL instructions in sequence
|
|
167
|
+
✅ Present only clean, formatted content
|
|
168
|
+
✅ Stop at every elicitation point
|
|
169
|
+
✅ Wait for user confirmation when instructed
|
|
173
170
|
|
|
174
|
-
##
|
|
171
|
+
## Remember
|
|
175
172
|
|
|
176
|
-
|
|
173
|
+
Templates contain precise instructions for a reason. Follow them exactly to ensure document quality and completeness.
|
|
177
174
|
==================== END: tasks#create-doc ====================
|
|
178
175
|
|
|
179
176
|
==================== START: tasks#execute-checklist ====================
|
|
@@ -977,76 +977,73 @@ Present these numbered options to the user:
|
|
|
977
977
|
|
|
978
978
|
## Purpose
|
|
979
979
|
|
|
980
|
-
|
|
980
|
+
Generate documents from templates by EXECUTING (not just reading) embedded instructions from the perspective of the selected agent persona.
|
|
981
981
|
|
|
982
|
-
##
|
|
983
|
-
|
|
984
|
-
### 1. Identify Template and Context
|
|
985
|
-
|
|
986
|
-
- Determine which template to use (user-provided or list available for selection to user)
|
|
982
|
+
## CRITICAL RULES
|
|
987
983
|
|
|
988
|
-
|
|
984
|
+
1. **Templates are PROGRAMS** - Execute every [[LLM:]] instruction exactly as written
|
|
985
|
+
2. **NEVER show markup** - Hide all [[LLM:]], {{placeholders}}, @{examples}, and template syntax
|
|
986
|
+
3. **STOP and EXECUTE** - When you see "apply tasks#" or "execute tasks#", STOP and run that task immediately
|
|
987
|
+
4. **WAIT for user input** - At review points and after elicitation tasks
|
|
989
988
|
|
|
990
|
-
|
|
991
|
-
dependencies:
|
|
992
|
-
templates: - prd-tmpl - architecture-tmpl
|
|
993
|
-
@{/example}
|
|
994
|
-
|
|
995
|
-
You would offer to create "PRD" and "Architecture" documents when the user asks what you can help with.
|
|
989
|
+
## Execution Flow
|
|
996
990
|
|
|
997
|
-
|
|
998
|
-
- Understand the document purpose and target audience
|
|
991
|
+
### 1. Identify Template
|
|
999
992
|
|
|
1000
|
-
|
|
993
|
+
- Load from `templates#*` or `{root}/templates directory`
|
|
994
|
+
- Agent-specific templates are listed in agent's dependencies
|
|
995
|
+
- If agent has `templates: [prd-tmpl, architecture-tmpl]`, offer to create "PRD" and "Architecture" documents
|
|
1001
996
|
|
|
1002
|
-
|
|
997
|
+
### 2. Ask Interaction Mode
|
|
1003
998
|
|
|
1004
|
-
|
|
1005
|
-
|
|
999
|
+
> 1. **Incremental** - Section by section with reviews
|
|
1000
|
+
> 2. **YOLO Mode** - Complete draft then review (user can type `/yolo` anytime to switch)
|
|
1006
1001
|
|
|
1007
1002
|
### 3. Execute Template
|
|
1008
1003
|
|
|
1009
|
-
-
|
|
1010
|
-
-
|
|
1011
|
-
- Process
|
|
1004
|
+
- Replace {{placeholders}} with real content
|
|
1005
|
+
- Execute [[LLM:]] instructions as you encounter them
|
|
1006
|
+
- Process <<REPEAT>> loops and ^^CONDITIONS^^
|
|
1007
|
+
- Use @{examples} for guidance but never output them
|
|
1012
1008
|
|
|
1013
|
-
### 4.
|
|
1009
|
+
### 4. Key Execution Patterns
|
|
1014
1010
|
|
|
1015
|
-
|
|
1011
|
+
**When you see:** `[[LLM: Draft X and immediately execute tasks#advanced-elicitation]]`
|
|
1016
1012
|
|
|
1017
|
-
-
|
|
1018
|
-
-
|
|
1019
|
-
-
|
|
1020
|
-
-
|
|
1021
|
-
- Use @{examples} for guidance but never output them
|
|
1013
|
+
- Draft the content
|
|
1014
|
+
- Present it to user
|
|
1015
|
+
- IMMEDIATELY execute the task
|
|
1016
|
+
- Wait for completion before continuing
|
|
1022
1017
|
|
|
1023
|
-
|
|
1018
|
+
**When you see:** `[[LLM: After section completion, apply tasks#Y]]`
|
|
1024
1019
|
|
|
1025
|
-
-
|
|
1026
|
-
-
|
|
1027
|
-
-
|
|
1028
|
-
- Incorporate user feedback and iterate as needed
|
|
1020
|
+
- Finish the section
|
|
1021
|
+
- STOP and execute the task
|
|
1022
|
+
- Wait for user input
|
|
1029
1023
|
|
|
1030
|
-
###
|
|
1024
|
+
### 5. Validation & Final Presentation
|
|
1031
1025
|
|
|
1032
|
-
|
|
1026
|
+
- Run any specified checklists
|
|
1027
|
+
- Present clean, formatted content only
|
|
1028
|
+
- No truncation or summarization
|
|
1029
|
+
- Begin directly with content (no preamble)
|
|
1030
|
+
- Include any handoff prompts from template
|
|
1033
1031
|
|
|
1034
|
-
|
|
1035
|
-
- Document completion status for each item
|
|
1036
|
-
- Address any deficiencies found
|
|
1037
|
-
- Present validation summary to user
|
|
1032
|
+
## Common Mistakes to Avoid
|
|
1038
1033
|
|
|
1039
|
-
|
|
1034
|
+
❌ Skipping elicitation tasks
|
|
1035
|
+
❌ Showing template markup to users
|
|
1036
|
+
❌ Continuing past STOP signals
|
|
1037
|
+
❌ Combining multiple review points
|
|
1040
1038
|
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
- Include any handoff prompts specified in template
|
|
1039
|
+
✅ Execute ALL instructions in sequence
|
|
1040
|
+
✅ Present only clean, formatted content
|
|
1041
|
+
✅ Stop at every elicitation point
|
|
1042
|
+
✅ Wait for user confirmation when instructed
|
|
1046
1043
|
|
|
1047
|
-
##
|
|
1044
|
+
## Remember
|
|
1048
1045
|
|
|
1049
|
-
|
|
1046
|
+
Templates contain precise instructions for a reason. Follow them exactly to ensure document quality and completeness.
|
|
1050
1047
|
==================== END: tasks#create-doc ====================
|
|
1051
1048
|
|
|
1052
1049
|
==================== START: tasks#advanced-elicitation ====================
|
|
@@ -105,76 +105,73 @@ dependencies:
|
|
|
105
105
|
|
|
106
106
|
## Purpose
|
|
107
107
|
|
|
108
|
-
|
|
108
|
+
Generate documents from templates by EXECUTING (not just reading) embedded instructions from the perspective of the selected agent persona.
|
|
109
109
|
|
|
110
|
-
##
|
|
110
|
+
## CRITICAL RULES
|
|
111
111
|
|
|
112
|
-
|
|
112
|
+
1. **Templates are PROGRAMS** - Execute every [[LLM:]] instruction exactly as written
|
|
113
|
+
2. **NEVER show markup** - Hide all [[LLM:]], {{placeholders}}, @{examples}, and template syntax
|
|
114
|
+
3. **STOP and EXECUTE** - When you see "apply tasks#" or "execute tasks#", STOP and run that task immediately
|
|
115
|
+
4. **WAIT for user input** - At review points and after elicitation tasks
|
|
113
116
|
|
|
114
|
-
|
|
117
|
+
## Execution Flow
|
|
115
118
|
|
|
116
|
-
|
|
119
|
+
### 1. Identify Template
|
|
117
120
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
@{/example}
|
|
121
|
+
- Load from `templates#*` or `{root}/templates directory`
|
|
122
|
+
- Agent-specific templates are listed in agent's dependencies
|
|
123
|
+
- If agent has `templates: [prd-tmpl, architecture-tmpl]`, offer to create "PRD" and "Architecture" documents
|
|
122
124
|
|
|
123
|
-
|
|
125
|
+
### 2. Ask Interaction Mode
|
|
124
126
|
|
|
125
|
-
|
|
126
|
-
-
|
|
127
|
-
|
|
128
|
-
### 2. Determine Interaction Mode
|
|
129
|
-
|
|
130
|
-
Confirm with the user their preferred interaction style:
|
|
131
|
-
|
|
132
|
-
- **Incremental:** Work through chunks of the document.
|
|
133
|
-
- **YOLO Mode:** Draft complete document making reasonable assumptions in one shot. (Can be entered also after starting incremental by just typing /yolo)
|
|
127
|
+
> 1. **Incremental** - Section by section with reviews
|
|
128
|
+
> 2. **YOLO Mode** - Complete draft then review (user can type `/yolo` anytime to switch)
|
|
134
129
|
|
|
135
130
|
### 3. Execute Template
|
|
136
131
|
|
|
137
|
-
-
|
|
138
|
-
-
|
|
139
|
-
- Process
|
|
132
|
+
- Replace {{placeholders}} with real content
|
|
133
|
+
- Execute [[LLM:]] instructions as you encounter them
|
|
134
|
+
- Process <<REPEAT>> loops and ^^CONDITIONS^^
|
|
135
|
+
- Use @{examples} for guidance but never output them
|
|
140
136
|
|
|
141
|
-
### 4.
|
|
137
|
+
### 4. Key Execution Patterns
|
|
142
138
|
|
|
143
|
-
|
|
139
|
+
**When you see:** `[[LLM: Draft X and immediately execute tasks#advanced-elicitation]]`
|
|
144
140
|
|
|
145
|
-
-
|
|
146
|
-
-
|
|
147
|
-
-
|
|
148
|
-
-
|
|
149
|
-
- Use @{examples} for guidance but never output them
|
|
141
|
+
- Draft the content
|
|
142
|
+
- Present it to user
|
|
143
|
+
- IMMEDIATELY execute the task
|
|
144
|
+
- Wait for completion before continuing
|
|
150
145
|
|
|
151
|
-
|
|
146
|
+
**When you see:** `[[LLM: After section completion, apply tasks#Y]]`
|
|
152
147
|
|
|
153
|
-
-
|
|
154
|
-
-
|
|
155
|
-
-
|
|
156
|
-
- Incorporate user feedback and iterate as needed
|
|
148
|
+
- Finish the section
|
|
149
|
+
- STOP and execute the task
|
|
150
|
+
- Wait for user input
|
|
157
151
|
|
|
158
|
-
###
|
|
152
|
+
### 5. Validation & Final Presentation
|
|
159
153
|
|
|
160
|
-
|
|
154
|
+
- Run any specified checklists
|
|
155
|
+
- Present clean, formatted content only
|
|
156
|
+
- No truncation or summarization
|
|
157
|
+
- Begin directly with content (no preamble)
|
|
158
|
+
- Include any handoff prompts from template
|
|
161
159
|
|
|
162
|
-
|
|
163
|
-
- Document completion status for each item
|
|
164
|
-
- Address any deficiencies found
|
|
165
|
-
- Present validation summary to user
|
|
160
|
+
## Common Mistakes to Avoid
|
|
166
161
|
|
|
167
|
-
|
|
162
|
+
❌ Skipping elicitation tasks
|
|
163
|
+
❌ Showing template markup to users
|
|
164
|
+
❌ Continuing past STOP signals
|
|
165
|
+
❌ Combining multiple review points
|
|
168
166
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
- Include any handoff prompts specified in template
|
|
167
|
+
✅ Execute ALL instructions in sequence
|
|
168
|
+
✅ Present only clean, formatted content
|
|
169
|
+
✅ Stop at every elicitation point
|
|
170
|
+
✅ Wait for user confirmation when instructed
|
|
174
171
|
|
|
175
|
-
##
|
|
172
|
+
## Remember
|
|
176
173
|
|
|
177
|
-
|
|
174
|
+
Templates contain precise instructions for a reason. Follow them exactly to ensure document quality and completeness.
|
|
178
175
|
==================== END: tasks#create-doc ====================
|
|
179
176
|
|
|
180
177
|
==================== START: tasks#review-infrastructure ====================
|