bmad-method 6.9.1-next.2 → 6.9.1-next.20

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.
Files changed (32) hide show
  1. package/.claude-plugin/marketplace.json +0 -1
  2. package/bmad-modules.yaml +42 -0
  3. package/package.json +1 -1
  4. package/removals.txt +3 -0
  5. package/src/bmm-skills/4-implementation/bmad-agent-dev/customize.toml +0 -5
  6. package/src/bmm-skills/4-implementation/bmad-code-review/SKILL.md +0 -1
  7. package/src/bmm-skills/4-implementation/bmad-code-review/steps/step-02-review.md +14 -8
  8. package/src/bmm-skills/4-implementation/bmad-code-review/steps/step-03-triage.md +7 -6
  9. package/src/bmm-skills/4-implementation/bmad-dev-auto/SKILL.md +2 -1
  10. package/src/bmm-skills/4-implementation/bmad-dev-auto/step-01-clarify-and-route.md +1 -1
  11. package/src/bmm-skills/4-implementation/bmad-dev-auto/step-03-implement.md +1 -1
  12. package/src/bmm-skills/4-implementation/bmad-dev-auto/step-04-review.md +16 -5
  13. package/src/bmm-skills/4-implementation/bmad-quick-dev/SKILL.md +0 -1
  14. package/src/bmm-skills/4-implementation/bmad-quick-dev/step-04-review.md +9 -4
  15. package/src/bmm-skills/4-implementation/bmad-quick-dev/step-oneshot.md +4 -1
  16. package/src/bmm-skills/module-help.csv +0 -1
  17. package/src/core-skills/bmad-advanced-elicitation/methods.csv +29 -27
  18. package/src/core-skills/bmad-forge-idea/SKILL.md +49 -21
  19. package/src/core-skills/bmad-party-mode/SKILL.md +4 -2
  20. package/src/core-skills/bmad-party-mode/customize.toml +38 -2
  21. package/src/core-skills/bmad-party-mode/references/mode-agent-team.md +2 -0
  22. package/src/core-skills/bmad-party-mode/references/mode-subagent.md +16 -4
  23. package/src/core-skills/bmad-review-edge-case-hunter/SKILL.md +10 -4
  24. package/src/core-skills/bmad-review-edge-case-hunter/references/deletion-check.md +14 -0
  25. package/tools/installer/core/installer.js +55 -0
  26. package/tools/installer/modules/custom-module-manager.js +15 -9
  27. package/tools/installer/modules/external-manager.js +111 -0
  28. package/tools/installer/modules/official-modules.js +66 -19
  29. package/tools/installer/ui.js +14 -7
  30. package/src/bmm-skills/4-implementation/bmad-investigate/SKILL.md +0 -196
  31. package/src/bmm-skills/4-implementation/bmad-investigate/customize.toml +0 -62
  32. package/src/bmm-skills/4-implementation/bmad-investigate/references/case-file-template.md +0 -127
