# Investigate: Root Cause Without Guessing

> Makes your coding agent prove a bug's root cause with file:line evidence and a reproduction before it proposes a fix.

Investigate: Root Cause Without Guessing is a free AI agent skill on Agensi by Thế Ngọc Nguyễn, in Testing & Debugging. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Thế Ngọc Nguyễn](https://www.agensi.io/creators/th-ng-c-nguy-n)
- Category: [Testing & Debugging](https://www.agensi.io/skills/testing-debugging)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-19
- Security: scan passed (2026-10-19); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/investigate-root-cause-without-guessing
- Tags: testing, debugging, root-cause-analysis, code-review, git

## About this skill

Coding agents love to name a cause the moment you describe a bug, often without opening the code that would be affected. Every wrong guess costs a fix attempt, a review round and your trust.

**investigate** turns "it has to be this" into an evidence-backed finding. Before your agent states a root cause or proposes a fix, it must:

- **Reproduce first**: run the app, a failing command or a test, and save the artifacts. "Not reproduced" is a valid result.
- **Hold at least two hypotheses**, each with what would confirm or refute it.
- **Read the real code path** and cite every claim as `path/to/file:line`.
- **Fan out read-only subagents** (at most 4 at once) for the legwork.
- **Label every statement** as OBSERVED or INFERRED.
- **Earn the word "confirmed"**: toggle the suspected cause and show the symptom change.
- **Check recent changes** with `git log -p` / blame on the implicated lines.

It ends with a fixed write-up format (reproduction, hypotheses, root cause, confirmation, unknowns, proposed fix), so you can review an investigation in a minute.

Works with any language or stack. Pairs well with an app-verification skill such as `create-verification` (also free on Agensi).

**Free and open source.** Part of [poteto-kit](https://github.com/EPISTEX0/poteto-kit) (MIT). Unofficial: poteto-kit distills public talks and posts by Lauren Tan (poteto) and is not affiliated with or endorsed by her.

## Requires

- Git

## Known limitations

Needs a way to reproduce the problem: a runnable app, a failing command or a test. Without one, the agent reports "not reproduced" and an inferred cause instead of a confirmed one.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Investigate: Root Cause Without Guessing skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this stop my agent from guessing?

It makes the agent reproduce the problem first, write down at least two hypotheses, read the code path it blames and cite it as file:line, and label every statement OBSERVED or INFERRED. It may only call something the root cause after toggling the suspected cause and watching the symptom change.

### Which agents and languages does it work with?

Any agent that loads SKILL.md files and can read files and run terminal commands (Claude Code, Cursor, Codex and others). It is language-agnostic. If your agent cannot spawn subagents, it does the same reads one after another.

### Does it change my code?

Investigation is read-only: subagents only read, search and reproduce. The agent toggles the suspected cause briefly to confirm it, then writes up the finding and proposes the smallest fix. It applies a fix only if you ask.

### Is it really free? Where is the source?

Yes. It is part of poteto-kit, MIT licensed, at https://github.com/EPISTEX0/poteto-kit. The repo also explains the ideas behind it and has a runnable example app.

### Is this an official Lauren Tan (poteto) skill?

No. poteto-kit is an unofficial community kit that distills her public talks and posts. It is not affiliated with or endorsed by her.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
