Use when investigating why something happened and need to distinguish correlation from causation, identify root causes vs symptoms, test competing hypotheses, control for confounding variables, or design experiments to validate causal claims. Invoke when debugging systems, analyzing failures, researching health outcomes, evaluating policy impacts, or when user mentions root cause, causal chain, confounding, spurious correlation, or asks "why did this really happen?"
View on GitHublyndonkl/claude
thinking-frameworks-skills
January 24, 2026
Select agents to install to:
npx add-skill https://github.com/lyndonkl/claude/blob/main/skills/causal-inference-root-cause/SKILL.md -a claude-code --skill causal-inference-root-causeInstallation paths:
.claude/skills/causal-inference-root-cause/# Causal Inference & Root Cause Analysis ## Table of Contents - [Purpose](#purpose) - [When to Use This Skill](#when-to-use-this-skill) - [What is Causal Inference?](#what-is-causal-inference) - [Workflow](#workflow) - [1. Define the Effect](#1--define-the-effect) - [2. Generate Hypotheses](#2--generate-hypotheses) - [3. Build Causal Model](#3--build-causal-model) - [4. Test Causality](#4--test-causality) - [5. Document & Validate](#5--document--validate) - [Common Patterns](#common-patterns) - [Guardrails](#guardrails) - [Quick Reference](#quick-reference) ## Purpose Systematically investigate causal relationships to identify true root causes rather than mere correlations or symptoms. This skill helps distinguish genuine causation from spurious associations, test competing explanations, and design interventions that address underlying drivers. ## When to Use This Skill - Investigating system failures or production incidents - Debugging performance issues with multiple potential causes - Analyzing why a metric changed (e.g., conversion rate drop) - Researching health outcomes or treatment effects - Evaluating policy or intervention impacts - Distinguishing correlation from causation in data - Identifying confounding variables in experiments - Tracing symptom back to root cause - Testing competing hypotheses about cause-effect relationships - Designing experiments to validate causal claims - Understanding why a project succeeded or failed - Analyzing customer churn or retention drivers **Trigger phrases:** "root cause", "why did this happen", "causal chain", "correlation vs causation", "confounding", "spurious correlation", "what really caused", "underlying driver" ## What is Causal Inference? A systematic approach to determine whether X causes Y (not just correlates with Y): - **Correlation**: X and Y move together (may be coincidental or due to third factor Z) - **Causation**: Changing X directly causes change in Y (causal mechanism exists) **K