/bmad-planning-orchestrator:bmad-investigatefrom BMAD Planning & Orchestrator
Forensic bug and issue triage that produces a graded investigation case file with symptoms, evidence, hypotheses, and a handoff story — investigates and documents only, never fixes.
Ships in BMAD Planning & Orchestrator. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Forensic triage — plan the fix, don't apply it.
This skill builds a structured, evidence-graded investigation case file so that whoever picks up the story has a clear picture of what is known, what is suspected, and exactly what needs verifying before any code changes. It deliberately stops before implementation; the result of every investigation is a story handed off to an external dev tool.
Persona flavor: Mary (Business Analyst) frames the user impact; Winston (Architect) maps the component topology. The skill is a workflow, not a character.
This skill PLANS. It reads planning artifacts and existing code to gather evidence.
It does NOT write application code, run tests, lint, build, or review diffs.
The last artifact it emits is either an updated planning document or a story file
marked status: ready-for-dev. If tempted to "fix the bug", "run the suite", or
"apply the patch" — STOP. Investigate and hand off.
| Source | Why |
|---|---|
bmad-output/project-context.md | Project constitution — architecture, stack, ownership |
bmad-output/architecture.md | Component boundaries, module responsibilities |
bmad-output/prd.md or tech-spec.md | Requirements the broken behavior should satisfy |
bmad-output/decision-log.md | Prior decisions that may relate to the issue |
| User-provided symptom description | Primary input — what is failing, when, how |
| Logs / error messages the user pastes in | Raw evidence to grade and analyze |
Existing story files in bmad-output/stories/ | Check for duplicate or related work |
If project-context.md does not exist, ask the user to describe the stack and affected area before proceeding.
Ask which intent applies if ambiguous.
Use TodoWrite to track progress through these steps.
Before investigating, confirm exactly what is observable. Ask (or infer from context):
Record these as the "Symptom Summary" — this is the anchor for all grading later.
Read all available inputs listed above. Extract:
Collect all available evidence. Assign each item an evidence grade:
| Grade | Meaning |
|---|---|
| A | Directly observed, reproducible, or confirmed by multiple independent sources. High confidence. |
| B | Single-source, inferred from logs, or plausible but not yet reproduced. Medium confidence. |
| C | Speculative, based on code reading only, or pattern-matched without direct confirmation. Low confidence. |
Evidence types to gather:
Use Grep and Glob to search the codebase for error strings, function names, or file paths the user mentions. Read code files to trace call paths. Do NOT run the code — read it.
Based on all grade-A and grade-B evidence, draft 2–5 hypotheses. For each:
Order hypotheses from most to least plausible.
For each top-2 hypothesis, list:
Fill the template:
${CLAUDE_PLUGIN_ROOT}/skills/bmad-investigate/templates/investigation.template.md
Save to: bmad-output/investigation-<issue-slug>-<date>.md
Use Write. Fill every {{placeholder}} from your analysis.
After completing the case file, determine the planning response:
Option A — Create a fix story:
Draft a story file using the standard story contract from bmad-epics-and-stories.
The story Dev Notes MUST cite the investigation case file. Status: ready-for-dev.
Naming: {epic}.{story}.{slug}.story.md in bmad-output/stories/.
Option B — Update an existing backlog story: If a related story exists in backlog, recommend updating its Dev Notes and ACs to incorporate the investigation findings. Do NOT edit the story yourself unless asked; describe what needs updating.
Option C — Escalate to planning:
If the investigation reveals a systemic issue touching multiple epics, recommend
that the user run /bmad-planning-orchestrator:bmad-prd or
/bmad-planning-orchestrator:bmad-architecture (Update intent) before a story
is created.
Tell the user which option applies and why. If creating a fix story (Option A), draft it now unless the user says otherwise.
Append to bmad-output/decision-log.md:
## Investigation: [Issue Slug] — [Date]
- Symptom: [one sentence]
- Primary hypothesis: [one sentence]
- Primary suspected component: [name]
- Case file: bmad-output/investigation-<slug>-<date>.md
- Recommended response: [Option A/B/C + story ID if created]
Check the draft case file against this contract checklist:
Report pass/fail per item. Do not edit unless asked.
| Grade | Label | Typical Sources |
|---|---|---|
| A | Confirmed | Direct logs, reproducible steps, two-source corroboration |
| B | Probable | Single logs, code-read inference, intermittent reproduction, user reports |
| C | Speculative | Educated guess, pattern match, untested hypothesis only |
Never promote a C to an A in the case file — the external dev agent needs to know what is solid and what is guesswork before they start.
For large-scale investigations spanning multiple suspected components, fan out parallel read-only agents:
Agent 1 — Evidence Collector
Read the investigation brief at bmad-output/investigation-scratch/brief.md.
Search the codebase with Grep/Glob for error strings, function names, and file
paths listed. Collect stack-trace context. Write findings (verbatim excerpts +
file paths + line numbers) to bmad-output/investigation-scratch/evidence.md.
Do NOT modify any source files. Grade each item A/B/C.
Agent 2 — Component Mapper
Read bmad-output/architecture.md and the brief at
bmad-output/investigation-scratch/brief.md. For each suspected component,
extract its responsibilities, dependencies, and API contracts.
Write findings to bmad-output/investigation-scratch/components.md.
After agents complete, synthesize evidence.md + components.md into the final case file using the template. Delete scratch files after synthesis.
bmad-output/decision-log.md — threaded decision recordbmad-output/project-context.md — project constitution/bmad-planning-orchestrator:bmad-epics-and-stories — creates the fix story/bmad-planning-orchestrator:bmad-readiness-check — if investigation reveals
systemic planning gaps before the fix story is safe to hand off
Part of the BMAD Planning & Orchestrator plugin — a Claude Code harness for the BMAD Method by the BMAD Code Organization (https://github.com/bmad-code-org/BMAD-METHOD). Implements the spirit of
bmad-investigate. All methodology credit belongs to the BMAD Code Organization.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub aj-geddes/claude-code-bmad-skills --plugin bmad-planning-orchestrator20 skills in this plugin
/bmad-architectureSolutioning skill (Winston, the Architect). Produces architecture.md with ADRs and systematic NFR coverage, mapping every FR/NFR from the PRD to a concrete design decision. ONE architecture forces all future parallel dev agents to share the same API style, data model, state management, naming conventions, and security approach — catching alignment here is 10x cheaper than during implementation. Use when the user says "design the architecture", "create architecture", "/architecture", "solutioning", "tech stack", "system design", "ADR", "architecture decision record", "data model", "API design", "NFR coverage", "non-functional requirements", or after a PRD is done and they ask "what's next" / "ready for solutioning". Supports Create (new architecture.md), Update (revise against PRD changes), and Validate (check coverage + ADR completeness). PLANS only — never writes application code, runs tests, lints, or builds.
/bmad-brainstormFacilitates structured ideation sessions using proven brainstorming techniques
(SCAMPER, SWOT, 5 Whys, Mind Mapping, Six Thinking Hats, Reverse Brainstorming,
Starbursting, Brainwriting). Produces a brainstorming-report.md of organized ideas
and actionable insights. Operates in three intents: Create (new session), Update
(add techniques or deepen coverage), Validate (confirm insights align with project goals).
Use when the user says: "brainstorm", "ideate", "generate ideas", "explore options",
"SCAMPER", "SWOT analysis", "mind map", "Six Thinking Hats", "5 Whys", "creative
session", "what if we", "let's explore", "think through possibilities", "find
alternatives", or "problem-solve".
This skill PLANS only — it never writes application code or runs tests.
/bmad-builderMeta-skill for scaffolding and validating custom PLANNING/ORCHESTRATION skills within the BMAD Planning & Orchestrator plugin. Produces the full skill directory: SKILL.md, scripts, and templates — all pre-targeted at this plugin's path conventions. Includes a scope-violation checker so newly created skills never drift into dev/lint/build/coverage territory. Use when the user says "create a skill", "scaffold a skill", "build a new planning skill", "add a skill to the orchestrator", "extend BMAD planning", "custom orchestration skill", "validate this skill", "check this skill for scope violations", "new skill for the planner", or "bmad-builder". Supports three intents: Create (new skill skeleton), Validate (check an existing SKILL.md), Scaffold (directory structure only). This skill plans and scaffolds only — it NEVER writes application code, runs tests, lints, or builds.
/bmad-correct-courseCROSS-PHASE mid-stream scope correction. Re-enters planning when requirements,
features, architecture, or constraints change after planning has started. Re-shards
affected epics/stories, re-sequences sprint-status.yaml, appends rationale to
decision-log.md. Routes to bmad-epics-and-stories, bmad-sprint-planning, or
bmad-parallel-plan as needed. Changes the PLAN, never code.
Use when: "we need to change course", "scope has changed", "new requirement came in",
"we're dropping feature X", "we need to pivot", "re-plan after the change",
"requirements changed mid-sprint", "correct course", "architecture changed",
"re-scope the backlog", "update epics after feedback", "cancel story X",
"add epic for Y", "change the plan", "we got new constraints", or when stories
are split/merged/reordered due to a decision not in the original plan.
Produces: updated epics.md (affected only), revised/new story files, updated
sprint-status.yaml, new decision-log.md entry. NEVER writes code or runs tests.
/bmad-document-projectBROWNFIELD planning input. Scans an existing codebase READ-ONLY and writes
project-documentation.md — ground truth for stack, structure, key flows,
conventions, and integration points — so downstream BMAD planning skills
start from reality. Does NOT modify code; produces only the doc artifact.
Use when the user says: "document this codebase", "document the project",
"document my app", "scan the existing code", "brownfield planning",
"we have existing code, start planning", "map what's already built",
"document current state", "capture the current architecture",
"understand the existing system before planning",
"write project-documentation.md", or before a PRD or architecture doc
when the user already has code written.
Three intents: Create (initial scan), Update (re-scan changed areas),
Validate (check completeness). Plans only — reads code but never writes
it, runs no tests, no linters, no build tools, no application code.
/bmad-epics-and-storiesSolutioning flagship — shards a PRD + architecture into epics.md and individual
{epic}.{story}.{slug}.story.md context objects, the LAST planning artifact before
external dev handoff. Each story is a self-contained ~8K-token compiled context object:
Dev Notes with SOURCE CITATIONS back to prd.md/architecture.md, Acceptance Criteria,
Tasks/Subtasks mapped to ACs, Testing strategy, Dependency Maps, an explicit Owned
File/Module Scope list (the lever for parallel-conflict-free scheduling), and Learnings
from Previous Stories. Sized to one dev-day; split if larger; NO story points.
Use when the user says "shard the PRD", "create epics", "break the PRD into epics",
"break this epic into stories", "create stories", "create a story", "draft story files",
"generate the story for X", "prepare stories for dev", "mark the story ready for dev",
"validate this story", or "what stories are in this epic". Three intents: Create new
epics/stories, Update an existing story, or Validate a draft against the contract.
Other plugins' skills for the same job