Index of every page on this site: llms.txt
All skills
aj-geddes avatar

/bmad-investigate

@27dca0e
Run it yourself

Forensic bug and issue triage. Produces a graded investigation case file: symptoms, evidence (graded A/B/C by confidence), ranked hypotheses, suspected components, and a recommended planning response. INVESTIGATES and DOCUMENTS only — does NOT fix code, run tests, or implement. Hands off as a story to an external dev tool. Use when the user says: - "investigate this bug" / "triage this issue" / "debug triage" - "what's causing [symptom]" / "why is [feature] broken" - "something's wrong with [component]" / "users are reporting [problem]" - "figure out what happened" / "root cause this" - "I need a bug report" / "create an investigation case file" - "forensic analysis" / "diagnose this" - "error triage" / "issue investigation" - "what do we know about [incident/issue]" Three intents: Create (new case file), Update (add evidence to open case), Validate (check draft for completeness before handoff). Output lands in bmad-output/; a fix story is drafted on handoff.

Use this Skill: https://skilld.dev/gh/aj-geddes/claude-code-bmad-skills/bmad-investigate

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

templatesinvestigation.template.md

≈2.1k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Investigation Case File: {{ISSUE_SLUG}}

Date: {{DATE}} Project: {{PROJECT_NAME}} Reported By: {{REPORTED_BY}} <!-- user / support ticket ID / monitoring alert --> Severity: {{SEVERITY}} <!-- Data Loss | Outage | Degraded UX | Cosmetic --> Status: {{STATUS}} <!-- Open | Hypothesis Confirmed | Closed — Story Created --> Case File Version: {{VERSION}} <!-- 1.0 for initial; increment on Update --> Investigation Case File: bmad-output/investigation-{{ISSUE_SLUG}}-{{DATE}}.md


Summary

One-sentence description of the issue: {{ISSUE_SUMMARY}}

Expected behavior: {{EXPECTED_BEHAVIOR}}

Actual behavior: {{ACTUAL_BEHAVIOR}}

User / business impact: {{BUSINESS_IMPACT}}

<!-- Quantify where possible: "affects ~N% of users", "blocks checkout flow", etc. -->

Symptom Details

Trigger conditions: {{TRIGGER_CONDITIONS}}

<!-- When does this occur? Always? Intermittently? Under load? With specific inputs? -->

Environments affected:

  • Production
  • Staging
  • Development / local
  • Specific environment: {{SPECIFIC_ENV}}

First observed: {{FIRST_OBSERVED}} Frequency: {{FREQUENCY}} <!-- e.g. "every request", "~30% of the time", "once" --> Reproducible: {{REPRODUCIBLE}} <!-- Yes / No / Intermittent -->

Reproduction steps (if known):

  1. {{REPRO_STEP_1}}
  2. {{REPRO_STEP_2}}
  3. {{REPRO_STEP_3}}
<!-- Add or remove steps as needed. Write "Unknown" if not yet reproducible. -->

Evidence

Grading Key

  • [A] Confirmed — directly observed, reproducible, or corroborated by 2+ independent sources.
  • [B] Probable — single source, code-read inference, or intermittent.
  • [C] Speculative — pattern match or untested hypothesis only.

Evidence Item 1: {{EVIDENCE_1_TITLE}}

Grade: {{GRADE_1}} <!-- [A] / [B] / [C] --> Source: {{SOURCE_1}} <!-- e.g. "production logs, 2026-06-19 03:42 UTC" --> Description: {{EVIDENCE_1_DESCRIPTION}}

Verbatim excerpt (if applicable):

{{EVIDENCE_1_EXCERPT}}

Implications: {{EVIDENCE_1_IMPLICATIONS}}


Evidence Item 2: {{EVIDENCE_2_TITLE}}

Grade: {{GRADE_2}} Source: {{SOURCE_2}} Description: {{EVIDENCE_2_DESCRIPTION}}

Verbatim excerpt (if applicable):

