bmad-method 4.25.1 → 4.27.0
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/.vscode/settings.json +2 -0
- package/CHANGELOG.md +22 -0
- package/README.md +29 -281
- package/bmad-core/agents/analyst.md +3 -1
- package/bmad-core/agents/bmad-master.md +5 -1
- package/bmad-core/agents/bmad-orchestrator.md +1 -1
- package/bmad-core/core-config.yaml +1 -1
- package/bmad-core/data/bmad-kb.md +74 -15
- package/bmad-core/data/brainstorming-techniques.md +36 -0
- package/bmad-core/data/elicitation-methods.md +134 -0
- package/bmad-core/tasks/advanced-elicitation.md +82 -57
- package/bmad-core/tasks/facilitate-brainstorming-session.md +136 -0
- package/bmad-core/templates/architecture-tmpl.md +23 -23
- package/bmad-core/templates/brainstorming-output-tmpl.md +149 -0
- package/bmad-core/templates/prd-tmpl.md +6 -6
- package/bmad-core/templates/prd-tmpl2.yaml +202 -0
- package/bmad-core/utils/plan-management.md +9 -13
- package/bmad-core/workflows/greenfield-service.yaml +1 -1
- package/common/tasks/create-doc.md +4 -4
- package/common/tasks/create-doc2.md +65 -0
- package/common/utils/bmad-doc-template.md +296 -0
- package/dist/agents/analyst.txt +481 -305
- package/dist/agents/architect.txt +60 -59
- package/dist/agents/bmad-master.txt +694 -399
- package/dist/agents/bmad-orchestrator.txt +197 -116
- package/dist/agents/dev.txt +18 -17
- package/dist/agents/pm.txt +47 -46
- package/dist/agents/po.txt +31 -30
- package/dist/agents/qa.txt +15 -14
- package/dist/agents/sm.txt +23 -22
- package/dist/agents/ux-expert.txt +29 -28
- package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.txt +33 -32
- package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.txt +19 -18
- package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.txt +21 -20
- package/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +385 -297
- package/dist/expansion-packs/bmad-creator-tools/agents/bmad-the-creator.txt +103 -77
- package/dist/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.txt +29 -28
- package/dist/teams/team-all.txt +610 -438
- package/dist/teams/team-fullstack.txt +597 -425
- package/dist/teams/team-ide-minimal.txt +238 -157
- package/dist/teams/team-no-ui.txt +583 -411
- package/docs/agentic-tools/github-copilot-guide.md +29 -9
- package/docs/bmad-workflow-guide.md +2 -2
- package/expansion-packs/bmad-2d-phaser-game-dev/config.yaml +1 -1
- package/expansion-packs/bmad-2d-phaser-game-dev/tasks/create-game-story.md +2 -2
- package/expansion-packs/bmad-creator-tools/config.yaml +1 -1
- package/expansion-packs/bmad-infrastructure-devops/config.yaml +1 -1
- package/package.json +1 -1
- package/tools/builders/web-builder.js +117 -22
- package/tools/installer/config/install.config.yaml +2 -2
- package/tools/installer/lib/ide-setup.js +2 -2
- package/tools/installer/package.json +1 -1
- package/tools/lib/dependency-resolver.js +3 -3
- package/tools/md-assets/web-agent-startup-instructions.md +10 -10
- package/bmad-core/tasks/brainstorming-techniques.md +0 -238
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
## Requirements
|
|
27
27
|
|
|
28
|
-
[[LLM: Draft the list of functional and non functional requirements under the two child sections, and immediately execute tasks
|
|
28
|
+
[[LLM: Draft the list of functional and non functional requirements under the two child sections, and immediately execute {root}/tasks/advanced-elicitation.md display]]
|
|
29
29
|
|
|
30
30
|
### Functional
|
|
31
31
|
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
3. Clearly let the user know where assumptions were made
|
|
49
49
|
4. Ask targeted questions for unclear/missing elements or areas needing more specification
|
|
50
50
|
5. This is NOT detailed UI spec - focus on product vision and user goals
|
|
51
|
-
6. After section completion, immediately apply `tasks
|
|
51
|
+
6. After section completion, immediately apply `{root}/tasks/advanced-elicitation.md` protocol]]
|
|
52
52
|
|
|
53
53
|
### Overall UX Vision
|
|
54
54
|
|
|
@@ -90,12 +90,12 @@
|
|
|
90
90
|
|
|
91
91
|
[[LLM: Gather technical decisions that will guide the Architect. Steps:
|
|
92
92
|
|
|
93
|
-
1. Check if `data
|
|
93
|
+
1. Check if `{root}/data/technical-preferences.yaml` or an attached `technical-preferences` file exists - use it to pre-populate choices
|
|
94
94
|
2. Ask user about: languages, frameworks, starter templates, libraries, APIs, deployment targets
|
|
95
95
|
3. For unknowns, offer guidance based on project goals and MVP scope
|
|
96
96
|
4. Document ALL technical choices with rationale (why this choice fits the project)
|
|
97
97
|
5. These become constraints for the Architect - be specific and complete
|
|
98
|
-
6. After section completion, apply `tasks
|
|
98
|
+
6. After section completion, apply `{root}/tasks/advanced-elicitation.md` protocol.]]
|
|
99
99
|
|
|
100
100
|
### Repository Structure: { Monorepo, Polyrepo, etc...}
|
|
101
101
|
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
|
|
114
114
|
## Epics
|
|
115
115
|
|
|
116
|
-
[[LLM: First, present a high-level list of all epics for user approval, the epic_list and immediately execute tasks
|
|
116
|
+
[[LLM: First, present a high-level list of all epics for user approval, the epic_list and immediately execute {root}/tasks/advanced-elicitation.md display. Each epic should have a title and a short (1 sentence) goal statement. This allows the user to review the overall structure before diving into details.
|
|
117
117
|
|
|
118
118
|
CRITICAL: Epics MUST be logically sequential following agile best practices:
|
|
119
119
|
|
|
@@ -139,7 +139,7 @@ CRITICAL: Epics MUST be logically sequential following agile best practices:
|
|
|
139
139
|
|
|
140
140
|
@{/example}
|
|
141
141
|
|
|
142
|
-
[[LLM: After the epic list is approved, present each `epic_details` with all its stories and acceptance criteria as a complete review unit and immediately execute tasks
|
|
142
|
+
[[LLM: After the epic list is approved, present each `epic_details` with all its stories and acceptance criteria as a complete review unit and immediately execute {root}/tasks/advanced-elicitation.md display, before moving on to the next epic.]]
|
|
143
143
|
|
|
144
144
|
<<REPEAT: epic_details>>
|
|
145
145
|
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
template:
|
|
2
|
+
id: prd-template-v2
|
|
3
|
+
name: Product Requirements Document
|
|
4
|
+
version: 2.0
|
|
5
|
+
output:
|
|
6
|
+
format: markdown
|
|
7
|
+
filename: docs/prd.md
|
|
8
|
+
title: "{{project_name}} Product Requirements Document (PRD)"
|
|
9
|
+
|
|
10
|
+
workflow:
|
|
11
|
+
mode: interactive
|
|
12
|
+
elicitation: advanced-elicitation
|
|
13
|
+
|
|
14
|
+
sections:
|
|
15
|
+
- id: goals-context
|
|
16
|
+
title: Goals and Background Context
|
|
17
|
+
instruction: |
|
|
18
|
+
Ask if Project Brief document is available. If NO Project Brief exists, STRONGLY recommend creating one first using project-brief-tmpl (it provides essential foundation: problem statement, target users, success metrics, MVP scope, constraints). If user insists on PRD without brief, gather this information during Goals section. If Project Brief exists, review and use it to populate Goals (bullet list of desired outcomes) and Background Context (1-2 paragraphs on what this solves and why) so we can determine what is and is not in scope for PRD mvp. Either way this is critical to determine the requirements. Include Change Log table.
|
|
19
|
+
sections:
|
|
20
|
+
- id: goals
|
|
21
|
+
title: Goals
|
|
22
|
+
type: bullet-list
|
|
23
|
+
instruction: Bullet list of 1 line desired outcomes the PRD will deliver if successful - user and project desires
|
|
24
|
+
- id: background
|
|
25
|
+
title: Background Context
|
|
26
|
+
type: paragraphs
|
|
27
|
+
instruction: 1-2 short paragraphs summarizing the background context, such as what we learned in the brief without being redundant with the goals, what and why this solves a problem, what the current landscape or need is
|
|
28
|
+
- id: changelog
|
|
29
|
+
title: Change Log
|
|
30
|
+
type: table
|
|
31
|
+
columns: [Date, Version, Description, Author]
|
|
32
|
+
instruction: Track document versions and changes
|
|
33
|
+
|
|
34
|
+
- id: requirements
|
|
35
|
+
title: Requirements
|
|
36
|
+
instruction: Draft the list of functional and non functional requirements under the two child sections
|
|
37
|
+
elicit: true
|
|
38
|
+
sections:
|
|
39
|
+
- id: functional
|
|
40
|
+
title: Functional
|
|
41
|
+
type: numbered-list
|
|
42
|
+
prefix: FR
|
|
43
|
+
instruction: Each Requirement will be a bullet markdown and an identifier sequence starting with FR
|
|
44
|
+
examples:
|
|
45
|
+
- "FR6: The Todo List uses AI to detect and warn against potentially duplicate todo items that are worded differently."
|
|
46
|
+
- id: non-functional
|
|
47
|
+
title: Non Functional
|
|
48
|
+
type: numbered-list
|
|
49
|
+
prefix: NFR
|
|
50
|
+
instruction: Each Requirement will be a bullet markdown and an identifier sequence starting with NFR
|
|
51
|
+
examples:
|
|
52
|
+
- "NFR1: AWS service usage must aim to stay within free-tier limits where feasible."
|
|
53
|
+
|
|
54
|
+
- id: ui-goals
|
|
55
|
+
title: User Interface Design Goals
|
|
56
|
+
condition: PRD has UX/UI requirements
|
|
57
|
+
instruction: |
|
|
58
|
+
Capture high-level UI/UX vision to guide Design Architect and to inform story creation. Steps:
|
|
59
|
+
|
|
60
|
+
1. Pre-fill all subsections with educated guesses based on project context
|
|
61
|
+
2. Present the complete rendered section to user
|
|
62
|
+
3. Clearly let the user know where assumptions were made
|
|
63
|
+
4. Ask targeted questions for unclear/missing elements or areas needing more specification
|
|
64
|
+
5. This is NOT detailed UI spec - focus on product vision and user goals
|
|
65
|
+
elicit: true
|
|
66
|
+
choices:
|
|
67
|
+
accessibility: [None, WCAG AA, WCAG AAA]
|
|
68
|
+
platforms: [Web Responsive, Mobile Only, Desktop Only, Cross-Platform]
|
|
69
|
+
sections:
|
|
70
|
+
- id: ux-vision
|
|
71
|
+
title: Overall UX Vision
|
|
72
|
+
- id: interaction-paradigms
|
|
73
|
+
title: Key Interaction Paradigms
|
|
74
|
+
- id: core-screens
|
|
75
|
+
title: Core Screens and Views
|
|
76
|
+
instruction: From a product perspective, what are the most critical screens or views necessary to deliver the the PRD values and goals? This is meant to be Conceptual High Level to Drive Rough Epic or User Stories
|
|
77
|
+
examples:
|
|
78
|
+
- "Login Screen"
|
|
79
|
+
- "Main Dashboard"
|
|
80
|
+
- "Item Detail Page"
|
|
81
|
+
- "Settings Page"
|
|
82
|
+
- id: accessibility
|
|
83
|
+
title: "Accessibility: {None|WCAG AA|WCAG AAA|Custom Requirements}"
|
|
84
|
+
- id: branding
|
|
85
|
+
title: Branding
|
|
86
|
+
instruction: Any known branding elements or style guides that must be incorporated?
|
|
87
|
+
examples:
|
|
88
|
+
- "Replicate the look and feel of early 1900s black and white cinema, including animated effects replicating film damage or projector glitches during page or state transitions."
|
|
89
|
+
- "Attached is the full color pallet and tokens for our corporate branding."
|
|
90
|
+
- id: target-platforms
|
|
91
|
+
title: "Target Device and Platforms: {Web Responsive|Mobile Only|Desktop Only|Cross-Platform}"
|
|
92
|
+
examples:
|
|
93
|
+
- "Web Responsive, and all mobile platforms"
|
|
94
|
+
- "iPhone Only"
|
|
95
|
+
- "ASCII Windows Desktop"
|
|
96
|
+
|
|
97
|
+
- id: technical-assumptions
|
|
98
|
+
title: Technical Assumptions
|
|
99
|
+
instruction: |
|
|
100
|
+
Gather technical decisions that will guide the Architect. Steps:
|
|
101
|
+
|
|
102
|
+
1. Check if {root}/data/technical-preferences.yaml or an attached technical-preferences file exists - use it to pre-populate choices
|
|
103
|
+
2. Ask user about: languages, frameworks, starter templates, libraries, APIs, deployment targets
|
|
104
|
+
3. For unknowns, offer guidance based on project goals and MVP scope
|
|
105
|
+
4. Document ALL technical choices with rationale (why this choice fits the project)
|
|
106
|
+
5. These become constraints for the Architect - be specific and complete
|
|
107
|
+
elicit: true
|
|
108
|
+
choices:
|
|
109
|
+
repository: [Monorepo, Polyrepo]
|
|
110
|
+
architecture: [Monolith, Microservices, Serverless]
|
|
111
|
+
testing: [Unit Only, Unit + Integration, Full Testing Pyramid]
|
|
112
|
+
sections:
|
|
113
|
+
- id: repository-structure
|
|
114
|
+
title: "Repository Structure: {Monorepo|Polyrepo|Multi-repo}"
|
|
115
|
+
- id: service-architecture
|
|
116
|
+
title: Service Architecture
|
|
117
|
+
instruction: "CRITICAL DECISION - Document the high-level service architecture (e.g., Monolith, Microservices, Serverless functions within a Monorepo)."
|
|
118
|
+
- id: testing-requirements
|
|
119
|
+
title: Testing Requirements
|
|
120
|
+
instruction: "CRITICAL DECISION - Document the testing requirements, unit only, integration, e2e, manual, need for manual testing convenience methods)."
|
|
121
|
+
- id: additional-assumptions
|
|
122
|
+
title: Additional Technical Assumptions and Requests
|
|
123
|
+
instruction: Throughout the entire process of drafting this document, if any other technical assumptions are raised or discovered appropriate for the architect, add them here as additional bulleted items
|
|
124
|
+
|
|
125
|
+
- id: epic-list
|
|
126
|
+
title: Epic List
|
|
127
|
+
instruction: |
|
|
128
|
+
Present a high-level list of all epics for user approval. Each epic should have a title and a short (1 sentence) goal statement. This allows the user to review the overall structure before diving into details.
|
|
129
|
+
|
|
130
|
+
CRITICAL: Epics MUST be logically sequential following agile best practices:
|
|
131
|
+
|
|
132
|
+
- Each epic should deliver a significant, end-to-end, fully deployable increment of testable functionality
|
|
133
|
+
- Epic 1 must establish foundational project infrastructure (app setup, Git, CI/CD, core services) unless we are adding new functionality to an existing app, while also delivering an initial piece of functionality, even as simple as a health-check route or display of a simple canary page - remember this when we produce the stories for the first epic!
|
|
134
|
+
- Each subsequent epic builds upon previous epics' functionality delivering major blocks of functionality that provide tangible value to users or business when deployed
|
|
135
|
+
- Not every project needs multiple epics, an epic needs to deliver value. For example, an API completed can deliver value even if a UI is not complete and planned for a separate epic.
|
|
136
|
+
- Err on the side of less epics, but let the user know your rationale and offer options for splitting them if it seems some are too large or focused on disparate things.
|
|
137
|
+
- Cross Cutting Concerns should flow through epics and stories and not be final stories. For example, adding a logging framework as a last story of an epic, or at the end of a project as a final epic or story would be terrible as we would not have logging from the beginning.
|
|
138
|
+
elicit: true
|
|
139
|
+
examples:
|
|
140
|
+
- "Epic 1: Foundation & Core Infrastructure: Establish project setup, authentication, and basic user management"
|
|
141
|
+
- "Epic 2: Core Business Entities: Create and manage primary domain objects with CRUD operations"
|
|
142
|
+
- "Epic 3: User Workflows & Interactions: Enable key user journeys and business processes"
|
|
143
|
+
- "Epic 4: Reporting & Analytics: Provide insights and data visualization for users"
|
|
144
|
+
|
|
145
|
+
- id: epic-details
|
|
146
|
+
title: Epic {{epic_number}} {{epic_title}}
|
|
147
|
+
repeatable: true
|
|
148
|
+
instruction: |
|
|
149
|
+
After the epic list is approved, present each epic with all its stories and acceptance criteria as a complete review unit.
|
|
150
|
+
|
|
151
|
+
For each epic provide expanded goal (2-3 sentences describing the objective and value all the stories will achieve).
|
|
152
|
+
|
|
153
|
+
CRITICAL STORY SEQUENCING REQUIREMENTS:
|
|
154
|
+
|
|
155
|
+
- Stories within each epic MUST be logically sequential
|
|
156
|
+
- Each story should be a "vertical slice" delivering complete functionality aside from early enabler stories for project foundation
|
|
157
|
+
- No story should depend on work from a later story or epic
|
|
158
|
+
- Identify and note any direct prerequisite stories
|
|
159
|
+
- Focus on "what" and "why" not "how" (leave technical implementation to Architect) yet be precise enough to support a logical sequential order of operations from story to story.
|
|
160
|
+
- Ensure each story delivers clear user or business value, try to avoid enablers and build them into stories that deliver value.
|
|
161
|
+
- Size stories for AI agent execution: Each story must be completable by a single AI agent in one focused session without context overflow
|
|
162
|
+
- Think "junior developer working for 2-4 hours" - stories must be small, focused, and self-contained
|
|
163
|
+
- If a story seems complex, break it down further as long as it can deliver a vertical slice
|
|
164
|
+
elicit: true
|
|
165
|
+
template: "{{epic_goal}}"
|
|
166
|
+
sections:
|
|
167
|
+
- id: story
|
|
168
|
+
title: Story {{epic_number}}.{{story_number}} {{story_title}}
|
|
169
|
+
repeatable: true
|
|
170
|
+
template: |
|
|
171
|
+
As a {{user_type}},
|
|
172
|
+
I want {{action}},
|
|
173
|
+
so that {{benefit}}.
|
|
174
|
+
sections:
|
|
175
|
+
- id: acceptance-criteria
|
|
176
|
+
title: Acceptance Criteria
|
|
177
|
+
type: numbered-list
|
|
178
|
+
item_template: "{{criterion_number}}: {{criteria}}"
|
|
179
|
+
repeatable: true
|
|
180
|
+
instruction: |
|
|
181
|
+
Define clear, comprehensive, and testable acceptance criteria that:
|
|
182
|
+
|
|
183
|
+
- Precisely define what "done" means from a functional perspective
|
|
184
|
+
- Are unambiguous and serve as basis for verification
|
|
185
|
+
- Include any critical non-functional requirements from the PRD
|
|
186
|
+
- Consider local testability for backend/data components
|
|
187
|
+
- Specify UI/UX requirements and framework adherence where applicable
|
|
188
|
+
- Avoid cross-cutting concerns that should be in other stories or PRD sections
|
|
189
|
+
|
|
190
|
+
- id: checklist-results
|
|
191
|
+
title: Checklist Results Report
|
|
192
|
+
instruction: Before running the checklist and drafting the prompts, offer to output the full updated PRD. If outputting it, confirm with the user that you will be proceeding to run the checklist and produce the report. Once the user confirms, execute the pm-checklist and populate the results in this section.
|
|
193
|
+
|
|
194
|
+
- id: next-steps
|
|
195
|
+
title: Next Steps
|
|
196
|
+
sections:
|
|
197
|
+
- id: design-architect-prompt
|
|
198
|
+
title: Design Architect Prompt
|
|
199
|
+
instruction: This section will contain the prompt for the Design Architect, keep it short and to the point to initiate create architecture mode using this document as input.
|
|
200
|
+
- id: architect-prompt
|
|
201
|
+
title: Architect Prompt
|
|
202
|
+
instruction: This section will contain the prompt for the Architect, keep it short and to the point to initiate create architecture mode using this document as input.
|
|
@@ -8,14 +8,10 @@ Provides utilities for agents and tasks to interact with workflow plans, check p
|
|
|
8
8
|
|
|
9
9
|
### 1. Check Plan Existence
|
|
10
10
|
|
|
11
|
-
[[LLM: When any agent starts or task begins, check if a workflow plan exists]]
|
|
12
|
-
|
|
13
|
-
```
|
|
14
11
|
Check for workflow plan:
|
|
12
|
+
|
|
15
13
|
1. Look for docs/workflow-plan.md (default location)
|
|
16
|
-
2.
|
|
17
|
-
3. Return plan status (exists/not exists)
|
|
18
|
-
```
|
|
14
|
+
2. Return plan status to user (exists/not exists) - if not exists then HALT.
|
|
19
15
|
|
|
20
16
|
### 2. Parse Plan Status
|
|
21
17
|
|
|
@@ -56,7 +52,7 @@ Check for workflow plan:
|
|
|
56
52
|
|
|
57
53
|
**Warning Templates:**
|
|
58
54
|
|
|
59
|
-
```
|
|
55
|
+
```text
|
|
60
56
|
SEQUENCE WARNING:
|
|
61
57
|
The workflow plan shows you should complete "{expected_step}" next.
|
|
62
58
|
You're attempting to: "{requested_action}"
|
|
@@ -90,7 +86,7 @@ In flexible mode: Allow with confirmation
|
|
|
90
86
|
|
|
91
87
|
**For Agents (startup sequence)**:
|
|
92
88
|
|
|
93
|
-
```
|
|
89
|
+
```text
|
|
94
90
|
1. Check if plan exists using this utility
|
|
95
91
|
2. If exists:
|
|
96
92
|
- Parse current status
|
|
@@ -101,7 +97,7 @@ In flexible mode: Allow with confirmation
|
|
|
101
97
|
|
|
102
98
|
**For Tasks (pre-execution)**:
|
|
103
99
|
|
|
104
|
-
```
|
|
100
|
+
```text
|
|
105
101
|
1. Check if plan exists
|
|
106
102
|
2. If exists:
|
|
107
103
|
- Verify this task aligns with plan
|
|
@@ -117,7 +113,7 @@ In flexible mode: Allow with confirmation
|
|
|
117
113
|
|
|
118
114
|
[[LLM: Standard format for showing plan status]]
|
|
119
115
|
|
|
120
|
-
```
|
|
116
|
+
```text
|
|
121
117
|
📋 Workflow Plan Status
|
|
122
118
|
━━━━━━━━━━━━━━━━━━━━
|
|
123
119
|
Workflow: {workflow_name}
|
|
@@ -170,7 +166,7 @@ If user wants to abandon plan:
|
|
|
170
166
|
|
|
171
167
|
### Example 1: Agent Startup Check
|
|
172
168
|
|
|
173
|
-
```
|
|
169
|
+
```text
|
|
174
170
|
BMad Master starting...
|
|
175
171
|
|
|
176
172
|
[Check for plan]
|
|
@@ -184,7 +180,7 @@ Use *agent pm to switch, or *plan-status to see full progress.
|
|
|
184
180
|
|
|
185
181
|
### Example 2: Task Sequence Warning
|
|
186
182
|
|
|
187
|
-
```
|
|
183
|
+
```text
|
|
188
184
|
User: *task create-next-story
|
|
189
185
|
|
|
190
186
|
[Plan check triggered]
|
|
@@ -200,7 +196,7 @@ Would you like to:
|
|
|
200
196
|
|
|
201
197
|
### Example 3: Automatic Plan Update
|
|
202
198
|
|
|
203
|
-
```
|
|
199
|
+
```text
|
|
204
200
|
[After completing create-doc task for PRD]
|
|
205
201
|
|
|
206
202
|
✅ Plan Updated: Marked "Create PRD" as complete
|
|
@@ -17,7 +17,7 @@ Generate documents from templates by EXECUTING (not just reading) embedded instr
|
|
|
17
17
|
|
|
18
18
|
[[LLM: Check if plan tracking is enabled in core-config.yaml]]
|
|
19
19
|
|
|
20
|
-
- If `workflow.trackProgress: true`, check for active plan using utils
|
|
20
|
+
- If `workflow.trackProgress: true`, check for active plan using {root}/utils/plan-management.md
|
|
21
21
|
- If plan exists and this document creation is part of the plan:
|
|
22
22
|
- Verify this is the expected next step
|
|
23
23
|
- If out of sequence and `enforceSequence: true`, warn user and halt without user override
|
|
@@ -26,7 +26,7 @@ Generate documents from templates by EXECUTING (not just reading) embedded instr
|
|
|
26
26
|
|
|
27
27
|
### 1. Identify Template
|
|
28
28
|
|
|
29
|
-
- Load from `templates
|
|
29
|
+
- Load from `{root}/templates/*.md` or `{root}/templates directory`
|
|
30
30
|
- Agent-specific templates are listed in agent's dependencies
|
|
31
31
|
- If agent has `templates: [prd-tmpl, architecture-tmpl]` for example, then offer to create "PRD" and "Architecture" documents
|
|
32
32
|
|
|
@@ -44,14 +44,14 @@ Generate documents from templates by EXECUTING (not just reading) embedded instr
|
|
|
44
44
|
|
|
45
45
|
### 4. Key Execution Patterns
|
|
46
46
|
|
|
47
|
-
**When you see:** `[[LLM: Draft X and immediately execute tasks
|
|
47
|
+
**When you see:** `[[LLM: Draft X and immediately execute {root}/tasks/advanced-elicitation.md]]`
|
|
48
48
|
|
|
49
49
|
- Draft the content
|
|
50
50
|
- Present it to user
|
|
51
51
|
- IMMEDIATELY execute the task
|
|
52
52
|
- Wait for completion before continuing
|
|
53
53
|
|
|
54
|
-
**When you see:** `[[LLM: After section completion, apply tasks
|
|
54
|
+
**When you see:** `[[LLM: After section completion, apply {root}/tasks/Y.md]]`
|
|
55
55
|
|
|
56
56
|
- Finish the section
|
|
57
57
|
- STOP and execute the task
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# Create Document from Template (YAML Driven)
|
|
2
|
+
|
|
3
|
+
## CRITICAL: Mandatory Elicitation Format
|
|
4
|
+
|
|
5
|
+
**When `elicit: true`, ALWAYS use this exact format:**
|
|
6
|
+
|
|
7
|
+
1. Present section content
|
|
8
|
+
2. Provide detailed rationale (explain trade-offs, assumptions, decisions made)
|
|
9
|
+
3. Present numbered options 1-9:
|
|
10
|
+
- **Option 1:** Always "Proceed to next section"
|
|
11
|
+
- **Options 2-9:** Select 8 methods from data/elicitation-methods
|
|
12
|
+
- End with: "Select 1-9 or just type your question/feedback:"
|
|
13
|
+
|
|
14
|
+
**NEVER ask yes/no questions or use any other format.**
|
|
15
|
+
|
|
16
|
+
## Processing Flow
|
|
17
|
+
|
|
18
|
+
1. **Parse YAML template** - Load template metadata and sections
|
|
19
|
+
2. **Set preferences** - Show current mode (Interactive), confirm output file
|
|
20
|
+
3. **Process each section:**
|
|
21
|
+
- Skip if condition unmet
|
|
22
|
+
- Draft content using section instruction
|
|
23
|
+
- Present content + detailed rationale
|
|
24
|
+
- **IF elicit: true** → MANDATORY 1-9 options format
|
|
25
|
+
- Save to file if possible
|
|
26
|
+
4. **Continue until complete**
|
|
27
|
+
|
|
28
|
+
## Detailed Rationale Requirements
|
|
29
|
+
|
|
30
|
+
When presenting section content, ALWAYS include rationale that explains:
|
|
31
|
+
|
|
32
|
+
- Trade-offs and choices made (what was chosen over alternatives and why)
|
|
33
|
+
- Key assumptions made during drafting
|
|
34
|
+
- Interesting or questionable decisions that need user attention
|
|
35
|
+
- Areas that might need validation
|
|
36
|
+
|
|
37
|
+
## Elicitation Results Flow
|
|
38
|
+
|
|
39
|
+
After user selects elicitation method (2-9):
|
|
40
|
+
|
|
41
|
+
1. Execute method from data/elicitation-methods
|
|
42
|
+
2. Present results with insights
|
|
43
|
+
3. Offer options:
|
|
44
|
+
- **1. Apply changes and update section**
|
|
45
|
+
- **2. Return to elicitation menu**
|
|
46
|
+
- **3. Ask any questions or engage further with this elicitation**
|
|
47
|
+
|
|
48
|
+
## YOLO Mode
|
|
49
|
+
|
|
50
|
+
User can type `#yolo` to toggle to YOLO mode (process all sections at once).
|
|
51
|
+
|
|
52
|
+
## CRITICAL REMINDERS
|
|
53
|
+
|
|
54
|
+
**❌ NEVER:**
|
|
55
|
+
|
|
56
|
+
- Ask yes/no questions for elicitation
|
|
57
|
+
- Use any format other than 1-9 numbered options
|
|
58
|
+
- Create new elicitation methods
|
|
59
|
+
|
|
60
|
+
**✅ ALWAYS:**
|
|
61
|
+
|
|
62
|
+
- Use exact 1-9 format when elicit: true
|
|
63
|
+
- Select options 2-9 from data/elicitation-methods only
|
|
64
|
+
- Provide detailed rationale explaining decisions
|
|
65
|
+
- End with "Select 1-9 or just type your question/feedback:"
|