# Investigate

> Use before editing — investigate how something works or why it was designed that way, with evidence.

- Skill: `shixuuu/investigate` (Agent Skill)
- Install (CLI): `npx get-skill add shixuuu/investigate`
- Raw SKILL.md: https://api.skillmd.com/api/skills/shixuuu/investigate/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: Shixuuu (https://skillmd.com/u/shixuuu)
- Updated: 2026-11-24
- Page: https://skillmd.com/skills/shixuuu/investigate

---


# Investigate (how / why)

Use for “how does this work?” or “why is it this way?” before editing.

## Split

- **How** — runtime behavior, control flow, where things live, gotchas.
- **Why** — design rationale, tradeoffs, history, what force shaped it.

## How path

1. Anchor in concrete files/symbols.
2. Trace the real path with evidence (read code, run it, logs).
3. Explain: overview → key concepts → how it works → where it lives → gotchas.
4. Mark inference vs verified.

## Why path

1. Anchor in code + recent commits/PRs if available.
2. Gather evidence (history, docs, issues, chat) — say what’s missing.
3. Return a cited read: decision, forces, alternatives considered, what’s still unknown.

## Don’t

- Don’t prescribe a rewrite from vibes.
- Don’t invent private company lore.
- Don’t skip investigation because a fix “feels obvious.”

## If they have pstack

Prefer real `/how` and `/why` skills in Cursor for deep repo investigations.

