bmad-method 6.2.3-next.3 → 6.2.3-next.30
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/.claude-plugin/marketplace.json +0 -4
- package/README.md +8 -9
- package/README_CN.md +1 -1
- package/README_VN.md +110 -0
- package/package.json +2 -1
- package/removals.txt +17 -0
- package/src/bmm-skills/1-analysis/bmad-agent-analyst/SKILL.md +7 -4
- package/src/bmm-skills/1-analysis/bmad-agent-tech-writer/SKILL.md +6 -4
- package/src/bmm-skills/1-analysis/bmad-document-project/workflow.md +8 -10
- package/src/bmm-skills/1-analysis/bmad-prfaq/SKILL.md +96 -0
- package/src/bmm-skills/1-analysis/bmad-prfaq/agents/artifact-analyzer.md +60 -0
- package/src/bmm-skills/1-analysis/bmad-prfaq/agents/web-researcher.md +49 -0
- package/src/bmm-skills/1-analysis/bmad-prfaq/assets/prfaq-template.md +62 -0
- package/src/bmm-skills/1-analysis/bmad-prfaq/bmad-manifest.json +16 -0
- package/src/bmm-skills/1-analysis/bmad-prfaq/references/customer-faq.md +55 -0
- package/src/bmm-skills/1-analysis/bmad-prfaq/references/internal-faq.md +51 -0
- package/src/bmm-skills/1-analysis/bmad-prfaq/references/press-release.md +60 -0
- package/src/bmm-skills/1-analysis/bmad-prfaq/references/verdict.md +79 -0
- package/src/bmm-skills/1-analysis/bmad-product-brief/SKILL.md +1 -6
- package/src/bmm-skills/1-analysis/bmad-product-brief/bmad-manifest.json +1 -1
- package/src/bmm-skills/1-analysis/research/bmad-domain-research/workflow.md +8 -6
- package/src/bmm-skills/1-analysis/research/bmad-market-research/workflow.md +8 -6
- package/src/bmm-skills/1-analysis/research/bmad-technical-research/workflow.md +8 -6
- package/src/bmm-skills/2-plan-workflows/bmad-agent-pm/SKILL.md +6 -4
- package/src/bmm-skills/2-plan-workflows/bmad-agent-ux-designer/SKILL.md +6 -4
- package/src/bmm-skills/2-plan-workflows/bmad-create-prd/workflow.md +8 -9
- package/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/steps/step-13-responsive-accessibility.md +1 -1
- package/src/bmm-skills/2-plan-workflows/bmad-create-ux-design/workflow.md +8 -9
- package/src/bmm-skills/2-plan-workflows/bmad-edit-prd/steps-e/step-e-01-discovery.md +1 -1
- package/src/bmm-skills/2-plan-workflows/bmad-edit-prd/steps-e/step-e-01b-legacy-conversion.md +1 -1
- package/src/bmm-skills/2-plan-workflows/bmad-edit-prd/steps-e/step-e-02-review.md +1 -1
- package/src/bmm-skills/2-plan-workflows/bmad-edit-prd/steps-e/step-e-03-edit.md +1 -1
- package/src/bmm-skills/2-plan-workflows/bmad-edit-prd/steps-e/step-e-04-complete.md +1 -3
- package/src/bmm-skills/2-plan-workflows/bmad-edit-prd/workflow.md +8 -9
- package/src/bmm-skills/2-plan-workflows/bmad-validate-prd/workflow.md +8 -9
- package/src/bmm-skills/3-solutioning/bmad-agent-architect/SKILL.md +6 -4
- package/src/bmm-skills/3-solutioning/bmad-check-implementation-readiness/steps/step-01-document-discovery.md +1 -1
- package/src/bmm-skills/3-solutioning/bmad-check-implementation-readiness/steps/step-02-prd-analysis.md +1 -1
- package/src/bmm-skills/3-solutioning/bmad-check-implementation-readiness/steps/step-03-epic-coverage-validation.md +1 -1
- package/src/bmm-skills/3-solutioning/bmad-check-implementation-readiness/workflow.md +9 -11
- package/src/bmm-skills/3-solutioning/bmad-create-architecture/workflow.md +8 -14
- package/src/bmm-skills/3-solutioning/bmad-create-epics-and-stories/workflow.md +10 -12
- package/src/bmm-skills/3-solutioning/bmad-generate-project-context/workflow.md +8 -12
- package/src/bmm-skills/4-implementation/bmad-agent-dev/SKILL.md +11 -4
- package/src/bmm-skills/4-implementation/bmad-checkpoint-preview/SKILL.md +29 -0
- package/src/bmm-skills/4-implementation/bmad-checkpoint-preview/generate-trail.md +38 -0
- package/src/bmm-skills/4-implementation/bmad-checkpoint-preview/step-01-orientation.md +105 -0
- package/src/bmm-skills/4-implementation/bmad-checkpoint-preview/step-02-walkthrough.md +89 -0
- package/src/bmm-skills/4-implementation/bmad-checkpoint-preview/step-03-detail-pass.md +106 -0
- package/src/bmm-skills/4-implementation/bmad-checkpoint-preview/step-04-testing.md +74 -0
- package/src/bmm-skills/4-implementation/bmad-checkpoint-preview/step-05-wrapup.md +24 -0
- package/src/bmm-skills/4-implementation/bmad-code-review/steps/step-01-gather-context.md +38 -15
- package/src/bmm-skills/4-implementation/bmad-correct-course/checklist.md +2 -2
- package/src/bmm-skills/4-implementation/bmad-correct-course/workflow.md +8 -8
- package/src/bmm-skills/4-implementation/bmad-qa-generate-e2e-tests/checklist.md +1 -1
- package/src/bmm-skills/4-implementation/bmad-quick-dev/spec-template.md +1 -1
- package/src/bmm-skills/4-implementation/bmad-quick-dev/step-01-clarify-and-route.md +20 -6
- package/src/bmm-skills/4-implementation/bmad-quick-dev/step-02-plan.md +20 -8
- package/src/bmm-skills/4-implementation/bmad-quick-dev/step-03-implement.md +2 -0
- package/src/bmm-skills/4-implementation/bmad-quick-dev/step-oneshot.md +16 -4
- package/src/bmm-skills/4-implementation/bmad-quick-dev/workflow.md +1 -5
- package/src/bmm-skills/4-implementation/bmad-retrospective/workflow.md +134 -134
- package/src/bmm-skills/4-implementation/bmad-sprint-planning/sprint-status-template.yaml +1 -1
- package/src/bmm-skills/4-implementation/bmad-sprint-planning/workflow.md +3 -3
- package/src/bmm-skills/4-implementation/bmad-sprint-status/workflow.md +2 -2
- package/src/bmm-skills/module-help.csv +4 -1
- package/src/core-skills/bmad-advanced-elicitation/SKILL.md +1 -2
- package/src/core-skills/bmad-distillator/SKILL.md +0 -1
- package/src/core-skills/bmad-distillator/resources/distillate-format-reference.md +9 -9
- package/src/core-skills/bmad-help/SKILL.md +4 -2
- package/src/core-skills/bmad-party-mode/SKILL.md +121 -2
- package/src/core-skills/module-help.csv +1 -0
- package/tools/installer/cli-utils.js +18 -9
- package/tools/installer/commands/install.js +0 -1
- package/tools/installer/core/existing-install.js +2 -8
- package/tools/installer/core/install-paths.js +0 -3
- package/tools/installer/core/installer.js +176 -464
- package/tools/installer/core/manifest-generator.js +4 -12
- package/tools/installer/core/manifest.js +82 -97
- package/tools/installer/ide/_config-driven.js +149 -38
- package/tools/installer/ide/platform-codes.yaml +6 -4
- package/tools/installer/ide/shared/skill-manifest.js +1 -16
- package/tools/installer/install-messages.yaml +19 -26
- package/tools/installer/modules/community-manager.js +377 -0
- package/tools/installer/modules/custom-module-manager.js +308 -0
- package/tools/installer/modules/external-manager.js +65 -49
- package/tools/installer/modules/official-modules.js +37 -65
- package/tools/installer/modules/registry-client.js +66 -0
- package/tools/installer/{external-official-modules.yaml → modules/registry-fallback.yaml} +3 -12
- package/tools/installer/ui.js +340 -672
- package/tools/platform-codes.yaml +6 -0
- package/src/bmm-skills/2-plan-workflows/create-prd/data/domain-complexity.csv +0 -15
- package/src/bmm-skills/2-plan-workflows/create-prd/data/project-types.csv +0 -11
- package/src/bmm-skills/2-plan-workflows/create-prd/steps-v/step-v-01-discovery.md +0 -224
- package/src/bmm-skills/2-plan-workflows/create-prd/steps-v/step-v-02-format-detection.md +0 -191
- package/src/bmm-skills/2-plan-workflows/create-prd/steps-v/step-v-02b-parity-check.md +0 -209
- package/src/bmm-skills/2-plan-workflows/create-prd/steps-v/step-v-03-density-validation.md +0 -174
- package/src/bmm-skills/2-plan-workflows/create-prd/steps-v/step-v-04-brief-coverage-validation.md +0 -214
- package/src/bmm-skills/2-plan-workflows/create-prd/steps-v/step-v-05-measurability-validation.md +0 -228
- package/src/bmm-skills/2-plan-workflows/create-prd/steps-v/step-v-06-traceability-validation.md +0 -217
- package/src/bmm-skills/2-plan-workflows/create-prd/steps-v/step-v-07-implementation-leakage-validation.md +0 -205
- package/src/bmm-skills/2-plan-workflows/create-prd/steps-v/step-v-08-domain-compliance-validation.md +0 -243
- package/src/bmm-skills/2-plan-workflows/create-prd/steps-v/step-v-09-project-type-validation.md +0 -263
- package/src/bmm-skills/2-plan-workflows/create-prd/steps-v/step-v-10-smart-validation.md +0 -209
- package/src/bmm-skills/2-plan-workflows/create-prd/steps-v/step-v-11-holistic-quality-validation.md +0 -264
- package/src/bmm-skills/2-plan-workflows/create-prd/steps-v/step-v-12-completeness-validation.md +0 -242
- package/src/bmm-skills/2-plan-workflows/create-prd/steps-v/step-v-13-report-complete.md +0 -232
- package/src/bmm-skills/2-plan-workflows/create-prd/workflow-validate-prd.md +0 -65
- package/src/bmm-skills/4-implementation/bmad-agent-qa/SKILL.md +0 -59
- package/src/bmm-skills/4-implementation/bmad-agent-qa/bmad-skill-manifest.yaml +0 -11
- package/src/bmm-skills/4-implementation/bmad-agent-quick-flow-solo-dev/SKILL.md +0 -51
- package/src/bmm-skills/4-implementation/bmad-agent-quick-flow-solo-dev/bmad-skill-manifest.yaml +0 -11
- package/src/bmm-skills/4-implementation/bmad-agent-sm/SKILL.md +0 -53
- package/src/bmm-skills/4-implementation/bmad-agent-sm/bmad-skill-manifest.yaml +0 -11
- package/src/core-skills/bmad-init/SKILL.md +0 -100
- package/src/core-skills/bmad-init/resources/core-module.yaml +0 -25
- package/src/core-skills/bmad-init/scripts/bmad_init.py +0 -624
- package/src/core-skills/bmad-init/scripts/tests/test_bmad_init.py +0 -393
- package/src/core-skills/bmad-party-mode/steps/step-01-agent-loading.md +0 -138
- package/src/core-skills/bmad-party-mode/steps/step-02-discussion-orchestration.md +0 -187
- package/src/core-skills/bmad-party-mode/steps/step-03-graceful-exit.md +0 -167
- package/src/core-skills/bmad-party-mode/workflow.md +0 -190
- package/tools/installer/core/custom-module-cache.js +0 -260
- package/tools/installer/custom-handler.js +0 -112
- package/tools/installer/modules/custom-modules.js +0 -197
- /package/src/bmm-skills/2-plan-workflows/{create-prd → bmad-edit-prd}/data/prd-purpose.md +0 -0
|
@@ -217,8 +217,8 @@
|
|
|
217
217
|
<check-item id="5.5">
|
|
218
218
|
<prompt>Establish agent handoff plan</prompt>
|
|
219
219
|
<action>Identify which roles/agents will execute the changes:</action>
|
|
220
|
-
-
|
|
221
|
-
- Product Owner /
|
|
220
|
+
- Developer agent (for implementation)
|
|
221
|
+
- Product Owner / Developer (for backlog changes)
|
|
222
222
|
- Product Manager / Architect (for strategic changes)
|
|
223
223
|
<action>Define responsibilities for each role</action>
|
|
224
224
|
<status>[ ] Done / [ ] N/A / [ ] Action-needed</status>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
**Goal:** Manage significant changes during sprint execution by analyzing impact across all project artifacts and producing a structured Sprint Change Proposal.
|
|
4
4
|
|
|
5
|
-
**Your Role:** You are a
|
|
5
|
+
**Your Role:** You are a Developer navigating change management. Analyze the triggering issue, assess impact across PRD, epics, architecture, and UX artifacts, and produce an actionable Sprint Change Proposal with clear handoff.
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -192,8 +192,8 @@ Load config from `{project-root}/_bmad/bmm/config.yaml` and resolve:
|
|
|
192
192
|
<action>Section 5: Implementation Handoff</action>
|
|
193
193
|
|
|
194
194
|
- Categorize change scope:
|
|
195
|
-
- Minor: Direct implementation by
|
|
196
|
-
- Moderate: Backlog reorganization needed (PO/
|
|
195
|
+
- Minor: Direct implementation by Developer agent
|
|
196
|
+
- Moderate: Backlog reorganization needed (PO/DEV)
|
|
197
197
|
- Major: Fundamental replan required (PM/Architect)
|
|
198
198
|
- Specify handoff recipients and their responsibilities
|
|
199
199
|
- Define success criteria for implementation
|
|
@@ -219,8 +219,8 @@ Load config from `{project-root}/_bmad/bmm/config.yaml` and resolve:
|
|
|
219
219
|
<action>Finalize Sprint Change Proposal document</action>
|
|
220
220
|
<action>Determine change scope classification:</action>
|
|
221
221
|
|
|
222
|
-
- **Minor**: Can be implemented directly by
|
|
223
|
-
- **Moderate**: Requires backlog reorganization and PO/
|
|
222
|
+
- **Minor**: Can be implemented directly by Developer agent
|
|
223
|
+
- **Moderate**: Requires backlog reorganization and PO/DEV coordination
|
|
224
224
|
- **Major**: Needs fundamental replan with PM/Architect involvement
|
|
225
225
|
|
|
226
226
|
<action>Provide appropriate handoff based on scope:</action>
|
|
@@ -228,12 +228,12 @@ Load config from `{project-root}/_bmad/bmm/config.yaml` and resolve:
|
|
|
228
228
|
</check>
|
|
229
229
|
|
|
230
230
|
<check if="Minor scope">
|
|
231
|
-
<action>Route to:
|
|
231
|
+
<action>Route to: Developer agent for direct implementation</action>
|
|
232
232
|
<action>Deliverables: Finalized edit proposals and implementation tasks</action>
|
|
233
233
|
</check>
|
|
234
234
|
|
|
235
235
|
<check if="Moderate scope">
|
|
236
|
-
<action>Route to: Product Owner /
|
|
236
|
+
<action>Route to: Product Owner / Developer agents</action>
|
|
237
237
|
<action>Deliverables: Sprint Change Proposal + backlog reorganization plan</action>
|
|
238
238
|
</check>
|
|
239
239
|
|
|
@@ -261,7 +261,7 @@ Load config from `{project-root}/_bmad/bmm/config.yaml` and resolve:
|
|
|
261
261
|
- Implementation handoff plan
|
|
262
262
|
|
|
263
263
|
<action>Report workflow completion to user with personalized message: "Correct Course workflow complete, {user_name}!"</action>
|
|
264
|
-
<action>Remind user of success criteria and next steps for
|
|
264
|
+
<action>Remind user of success criteria and next steps for Developer agent</action>
|
|
265
265
|
</step>
|
|
266
266
|
|
|
267
267
|
</workflow>
|
|
@@ -3,7 +3,7 @@ title: '{title}'
|
|
|
3
3
|
type: 'feature' # feature | bugfix | refactor | chore
|
|
4
4
|
created: '{date}'
|
|
5
5
|
status: 'draft' # draft | ready-for-dev | in-progress | in-review | done
|
|
6
|
-
context: [] # optional:
|
|
6
|
+
context: [] # optional: `{project-root}/`-prefixed paths to project-wide standards/docs the implementation agent should load. Keep short — only what isn't already distilled into the spec body.
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
<!-- Target: 900–1300 tokens. Above 1600 = high risk of context rot.
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
---
|
|
2
|
-
wipFile: '{implementation_artifacts}/spec-wip.md'
|
|
3
2
|
deferred_work_file: '{implementation_artifacts}/deferred-work.md'
|
|
4
|
-
spec_file: '' # set at runtime for
|
|
3
|
+
spec_file: '' # set at runtime for both routes before leaving this step
|
|
5
4
|
---
|
|
6
5
|
|
|
7
6
|
# Step 1: Clarify and Route
|
|
@@ -21,7 +20,7 @@ Before listing artifacts or prompting the user, check whether you already know t
|
|
|
21
20
|
|
|
22
21
|
1. Explicit argument
|
|
23
22
|
Did the user pass a specific file path, spec name, or clear instruction this message?
|
|
24
|
-
- If it points to a file that matches the spec template (has `status` frontmatter with a recognized value: ready-for-dev, in-progress,
|
|
23
|
+
- If it points to a file that matches the spec template (has `status` frontmatter with a recognized value: draft, ready-for-dev, in-progress, in-review, or done) → set `spec_file` and **EARLY EXIT** to the appropriate step (step-02 for draft, step-03 for ready/in-progress, step-04 for review). For `done`, ingest as context and proceed to INSTRUCTIONS — do not resume.
|
|
25
24
|
- Anything else (intent files, external docs, plans, descriptions) → ingest it as starting intent and proceed to INSTRUCTIONS. Do not attempt to infer a workflow state from it.
|
|
26
25
|
|
|
27
26
|
2. Recent conversation
|
|
@@ -29,8 +28,8 @@ Before listing artifacts or prompting the user, check whether you already know t
|
|
|
29
28
|
Use the same routing as above.
|
|
30
29
|
|
|
31
30
|
3. Otherwise — scan artifacts and ask
|
|
32
|
-
- `{
|
|
33
|
-
|
|
31
|
+
- Active specs (`draft`, `ready-for-dev`, `in-progress`, `in-review`) in `{implementation_artifacts}`? → List them and HALT. Ask user which to resume (or `[N]` for new).
|
|
32
|
+
- If `draft` selected: Set `spec_file`. **EARLY EXIT** → `./step-02-plan.md` (resume planning from the draft)
|
|
34
33
|
- If `ready-for-dev` or `in-progress` selected: Set `spec_file`. **EARLY EXIT** → `./step-03-implement.md`
|
|
35
34
|
- If `in-review` selected: Set `spec_file`. **EARLY EXIT** → `./step-04-review.md`
|
|
36
35
|
- Unformatted spec or intent file lacking `status` frontmatter? → Suggest treating its contents as the starting intent. Do NOT attempt to infer a state and resume it.
|
|
@@ -42,6 +41,19 @@ Never ask extra questions if you already understand what the user intends.
|
|
|
42
41
|
1. Load context.
|
|
43
42
|
- List files in `{planning_artifacts}` and `{implementation_artifacts}`.
|
|
44
43
|
- If you find an unformatted spec or intent file, ingest its contents to form your understanding of the intent.
|
|
44
|
+
- Planning artifacts are the output of BMAD phases 1-3. Typical files include:
|
|
45
|
+
- **PRD** (`*prd*`) — product requirements and success criteria
|
|
46
|
+
- **Architecture** (`*architecture*`) — technical design decisions and constraints
|
|
47
|
+
- **UX/Design** (`*ux*`) — user experience and interaction design
|
|
48
|
+
- **Epics** (`*epic*`) — feature breakdown into implementable stories
|
|
49
|
+
- **Product Brief** (`*brief*`) — project vision and scope
|
|
50
|
+
- Scan the listing for files matching these patterns. If any look relevant to the current intent, load them selectively — you don't need all of them, but you need the right constraints and requirements rather than guessing from code alone.
|
|
51
|
+
- **Previous story continuity.** Using the intent and loaded context (especially any epics file), infer whether the current work is a story from an epic. Do not rely on filename patterns or regex — reason about the intent, the artifact listing, and epics content together. If the intent is an epic story:
|
|
52
|
+
1. Identify the epic and story number.
|
|
53
|
+
2. Scan `{implementation_artifacts}` for specs from the same epic with `status: done` and a lower story number.
|
|
54
|
+
3. Load the most recent one (highest story number below current).
|
|
55
|
+
4. Extract its **Code Map**, **Design Notes**, **Spec Change Log**, and **task list** as continuity context for step-02 planning.
|
|
56
|
+
If no `done` spec is found but an `in-review` spec exists for the same epic with a lower story number, note it to the user and ask whether to load it. If the intent is not an epic story, or no previous spec exists, skip this silently.
|
|
45
57
|
2. Clarify intent. Do not fantasize, do not leave open questions. If you must ask questions, ask them as a numbered list. When the human replies, verify that every single numbered question was answered. If any were ignored, HALT and re-ask only the missing questions before proceeding. Keep looping until intent is clear enough to implement.
|
|
46
58
|
3. Version control sanity check. Is the working tree clean? Does the current branch make sense for this intent — considering its name and recent history? If the tree is dirty or the branch is an obvious mismatch, HALT and ask the human before proceeding. If version control is unavailable, skip this check.
|
|
47
59
|
4. Multi-goal check (see SCOPE STANDARD). If the intent fails the single-goal criteria:
|
|
@@ -52,11 +64,13 @@ Never ask extra questions if you already understand what the user intends.
|
|
|
52
64
|
- On **K**: Proceed as-is.
|
|
53
65
|
5. Route — choose exactly one:
|
|
54
66
|
|
|
67
|
+
Derive a valid kebab-case slug from the clarified intent. If the intent references a tracking identifier (story number, issue number, ticket ID), lead the slug with it (e.g. `3-2-digest-delivery`, `gh-47-fix-auth`). If `{implementation_artifacts}/spec-{slug}.md` already exists: if its status is `draft`, treat it as the same work and resume it (set `spec_file` to that path, **EARLY EXIT** → `./step-02-plan.md`); otherwise append `-2`, `-3`, etc. Set `spec_file` = `{implementation_artifacts}/spec-{slug}.md`.
|
|
68
|
+
|
|
55
69
|
**a) One-shot** — zero blast radius: no plausible path by which this change causes unintended consequences elsewhere. Clear intent, no architectural decisions.
|
|
70
|
+
|
|
56
71
|
**EARLY EXIT** → `./step-oneshot.md`
|
|
57
72
|
|
|
58
73
|
**b) Plan-code-review** — everything else. When uncertain whether blast radius is truly zero, choose this path.
|
|
59
|
-
1. Derive a valid kebab-case slug from the clarified intent. If the intent references a tracking identifier (story number, issue number, ticket ID), lead the slug with it (e.g. `3-2-digest-delivery`, `gh-47-fix-auth`). If `{implementation_artifacts}/spec-{slug}.md` already exists, append `-2`, `-3`, etc. Set `spec_file` = `{implementation_artifacts}/spec-{slug}.md`.
|
|
60
74
|
|
|
61
75
|
|
|
62
76
|
## NEXT
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
---
|
|
2
|
-
wipFile: '{implementation_artifacts}/spec-wip.md'
|
|
3
2
|
deferred_work_file: '{implementation_artifacts}/deferred-work.md'
|
|
4
3
|
---
|
|
5
4
|
|
|
@@ -12,11 +11,12 @@ deferred_work_file: '{implementation_artifacts}/deferred-work.md'
|
|
|
12
11
|
|
|
13
12
|
## INSTRUCTIONS
|
|
14
13
|
|
|
15
|
-
1.
|
|
16
|
-
2.
|
|
17
|
-
3.
|
|
18
|
-
4.
|
|
19
|
-
5.
|
|
14
|
+
1. Draft resume check. If `{spec_file}` exists with `status: draft`, read it and capture the verbatim `<frozen-after-approval>...</frozen-after-approval>` block as `preserved_intent`. Otherwise `preserved_intent` is empty.
|
|
15
|
+
2. Investigate codebase. _Isolate deep exploration in sub-agents/tasks where available. To prevent context snowballing, instruct subagents to give you distilled summaries only._
|
|
16
|
+
3. Read `./spec-template.md` fully. Fill it out based on the intent and investigation. If `{preserved_intent}` is non-empty, substitute it for the `<frozen-after-approval>` block in your filled spec before writing. Write the result to `{spec_file}`.
|
|
17
|
+
4. Self-review against READY FOR DEVELOPMENT standard.
|
|
18
|
+
5. If intent gaps exist, do not fantasize, do not leave open questions, HALT and ask the human.
|
|
19
|
+
6. Token count check (see SCOPE STANDARD). If spec exceeds 1600 tokens:
|
|
20
20
|
- Show user the token count.
|
|
21
21
|
- HALT and ask human: `[S] Split — carve off secondary goals` | `[K] Keep full spec — accept the risks`
|
|
22
22
|
- On **S**: Propose the split — name each secondary goal. Append deferred goals to `{deferred_work_file}`. Rewrite the current spec to cover only the main goal — do not surgically carve sections out; regenerate the spec for the narrowed scope. Continue to checkpoint.
|
|
@@ -24,9 +24,21 @@ deferred_work_file: '{implementation_artifacts}/deferred-work.md'
|
|
|
24
24
|
|
|
25
25
|
### CHECKPOINT 1
|
|
26
26
|
|
|
27
|
-
Present summary. If token count exceeded 1600 and user chose [K], include the token count and explain why it may be a problem.
|
|
27
|
+
Present summary. Display the spec file path as a CWD-relative path (no leading `/`) so it is clickable in the terminal. If token count exceeded 1600 and user chose [K], include the token count and explain why it may be a problem.
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
After presenting the summary, display this note:
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
Before approving, you can open the spec file in an editor or ask me questions and tell me what to change. You can also use `bmad-advanced-elicitation`, `bmad-party-mode`, or `bmad-code-review` skills, ideally in another session to avoid context bloat.
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
HALT and ask human: `[A] Approve` | `[E] Edit`
|
|
38
|
+
|
|
39
|
+
- **A**: Re-read `{spec_file}` from disk.
|
|
40
|
+
- **If the file is missing:** HALT. Tell the user the spec file is gone and STOP — do not write anything to `{spec_file}`, do not set status, do not proceed to Step 3. Nothing below this point runs.
|
|
41
|
+
- **If the file exists:** Compare the content to what you wrote. If it has changed since you wrote it, acknowledge the external edits — show a brief summary of what changed — and proceed with the updated version. Then set status `ready-for-dev` in `{spec_file}`. Everything inside `<frozen-after-approval>` is now locked — only the human can change it. → Step 3.
|
|
30
42
|
- **E**: Apply changes, then return to CHECKPOINT 1.
|
|
31
43
|
|
|
32
44
|
|
|
@@ -24,6 +24,8 @@ Capture `baseline_commit` (current HEAD, or `NO_VCS` if version control is unava
|
|
|
24
24
|
|
|
25
25
|
Change `{spec_file}` status to `in-progress` in the frontmatter before starting implementation.
|
|
26
26
|
|
|
27
|
+
If `{spec_file}` has a non-empty `context:` list in its frontmatter, load those files before implementation begins. When handing to a sub-agent, include them in the sub-agent prompt so it has access to the referenced context.
|
|
28
|
+
|
|
27
29
|
Hand `{spec_file}` to a sub-agent/task and let it implement. If no sub-agents are available, implement directly.
|
|
28
30
|
|
|
29
31
|
**Path formatting rule:** Any markdown links written into `{spec_file}` must use paths relative to `{spec_file}`'s directory so they are clickable in VS Code. Any file paths displayed in terminal/conversation output must use CWD-relative format with `:line` notation (e.g., `src/path/file.ts:42`) for terminal clickability. No leading `/` in either case.
|
|
@@ -29,19 +29,31 @@ Deduplicate all review findings. Three categories only:
|
|
|
29
29
|
|
|
30
30
|
If a finding is caused by this change but too significant for a trivial patch, HALT and present it to the human for decision before proceeding.
|
|
31
31
|
|
|
32
|
+
### Generate Spec Trace
|
|
33
|
+
|
|
34
|
+
Set `{title}` = a concise title derived from the clarified intent.
|
|
35
|
+
|
|
36
|
+
Write `{spec_file}` using `./spec-template.md`. Fill only these sections — delete all others:
|
|
37
|
+
|
|
38
|
+
1. **Frontmatter** — set `title: '{title}'`, `type`, `created`, `status: 'done'`. Add `route: 'one-shot'`.
|
|
39
|
+
2. **Title and Intent** — `# {title}` heading and `## Intent` with **Problem** and **Approach** lines. Reuse the summary you already generated for the terminal.
|
|
40
|
+
3. **Suggested Review Order** — append after Intent. Build using the same convention as `./step-05-present.md` § "Generate Suggested Review Order" (spec-file-relative links, concern-based ordering, ultra-concise framing).
|
|
41
|
+
|
|
32
42
|
### Commit
|
|
33
43
|
|
|
34
44
|
If version control is available and the tree is dirty, create a local commit with a conventional message derived from the intent. If VCS is unavailable, skip.
|
|
35
45
|
|
|
36
46
|
### Present
|
|
37
47
|
|
|
38
|
-
1. Open
|
|
39
|
-
- Resolve two
|
|
40
|
-
- If `code` is not available (command fails), skip gracefully and
|
|
48
|
+
1. Open the spec in the user's editor so they can click through the Suggested Review Order:
|
|
49
|
+
- Resolve two absolute paths: (1) the repository root (`git rev-parse --show-toplevel` — returns the worktree root when in a worktree, project root otherwise; if this fails, fall back to the current working directory), (2) `{spec_file}`. Run `code -r "{absolute-root}" "{absolute-spec-file}"` — the root first so VS Code opens in the right context, then the spec file. Always double-quote paths to handle spaces and special characters.
|
|
50
|
+
- If `code` is not available (command fails), skip gracefully and tell the user the spec file path instead.
|
|
41
51
|
2. Display a summary in conversation output, including:
|
|
42
52
|
- The commit hash (if one was created).
|
|
43
|
-
- List of files changed with one-line descriptions.
|
|
53
|
+
- List of files changed with one-line descriptions. Any file paths shown in conversation/terminal output must use CWD-relative format (no leading `/`) with `:line` notation (e.g., `src/path/file.ts:42`) for terminal clickability — this differs from spec-file links which use spec-file-relative paths.
|
|
44
54
|
- Review findings breakdown: patches applied, items deferred, items rejected. If all findings were rejected, say so.
|
|
55
|
+
- A note that the spec is open in their editor (or the file path if it couldn't be opened). Mention that `{spec_file}` now contains a Suggested Review Order.
|
|
56
|
+
- **Navigation tip:** "Ctrl+click (Cmd+click on macOS) the links in the Suggested Review Order to jump to each stop."
|
|
45
57
|
3. Offer to push and/or create a pull request.
|
|
46
58
|
|
|
47
59
|
HALT and wait for human input.
|
|
@@ -70,10 +70,6 @@ Load and read full config from `{main_config}` and resolve:
|
|
|
70
70
|
|
|
71
71
|
YOU MUST ALWAYS SPEAK OUTPUT in your Agent communication style with the config `{communication_language}`.
|
|
72
72
|
|
|
73
|
-
### 2.
|
|
74
|
-
|
|
75
|
-
- `wipFile` = `{implementation_artifacts}/spec-wip.md`
|
|
76
|
-
|
|
77
|
-
### 3. First Step Execution
|
|
73
|
+
### 2. First Step Execution
|
|
78
74
|
|
|
79
75
|
Read fully and follow: `./step-01-clarify-and-route.md` to begin the workflow.
|