using-causal-powers

Routes data analysis, econometrics, and causal-inference tasks to the appropriate discipline skill before execution.

2|Updated Jun 8, 2026
One-click install
npx skills add https://github.com/lancegui/causal-powers --skill using-causal-powers-lancegui
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: using-causal-powers
Source: https://github.com/lancegui/causal-powers/tree/main/evals/prompt-pilot-state-did/transcripts/current/stage1/instructions/skills/using-causal-powers
Command: npx skills add https://github.com/lancegui/causal-powers --skill using-causal-powers-lancegui

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Data analysis failures are silent: code runs clean and returns a confident, wrong answer. This Skill establishes a discipline layer for empirical work in R, Julia, and Python, forcing validation, planning, and human checkpoints before any number reaches a stakeholder. ## Core Features & Use Cases - Skill routing: Maps any analysis request (estimate an effect, clean data, build a figure, verify a number) to the right discipline skill such as question-framing, data-contracts, causal-identification, structural-estimation, or predictive-modeling. - Workflow fork: Distinguishes descriptive, reduced-form causal, structural, and predictive goals so each question is answered with the appropriate method and assumptions. - Durable state and checkpoints: Maintains a docs/analysis/ state folder that survives session resets, and enforces human-in-the-loop gates on design, sample, spec, or estimand changes. - Use Case: A researcher asked to "just run the regression" is routed through executing-analysis-plans with data-contract validation on each step, rather than shipping an unverified estimate. ## Quick Start Ask the assistant to analyze a dataset or estimate an effect, and it will invoke this skill first to frame the question and route to the right discipline before touching the data.

Frequently Asked Questions about using-causal-powers

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I choose between reduced-form and structural estimation?▼

Choose reduced-form when the decision lives inside the observed data, such as measuring a policy effect with DiD, IV, or RDD. Choose structural estimation when you need a counterfactual the data does not contain, like merger pricing or welfare calculations, where the reduced-form relationship would shift under the new policy.

When should I use a pre-analysis plan for my study?▼

Use a pre-analysis plan before any confirmatory study, such as an experiment readout or policy evaluation with stakes. It locks hypotheses, the primary specification, and the robustness suite before you see outcomes, preventing silent specification searching.

Which language should I use for causal inference tasks?▼

The skill defaults to R for data cleaning, descriptive statistics, reduced-form regressions, and ggplot2 visualization. Python is reserved for deep learning and tooling tasks, while Julia is the default for structural estimation. Users or project configuration files can override these defaults.

Does this skill work with Codex, OpenCode, or GitHub Copilot?▼

Yes, the skills are plain SKILL.md files that Codex, OpenCode, and Copilot load natively from their description frontmatter. Reference files map Claude Code tool names to each platform's equivalents, and the always-on discipline moves to AGENTS.md instead of hooks.

What happens when a computed number looks wrong?▼

The wrong-number-debugging skill fires, bisecting the pipeline to locate the bad step instead of patching the symptom. Data contracts assert invariants and reconcile totals at each step so the failure is isolated before it propagates into results.