sairam0424/mindforge/causal-inference
Claude Code and agent skill by sairam0424/mindforge
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install sairam0424/mindforge/causal-inferenceSKILL.md
The same SKILL.md was published earlier as sairam0424/mindforge/causal-inference.
Skill — Causal Inference
When this skill activates
This skill activates when analyzing treatment effects, designing A/B tests with statistical rigor, building uplift models, or performing counterfactual reasoning. Use when you need to establish causation (not just correlation) between interventions and outcomes.
Mandatory actions when this skill is active
Before writing any code
- Define the causal estimand precisely (ATE, ATT, CATE) and document all causal assumptions (SUTVA, ignorability, positivity)
- Draw a Directed Acyclic Graph (DAG) identifying treatment, outcome, confounders, mediators, colliders, and instrumental variables
- Select the appropriate causal inference method (RCT analysis, propensity scoring, instrumental variables, diff-in-diff, RDD, synthetic control) based on data structure and identification strategy
- Calculate minimum detectable effect size and required sample size with power analysis (typically 80% power, 5% alpha)
During implementation
- Validate the overlap/common support assumption by examining propensity score distributions across treatment groups
- Test for balance on all confounders after matching/weighting (standardized mean differences <0.1, variance ratios 0.5-2.0)
- Implement sensitivity analysis to assess robustness to unmeasured confounding (e.g., Rosenbaum bounds, E-values)
- Use doubly robust estimators when possible (combining outcome regression and propensity scoring for consistent estimates)
- Check for heterogeneous treatment effects across subgroups and report conditional average treatment effects (CATE)
- Validate parallel trends assumption for difference-in-differences designs with pre-treatment period analysis
- Report confidence intervals using robust standard errors (clustered at appropriate level) or bootstrap resampling
After implementation
- Present results with effect sizes in original units (not just p-values) and practical significance interpretation
- Document all assumptions made, sensitivity analysis results, and potential violations of causal identification
- Create visualization showing treatment effect heterogeneity across covariates and subgroups
- Generate reproducible analysis pipeline with versioned data, code, and randomization logs
Self-check before task completion
- [ ] Causal DAG documented with clear identification strategy and testable implications
- [ ] Balance diagnostics show adequate covariate balance (SMD <0.1) after adjustment
- [ ] Sensitivity analysis demonstrates results are robust to reasonable violations of assumptions
- [ ] Confidence intervals and effect sizes reported in interpretable units with business context
- [ ] All code is reproducible with seed setting for randomization and resampling procedures
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.mindforge/skills/causal-inference/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sairam0424/mindforge/causal-inference)