{{EVIDENCE_2_EXCERPT}}

Implications: {{EVIDENCE_2_IMPLICATIONS}}


Evidence Item 3: {{EVIDENCE_3_TITLE}}

Grade: {{GRADE_3}} Source: {{SOURCE_3}} Description: {{EVIDENCE_3_DESCRIPTION}}

Verbatim excerpt (if applicable):

{{EVIDENCE_3_EXCERPT}}

Implications: {{EVIDENCE_3_IMPLICATIONS}}

<!-- Add Evidence Item 4, 5, … as needed. -->

Evidence Summary

# Title Grade Source Key Implication
1 {{EVIDENCE_1_TITLE}} {{GRADE_1}} {{SOURCE_1}} {{EVIDENCE_1_IMPLICATIONS}}
2 {{EVIDENCE_2_TITLE}} {{GRADE_2}} {{SOURCE_2}} {{EVIDENCE_2_IMPLICATIONS}}
3 {{EVIDENCE_3_TITLE}} {{GRADE_3}} {{SOURCE_3}} {{EVIDENCE_3_IMPLICATIONS}}
<!-- Extend as needed -->

Hypotheses

Ranked from most to least plausible. Each hypothesis must be falsifiable.

Hypothesis 1 — {{H1_TITLE}} [Plausibility: High / Medium / Low]

Statement: {{H1_STATEMENT}}

Supporting evidence:

  • {{H1_SUPPORT_1}} ({{H1_SUPPORT_1_GRADE}})
  • {{H1_SUPPORT_2}} ({{H1_SUPPORT_2_GRADE}})

Contradicting evidence:

  • {{H1_CONTRADICT_1}}
<!-- Write "None identified" if no contradicting evidence -->

Verification step (for the dev agent): {{H1_VERIFICATION}}

<!-- What specific check would confirm or refute this? Be concrete: "add log at X", "reproduce with Y input", "diff config A vs B". -->

Hypothesis 2 — {{H2_TITLE}} [Plausibility: High / Medium / Low]

Statement: {{H2_STATEMENT}}

Supporting evidence:

  • {{H2_SUPPORT_1}} ({{H2_SUPPORT_1_GRADE}})

Contradicting evidence:

  • {{H2_CONTRADICT_1}}

Verification step (for the dev agent): {{H2_VERIFICATION}}


Hypothesis 3 — {{H3_TITLE}} [Plausibility: High / Medium / Low]

Statement: {{H3_STATEMENT}}

Supporting evidence:

  • {{H3_SUPPORT_1}} ({{H3_SUPPORT_1_GRADE}})

Contradicting evidence:

  • {{H3_CONTRADICT_1}}

Verification step (for the dev agent): {{H3_VERIFICATION}}

<!-- Add Hypothesis 4, 5 as needed. Remove if fewer apply. -->

Suspected Components

Mapped from the top hypotheses. Cross-referenced against architecture.md.

Component: {{COMPONENT_1_NAME}}

Attribute Detail
Type {{COMPONENT_1_TYPE}} <!-- module / service / library / config / infra -->
File / path {{COMPONENT_1_PATH}}
Responsibility {{COMPONENT_1_RESPONSIBILITY}}
Confidence {{COMPONENT_1_CONFIDENCE}} <!-- High / Medium / Low — from evidence grade -->
Architecture reference {{COMPONENT_1_ARCH_REF}} <!-- e.g. "architecture.md#auth-service" -->

Why suspected: {{COMPONENT_1_WHY}}

Blast radius (if hypothesis is correct): {{COMPONENT_1_BLAST_RADIUS}}


Component: {{COMPONENT_2_NAME}}

Attribute Detail
Type {{COMPONENT_2_TYPE}}
File / path {{COMPONENT_2_PATH}}
Responsibility {{COMPONENT_2_RESPONSIBILITY}}
Confidence {{COMPONENT_2_CONFIDENCE}}
Architecture reference {{COMPONENT_2_ARCH_REF}}

