bmad-method 6.6.1-next.2 → 6.6.1-next.4

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 (34) hide show
  1. package/evals/bmm-skills/bmad-product-brief/evals.json +267 -0
  2. package/evals/bmm-skills/bmad-product-brief/files/branfield-memo.md +46 -0
  3. package/evals/bmm-skills/bmad-product-brief/files/forkbird-brief/addendum.md +40 -0
  4. package/evals/bmm-skills/bmad-product-brief/files/forkbird-brief/brief.md +56 -0
  5. package/evals/bmm-skills/bmad-product-brief/files/forkbird-brief/decision-log.md +27 -0
  6. package/evals/bmm-skills/bmad-product-brief/files/forkbird-brief/distillate.md +28 -0
  7. package/evals/bmm-skills/bmad-product-brief/files/meridian-mobility-report.md +116 -0
  8. package/evals/bmm-skills/bmad-product-brief/files/mossridge-brief/addendum.md +41 -0
  9. package/evals/bmm-skills/bmad-product-brief/files/mossridge-brief/brief.md +57 -0
  10. package/evals/bmm-skills/bmad-product-brief/files/mossridge-brief/decision-log.md +29 -0
  11. package/evals/bmm-skills/bmad-product-brief/files/pantry-bridge-interviews.md +90 -0
  12. package/evals/bmm-skills/bmad-product-brief/files/q2-brainstorm.md +101 -0
  13. package/evals/bmm-skills/bmad-product-brief/triggers.json +18 -0
  14. package/package.json +1 -1
  15. package/src/bmm-skills/1-analysis/bmad-product-brief/SKILL.md +48 -93
  16. package/src/bmm-skills/1-analysis/bmad-product-brief/assets/brief-template.md +41 -0
  17. package/src/bmm-skills/1-analysis/bmad-product-brief/customize.toml +48 -29
  18. package/src/bmm-skills/2-plan-workflows/bmad-create-prd/steps-c/step-01-init.md +8 -0
  19. package/src/bmm-skills/2-plan-workflows/bmad-create-prd/steps-c/step-02-discovery.md +2 -0
  20. package/src/bmm-skills/4-implementation/bmad-agent-dev/customize.toml +5 -0
  21. package/src/bmm-skills/4-implementation/bmad-investigate/SKILL.md +194 -0
  22. package/src/bmm-skills/4-implementation/bmad-investigate/customize.toml +62 -0
  23. package/src/bmm-skills/4-implementation/bmad-investigate/references/case-file-template.md +127 -0
  24. package/src/bmm-skills/module-help.csv +1 -0
  25. package/src/bmm-skills/1-analysis/bmad-product-brief/agents/artifact-analyzer.md +0 -60
  26. package/src/bmm-skills/1-analysis/bmad-product-brief/agents/opportunity-reviewer.md +0 -44
  27. package/src/bmm-skills/1-analysis/bmad-product-brief/agents/skeptic-reviewer.md +0 -44
  28. package/src/bmm-skills/1-analysis/bmad-product-brief/agents/web-researcher.md +0 -49
  29. package/src/bmm-skills/1-analysis/bmad-product-brief/bmad-manifest.json +0 -17
  30. package/src/bmm-skills/1-analysis/bmad-product-brief/prompts/contextual-discovery.md +0 -58
  31. package/src/bmm-skills/1-analysis/bmad-product-brief/prompts/draft-and-review.md +0 -87
  32. package/src/bmm-skills/1-analysis/bmad-product-brief/prompts/finalize.md +0 -78
  33. package/src/bmm-skills/1-analysis/bmad-product-brief/prompts/guided-elicitation.md +0 -71
  34. package/src/bmm-skills/1-analysis/bmad-product-brief/resources/brief-template.md +0 -60
@@ -1,47 +1,66 @@
1
1
  # DO NOT EDIT -- overwritten on every update.
2
2
  #
3
- # Workflow customization surface for bmad-product-brief. Mirrors the
4
- # agent customization shape under the [workflow] namespace.
3
+ # Workflow customization surface for bmad-product-brief.
4
+ #
5
+ # Override files (not edited here):
6
+ # {project-root}/_bmad/custom/bmad-product-brief.toml (team)
7
+ # {project-root}/_bmad/custom/bmad-product-brief.user.toml (personal)
5
8
 
6
9
  [workflow]
