# investigate-first

Diagnoses unclear failures before any edits, ranking hypotheses by evidence, for unknown causes, intermittent bugs or performance regressions.

Skill by Julius Brussee. Category: Testing.

## Install

Project (for this project only):

```sh
npx skills add juliusbrussee/caveman --skill investigate-first
```

Works with: Claude Code, Codex CLI, Cursor, Antigravity, Copilot CLI, opencode.

Global (for every project on this machine):

```sh
npx skills add juliusbrussee/caveman --skill investigate-first -g
```

Works with: Claude Code, Codex CLI, Cursor, Antigravity, Copilot CLI, opencode.

## Tags

- Runs on your computer: It runs as a program on your machine, with your access.

## Security audits

- Gen Agent Trust Hub: Pass
- Socket: Pass
- Snyk: Pass

Installs: 103797. Installs counted by skills.sh. [Open on skills.sh](https://www.skills.sh/juliusbrussee/caveman/investigate-first)

## Source

[Open the source](https://github.com/juliusbrussee/caveman/tree/HEAD/skills/investigate-first). Checked 2026-10-24. This summary may contain AI-generated text, so it can be wrong. Check the source before you rely on it.

## SKILL.md

````markdown
---
name: investigate-first
description: Diagnose ambiguous failures before editing. Use for unknown causes, intermittent behavior, performance regressions, or investigations needing evidence-ranked hypotheses.
---

# Investigate first

Gather evidence before changing product code.

- Separate observed symptom from inferred cause.
- Trace inputs, state transitions, ownership boundaries, and failure output.
- Rank hypotheses by evidence and cheap falsification value.
- Do not edit until one credible mechanism explains evidence.
- Stop exploration when evidence is sufficient to name cause or exact blocker.

Report cause and proof. Make no fix unless task authorizes implementation.
````

- Previous: [caveman-optimize](https://syn4pse.dev/terminal/caveman-optimize.md)
- Next: [verify-and-stop](https://syn4pse.dev/terminal/verify-and-stop.md)
- [Terminal](https://syn4pse.dev/terminal.md)
- [Suggest a change](mailto:terminal@syn4pse.dev?subject=Terminal%20suggestion)
