causal-inference

Estimate causal effects and answer counterfactual queries from observational data.

Updated Apr 20, 2026
One-click install
npx skills add https://github.com/thistleknot/skills --skill causal-inference-thistleknot
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: causal-inference
Source: https://github.com/thistleknot/skills/tree/main/causal-inference
Command: npx skills add https://github.com/thistleknot/skills --skill causal-inference-thistleknot

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Causal-inference helps you answer counterfactual and treatment-effect questions when correlation and naïve regression can be misleading due to confounding.

Core Features & Use Cases

  • Counterfactual & treatment effect estimation: Estimate ATE/ATT/CATE from observational data by routing identification and estimation through formal causal methods.
  • Hybrid DAG workflow: Use an LLM to propose causal graph structure from domain context, then validate and fit using symbolic causal discovery and causal-estimation libraries.
  • Refutation-first reliability: Always perform refutation tests so the output includes falsification results and not just point estimates.
  • Root-cause analysis: Identify which variables causally explain observed outcomes under an explicit causal model.

Quick Start

Use the causal-inference skill to estimate the causal effect of X on Y from your dataset by providing the treatment column, outcome column, and domain context for graph proposal and validation.

Frequently Asked Questions about causal-inference

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I estimate causal treatment effects from observational data instead of just correlations?

Causal treatment effect estimation from observational data requires combining a proposed causal graph with symbolic identification and estimation. This approach routes formal causal methods to calculate ATE, ATT, or CATE while controlling for confounding variables.

What is counterfactual analysis and how does it work with a causal graph?

Counterfactual analysis answers "what-if" questions by applying intervention logic to a validated causal graph. You propose a directed acyclic graph from domain context, then use symbolic methods to identify and estimate outcomes for alternative scenarios.

How do I validate a suggested causal graph before estimating effects?

Validating a suggested causal graph involves using constraint-based structure learning alongside domain context. Once proposed, the graph must pass validation before executing identification, estimation, and refutation steps to ensure reliable causal effect results.

Can I use observational data for causal root-cause analysis when confounding is present?

Observational data supports causal root-cause analysis when confounding is present if you apply an explicit causal model. By identifying which variables causally explain observed outcomes, you can isolate true drivers from spurious correlations.

Why do I need refutation tests for causal effect estimation?

Refutation tests are needed for causal effect estimation because they provide falsification results rather than just point estimates. This refutation-first reliability approach ensures the output includes quantified uncertainty and interpretable validation of the causal model.