Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

causal-inference-root-cause

БесплатноБез исполняемых скриптовНе проверен

Apply causal inference to observational data and experiments. Use for counterfactual reasoning, confounding effects, causal graphs and DAGs, interventions…

onfire7777от onfire7777★ 17 звёзд на GitHub

Об этом скилле

Causal Inference & Root Cause Analysis

Table of Contents

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)

Key Concepts:

  • Root cause: The fundamental issue that, if resolved, prevents the problem
  • Proximate cause: Immediate trigger (may be symptom, not root)
  • Confounding variable: Third factor that causes both X and Y, creating spurious correlation
  • Counterfactual: "What would have happened without X?" - the key causal question
  • Causal mechanism: The pathway or process through which X affects Y

Quick Example:

# Effect: Website conversion rate dropped 30%

## Competing Hypotheses:
1. New checkout UI is confusing (proximate)
2. Payment processor latency increased (proximate)
3. We changed to a cheaper payment processor that's slower (root cause)

## Test:
- Rollback UI (no change) → UI not cause
- Check payment logs (confirm latency) → latency is cause
- Trace to processor change → processor change is root cause

## Counterfactual:
"If we hadn't switched processors, would conversion have dropped?"
→ No, conversion was fine with old processor

## Conclusion:
Root cause = processor switch
Mechanism = slow checkout → user abandonment

Workflow

Copy this checklist and track your progress:

Root Cause Analysis Progress:
- [ ] Step 1: Define the effect
- [ ] Step 2: Generate hypotheses
- [ ] Step 3: Build causal model
- [ ] Step 4: Test causality
- [ ] Step 5: Document and validate

Step 1: Define the effect

Describe effect/outcome (what happened, be specific), quantify if possible (magnitude, frequency), establish timeline (when it started, is it ongoing?), determine baseline (what's normal, what changed?), and identify stakeholders (who's impacted, who needs answers?). Key questions: What exactly are we explaining? One-time event or recurring pattern? How do we measure objectively?

Step 2: Generate hypotheses

List proximate causes (immediate triggers/symptoms), identify potential root causes (underlying factors), consider confounders (third factors creating spurious associations), and challenge assumptions (what if initial theory wrong?). Techniques: 5 Whys (ask "why" repeatedly), Fishbone diagram (categorize causes), Timeline analysis (what changed before effect?), Differential diagnosis (what else explains symptoms?). For simple investigations → Use resources/template.md. For complex problems → Study resources/methodology.md for advanced techniques.

Step 3: Build causal model

Draw causal chains (A → B → C → Effect), identify necessary vs sufficient causes, map confounding relationships (what influences both cause and effect?), note temporal sequence (cause precedes effect - necessary for causation), and specify mechanisms (HOW X causes Y). Model elements: Direct cause (X → Y), Indirect (X → Z → Y), Confounding (Z → X and Z → Y), Mediating variable (X → M → Y), Moderating variable (X → Y depends on M).

Step 4: Test causality

Check temporal sequence (cause before effect?), assess strength of association (strong correlation?), look for dose-response (more cause → more eff

Полный SKILL.md на GitHub

Установить causal-inference-root-cause в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

resources/evaluators/rubric_causal_inference_root_cause.jsonresources/examples/database-performance-degradation.mdresources/methodology.mdresources/template.md

FAQ

Что делает скилл causal-inference-root-cause?

Apply causal inference to observational data and experiments. Use for counterfactual reasoning, confounding effects, causal graphs and DAGs, interventions, treatment effects, and causal claims in scientific or policy research.

Как установить скилл causal-inference-root-cause?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл causal-inference-root-cause запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить causal-inference-root-cause с