7
10
 
8
11
  # --- 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.
12
+ # scalars: override wins • arrays: append
11
13
 
12
14
  # Steps to run before the standard activation (config load, greet).
13
- # Overrides append. Use for pre-flight loads, compliance checks, etc.
14
-
15
+ # Use for pre-flight loads, compliance checks, etc.
15
16
  activation_steps_prepend = []
16
17
 
17
- # Steps to run after greet but before Stage 1 of the workflow.
18
- # Overrides append. Use for context-heavy setup that should happen
19
- # once the user has been acknowledged.
20
-
18
+ # Steps to run after greet but before the workflow begins.
19
+ # Use for context-heavy setup that should happen once the user has been acknowledged.
21
20
  activation_steps_append = []
22
21
 
23
22
  # Persistent facts the workflow keeps in mind for the whole run
24
23
  # (standards, compliance constraints, stylistic guardrails).
25
- # Distinct from the runtime memory sidecar these are static context
26
- # loaded on activation. Overrides append.
27
- #
28
- # Each entry is either:
29
- # - a literal sentence, e.g. "All briefs must include a regulatory-risk section."
30
- # - a file reference prefixed with `file:`, e.g. "file:{project-root}/docs/standards.md"
31
- # (glob patterns are supported; the file's contents are loaded and treated as facts).
32
-
33
- persistent_facts = [
34
- "file:{project-root}/**/project-context.md",
35
- ]
24
+ # Each entry is either a literal sentence, a skill prefixed with `skill:`, or a `file:`-prefixed path/glob
25
+ # whose contents are loaded as facts.
26
+ # Default is empty. Common opt-ins (set in your team/user override TOML):
27
+ # "file:{project-root}/_bmad-output/planning-artifacts/project-context.md" # bmad-generate-project-context output
28
+ # "skill:acme-co:terms-and-conditions" # a skill that contains some relevant info to the documents that may be generated
29
+ # "Elvis has left the building" # generic agent instructions
30
+ persistent_facts = []
36
31
 
37
- # Path to the brief structure template used in Stage 4 drafting.
38
- # Bare paths resolve from the skill root; use `{project-root}/...` to
39
- # point at an org-owned template elsewhere in the repo. Override wins.
32
+ # Executed when the workflow completes (after the user has been told the
33
+ # brief is ready). Accepts either a string scalar (single instruction)
34
+ # or an array of instructions executed in order. Empty for none.
35
+ on_complete = ""
40
36
 
41
- brief_template = "resources/brief-template.md"
37
+ # Default brief structure. Treated as a starting point — the LLM adapts it
38
+ # to the product, purpose, and domain. Override the path in team/user TOML
39
+ # to enforce a different structure (e.g. regulated-industry, investor-deck).
40
+ brief_template = "assets/brief-template.md"
42
41
 
43
- # Scalar: executed when the workflow reaches its terminal stage, after
44
- # the main output has been delivered. Override wins. Leave empty for
45
- # no custom post-completion behavior.
42
+ # Run folder location. The brief, optional addendum, and optional distillate
43
+ # all land inside `{output_dir}/{output_folder_name}/`.
44
+ output_dir = "{planning_artifacts}/briefs"
45
+ output_folder_name = "brief-{project_name}-{date}"
46
46
 
47
- on_complete = ""
47
+ # Document standards applied to human-consumed docs at finalize. Each entry is
48
+ # a `skill:`, `file:`, or plain-text directive; the parent LLM applies the
49
+ # findings before the user sees the draft. Encodes standards, not options.
50
+ #
51
+ # Examples:
52
+ # "skill:bmad-editorial-review-prose"
53
+ # "file:{project-root}/_bmad/style-guides/company-voice.md"
54
+ # "Convert all dates to ISO 8601 format."
55
+ #
56
+ # Suggested order (broader passes first, narrower last):
57
+ # 1. Structural (cuts, reorganization, section sizing)
58
+ # 2. Content/voice/conventions (org standards, tone, terminology, compliance)
59
+ # 3. Prose mechanics (grammar, clarity, typos)
60
+ #
61
+ # Override the array in team/user TOML to add additional standards. Append-only:
62
+ # base entries cannot be removed or replaced (resolver has no removal mechanism).
63
+ doc_standards = [
64
+ "skill:bmad-editorial-review-structure",
65
+ "skill:bmad-editorial-review-prose",
66
+ ]
@@ -77,6 +77,7 @@ Discover and load context documents using smart discovery. Documents can be in t
77
77
  - {planning_artifacts}/**
78
78
  - {output_folder}/**
79
79
  - {project_knowledge}/**
80
+ - {implementation_artifacts}/investigations/**
80
81
  - docs/**
81
82
 
82
83
  Also - when searching - documents can be a single markdown file, or a folder with an index and multiple files. For Example, if searching for `*foo*.md` and not found, also search for a folder called *foo*/index.md (which indicates sharded content)
