causal-inference

causal-inference is a skill for Claude Code, Codex from LuuOW/meridian-mcp. It costs 65 tokens per session (2,797 once invoked), scanned A, original, MIT.

A guide to estimating cause-and-effect relationships from data, rather than merely finding correlations. It covers diagrams, experiments, and statistical methods for testing causal claims.

In plain words
What is it for?
Use it to analyse A/B tests, estimate treatment effects, and study methods such as propensity scores, difference-in-differences, instrumental variables, regression discontinuity, and synthetic controls.
Why use it?
It helps avoid mistaking coincidence for cause, or introducing bias by controlling for the wrong variables. This matters when data is used to guide decisions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to analyse A/B tests, estimate treatment effects, and study methods such as propensity scores, difference-in-differences, instrumental variables, regression discontinuity, and synthetic controls.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/luuow/meridian-mcp/causal-inference
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add LuuOW/meridian-mcp --skill causal-inference
Clone the repo
git clone --depth 1 https://github.com/LuuOW/meridian-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for causal-inference

README.md
[![agentmods](https://agentmods.dev/badge/skills/luuow/meridian-mcp/causal-inference/github.svg)](https://agentmods.dev/skills/luuow/meridian-mcp/causal-inference)
Your own site
<a href="https://agentmods.dev/skills/luuow/meridian-mcp/causal-inference"><img src="https://agentmods.dev/badge/skills/luuow/meridian-mcp/causal-inference/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for causal-inference

Your own site · 80×15
<a href="https://agentmods.dev/skills/luuow/meridian-mcp/causal-inference"><img src="https://agentmods.dev/badge/skills/luuow/meridian-mcp/causal-inference.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,797 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00065 $0.02797
Opus 5 $0.00032 $0.01399
Sonnet 5 $0.00013 $0.00559
Haiku 4.5 $0.00006 $0.00280

Measured 10d ago against content hash 9eb3b62e43e4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

causal-inference scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/causal-inference/SKILL.md · 170 lines

How it starts

The opening of the file, as written. The whole thing — 170 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Causal Inference

Causal inference is the discipline of estimating cause-and-effect relationships from data — answering "what would have happened?" rather than "what is correlated with what?" This skill covers the identification strategies that make causal claims defensible (DAGs, assumptions, estimation methods) and the computational tools (CausalML, DoWhy) that implement them. It appears alongside analytics and ML engineering whenever the goal is decision-making, not prediction.

Core Concepts

DAGs and the Language of Causation

A Directed Acyclic Graph (DAG) is the formal representation of causal assumptions. Nodes are variables; directed edges represent direct causal effects. Three fundamental structures:

  • Chain: X → M → Y. M is a mediator. Controlling for M blocks the path (bad if you want total effect; intentional for direct effect).
  • Fork (Common Cause): X ← C → Y. C is a confounder. Controlling for C blocks the backdoor path and removes confounding.
  • Collider: X → C ← Y. Controlling for C (or conditioning on it in sampling) opens a spurious path — this is selection bias. Never control for a collider.

Backdoor criterion: a set Z blocks all backdoor paths from treatment T to outcome Y (paths with an arrow into T) and contains no descendants of T. If such Z exists and is observed, the causal effect is identified by adjustment: P(Y | do(T)) = Σ_z P(Y | T, Z=z) P(Z=z).

Do-calculus (Pearl): three rules for transforming expressions with do() operators into observational distributions. In practice, use the backdoor/frontdoor criteria rather than applying do-calculus rules manually. DoWhy handles identification automatically given a graph.

Identification gotcha: unmeasured confounders break identification from observational data. Always draw the full DAG before choosing an estimator — the choice of method is determined by the graph structure and which variables are observed.

DoWhy

DoWhy formalizes the four-step process: modelidentifyestimaterefute.

Read the full file on GitHub · 170 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 170 lines · 65 tokens per session scan A 9eb3b62e43e4

Subscribe to this mod's changes

causal-inference is a skill published in the GitHub repository LuuOW/meridian-mcp (0 stars, last pushed yesterday), licensed MIT. It adds 65 tokens to every session and 2,797 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.