Use when investigating a bug, incident, or issue before implementation. Researches codebase, queries Datadog, and presents structured findings with handoff options. Also use when asked to "look into" or "investigate" something.
Research-only workflow — no code changes, no fixes, no PRs. Produces a structured summary with evidence, then hands off to ticket creation or the user.
@field:value| You're about to... | STOP and... |
|---|---|
| Write a fix for the bug you found | This is investigation only — present findings first |
| Skip Datadog because "I already understand the issue" | Search Datadog anyway — you might find something unexpected |
| Form a root cause theory before tracing the full code path | Trace entry point → every branch → expected output first. Hypotheses from partial code reads miss early-return bugs |
| Search Datadog with free-text keywords only | Read the code's logger calls first, then search using structured attributes (@field:value) |
| Assume the code is wrong without checking data | Query Snowflake to verify actual data state before blaming code logic |
| Ignore a feature flag in the code path | Look up the flag state in LaunchDarkly — it may be gating the behavior you're investigating |
write-bug-ticket, write-tech-debt-ticket, write-feature-ticket — for creating tickets from findingsdatadog-investigate — API reference for Datadog queries when no Datadog MCP is available