causal-inference

causal-inference is a skill for Claude Code, Codex from xjtulyc/awesome-rosetta-skills. It costs 33 tokens per session (9,381 once invoked), scanned A, original, no licence file.

A guide to causal inference, methods for estimating whether one factor causes a change in another. It uses causal diagrams and statistical tools for treatment effects, matching, and result checks.

In plain words
What is it for?
Drawing causal diagrams, estimating average treatment effects, matching similar groups, and testing whether conclusions remain credible.
Why use it?
It helps distinguish cause-and-effect relationships from associations created by other differences in the data.

Skill for Claude CodeCodex

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

Good fit Drawing causal diagrams, estimating average treatment effects, matching similar groups, and testing whether conclusions remain credible.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xjtulyc/awesome-rosetta-skills/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 xjtulyc/awesome-rosetta-skills --skill causal-inference
Clone the repo
git clone --depth 1 https://github.com/xjtulyc/awesome-rosetta-skills

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/xjtulyc/awesome-rosetta-skills/causal-inference/github.svg)](https://agentmods.dev/skills/xjtulyc/awesome-rosetta-skills/causal-inference)
Your own site
<a href="https://agentmods.dev/skills/xjtulyc/awesome-rosetta-skills/causal-inference"><img src="https://agentmods.dev/badge/skills/xjtulyc/awesome-rosetta-skills/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/xjtulyc/awesome-rosetta-skills/causal-inference"><img src="https://agentmods.dev/badge/skills/xjtulyc/awesome-rosetta-skills/causal-inference.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 9,381 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 unknown 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.00033 $0.09381
Opus 5 $0.00016 $0.04691
Sonnet 5 $0.00007 $0.01876
Haiku 4.5 $0.00003 $0.00938

Measured 11d ago against content hash 14f9239389d6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 11d 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/03-mathematics/causal-inference/SKILL.md · 959 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

Read it on GitHub

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. 11d ago First seen · 959 lines · 33 tokens per session scan A 14f9239389d6

Subscribe to this mod's changes

causal-inference is a skill published in the GitHub repository xjtulyc/awesome-rosetta-skills (34 stars, last pushed 5mo ago), with no licence file. It adds 33 tokens to every session and 9,381 once invoked, about $0.0002 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-30.

Related

Other skills, from other repositories

causal-inference

Causal inference for data scientists and analysts — DAGs and do-calculus, propensity score methods, difference-in-differences, instrumental variables, regression discontinuity, synthetic control, and variance reduction techniques (CUPED), using CausalML, DoWhy, and rigorous A/B test analysis.

LuuOW/meridian-mcp · 65 tokens

pharmacoepidemiology

Reason about pharmacoepidemiologic study design for causal inference from real-world data — choosing active comparator new-user designs, emulating target trials, avoiding immortal time bias, handling time-varying confounding with marginal structural models, and selecting propensity score methods. Use when the user…

awslabs/hcls-agent-skills · 227 tokens

pymc-bayesian-modeling

Bayesian modeling with PyMC. Build hierarchical models, MCMC (NUTS), variational inference, LOO/WAIC comparison, posterior checks, for probabilistic programming and inference.

synthetic-sciences/openscience · 48 tokens

results-analysis

This skill should be used when the user asks to "analyze experimental results", "run strict statistical analysis", "compare model performance", "generate scientific figures", "check significance", "do ablation analysis", or mentions interpreting experiment data with rigorous statistics and visualization. It focuses on…

Galaxy-Dawn/claude-scholar · 68 tokens

audit-reproducibility

Enforce the replication-protocol.md rule by cross-checking numeric claims in a manuscript against the actual R / Stata / Python outputs. Report PASS/FAIL per claim against tolerance thresholds. Use before submission and before releasing a replication package.

pedrohcgs/claude-code-my-workflow · 54 tokens

review-paper

Comprehensive manuscript review with three modes: single-pass (default), --adversarial critic-fixer loop, and --peer [journal] simulated peer-review pipeline (editor + 2 dispositioned referees + editorial decision, calibrated to a target journal). R&R continuation via --peer --r2/--r3; hostile-editor stress test via…

pedrohcgs/claude-code-my-workflow · 114 tokens