bmad-method 6.2.3-next.10 → 6.2.3-next.11

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "bmad-method",
4
- "version": "6.2.3-next.10",
4
+ "version": "6.2.3-next.11",
5
5
  "description": "Breakthrough Method of Agile AI-driven Development",
6
6
  "keywords": [
7
7
  "agile",
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  wipFile: '{implementation_artifacts}/spec-wip.md'
3
3
  deferred_work_file: '{implementation_artifacts}/deferred-work.md'
4
- spec_file: '' # set at runtime for plan-code-review before leaving this step
4
+ spec_file: '' # set at runtime for both routes before leaving this step
5
5
  ---
6
6
 
7
7
  # Step 1: Clarify and Route
@@ -52,11 +52,13 @@ Never ask extra questions if you already understand what the user intends.
52
52
  - On **K**: Proceed as-is.
53
53
  5. Route — choose exactly one:
54
54
 
55
+ 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`.
56
+
55
57
  **a) One-shot** — zero blast radius: no plausible path by which this change causes unintended consequences elsewhere. Clear intent, no architectural decisions.
58
+
56
59
  **EARLY EXIT** → `./step-oneshot.md`
57
60
 
58
61
  **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
62
 
61
63
 
62
64
  ## NEXT
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  deferred_work_file: '{implementation_artifacts}/deferred-work.md'
3
+ spec_file: '' # set by step-01 before entering this step
3
4
  ---
4
5
 
5
6
  # Step One-Shot: Implement, Review, Present
@@ -29,19 +30,31 @@ Deduplicate all review findings. Three categories only:
29
30
 
30
31
  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
32
 
33
+ ### Generate Spec Trace
34
+
35
+ Set `{title}` = a concise title derived from the clarified intent.
36
+
37
+ Write `{spec_file}` using `./spec-template.md`. Fill only these sections — delete all others:
38
+
39
+ 1. **Frontmatter** — set `title: '{title}'`, `type`, `created`, `status: 'done'`. Add `route: 'one-shot'`.
40
+ 2. **Title and Intent** — `# {title}` heading and `## Intent` with **Problem** and **Approach** lines. Reuse the summary you already generated for the terminal.
41
+ 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).
42
+
32
43
  ### Commit
33
44
 
34
45
  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
46
 
36
47
  ### Present
37
48
 
38
- 1. Open all changed files in the user's editor so they can review the code directly:
39
- - Resolve two sets of 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) each changed file. Run `code -r "{absolute-root}" <absolute-changed-file-paths>` — the root first so VS Code opens in the right context, then each changed file. Always double-quote paths to handle spaces and special characters.
40
- - If `code` is not available (command fails), skip gracefully and list the file paths instead.
49
+ 1. Open the spec in the user's editor so they can click through the Suggested Review Order:
50
+ - 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.
51
+ - If `code` is not available (command fails), skip gracefully and tell the user the spec file path instead.
41
52
  2. Display a summary in conversation output, including:
42
53
  - The commit hash (if one was created).
43
- - List of files changed with one-line descriptions. Use CWD-relative paths with `:line` notation (e.g., `src/path/file.ts:42`) for terminal clickability. No leading `/`.
54
+ - 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
55
  - Review findings breakdown: patches applied, items deferred, items rejected. If all findings were rejected, say so.
56
+ - 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.
57
+ - **Navigation tip:** "Ctrl+click (Cmd+click on macOS) the links in the Suggested Review Order to jump to each stop."
45
58
  3. Offer to push and/or create a pull request.
46
59
 
47
60
  HALT and wait for human input.