Data Science Causal Inference

Use when the user asks about causal inference: causal DAGs, propensity score matching, difference-in-differences, regression discontinuity, instrumental variables, synthetic control, CATE meta-learners, causal forests or double ML (EconML, DoWhy). Produces identification strategy, estimation code and sensitivity analysis. Not for randomized A/B test design (use data-science-experimentation).

45 stars 6 forksResearch & Science

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add j4flmao/agent-skills --skill data-science-causal-inference
Manual install
git clone --depth 1 https://github.com/j4flmao/agent-skills.git /tmp/agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/agent-skills/skills/data-science/causal-inference ~/.claude/skills/data-science-causal-inference

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Causal Inference

## Purpose
Estimate causal effects from observational and experimental data using rigorous frameworks and methods: causal frameworks (potential outcomes / Rubin Causal Model, directed acyclic graphs / Pearl's framework, do-calculus, counterfactual reasoning, structural causal models), quasi-experimental methods (difference-in-differences, regression discontinuity design, instrumental variables, propensity score matching, synthetic control), and causal machine learning (uplift modeling, heterogeneous treatment effects, CATE estimation, S/T/X-learners, causal forests, double/debiased ML).

## Agent Protocol

### Trigger
Exact user phrases: "causal inference", "causal effect", "treatment effect", "potential outcomes", "Rubin causal model", "DAG", "directed acyclic graph", "do-calculus", "counterfactual", "structural causal model", "SCM", "difference-in-differences", "DiD", "regression discontinuity", "RDD", "instrumental variable", "IV", "propensity score", "PSM", "synthetic control", "uplift modeling", "heterogeneous treatment effect", "HTE", "CATE", "conditional average treatment effect", "meta-learner", "S-learner", "T-learner", "X-learner", "causal forest", "double ML", "debiased ML", "confounding", "selection bias", "endogeneity", "identification".

### Input Context
Before activating, verify:
- Data source (RCT, observational, panel, time series)
- Treatment assignment mechanism (random, conditional, self-selection)
Read the full skill on GitHub

Details

Skill name
data-science-causal-inference
Path
skills/data-science/causal-inference/SKILL.md
License
MIT
Repo updated
17 November 2026

FAQ

What does the Data Science Causal Inference skill do?

Use when the user asks about causal inference: causal DAGs, propensity score matching, difference-in-differences, regression discontinuity, instrumental variables, synthetic control, CATE meta-learners, causal forests or double ML (EconML, DoWhy). Produces identification strategy, estimation code and sensitivity analysis. Not for randomized A/B test design (use data-science-experimentation).

How do I install the Data Science Causal Inference skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add j4flmao/agent-skills --skill data-science-causal-inference. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Data Science Causal Inference popular?

It lives in j4flmao/agent-skills, which has 45 GitHub stars and 6 forks.

Related skills

Agent Observability

45

j4flmao/agent-skills

Use when the user asks about agent observability, tracing agent reasoning, debugging an agent loop, OpenTelemetry GenAI spans for LLM calls, LLM cost tracking per agent, agent audit logs or hallucination/eval monitoring in production. Produces instrumentation config, trace schema, dashboards, alerts and cost attribution. Not for generic service tracing without LLMs (use devops-opentelemetry).

DevOps & Cloud

AI Agent Architectures

45

j4flmao/agent-skills

Use when the user asks to build an AI agent, design an agent that calls tools and keeps memory, write an agent system prompt or pick an agent framework (Claude Agent SDK, OpenAI Agents SDK, LangGraph). Produces an architecture brief covering loop, tools, memory, guardrails and evals, routing depth to child skills. Not for workflow patterns (use ai-agentic-workflows).

AI, LLMs & Agents

AI Agent Core Loop

45

j4flmao/agent-skills

Use when the user asks about the agent loop, ReAct vs plan-and-solve, re-planning, Reflexion, an agent stuck in a loop, max iterations or termination conditions. Produces a loop spec or patch with state, success predicate, caps and no-progress detection. Not for overall agent design (use ai-agent-architectures) or tool schemas (use tool-calling-principles).

AI, LLMs & Agents

Deep Research

45

j4flmao/agent-skills

Research a topic thoroughly using codebase exploration. Use when the user wants deep investigation of a feature, bug, or pattern.

Research & Science

AI Market Researcher

39

lionelsimai/claude-skills-collection

Build AI market research systems. TRIGGERS - Use when user needs help with ai-market-researcher related tasks.

Research & Science

Design UX Research

45

j4flmao/agent-skills

Use when the user asks about UX research, usability testing, user interviews, research plans, personas, journey maps, card sorting or synthesizing findings. Produces method selection, interview guides, test plans and synthesis frameworks. Not for A/B test design (use product-ab-testing) or product analytics (use product-analytics).

Research & Science

Browse the most popular Claude skills, all research & science skills, or write your own with the skills generator.