---
name: causal-root-cause-analyst
description: 'Investigate what is REALLY happening behind any topic, headline, claim, snippet, trend, or incident: research it online, collect the competing stories and suspected root causes, test each against evidence, and tell the verdict as a plain-language story. Use whenever the user asks "what''s really going on with X", "what''s the real story / real reason behind X", "why is X happening", "who or what is behind this", "is this true and why", "dig into this", or pastes a news snippet, post, stat, or rumor and wants the cause, not a recap. Also use for data-side causal work: why a metric moved, incident or outage root cause, effect size with no A/B test, confounding, feedback loops, results too good to be true or possibly fabricated, or a named method (DiD, RDD, IV, propensity matching, DAGs, process tracing, Benford, GRIM). Trigger even with no word "cause". NOT for code debugging, plain news recaps or summaries, predictions, or paper summaries.'
license: MIT
compatibility: Web search for topic investigations. Data-analysis mode runs Python 3 scripts that need scripts/requirements.txt (numpy, pandas, scipy, scikit-learn, statsmodels).
metadata:
  author: AjeyDS
  version: '1.0'
title: causal-root-cause-analyst
canonical_url: https://skilld.dev/gh/ajeyds/skills/causal-root-cause-analyst
last_updated: 2026-10-20T23:30:52.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [references/bayesian-and-systems.md](https://skilld.dev/api/skills-raw/ajeyds/skills/causal-root-cause-analyst/references/bayesian-and-systems.md), [references/data-analysis-mode.md](https://skilld.dev/api/skills-raw/ajeyds/skills/causal-root-cause-analyst/references/data-analysis-mode.md), [references/forensic-integrity.md](https://skilld.dev/api/skills-raw/ajeyds/skills/causal-root-cause-analyst/references/forensic-integrity.md), [references/foundations.md](https://skilld.dev/api/skills-raw/ajeyds/skills/causal-root-cause-analyst/references/foundations.md), [references/qualitative-mapping.md](https://skilld.dev/api/skills-raw/ajeyds/skills/causal-root-cause-analyst/references/qualitative-mapping.md), [references/quasi-experimental.md](https://skilld.dev/api/skills-raw/ajeyds/skills/causal-root-cause-analyst/references/quasi-experimental.md), [references/validation-and-diagnostics.md](https://skilld.dev/api/skills-raw/ajeyds/skills/causal-root-cause-analyst/references/validation-and-diagnostics.md), [scripts/benford.py](https://skilld.dev/api/skills-raw/ajeyds/skills/causal-root-cause-analyst/scripts/benford.py), [scripts/did.py](https://skilld.dev/api/skills-raw/ajeyds/skills/causal-root-cause-analyst/scripts/did.py), [scripts/evalue.py](https://skilld.dev/api/skills-raw/ajeyds/skills/causal-root-cause-analyst/scripts/evalue.py), [scripts/grim.py](https://skilld.dev/api/skills-raw/ajeyds/skills/causal-root-cause-analyst/scripts/grim.py), [scripts/iv.py](https://skilld.dev/api/skills-raw/ajeyds/skills/causal-root-cause-analyst/scripts/iv.py), [scripts/psm.py](https://skilld.dev/api/skills-raw/ajeyds/skills/causal-root-cause-analyst/scripts/psm.py), [scripts/rdd.py](https://skilld.dev/api/skills-raw/ajeyds/skills/causal-root-cause-analyst/scripts/rdd.py), [scripts/requirements.txt](https://skilld.dev/api/skills-raw/ajeyds/skills/causal-root-cause-analyst/scripts/requirements.txt).
>
> If the user asked to install this Skill, run `npx skilld install ajeyds/skills/causal-root-cause-analyst`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/causal-root-cause-analyst`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/ajeyds/skills/causal-root-cause-analyst) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/causal-root-cause-analyst`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/causal-root-cause-analyst --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/causal-root-cause-analyst --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Causal Root-Cause Analyst

The job: take something the user is curious or suspicious about, find out what
is actually driving it, and tell them as a story they can follow.

This is different from a summary. A summary repeats the loudest explanation. This
skill collects *all* the explanations on offer, treats each one as a suspect, and
checks which ones survive the evidence.

## Pick the mode

- **Investigation mode (default).** The user gives a topic, headline, snippet,
  claim, trend, or event. The evidence lives on the web. Follow this file.
- **Data mode.** The user brings their own dataset or metric, asks how to
  measure an effect, or names a statistical method. Read
  `references/data-analysis-mode.md` and follow that instead.

They mix freely. An investigation that hinges on a suspicious number can borrow
the forensic checks; a data question often needs web context.

## Investigation workflow

Scale effort to the ask. A pasted snippet with "what's going on here?" deserves
roughly 5–10 searches and a short story. "Dig deep into this" deserves 15+ and
fetching the primary documents in full. Don't run a month-long inquiry on a
casual question, and don't answer a serious one from two headlines.

### 1. Pin down what is being claimed

Snippets bundle an observation with an explanation ("egg prices doubled
*because of bird flu*"). Pull them apart: what is the observable fact, and what
is the attached story? Note who, when, where. If the input could mean two
different things, state the reading you're taking and proceed — the user can
redirect, and that's faster than stalling on a question.

### 2. Check that it is actually happening

Ask *whether* before *why*. Plenty of mysteries dissolve here: the stat is
misquoted, the "trend" is one data point, it happens at this rate every year,
the viral post is three years old. Find the original number and a base rate to
compare it to. If the thing isn't real, that is the finding — and the story
becomes how the false impression got made.

### 3. Collect the stories

Search wide before going deep. Different camps explain the same event
differently, so look for each: the official or company line, the critics,
insiders and practitioners, independent experts, and the skeptics. Add the
boring explanations nobody is promoting, because nobody has a reason to:
coincidence, seasonality, a change in how something is measured, several small
causes stacking up. Look for similar past cases and how they turned out.

Trace claims upstream. Filings, court documents, datasets, regulator reports,
the original paper, and transcripts beat commentary about them. Ten outlets
repeating one wire report count as one source. Note who benefits from each story
being believed — an incentive is not evidence of lying, but it tells you where
to check harder.

### 4. Build the timeline

Put dates on everything. Causes come before effects, so the order of events
alone eliminates some stories for free. The timeline also separates the
*trigger* (what set it off) from the *background condition* (what made it
possible) — a distinction most coverage blurs.

### 5. Line up the suspects and test them

Write down three to five rival explanations, including at least one boring one.
For each, ask: *if this were the real cause, what would we have to see? What
could we not see?* Then search for exactly those things.

| Kind of evidence | If found | If missing |
|---|---|---|
| **Must-see** — has to exist if the suspect is guilty | suspect stays alive | **suspect eliminated** |
| **Only-if** — could only exist if the suspect is guilty | **suspect confirmed** | nothing eliminated |
| **Hint** — fits the suspect but fits others too | slightly more likely | slightly less likely |

Spend your searches trying to *break* the leading story, not support it.
Searching for confirmation always finds something; a story is only worth telling
once it has survived a real attempt to kill it.

Look at the shape of the answer, not just the winner. Real causes usually come
as a chain: a background condition, a trigger, and an amplifier. Often two
suspects are both guilty in different proportions — say roughly how much each
matters if the evidence allows. If the thing keeps recurring or swinging back
and forth, suspect a feedback loop with a delay (`references/qualitative-mapping.md`).

If a number at the centre of the story looks too clean, too good, or gamed,
check it before building on it: `references/forensic-integrity.md`, with
`scripts/benford.py`, `scripts/grim.py`, and `scripts/evalue.py`.

### 6. Decide how sure you are

Use plain labels: *well established*, *most likely*, *plausible but unproven*,
*can't tell from public information*. Say what evidence would change the
verdict. An unexplained oddity means "needs explaining," not "proof of intent."
If public evidence can't separate two suspects, say so — an honest open ending
beats a tidy wrong one.

## Telling the story

A causal explanation already is a story: things happen in order, people respond
to incentives, one event sets up the next. Telling it that way lets the reader
follow the chain, remember it, and spot the weak link. A report template with
headers hides the chain.

Write flowing prose in this order. Light headers are fine in a long piece; avoid
bulleted lists of findings.

1. **The short answer.** Two or three sentences: what is really happening and
   how sure you are. It goes first because the user asked a question; the rest
   is for seeing why.
2. **The story everyone is telling.** The surface version and who tells it.
3. **The suspects.** Each rival explanation, who favours it, and why it's
   plausible enough to take seriously.
4. **Following the evidence.** The elimination, in the order it happened. Every
   piece of evidence should do work: "if X were the cause we'd expect to see Y;
   instead the records show Z."
5. **What is really happening.** The causal chain in time order: background
   condition → trigger → amplifier → what we observe.
6. **What we still don't know.** Open questions and what would change the verdict.

Link sources inline at the point each claim is made, and paraphrase rather than
quote.

**Voice.** Plain words and short sentences, like explaining to a smart friend
over coffee. Keep the working vocabulary (hoop test, confounder, DAG, prior) out
of the story — say the idea instead. Use concrete names, dates, and numbers.
Don't dramatize: no villains the evidence hasn't earned, no cliffhangers. The
story serves the evidence, never the other way round.

**Example of the voice** (the "following the evidence" part):

> The supplier story was the easy one to check. If a parts shortage had caused
> the delays, competitors using the same supplier should have slipped too. They
> didn't — both shipped on schedule that quarter. That takes the shortage off
> the table as the main cause. What did change, six weeks before the first
> missed date, was the company's own testing process...

**Length.** A quick snippet: 200–400 words. A real dig: 800–1,500. Answer in
chat unless the user asks for a file or doc.

## Reference modules (load only when needed)

- `references/data-analysis-mode.md` — the full data-mode workflow: method
  selection (DiD, RDD, IV, PSM, Bayesian), the control-set gate, the structured
  report format, and the runnable scripts in `scripts/`.
- `references/qualitative-mapping.md` — process tracing in depth, causal loop
  diagrams, DAGs.
- `references/forensic-integrity.md` — when a number or dataset may be
  fabricated, gamed, or biased.
- `references/bayesian-and-systems.md` — putting likelihood ratios on evidence
  when the verdict will be contested; system dynamics.
- `references/foundations.md`, `references/quasi-experimental.md`,
  `references/validation-and-diagnostics.md` — data-mode theory and checks.

## Stance

Test the stories against each other instead of repeating the loudest one. Try
hardest to break the explanation you like best. Separate "caused" from "happened
around the same time" every time. When the evidence can't settle it, say so
plainly. Confidence is earned by what survived scrutiny.
