causal-inference
Skill4 starsChanged 6 days agoMITView on GitHub
Estimate causal effects instead of correlations — randomised experiment and A/B test, geo holdout and geo experiment, difference-in-differences (DiD) with parallel-trends assumption, synthetic control, regression discontinuity design (RDD), instrumental variables (IV), confounding vs selection bias, pre-trend checks, placebo and null tests, counterfactual and lift measurement, why correlation-based lift claims fail.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- thistleknot/skillstheir own version, first seen Nov 8, 2026
- gmanch94/claude-code-aidlc-templatetheir own version, first seen Jul 11, 2026
- Learning-Bayesian-Statistics/baygent-skillstheir own version, first seen Jun 7, 2026
- xjtulyc/awesome-rosetta-skillstheir own version, first seen Mar 17, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- Learning-Bayesian-Statistics/baygent-skills★ 184same name
- xjtulyc/awesome-rosetta-skills★ 34same name
- gmanch94/claude-code-aidlc-template★ 2same name
- thistleknot/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository76 other files it gives its agents.
- AGENTS.mdAGENTS.md
- accounting-bookkeepingSkill
- agent-context-persistenceSkill
- asoSkill
- brainstorm-argumentationSkill
- brainstorm-debateSkill
- brainstorm-lensesSkill
- context-disciplineSkill
- creative-briefSkill
- customer-support-opsSkill
- data-quality-checksSkill
- design-fundamentalsSkill
- ecommerce-operationsSkill
- event-taxonomySkill
- exec-coding-standardsSkill
- exec-cppSkill
- exec-csharpSkill
- exec-deliverableSkill
- exec-github-actionsSkill
- exec-goSkill
- exec-jvmSkill
- exec-phpSkill
- exec-pythonSkill
- exec-rubySkill
- exec-rustSkill
- exec-self-testingSkill
- exec-swiftSkill
- exec-typescriptSkill
- executor-fallbackSkill
- exec-visualizationSkill
- fast-pathSkill
- final-reviewSkill
- financial-auditSkill
- hr-recruitingSkill
- influencer-strategySkill
- interview-ask-backSkill
- interview-elicitationSkill
- jev-assistSkill
- json-data-wranglingSkill
- legal-contract-basicsSkill
- localization-copySkill
- manufacturing-ops-planningSkill
- marketing-attributionSkill
- media-planningSkill
- okr-planningSkill
- pack-game-analyticsSkill
- parallel-executionSkill
- performance-marketingSkill
- personal-financeSkill
- plan-architectureSkill
- plan-backlogSkill
- plan-research-firstSkill
- preflightSkill
- profile-contentSkill
- profile-designSkill
- profile-pilotSkill
- profile-planSkill
- real-estate-analysisSkill
- review-conformanceSkill
- review-dualSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Every causal claim compares the observed world to one that did not happen: what would this group's outcome have been without the treatment?
- Distinctive: line 67
Before/after with no control, credited to the change — seasonality, launches, price moves ignored.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Causal Inference (experiments, DiD, synthetic control, quasi-experiments)
The question is always about a counterfactual
Every causal claim compares the observed world to one that did not happen: what would this group's outcome have been without the treatment? Method choice is only about how that counterfactual is built — randomisation by design, quasi-experiments by assumption. State the assumption; show evidence for it.
randomised (A/B, geo holdout) → counterfactual = the control arm; assumption: valid randomisation
DiD → = treated group's own pre-trend continued; assumption: parallel trends
synthetic control → = weighted mix of untreated units matching the treated pre-period
RDD → = units just the other side of a threshold; assumption: continuity
IV → = variation from an instrument; assumptions: relevance + exogeneityRandomisation first (the gold standard)
Randomise at the level the treatment is delivered: users for in-product changes, geos for media, markets for pricing. Fix the unit, primary metric, analysis window and minimum detectable effect before launch, with power computed from the metric's own variance. Geo holdouts are the marketing workhorse because ads cannot be reliably withheld per individual: pair or stratify geos on pre-period level and trend, and hold out enough population to be powered (a token 5% holdout rarely detects a real media effect).
Difference-in-differences
effect = (Y_treated,post − Y_treated,pre) − (Y_control,post − Y_control,pre)
assumption: absent treatment, both groups' outcomes would have moved in parallelDiD subtracts the control's change from the treated group's change, cancelling level differences and shocks common to both. Parallel trends concerns an unobserved counterfactual: never provable, only falsifiable. Check it — plot both series over many pre-periods (not two points) and run an event-study specification with leads and lags, confirming every pre-treatment lead is ≈0. Breakages: the treated unit was chosen because it was already moving (Ashenfelter's dip), a shock hit one group only, or timing is staggered (needs a staggered-adoption estimator, not naive two-way fixed effects). Cluster errors at the treatment unit; treating each user-day as independent shrinks the interval to fiction.
Synthetic control, RDD, IV
- Synthetic control: weight untreated donors to reproduce the treated unit's pre-period path, then read the post-period gap. Fits one or few treated units; needs a long clean pre-period and spillover-free donors. Validate with placebo runs on donors — the real gap must be extreme against that distribution.
- RDD: exploits a hard threshold in a continuous assignment variable (score cutoff, spend tier); needs continuity at the cutoff and no score manipulation (check density bunching). The estimate is local.
- IV: variation from an instrument correlated with treatment but affecting the outcome only through it (relevance + exclusion). Weak instruments bias badly; exogeneity is arguable, never testable.
Confounding vs selection bias
Confounding — a common cause moves both treatment and outcome (seasonality drives spend and sales; a promo overlaps the test); fix by design (randomise, difference out) or by conditioning on the confounder. Selection bias — who lands in each group is related to the outcome, and conditioning cannot fix selection on unobservables. Never condition on a post-treatment variable or a collider: that manufactures bias instead of removing it, and survivorship is selection bias with a friendly name.
Failure modes — why correlation-based lift claims fail
- "Exposed users converted 3× more": exposure is caused by being active, targetable and high-intent, so the gap measures who was targeted, not what the campaign did.
- Before/after with no control, credited to the change — seasonality, launches, price moves ignored.
- "Engaged users retain better": reverse causality, since retention drives engagement too.
- Attribution-model output read as incremental lift; a credit split is not a counterfactual.
- "No effect" from an underpowered test — that shows nothing, not an absence of effect.
Reviewer checklist
- The counterfactual and its identifying assumption are stated explicitly
- Randomisation used where feasible; unit, cells and analysis window pre-registered
- Minimum detectable effect and power computed before launch from the metric's own variance
- Pre-trend / event-study plot shown over multiple pre-periods, not two points
- Placebo or null test run (pre-treatment periods, untreated donors, alternate controls)
- Concurrent shocks, composition changes and staggered timing ruled out or modelled
- Errors clustered at the treatment unit; interval reported with the point estimate; no conditioning on post-treatment variables, colliders or survivors; RDD estimates kept local
Provenance
Standard applied-econometrics and experimentation practice: DiD with parallel-trends and event-study checks, synthetic control with placebo inference, RDD continuity and density checks, IV relevance and exclusion conditions, randomisation as the identification benchmark. The 5% holdout figure is derived, unverified; replace with the project's own measured values before treating as a target, via a real power calculation. No statistic, effect size or vendor result is claimed here.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

