# Caveman prompts for failure diagnosis

> Investigates the real cause of a bug before changing any code.

- **What it does:** Before touching your code to fix a weird bug, this makes the AI first gather evidence and figure out the actual cause, so you don't end up with a 'fix' that's really just a guess.
- **Agents:** Claude Code and Codex (through orbit-connect), Claude and ChatGPT (through the Orbit connector)
- **Install:** `npx -y --loglevel=error orbit-connect@0.3.33 install skl_4a02efefe9dec9187b823d75`
- **Creator:** Mariah Brunner (@itsmariahbrunner) on Instagram
- **Safety:** Checked by Orbit: nothing risky found in what it runs or reads
- **Last updated:** 2026-11-14
- **Page:** https://orbitinbox.app/s/systematic-debugging-instructions-for-bugs

## Skill

---
name: investigate-first
description: Use when diagnosing ambiguous failures, intermittent behavior or performance regressions: gather evidence and name a cause before editing any code.
---

# Investigate first

## What this does
Makes the agent gather evidence about why something is broken before changing product code. You get a named cause backed by evidence, and no edits unless you ask for a fix.

## When to use
- The cause of a failure is unknown or ambiguous.
- Behavior is intermittent.
- A performance regression needs diagnosing.
- You need evidence-ranked hypotheses before any fix.

## How to run it
1. Ask the user to describe the failure or slowdown, if they have not already.
2. Gather evidence before changing product code.
3. Separate the observed symptom from the inferred cause.
4. Trace inputs, state transitions, ownership boundaries, and failure output.
5. Rank hypotheses by evidence and cheap falsification value.
6. Do not edit until one credible mechanism explains the evidence.
7. Stop exploring once the evidence is sufficient to name the cause.
8. Report the cause and its proof. Let the user decide whether to fix it.

## Output
A named cause with the supporting evidence, the observed symptom kept separate from the inferred cause, and the ranked hypotheses considered. No code edits unless the user asks for a fix.

## Credit
Based on public content by JuliusBrussee, packaged by Orbit.

Shared by Mariah Brunner, credited on Orbit.