@@ -86,6 +87,8 @@ Try to discover the following:
86
87
  - Research Documents (`/*research*.md`)
87
88
  - Project Documentation (generally multiple documents might be found for this in the `{project_knowledge}` or `docs` folder.)
88
89
  - Project Context (`**/project-context.md`)
90
+ - Investigation Files (`{implementation_artifacts}/investigations/*-investigation.md`) — `bmad-investigate` case files
91
+ when the PRD is being driven by a forensic investigation rather than greenfield ideation.
89
92
 
90
93
  <critical>Confirm what you have found with the user, along with asking if the user wants to provide anything else. Only after this confirmation will you proceed to follow the loading rules</critical>
91
94
 
@@ -120,6 +123,7 @@ Try to discover the following:
120
123
  - Product briefs: {{briefCount}} files {if briefCount > 0}✓ loaded{else}(none found){/if}
121
124
  - Research: {{researchCount}} files {if researchCount > 0}✓ loaded{else}(none found){/if}
122
125
  - Brainstorming: {{brainstormingCount}} files {if brainstormingCount > 0}✓ loaded{else}(none found){/if}
126
+ - Investigations: {{investigationCount}} files {if investigationCount > 0}✓ loaded{else}(none found){/if}
123
127
  - Project docs: {{projectDocsCount}} files {if projectDocsCount > 0}✓ loaded (brownfield project){else}(none found - greenfield project){/if}
124
128
 
125
129
  **Files loaded:** {list of specific file names or "No additional documents found"}
@@ -128,6 +132,10 @@ Try to discover the following:
128
132
  📋 **Note:** This is a **brownfield project**. Your existing project documentation has been loaded. In the next step, I'll ask specifically about what new features or changes you want to add to your existing system.
129
133
  {/if}
130
134
 
135
+ {if investigationCount > 0}
136
+ 🔎 **Note:** Investigation files have been loaded. The evidence-graded findings (Confirmed / Deduced / Hypothesized), timeline, and fix direction are available as context while we scope requirements.
137
+ {/if}
138
+
131
139
  Do you have any other documents you'd like me to include, or shall we continue to the next step?"
132
140
 
133
141
  ### 4. Present MENU OPTIONS
@@ -63,6 +63,7 @@ Read the frontmatter from `{outputFile}` to get document counts:
63
63
  - `briefCount` - Product briefs available
64
64
  - `researchCount` - Research documents available
65
65
  - `brainstormingCount` - Brainstorming docs available
66
+ - `investigationCount` - bmad-investigate case files available
66
67
  - `projectDocsCount` - Existing project documentation
67
68
 
68
69
  **Announce your understanding:**
@@ -71,6 +72,7 @@ Read the frontmatter from `{outputFile}` to get document counts:
71
72
  - Product briefs: {{briefCount}}
72
73
  - Research: {{researchCount}}
73
74
  - Brainstorming: {{brainstormingCount}}
75
+ - Investigations: {{investigationCount}}
74
76
  - Project docs: {{projectDocsCount}}
75
77
 
76
78
  {{if projectDocsCount > 0}}This is a brownfield project - I'll focus on understanding what you want to add or change.{{else}}This is a greenfield project - I'll help you define the full product vision.{{/if}}"
@@ -88,3 +88,8 @@ skill = "bmad-create-story"
88
88
  code = "ER"
89
89
  description = "Party mode review of all work completed across an epic"
90
90
  skill = "bmad-retrospective"
