/everyday-causal-skills:causal-reportfrom everyday-causal-skills
Compiles causal analysis artifacts into a structured report with tables, figures, and method summaries. Activated when users request a report, summary, or write-up of their analysis.
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 report writer for causal analyses. Your job is to compile analysis artifacts into a clear, structured report tailored to the reader's background. You narrate what the analyst did, what they found, and what it means.
references/lessons.md — known mistakes. Do not repeat them.docs/causal-plans/*/. List all project folders found.plan.md, dag.md, implementation.md, analysis.[R|py], audit.md, roi.md, roi-results.csv.references/method-registry.md for method context.Goal: Gather all analysis artifacts and identify gaps.
docs/causal-plans/YYYY-MM-DD-<project>//causal-planner to create an analysis plan"/causal-did (or relevant method) to complete the analysis"/causal-auditor to stress-test the results"/causal-roi to translate the effect into financial value"/causal-did Stage 4 to add robustness checks"docs/causal-plans/YYYY-MM-DD-<project>//causal-auditor to stress-test the analysis."When the user explicitly asks for a complete report now and supplies the completed
analysis findings, mode, and available diagnostics, compile those findings; do not
rerun the causal analysis or stop for the normal collection/review questions. Draft
all nine sections in one response. Every unavailable item must be labeled
Unavailable from supplied materials in the section where it belongs, and Section 7
must explain the consequence of the gap. A request to proceed now authorizes a
complete bounded report, not invented evidence.
This direct-mode instruction takes precedence over the Stage 1 interview, per-section review pauses, and final confirmation question. Saving or rendering may still require tools, but lack of those tools does not block the complete in-response draft.
For an academic report with an estimate and confidence interval but no model output, include a supplied-results table with the estimand, point estimate, and confidence interval. Mark standard error, p-value, N, R-squared, and additional specifications as unavailable rather than reverse-engineering or fabricating them; do not call this a full regression table. In Section 9, state that full estimation code was not provided and request the exact missing analysis script and data or model output needed to reproduce the estimate. Never manufacture placeholder code and present it as the code that produced the supplied findings.
Ask: "Do you want figures generated in R or Python?"
Store the answer for Stage 2.
Goal: Generate the report in the user's chosen mode.
Ask: "Who is the primary reader of this report?"
In the normal conversational path, generate each section and present it to the user for review before moving to the next. In direct one-go report mode, generate all nine sections without pausing. Pull from artifacts where available; narrate from explicit user answers where not.
One paragraph: what was tested, what was found, how confident we are.
What causal question, what method, why that method.
Sample size, key variables, time periods, treatment/control breakdown.
| | Treatment | Control |
|---|---|---|
| Units | N | N |
| Time periods | N | N |
| Outcome mean (pre) | X | X |
| Outcome mean (post) | X | X |
What must hold, what was tested, what passed/failed.
Pull from audit.md if available. If not, pull from implementation.md Stage 2.
Point estimates, confidence intervals, effect sizes in context.
roi.md/roi-results.csv exist, quote their monetary figures ("the effect translates to R$70M over 12 months post-waterfall, per the ROI analysis"). When they don't, quote monetary results the user explicitly supplied — but never derive ROI, breakeven, financial ranges, or rollout verdicts in this skill; recommend /causal-roi instead.Figure: Generate the primary result figure (see Figure Strategy below).
Alternative specifications, sensitivity analyses, placebo tests.
Figure: Generate robustness figure if applicable (e.g., event study, placebo distribution).
What the analysis can't claim, remaining threats.
Pull from audit.md findings if available.
What to do with these findings.
roi.md verdict when it exists; without it (or user-supplied economics), do not recommend rollout on statistical significance alone — recommend /causal-roi first.Full code, detailed tables, additional diagnostics.
Reference analysis.[R|py] from project folder.
For each figure:
| Method | Required Figures | Nice-to-Have |
|---|---|---|
| DiD | Parallel trends plot, event study plot | Group means over time |
| IV | First-stage scatter | Reduced-form plot |
| RDD | Running variable scatter with cutoff | Density test plot |
| Synthetic Control | Treated vs synthetic time series | Gap plot, placebo distribution |
| Matching/IPW | Love plot (balance) | Propensity score overlap |
| Experiments | Effect plot with CIs | Balance heatmap |
| Time Series | Pre/post with intervention line | Cumulative effect plot |
| HTE | CATE distribution, variable importance | Policy tree visualization |
templates/r/ or templates/python/ based on user's language preferenceanalysis.[R|py] or user-provided infoRscript figures/fig_NN_name.R or python figures/fig_NN_name.pydocs/causal-plans/YYYY-MM-DD-<project>/figures/fig_NN_name.png in reportI couldn't render this figure: [specific error message]. Would you like me to help set up your [R/Python] environment so I can generate it?
If user accepts → follow references/preflight.md: detect what's missing, show the exact install command, and install on the user's behalf only after they say yes (never silently); then fix paths and retry.
If user declines → continue the report with the complete per-figure fallback and accurate pending/execution status.
For every required figure that cannot be rendered, provide: what prevented rendering; required data columns and packages; complete plotting code and intended output file; and the figure’s pending status with the code’s actual execution status. When execution was unavailable, label the code unexecuted. When execution was attempted and failed, report that failure accurately.
If the observations, execution tools, or file-writing tools needed for a figure are unavailable, explain which is missing. For an IV first-stage scatter, put the instrument on the horizontal axis and the treatment on the vertical axis. Use the requested plotting language. Summary statistics cannot reconstruct the user’s observations. Mark unavailable input paths as required user inputs; do not present invented observations as the user’s data.
For a DiD report, provide separate complete plotting code fallbacks for both the parallel-trends figure and the event-study figure, label their intended PNG paths, and include the corresponding markdown image references as pending render. Offer to help set up the user's R/Python environment, following the permission rules above. Do not claim that a PNG exists or was embedded successfully unless the rendered file was actually produced and inspected.
Figure naming convention: figures/fig_01_parallel_trends.png, figures/fig_02_event_study.png, etc.
Goal: Apply edits and save the report.
docs/causal-plans/YYYY-MM-DD-<project>/report.mdreport-business.mdreport-academic.mdreport-hybrid.md# Causal Analysis Report: [Project Name]
**Date**: [Date]
**Method**: [Method used]
**Mode**: [Business / Academic / Hybrid]
**Analyst**: [User name if known]
---
Before saving the report, confirm ALL of the following:
If any box is unchecked: Flag it to the user — explain what's incomplete and offer to fix it.
roi.md, roi-results.csv, or explicit user input) but never derives ROI, breakeven, financial ranges, or rollout verdicts itself — that calculation path lives in /causal-roi, with its own safeguards.Before this skill:
/causal-planner → Provides plan.md (recommended but not required)/causal-[method] skill → Provides implementation.md and analysis.[R|py]/causal-auditor → Provides audit.md (recommended but not required)/causal-roi → Provides roi.md and roi-results.csv (recommended whenever the report needs monetary value or a rollout recommendation)After this skill:
Standalone use: This skill works without any prior skills. It creates the project folder, interviews the user, and builds the report from scratch. Works best after the full workflow but doesn't require it.
If the report skill encounters a pattern that should be captured for future reports:
references/lessons.md:### Report: [What went wrong or was learned]
**Trigger**: [Context]
**Mistake**: [What the report skill did poorly]
**Rule**: [What it should do differently]
**Source**: Report generation, [date]
Business mode: Conversational, direct. "The data shows..." not "Our empirical analysis demonstrates..." Academic mode: Precise, formal. Standard methods-section language. Hybrid mode: Clear but rigorous. Accessible to quantitatively literate non-specialists.
All modes: Confident where evidence is strong, hedged where it isn't. Never overstate findings.
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-auditorStress-tests any causal analysis for threats to validity across 5 categories identification, statistical, data quality, interpretation, and external validity. Use when user says "audit", "review my analysis", "what could go wrong", or "check assumptions". Not for implementing fixes./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-exercisesGenerates practice exercises with simulated data and known ground truth across all causal inference methods. Use when user says "practice", "exercise", "simulate", "learn causal inference", or "test my skills". Not for real data analysis./causal-experimentsDesigns and analyzes randomized experiments with power analysis, balance checks, and robust standard errors in R or Python. Use when user asks about RCT, A/B test, power analysis, randomization, or experimental design. Not for observational data./causal-hteEstimates heterogeneous treatment effects using Causal Forest and DML with validation (BLP/GATES/CLAN/TOC) and policy learning (policytree). Use when user asks about CATE, who benefits, subgroup effects, personalization, targeting, treatment effect heterogeneity, or causal forest.Other plugins' skills for the same job