Why suspected: {{COMPONENT_2_WHY}}

Blast radius (if hypothesis is correct): {{COMPONENT_2_BLAST_RADIUS}}

<!-- Add Component 3+ as needed. -->

Related Requirements

Which functional or non-functional requirements does this broken behavior touch?

Requirement Type Source Status
{{REQ_1_ID}} — {{REQ_1_TITLE}} FR / NFR {{REQ_1_SOURCE}} Violated / At Risk
{{REQ_2_ID}} — {{REQ_2_TITLE}} FR / NFR {{REQ_2_SOURCE}} Violated / At Risk
<!-- Cite prd.md or tech-spec.md sections: e.g. "prd.md#FR-12" --> <!-- Write "None identified" if no direct requirement link -->

Recommended Action

Planning Response: {{PLANNING_RESPONSE}} <!-- Option A / B / C -->

Option A — Create a Fix Story (recommended when root cause is scoped)

Story to create:

Field Value
Epic {{STORY_EPIC}}
Story title {{STORY_TITLE}}
As a {{STORY_AS_A}}
I want {{STORY_I_WANT}}
So that {{STORY_SO_THAT}}
Suggested AC 1 {{STORY_AC_1}}
Suggested AC 2 {{STORY_AC_2}}
Suspected files / modules {{STORY_SCOPE}}
Verification steps (from hypotheses) {{STORY_VERIFICATION}}
Investigation reference bmad-output/investigation-{{ISSUE_SLUG}}-{{DATE}}.md

Proceed with /bmad-planning-orchestrator:bmad-epics-and-stories to compile the full story context object. Dev Notes in that story MUST cite this case file.


Option B — Update an Existing Story (recommended when a related backlog item exists)

Story to update: {{EXISTING_STORY_PATH}}

What to add:

  • Dev Notes: {{OPTION_B_DEV_NOTE}}
  • Additional AC: {{OPTION_B_AC}}
  • Updated scope (if new files implicated): {{OPTION_B_SCOPE_UPDATE}}

Proceed with /bmad-planning-orchestrator:bmad-epics-and-stories (Update intent).


Option C — Escalate to Planning (recommended when root cause implicates architecture or PRD gaps)

Rationale: {{OPTION_C_RATIONALE}}

Recommended next skill:

  • /bmad-planning-orchestrator:bmad-architecture (Update intent) — if a design decision needs revision.
  • /bmad-planning-orchestrator:bmad-prd (Update intent) — if a requirement is missing or ambiguous.
  • /bmad-planning-orchestrator:bmad-readiness-check — if multiple areas are at risk.

Specific gap to address: {{OPTION_C_GAP}}


Open Questions

Items that could not be answered from available evidence. Carry forward to the story or escalate to planning as appropriate.

  1. {{OPEN_Q_1}}
  2. {{OPEN_Q_2}}
  3. {{OPEN_Q_3}}
<!-- Remove if none -->

Update History

Version Date Summary of Changes
1.0 {{DATE}} Initial investigation case file
<!-- Add rows on Update-intent runs -->

BMAD Planning & Orchestrator · Investigation Case File · tracks bmad-investigate from the BMAD Method by the BMAD Code Organization (https://github.com/bmad-code-org/BMAD-METHOD)

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts5mo3 checks · Risk SAFE
  • Gen Agent Trust Hub5mo

    The skill is a forensic triage tool designed to investigate bugs and generate documentation. It uses standard file-reading and writing tools to analyze project context and codebase. No malicious patterns, data exfiltration, or unauthorized command execution were detected.

  • Socket5mo

    No alerts

  • Snyk5mo

    Risk: LOW · No issues

Signed by skilld at 27dca0e. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 5 months ago
What it can do
Reads files Edits files
All 6 allowed tools
ReadWriteEditGlobGrepTodoWrite

README badge

README badge for aj-geddes/claude-code-bmad-skills/bmad-investigate