91
+
92
+ [[agent.menu]]
93
+ code = "IN"
94
+ description = "Forensic case investigation with evidence-graded findings, calibrated to the input"
95
+ skill = "bmad-investigate"
@@ -0,0 +1,194 @@
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
+ ### Step 7: Acknowledge and route
83
+
84
+ Acknowledge the input as a reference (record paths and IDs; don't read raw content). Path to an existing case file →
85
+ Outcome 0. Otherwise → Outcome 1.
86
+
87
+ ## Procedure
88
+
89
+ ### Outcome 0: Existing case is loaded and surfaced
90
+
91
+ Read the case file. Surface, in order: open hypotheses (Status = Open) with their confirm/refute criteria; open
92
+ backlog (Status ≠ Done); missing-evidence rows; last Conclusion with confidence. Ask which thread to pull. New
93
+ 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.
94
+
95
+ ### Outcome 1: Scope and stronghold are established
96
+
97
+ Acknowledge each input shape — record location, scope, time window only; bulk reads happen in Outcome 2.
98
+
99
+ - **Issue tracker ticket.** Fetch full details via available MCP tools.
100
+ - **Diagnostic archive.** Record path, file count, time window.
101
+ - **Log file or stack trace.** Record path and time window; only the stack frame already in the user's message is in
102
+ scope here.
103
+ - **Free-text description.** Capture verbatim; treat as hypothesis.
104
+ - **Code area name** (no symptom). Record entry point.
105
+ - **Recent commit area.** Record commit range.
106
+
107
+ If the user arrived with a hypothesis, register it as Hypothesis #1. Find the stronghold *independently*; the user's
108
+ hypothesis is one of the things the stronghold validates or refutes.
109
+
110
+ Find a stronghold: a Confirmed piece of evidence (error message, function name, HTTP route, config parameter, test
111
+ case). Anchor here.
112
+
113
+ **Initialize `{case_file}` before branching.** The path is
114
+ `{implementation_artifacts}/{workflow.case_file_subdir}/{workflow.case_file_filename}` with `{slug}` substituted (slug
115
+ and collision rules in Overview). Create the file from `{workflow.case_file_template}` and fill Hand-off Brief
116
+ (rough), Case Info, Problem Statement, initial Evidence Inventory.
117
+
118
+ **Evidence-light branch.** When no Confirmed evidence is reachable: mark the case evidence-light in the Hand-off
119
+ Brief; populate the Investigation Backlog with prioritized data-collection items; record "to make progress, I need one
120
+ of: …"; pause for the user to provide evidence or authorize Outcome 2 to scan more broadly.
121
+
122
+ Otherwise present scope, stronghold, file path, proposed approach. Pause for user with the recap above; wait for direction.
123
+
124
+ ### Outcome 2: Evidence perimeter is mapped
125
+
126
+ Survey the scene: inventory available evidence in parallel across these independent categories: diagnostic archives;
127
+ issue tracker; version control; test results; static analysis; source code. For any category exceeding ~10K tokens,
128
+ delegate to a subagent that returns a JSON manifest (paths, sizes, time windows, key fragments cited as `path:line`).
129
+
130
+ Classify each Available, Partial, or Missing — Missing is itself a finding. Update Evidence Inventory and Investigation
131
+ Backlog. Pause for user with the recap above; wait for direction.
132
+
133
+ ### Outcome 3: Cause is reasoned about with discipline
134
+
135
+ - **Trace causality.** Symptom-driven: trace backward from the symptom to producing conditions and the state that
136
+ emerged. Exploration: trace backward from outputs (returns, side effects, messages sent) to producing conditions.
137
+ Same technique, different anchor.
138
+ - **Reconstruct the timeline** by cross-referencing logs, system events, version control, user observations.
139
+ - **Form and test hypotheses.** State, identify confirming/refuting evidence, search, grade
140
+ (Confirmed / Refuted / Open). Update Status. Never delete.
141
+ - **Refutation pass.** Each time a hypothesis transitions toward Confirmed, actively look for refuting evidence first.
142
+ Record the attempt in Resolution.
143
+ - **Verify the user's premise.** If evidence contradicts, say so explicitly.
144
+ - **Add discovered paths to the backlog.** Stay focused on the current thread.
145
+
146
+ Update Confirmed Findings, Deduced Conclusions, Hypothesized Paths, Backlog, Timeline. Highlight contradictions to the
147
+ original premise. Pause for user with the recap above; wait for direction.
148
+
149
+ ### Outcome 4: Source has been traced where it matters
150
+
151
+ Issue these first-pass scans as parallel tool calls in one message: grep for exact error strings; glob the affected
152
+ directory for parallel implementations; `git log` for recent changes.
153
+
154
+ Then sequentially: read the surrounding code; follow the caller chain; watch for language and process boundary
155
+ crossings (compiled→scripts, IPC, host→device, configuration flow).
156
+
157
+ Lean by case type:
158
+
159
+ - **Exploration:** I/O mapping (triggers, outputs, dependencies); frequent-terms scan; control-flow filtering
160
+ (branches, loops, error handling, state-machine transitions).
161
+ - **Symptom-driven:** depth assessment — is the root cause reachable from local context, or is a broader area model
162
+ required? Surface escalations; never silently expand scope. Trivial-fix assessment — off-by-one, missing null check,
163
+ swapped argument → one-line code suggestion or draft diff in the report; non-trivial → stop at the root cause area.
164
+
165
+ Investigation stops at the diagnosis; implementation is out of scope. Update Source Code Trace (Error origin, Trigger,
166
+ Condition, Related files; area model when broader). Pause for user with the recap above; wait for direction.
167
+
168
+ ### Outcome 5: Report is finalized and the hand-off is clean
169
+
170
+ Update `{case_file}`:
171
+
172
+ - **Hand-off Brief** rewritten to final form (3 sentences, 15-second read).
173
+ - **Final Conclusion** with confidence: **High** (Confirmed root cause, deterministic repro), **Medium** (Deduced;
174
+ minor uncertainty), **Low** (Hypothesized; clear data gap).
175
+ - **Fix direction** when applicable (categorize by mechanism if multiple combine).
176
+ - **Diagnostic steps** if uncertainty remains.
177
+ - **Reproduction Plan** when applicable, or a verification plan for exploration cases.
178
+ - **Status:** Active / Concluded / Blocked on evidence.
179
+
180
+ Present the conclusion, then a concrete next-steps menu: trivial fix → `bmad-quick-dev`; scope/plan adjustment →
181
+ `bmad-correct-course`; tracked story → `bmad-create-story`; fresh review → `bmad-code-review`. Recommend the
182
+ highest-value action. Mitigations and workarounds are generated only on explicit request — investigation stops at the
183
+ diagnosis. Execute `{workflow.on_complete}` if non-empty. Pause for user with the recap above; wait for direction.
184
+
185
+ ## Follow-up Iterations
186
+
187
+ Continue work by appending to `{case_file}` under a new `## Follow-up: {YYYY-MM-DD}` block (`#2`, `#3` on same-day
188
+ reentry). The investigation is complete when:
189
+
190
+ - Root cause is Confirmed.
191
+ - Root cause is Hypothesized with a clear data gap.
192
+ - The mental model is sufficient for the user's stated goal (exploration cases).
193
+ - The backlog contains only items requiring unavailable evidence.
194
+ - The user explicitly concludes.
@@ -0,0 +1,62 @@
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 = ""
@@ -0,0 +1,127 @@
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
@@ -31,3 +31,4 @@ BMad Method,bmad-code-review,Code Review,CR,Story cycle: If issues back to DS if
31
31
  BMad Method,bmad-checkpoint-preview,Checkpoint,CK,Guided walkthrough of a change from purpose and context into details. Use for human review of commits branches or PRs.,,,4-implementation,,,false,,
32
32
  BMad Method,bmad-qa-generate-e2e-tests,QA Automation Test,QA,Generate automated API and E2E tests for implemented code. NOT for code review or story validation — use CR for that.,,,4-implementation,bmad-dev-story,,false,implementation_artifacts,test suite
33
33
  BMad Method,bmad-retrospective,Retrospective,ER,Optional at epic end: Review completed work lessons learned and next epic or if major issues consider CC.,,,4-implementation,bmad-code-review,,false,implementation_artifacts,retrospective
34
+ BMad Method,bmad-investigate,Investigate,IN,Forensic case investigation calibrated to the input. Evidence-graded analysis with hypothesis tracking. Produces a structured case file.,,4-implementation,,,false,implementation_artifacts,investigation report
@@ -1,60 +0,0 @@
1
- # Artifact Analyzer
2
-
3
- You are a research analyst. Your job is to scan project documents and extract information relevant to a specific product idea.
4
-
5
- ## Input
6
-
7
- You will receive:
8
- - **Product intent:** A summary of what the product brief is about
9
- - **Scan paths:** Directories to search for relevant documents (e.g., planning artifacts, project knowledge folders)
10
- - **User-provided paths:** Any specific files the user pointed to
11
-
12
- ## Process
13
-
14
- 1. **Scan the provided directories** for documents that could be relevant:
15
- - Brainstorming reports (`*brainstorm*`, `*ideation*`)
16
- - Research documents (`*research*`, `*analysis*`, `*findings*`)
17
- - Project context (`*context*`, `*overview*`, `*background*`)
18
- - Existing briefs or summaries (`*brief*`, `*summary*`)
19
- - Any markdown, text, or structured documents that look relevant
20
-
21
- 2. **For sharded documents** (a folder with `index.md` and multiple files), read the index first to understand what's there, then read only the relevant parts.
22
-
23
- 3. **For very large documents** (estimated >50 pages), read the table of contents, executive summary, and section headings first. Read only sections directly relevant to the stated product intent. Note which sections were skimmed vs read fully.
24
-
25
- 4. **Read all relevant documents in parallel** — issue all Read calls in a single message rather than one at a time. Extract:
26
- - Key insights that relate to the product intent
27
- - Market or competitive information
28
- - User research or persona information
29
- - Technical context or constraints
30
- - Ideas, both accepted and rejected (rejected ideas are valuable — they prevent re-proposing)
31
- - Any metrics, data points, or evidence
32
-
33
- 5. **Ignore documents that aren't relevant** to the stated product intent. Don't waste tokens on unrelated content.
34
-
35
- ## Output
36
-
37
- Return ONLY the following JSON object. No preamble, no commentary. Maximum 8 bullets per section.
38
-
39
- ```json
40
- {
41
- "documents_found": [
42
- {"path": "file path", "relevance": "one-line summary"}
43
- ],
44
- "key_insights": [
45
- "bullet — grouped by theme, each self-contained"
46
- ],
47
- "user_market_context": [
48
- "bullet — users, market, competition found in docs"
49
- ],
50
- "technical_context": [
51
- "bullet — platforms, constraints, integrations"
52
- ],
53
- "ideas_and_decisions": [
54
- {"idea": "description", "status": "accepted|rejected|open", "rationale": "brief why"}
55
- ],
56
- "raw_detail_worth_preserving": [
57
- "bullet — specific details, data points, quotes for the distillate"
58
- ]
59
- }
60
- ```
@@ -1,44 +0,0 @@
1
- # Opportunity Reviewer
2
-
3
- You are a strategic advisor reviewing a product brief draft. Your job is to spot untapped potential — value the brief is leaving on the table.
4
-
5
- ## Input
6
-
7
- You will receive the complete draft product brief.
8
-
9
- ## Review Lens
10
-
11
- Ask yourself:
12
-
13
- - **What adjacent value propositions are being missed?** Are there related problems this solution naturally addresses?
14
- - **What market angles are underemphasized?** Is the positioning leaving opportunities unexplored?
15
- - **What partnerships or integrations could multiply impact?** Who would benefit from aligning with this product?
16
- - **What's the network effect or viral potential?** Is there a growth flywheel the brief doesn't describe?
17
- - **What's underemphasized?** Which strengths deserve more spotlight?
18
- - **What user segments are overlooked?** Could this serve audiences not yet mentioned?
19
- - **What's the bigger story?** If you zoom out, is there a more compelling narrative?
20
- - **What would an investor want to hear more about?** What would make someone lean forward?
21
-
22
- ## Output
23
-
24
- Return ONLY the following JSON object. No preamble, no commentary. Focus on the 2-3 most impactful opportunities per section, not an exhaustive list.
25
-
26
- ```json
27
- {
28
- "untapped_value": [
29
- {"opportunity": "adjacent problem or value prop", "rationale": "why it matters"}
30
- ],
31
- "positioning_opportunities": [
32
- {"angle": "market angle or narrative", "impact": "how it strengthens the brief"}
33
- ],
34
- "growth_and_scale": [
35
- "bullet — network effects, viral loops, expansion paths"
36
- ],
37
- "strategic_partnerships": [
38
- {"partner_type": "who", "value": "why this alliance matters"}
39
- ],
40
- "underemphasized_strengths": [
41
- {"strength": "what's underplayed", "suggestion": "how to elevate it"}
42
- ]
43
- }
44
- ```