@@ -1,196 +0,0 @@
1
- ---
2
- name: bmad-investigate
3
- description: Forensic case investigation with evidence-graded findings, calibrated to the input. Use when the user asks to investigate a bug, trace what caused an incident, walk through unfamiliar code, or build a mental model of a code area before working on it.
4
- ---
5
-
6
- # Investigate
7
-
8
- ## Overview
9
-
10
- Reconstruct what's happening, or what an unfamiliar area does, from the available evidence. Produce a structured case
11
- file another engineer can pick up cold. Calibrate continuously between defect-chasing (symptom-driven) and
12
- area-exploration (no symptom); the same discipline applies on both ends.
13
-
14
- **Args:** A ticket ID, log file path, diagnostic archive, error message, code area name, problem description, or a path
15
- to an existing case file. The last form resumes a prior investigation; everything else opens a new case.
16
-
17
- **Output:** `{implementation_artifacts}/{workflow.case_file_subdir}/{workflow.case_file_filename}`. Reference inputs
18
- are recorded; raw content is not read into the parent context until an outcome calls for it.
19
-
20
- `{slug}` is the ticket ID when one is provided, otherwise a short descriptive name agreed with the user, sanitized to
21
- lowercase alphanumeric with hyphens. On collision with an existing case file at the resolved path, ask whether to
22
- rename to `slug-YYYY-MM-DD.md` or resume the existing file (resuming routes to Outcome 0).
23
-
24
- After every outcome, present what was learned and pause for the user before continuing.
25
-
26
- ## Principles
27
-
28
- - **Evidence grading.**
29
- - **Confirmed.** Directly observed; cite `path:line`, log timestamp, or commit hash.
30
- - **Deduced.** Logically follows from Confirmed evidence; show the chain.
31
- - **Hypothesized.** Plausible but unconfirmed; state what would confirm or refute it.
32
- - **Stronghold first.** Anchor in one Confirmed piece of evidence and expand outward. Never start from a theory and
33
- hunt for support. When evidence is sparse, switch to evidence-light mode (Outcome 1 branch).
34
- - **Challenge the premise.** The user's description is a hypothesis, not a fact. Verify independently; if evidence
35
- contradicts, say so.
36
- - **Follow the evidence, not the narrative.** When evidence contradicts the working theory, update the theory — never
37
- the other way around. Resist confirmation bias even when the user is convinced.
38
- - **Hypotheses are never deleted.** Update Status (Open / Confirmed / Refuted) and add a Resolution. Wrong turns are
39
- part of the deliverable.
40
- - **Missing evidence is itself a finding.** Document the gap, what it would resolve, and how to obtain it.
41
- - **Write it down early.** Initialize the case file as soon as the slug is agreed; it is the persistent state across
42
- interruptions.
43
- - **Path:line citations** use CWD-relative format, no leading `/`, so they're clickable in IDE-embedded terminals.
44
- - **Delegation discipline.** When a step requires reading 5+ files or any file >10K tokens, delegate to a subagent
45
- that returns structured JSON only. Cite `path:line` from the result; don't re-read in the parent.
46
- - **Issue independent operations in parallel** (multi-grep, multi-read, parallel inventories) — one message, multiple
47
- tool calls.
48
- - **Communication.** Evidence-first language ("the evidence shows", "unconfirmed, requires X to verify"). No hedging,
49
- no narrative.
50
-
51
- ## On Activation
52
-
53
- ### Step 1: Resolve the workflow block
54
-
55
- Run: `python3 {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --key workflow`
56
-
57
- If the script fails, stop and surface the error.
58
-
59
- ### Step 2: Execute prepend steps
60
-
61
- Run each entry in `{workflow.activation_steps_prepend}` in order.
62
-
63
- ### Step 3: Load persistent facts
64
-
65
- Treat each entry in `{workflow.persistent_facts}` as foundational context. `file:` prefixes are paths or globs under
66
- `{project-root}` (load contents); other entries are facts verbatim.
67
-
68
- ### Step 4: Load config
69
-
70
- Load `{project-root}/_bmad/bmm/config.yaml` and resolve `{user_name}`, `{communication_language}`,
71
- `{document_output_language}`, `{implementation_artifacts}`, `{project_knowledge}`. If `{implementation_artifacts}` is
72
- unresolved, fall back to `./investigations/` and surface the fallback before initializing.
73
-
74
- ### Step 5: Greet
75
-
76
- Greet `{user_name}` in `{communication_language}`.
77
-
78
- ### Step 6: Execute append steps
79
-
80
- Run each entry in `{workflow.activation_steps_append}` in order.
81
-
82
- Activation is complete. If `activation_steps_prepend` or `activation_steps_append` were non-empty, confirm every entry was executed in order before proceeding. Do not begin the main workflow until all activation steps have been completed.
83
-
84
- ### Step 7: Acknowledge and route
85
-
86
- Acknowledge the input as a reference (record paths and IDs; don't read raw content). Path to an existing case file →
87
- Outcome 0. Otherwise → Outcome 1.
88
-
89
- ## Procedure
90
-
91
- ### Outcome 0: Existing case is loaded and surfaced
92
-
93
- Read the case file. Surface, in order: open hypotheses (Status = Open) with their confirm/refute criteria; open
94
- backlog (Status ≠ Done); missing-evidence rows; last Conclusion with confidence. Ask which thread to pull. New
95
- evidence opens a new `## Follow-up: {YYYY-MM-DD}` block (append `#2`, `#3` on same-day reentry). Pause for user with the recap above; wait for direction.
96
-
97
- ### Outcome 1: Scope and stronghold are established
98
-
99
- Acknowledge each input shape — record location, scope, time window only; bulk reads happen in Outcome 2.
100
-
101
- - **Issue tracker ticket.** Fetch full details via available MCP tools.
102
- - **Diagnostic archive.** Record path, file count, time window.
103
- - **Log file or stack trace.** Record path and time window; only the stack frame already in the user's message is in
104
- scope here.
105
- - **Free-text description.** Capture verbatim; treat as hypothesis.
106
- - **Code area name** (no symptom). Record entry point.
107
- - **Recent commit area.** Record commit range.
108
-
109
- If the user arrived with a hypothesis, register it as Hypothesis #1. Find the stronghold *independently*; the user's
110
- hypothesis is one of the things the stronghold validates or refutes.
111
-
112
- Find a stronghold: a Confirmed piece of evidence (error message, function name, HTTP route, config parameter, test
113
- case). Anchor here.
114
-
115
- **Initialize `{case_file}` before branching.** The path is
116
- `{implementation_artifacts}/{workflow.case_file_subdir}/{workflow.case_file_filename}` with `{slug}` substituted (slug
117
- and collision rules in Overview). Create the file from `{workflow.case_file_template}` and fill Hand-off Brief
118
- (rough), Case Info, Problem Statement, initial Evidence Inventory.
119
-
120
- **Evidence-light branch.** When no Confirmed evidence is reachable: mark the case evidence-light in the Hand-off
121
- Brief; populate the Investigation Backlog with prioritized data-collection items; record "to make progress, I need one
122
- of: …"; pause for the user to provide evidence or authorize Outcome 2 to scan more broadly.
123
-
124
- Otherwise present scope, stronghold, file path, proposed approach. Pause for user with the recap above; wait for direction.
125
-
126
- ### Outcome 2: Evidence perimeter is mapped
127
-
128
- Survey the scene: inventory available evidence in parallel across these independent categories: diagnostic archives;
129
- issue tracker; version control; test results; static analysis; source code. For any category exceeding ~10K tokens,
130
- delegate to a subagent that returns a JSON manifest (paths, sizes, time windows, key fragments cited as `path:line`).
131
-
132
- Classify each Available, Partial, or Missing — Missing is itself a finding. Update Evidence Inventory and Investigation
133
- Backlog. Pause for user with the recap above; wait for direction.
134
-
135
- ### Outcome 3: Cause is reasoned about with discipline
136
-
137
- - **Trace causality.** Symptom-driven: trace backward from the symptom to producing conditions and the state that
138
- emerged. Exploration: trace backward from outputs (returns, side effects, messages sent) to producing conditions.
139
- Same technique, different anchor.
140
- - **Reconstruct the timeline** by cross-referencing logs, system events, version control, user observations.
141
- - **Form and test hypotheses.** State, identify confirming/refuting evidence, search, grade
142
- (Confirmed / Refuted / Open). Update Status. Never delete.
143
- - **Refutation pass.** Each time a hypothesis transitions toward Confirmed, actively look for refuting evidence first.
144
- Record the attempt in Resolution.
145
- - **Verify the user's premise.** If evidence contradicts, say so explicitly.
146
- - **Add discovered paths to the backlog.** Stay focused on the current thread.
147
-
148
- Update Confirmed Findings, Deduced Conclusions, Hypothesized Paths, Backlog, Timeline. Highlight contradictions to the
149
- original premise. Pause for user with the recap above; wait for direction.
150
-
151
- ### Outcome 4: Source has been traced where it matters
152
-
153
- Issue these first-pass scans as parallel tool calls in one message: grep for exact error strings; glob the affected
154
- directory for parallel implementations; `git log` for recent changes.
155
-
156
- Then sequentially: read the surrounding code; follow the caller chain; watch for language and process boundary
157
- crossings (compiled→scripts, IPC, host→device, configuration flow).
158
-
159
- Lean by case type:
160
-
161
- - **Exploration:** I/O mapping (triggers, outputs, dependencies); frequent-terms scan; control-flow filtering
162
- (branches, loops, error handling, state-machine transitions).
163
- - **Symptom-driven:** depth assessment — is the root cause reachable from local context, or is a broader area model
164
- required? Surface escalations; never silently expand scope. Trivial-fix assessment — off-by-one, missing null check,
165
- swapped argument → one-line code suggestion or draft diff in the report; non-trivial → stop at the root cause area.
166
-
167
- Investigation stops at the diagnosis; implementation is out of scope. Update Source Code Trace (Error origin, Trigger,
168
- Condition, Related files; area model when broader). Pause for user with the recap above; wait for direction.
169
-
170
- ### Outcome 5: Report is finalized and the hand-off is clean
171
-
172
- Update `{case_file}`:
173
-
174
- - **Hand-off Brief** rewritten to final form (3 sentences, 15-second read).
175
- - **Final Conclusion** with confidence: **High** (Confirmed root cause, deterministic repro), **Medium** (Deduced;
176
- minor uncertainty), **Low** (Hypothesized; clear data gap).
177
- - **Fix direction** when applicable (categorize by mechanism if multiple combine).
178
- - **Diagnostic steps** if uncertainty remains.
179
- - **Reproduction Plan** when applicable, or a verification plan for exploration cases.
180
- - **Status:** Active / Concluded / Blocked on evidence.
181
-
182
- Present the conclusion, then a concrete next-steps menu: trivial fix → `bmad-quick-dev`; scope/plan adjustment →
183
- `bmad-correct-course`; tracked story → `bmad-create-story`; fresh review → `bmad-code-review`. Recommend the
184
- highest-value action. Mitigations and workarounds are generated only on explicit request — investigation stops at the
185
- diagnosis. Execute `{workflow.on_complete}` if non-empty. Pause for user with the recap above; wait for direction.
186
-
187
- ## Follow-up Iterations
188
-
189
- Continue work by appending to `{case_file}` under a new `## Follow-up: {YYYY-MM-DD}` block (`#2`, `#3` on same-day
190
- reentry). The investigation is complete when:
191
-
192
- - Root cause is Confirmed.
193
- - Root cause is Hypothesized with a clear data gap.
194
- - The mental model is sufficient for the user's stated goal (exploration cases).
195
- - The backlog contains only items requiring unavailable evidence.
196
- - The user explicitly concludes.
@@ -1,62 +0,0 @@
1
- # DO NOT EDIT -- overwritten on every update.
2
- #
3
- # Workflow customization surface for bmad-investigate. Mirrors the
4
- # agent customization shape under the [workflow] namespace.
5
-
6
- [workflow]
7
-
8
- # --- Configurable below. Overrides merge per BMad structural rules: ---
9
- # scalars: override wins • arrays (persistent_facts, activation_steps_*): append
10
- # arrays-of-tables with `code`/`id`: replace matching items, append new ones.
11
-
12
- # Steps to run before the standard activation (config load, greet).
13
- # Overrides append. Use for pre-flight loads, compliance checks, etc.
14
-
15
- activation_steps_prepend = []
16
-
17
- # Steps to run after greet but before the workflow begins.
18
- # Overrides append. Use for context-heavy setup that should happen
19
- # once the user has been acknowledged.
20
-
21
- activation_steps_append = []
22
-
23
- # Persistent facts the workflow keeps in mind for the whole run.
24
- # Use for citation conventions (path:line vs path#L42), grading-scale
25
- # overrides (ITIL severity 1-5 instead of High/Medium/Low), tone
26
- # directives (engineering vs exec-facing), or compliance constraints
27
- # the case file must respect.
28
- # Distinct from the runtime memory sidecar — these are static context
29
- # loaded on activation. Overrides append.
30
- #
31
- # Each entry is either:
32
- # - a literal sentence, e.g. "Use ITIL severity 1-5 instead of High/Medium/Low for confidence."
33
- # - a file reference prefixed with `file:`, e.g. "file:{project-root}/docs/standards.md"
34
- # (glob patterns are supported; the file's contents are loaded and treated as facts).
35
-
36
- persistent_facts = [
37
- "file:{project-root}/**/project-context.md",
38
- ]
39
-
40
- # Scalar: path to the case-file template, resolved from the skill root.
41
- # Override to point at an org-shaped template (compliance sections,
42
- # SLA fields, post-mortem hooks, ITIL fields).
43
-
44
- case_file_template = "references/case-file-template.md"
45
-
46
- # Scalar: subdirectory under {implementation_artifacts} where case files land.
47
- # Override for org taxonomies (forensics/, cases/, incidents/, bug-bash/).
48
-
49
- case_file_subdir = "investigations"
50
-
51
- # Scalar: filename pattern for new case files. {slug} expands to the
52
- # ticket ID or a short user-agreed name.
53
-
54
- case_file_filename = "{slug}-investigation.md"
55
-
56
- # Scalar: executed when the workflow finalizes the case file at Outcome 5,
57
- # after the conclusion is presented. Override wins. Use for post-case
58
- # automation: post the case to Slack/Teams, push fields back to ticketing,
59
- # link the case to a sprint, trigger a follow-up retro.
60
- # Leave empty for no custom post-completion behavior.
61
-
62
- on_complete = ""
@@ -1,127 +0,0 @@
1
- # Investigation: {title}
2
-
3
- ## Hand-off Brief
4
-
5
- 1. **What happened.** {one-sentence problem statement, evidence-graded}
6
- 2. **Where the case stands.** {status, last finding, what would unblock progress}
7
- 3. **What's needed next.** {single recommended action with rationale}
8
-
9
- ## Case Info
10
-
11
- | Field | Value |
12
- | ---------------- | -------------------------------------------------------------------------- |
13
- | Ticket | {ticket-id or "N/A"} |
14
- | Date opened | {date} |
15
- | Status | Active |
16
- | System | {OS, version, relevant environment details} |
17
- | Evidence sources | {diagnostic archive, logs, crash dump, code, version control, etc.} |
18
-
19
- ## Problem Statement
20
-
21
- {User-reported description; the initial claim. May be refined or contradicted by evidence.}
22
-
23
- ## Evidence Inventory
24
-
25
- | Source | Status | Notes |
26
- | -------- | ------------------------------- | --------- |
27
- | {source} | {Available / Partial / Missing} | {details} |
28
-
29
- ## Investigation Backlog
30
-
31
- | # | Path to Explore | Priority | Status | Notes |
32
- | - | --------------- | --------------------- | ------------------------------------- | --------- |
33
- | 1 | {description} | {High / Medium / Low} | {Open / In Progress / Done / Blocked} | {context} |
34
-
35
- ## Timeline of Events
36
-
37
- | Time | Event | Source | Confidence |
38
- | ----------- | ------------------- | --------------------- | --------------------- |
39
- | {timestamp} | {event description} | {log file, commit, …} | {Confirmed / Deduced} |
40
-
41
- ## Confirmed Findings
42
-
43
- ### Finding 1: {title}
44
-
45
- **Evidence:** {citation — `path:line`, log timestamp, or commit hash}
46
-
47
- **Detail:** {description}
48
-
49
- ## Deduced Conclusions
50
-
51
- ### Deduction 1: {title}
52
-
53
- **Based on:** {which Confirmed Findings}
54
-
55
- **Reasoning:** {logical chain}
56
-
57
- **Conclusion:** {what follows}
58
-
59
- ## Hypothesized Paths
60
-
61
- ### Hypothesis 1: {title}
62
-
63
- **Status:** {Open / Confirmed / Refuted}
64
-
65
- **Theory:** {description}
66
-
67
- **Supporting indicators:** {what makes this plausible}
68
-
69
- **Would confirm:** {specific evidence that would prove this}
70
-
71
- **Would refute:** {specific evidence that would disprove this}
72
-
73
- **Resolution:** {when Status changes from Open, what evidence settled it}
74
-
75
- ## Missing Evidence
76
-
77
- | Gap | Impact | How to Obtain |
78
- | ---------------- | ------------------------------------ | --------------- |
79
- | {what's missing} | {what it would confirm or eliminate} | {how to get it} |
80
-
81
- ## Source Code Trace
82
-
83
- | Element | Detail |
84
- | ------------- | ------------------------------------------- |
85
- | Error origin | {file:line, function name} |
86
- | Trigger | {what causes this code to execute} |
87
- | Condition | {what state produces the observed behavior} |
88
- | Related files | {other files in the same code path} |
89
-
90
- ## Conclusion
91
-
92
- **Confidence:** {High / Medium / Low}
93
-
94
- {Summary stating what is Confirmed vs. what remains Hypothesized. If a root cause is identified, state it; otherwise
95
- name the most promising hypothesized paths and what would resolve the remaining uncertainty.}
96
-
97
- ## Recommended Next Steps
98
-
99
- ### Fix direction
100
-
101
- {What needs to change and why. Categorize by mechanism when multiple issues combine.}
102
-
103
- ### Diagnostic
104
-
105
- {Steps to confirm the root cause: additional logging, targeted tests, data to collect.}
106
-
107
- ## Reproduction Plan
108
-
109
- {Setup, trigger, expected results. Scale from isolated proof to full system reproduction.}
110
-
111
- ## Side Findings
112
-
113
- Tangential observations surfaced during the investigation, evidence-graded, with citation when applicable.
114
-
115
- - {observation}
116
-
117
- ## Follow-up: {date}
118
-
119
- ### New Evidence
120
-
121
- ### Additional Findings
122
-
123
- ### Updated Hypotheses
124
-
125
- ### Backlog Changes
126
-
127
- ### Updated Conclusion