Deep investigation of an incident or finding. Performs thorough root cause analysis with hypothesis testing and evidence gathering. Use after /incident or /finding.
Trigger: Use /investigate {incident or finding report} when you need a thorough investigation of an incident, bug, unexpected behavior, or proactive finding.
Input: An incident report (from /incident) or a finding report (from /finding) describing what happened or what was found.
Examples:
/investigate Extraction hung at 12% - no error in logs, last event was url_refresh_triggered at 07:38 UTC/investigate Rate limiting errors despite batch processing - 429 responses every 2 seconds starting 14:00 UTC/investigate Health check showing red but API responding - monitor page shows Backend=red since 09:15 UTC/investigate Finding: Missing companyId filter in invoice WHERE clauses -- authorization gapBefore executing this skill, verify ALL of the following:
docs/findings/*_FINDINGS_TRACKER.mddocs/incidents/*.md--force, proceed without validation.*_FINDINGS_TRACKER.md
Reason thoroughly about this incident or finding. Consider all evidence, form multiple hypotheses, and test each systematically before concluding.
Determine the input type and route accordingly:
IF input references a finding report (docs/findings/*.md) OR starts with "Finding:":
→ Confirmation Mode (abbreviated investigation)
ELSE:
→ Full Investigation Mode (standard investigation)
/investigatedocs/RCAs/ and docs/investigations/ to avoid repeating errors and recognize patternsdocs/investigations/{YYYY-MM-DD_HHMM}_{issue_name}.mdWhen a proactive finding is provided, the cause is often already known. The investigation confirms scope and validates the finding:
docs/findings/ to understand what was founddocs/investigations/{YYYY-MM-DD_HHMM}_{issue_name}.mdSearch online (use current date context: {current_month_year}):
Consult Relevant Documentation:
First, identify what technology/API/library the incident involves. Then search for documentation specific to that technology.
EXAMPLES (use these as a pattern, NOT as default searches):
IMPORTANT: Only search documentation relevant to the actual incident. Do NOT default to searching Iterable or Intercom docs unless the incident specifically involves those APIs.
From the documentation, extract:
Construct a precise timeline of events:
Before recommending any fixes, read all files in: docs/RCAs/, docs/research/, docs/plans/, docs/investigations/, docs/findings/. Look for similar issues, prior fixes, recurring patterns, and applicable solutions.
Document patterns found: Has this exact or similar issue occurred before? Did a previous fix cause this? Is this a regression?
7ec022fdSee report_template.md for the full investigation report template.
Write to: docs/investigations/{YYYY-MM-DD_HHMM}_{issue_name}.md
STOP and tell the user:
Investigation complete.
Report saved to: docs/investigations/{YYYY-MM-DD_HHMM}_{issue_name}.md
Summary: {1-2 sentence summary}
Sources consulted:
- {List of documentation/URLs researched}
Past RCAs/Investigations/Research reviewed:
- {List of related past documents consulted}
**CRITICAL PIPELINE RULE**: Suggest ONLY the next pipeline step below. Do NOT offer `/plan` directly — that comes after `/rca-bugfix`.
Next step: Run `/rca-bugfix` with the investigation at `docs/investigations/{filename}.md` to create RCA and implementation prompt.
Do NOT add commentary suggesting any pipeline step could be skipped or is unnecessary. Awaiting your instructions.
STOP and tell the user:
Finding confirmed.
Report saved to: docs/investigations/{YYYY-MM-DD_HHMM}_{issue_name}.md
Finding: {reference to original finding report}
Scope: {isolated | systemic | broader than expected}
Confirmed: {Yes -- real issue | Partially -- narrower than reported | No -- false positive}
**CRITICAL PIPELINE RULE**: Suggest ONLY the next pipeline step below. Do NOT offer `/plan` directly — that comes after `/rca-bugfix`.
Next step: Run `/rca-bugfix` with the investigation at `docs/investigations/{filename}.md` to create RCA and fix prompt.
Do NOT add commentary suggesting any pipeline step could be skipped or is unnecessary. Awaiting your instructions.
Do NOT proceed with fixes or additional work until the user responds.