Find Root Cause logo

Find Root Cause

Community
Heyvhuang
find-root-cause

Use when something is broken: a bug, a failing test, a build error, "it doesn't work", or a fix that didn't hold. Reproduces the failure, traces it to the line where it starts, proves one cause with one change, fixes every copy, and stops with a report after two failed fixes. Not for checking finished work before saying done (verify-work-done).

Overview

PublisherHeyvhuang
Repositorycopybook-skills
Skill namefind-root-cause
Stars
143
Forks
9
Bundled files
2
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Heyvhuang on GitHub. Read the source before you install it.

Installation

Install the Find Root Cause AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Heyvhuang/copybook-skills/tree/main/plugins/skills/skills/find-root-cause
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Heyvhuang/copybook-skills.git /tmp/copybook-skills
mkdir -p .claude/skills
cp -r /tmp/copybook-skills/plugins/skills/skills/find-root-cause .claude/skills/find-root-cause
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Find Root Cause in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Find Root Cause on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Find Root Cause is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Find the cause before you fix

A fix you cannot explain is a guess. Work through these steps in order; skip none because the bug looks simple.

1. Reproduce it

  • Run the user's exact steps, or the failing command, and watch it fail yourself. Save the command.
  • Read the whole error: message, stack trace, file and line, exit code. The answer is often there.
  • Can't reproduce it? Stop and say what you need (input, environment, logs). Don't fix what you haven't seen fail.
  • Fails only sometimes? Run it 10 times and count. Look for timing, order or shared state, not luck.

2. Find where it starts

  • Check what changed: git log --oneline -10, git diff, new dependencies, config, environment. If an older commit worked, git bisect finds the first bad one.
  • Trace backwards from the symptom: which value is wrong here, who passed it, who passed it to them. Keep going until you reach the line that first made it wrong. Fix there, not where it surfaced.
  • Several layers (CI to build script to deploy, API to service to database)? Log what enters and leaves each boundary, run once, and read where the data turns bad before you open any one layer.
  • Find similar code in the same repo that works and list every difference, however small.

3. Prove one cause

  • Write it down: "X causes this because Y."
  • Test it with the smallest change or a log line, one variable at a time.
  • Wrong? Undo that change before you form the next idea. Never stack guesses.
  • Don't know? Say "I don't understand X yet" and gather more evidence. Don't dress a guess as a finding.

4. Fix it once, everywhere

  • First a failing test or a one-off script that shows the bug. Run it and see it fail.
  • Fix the cause in one change. Search the repo for the same pattern and fix every copy now, not one per round.
  • Touch only code tied to this bug. List other problems you saw; don't fix them.
  • Never silence the error (empty catch, skipped test, a looser assertion, a longer timeout) to make it go away.
  • Flaky test that waited a fixed time? Wait for the condition itself (the event, the file, the state), not a longer sleep.
  • Rerun the failing test, the original steps and the nearby tests. Before saying it's fixed, follow the verify-work-done skill.

5. Two failed fixes: stop

If the same bug survives two fixes, stop editing. Undo the failed attempts and report:

  • what you tried and what each attempt changed
  • what still fails, with the output
  • whether the design itself looks wrong (each fix breaks something elsewhere, the fix needs a large rewrite)
  • what the user needs to decide

A second model or a fresh session is a good next step here; a third fix in the same session is not.

When there is no bug in the code

Timeouts from a slow external service, a full disk, a revoked key: say what you checked, handle it in the code (a clear error, a retry with a limit), and log enough to catch it next time.

Report

Three lines: the cause (file and line), what you changed, and the command that now passes with its output.

Based on obra/superpowers (MIT), rewritten by Copybook.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Find Root Cause AI skill do?

Use when something is broken: a bug, a failing test, a build error, "it doesn't work", or a fix that didn't hold. Reproduces the failure, traces it to the line where it starts, proves one cause with one change, fixes every copy, and stops with a report after two failed fixes. Not for checking finished work before saying done (verify-work-done).

Why use Find Root Cause on TypingMind?

Because you install it once and use it with any model. Find Root Cause is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Find Root Cause in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Heyvhuang/copybook-skills/tree/main/plugins/skills/skills/find-root-cause. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Find Root Cause?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Find Root Cause?

As many as you like. As long as a model supports skills, you can use Find Root Cause with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Find Root Cause AI skill free?

Yes. It is published on GitHub by Heyvhuang under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