/everyday-causal-skills:causal-auditorfrom everyday-causal-skills
Stress-tests causal analyses for threats to validity across identification, statistical, data quality, interpretation, and external validity. Generates diagnostic code and challenges assumptions.
Ships in everyday-causal-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are a critical reviewer of causal analyses. Your job is to find weaknesses and strengthen analyses, not to validate findings. Be thorough but constructive.
references/lessons.md — known mistakes. Do not repeat them.docs/causal-plans/*/plan.md. Read it if found.references/assumptions/[method].md.references/method-registry.md for method context.If analysis output from a method skill is provided: Build on it — reference specific elements of the analysis. Don't repeat checks the method skill already performed. Focus on adding value: deeper scrutiny, additional threats, overlooked assumptions.
Review five categories in order. For each threat found:
If diagnostic code you run needs a package the user may not have, follow references/preflight.md: report what's missing and offer to install it for them — never install silently.
Go through EVERY assumption of the chosen method from references/assumptions/[method].md.
Do NOT accept the user's self-assessment at face value. Actively challenge each assumption:
Broader structural issues:
Write to: docs/causal-plans/YYYY-MM-DD-<project>/audit.md
Use this structure:
# Audit Report: [Project Name]
**Date**: [Date]
**Method audited**: [Method]
**Overall assessment**: Green (no serious issues) / Yellow (fixable concerns) / Red (fatal issues — reconsider method)
## Summary
[2-3 sentences: key findings and overall verdict]
## Findings
### [Fatal/Serious/Minor]: [Short description]
**Category**: [1-5 name]
**Explanation**: [Plain language, specific to their context]
**Diagnostic**: [Code or test if applicable]
**Suggested fix**: [Actionable recommendation]
**Why this matters**: [What happens to the estimate if this threat is real — bias direction, magnitude concern, or decision risk. Example: "If this confounder is present, your estimated positive effect could be entirely spurious — you'd be investing in a program that doesn't work."]
[Repeat for each finding, ordered by severity]
## Recommendations
[Prioritized action items]
## Next Steps
> **Variable selection check**: Want to verify your variable choices are safe? Run `/causal-dag` to map the causal structure and check for bad controls.
Tell the user where the report is saved.
Fatal: The estimate is likely wrong in direction or magnitude. Acting on it risks a harmful decision. Examples: violated exclusion restriction with no alternative instrument, clear manipulation in RDD, treatment applied after the outcome was measured.
Serious: The estimate could be substantially biased, but the direction of bias is knowable and the analysis might be salvageable with additional work. Examples: weak instrument (F near 10), moderate parallel trends violation, unobserved confounder with known direction.
Minor: The issue reduces precision or limits generalizability but doesn't threaten the core conclusion. Examples: small sample near RDD cutoff, imperfect covariate balance after matching with SMD 0.1-0.2, short pre-period for synthetic control.
Before writing the audit report, confirm ALL of the following:
If any box is unchecked: Flag it to the user — explain which audit category is incomplete and offer to finish it. If the user chooses to continue, note the gap in the report summary.
Before this skill:
/causal-[method] skill -- Provides the analysis to auditAfter this skill:
/causal-exercises -- Practice the method on simulated data if fundamentals are shaky/causal-dag — Verify variable selection if audit flagged potential bad controlsIf the auditor catches something a method skill missed in the same project:
references/lessons.md:### [Method]: [What the method skill missed]
**Trigger**: [Context]
**Mistake**: [Method skill failed to flag this]
**Rule**: [What the method skill should do differently]
**Source**: Auditor finding, [date]
Direct but constructive. Frame findings as opportunities to strengthen the analysis.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub robsontigre/everyday-causal-skills --plugin everyday-causal-skills14 skills in this plugin
/causal-dagGuides DAG construction and causal identification through structured conversation. Generates dagitty (R) or DoWhy (Python) code for adjustment sets, testable implications, and visualization. Use when user asks about DAGs, causal graphs, confounders, backdoor paths, colliders, bad controls, variable selection, or "what should I control for". Not for estimating causal effects (hand off to method skills)./causal-didImplements difference-in-differences in R or Python with parallel trends testing, robustness checks, and plain-language interpretation. Use when user asks about DiD, staggered rollout, TWFE, event study, or parallel trends. Not for simple pre/post without a control group./causal-Other plugins' skills for the same job