Fin Experiment Design
csmar432/finai-research
经济金融实证方法设计。根据研究想法和REFINEDDESIGN.md,生成完整的实证研究设计方案,覆盖识别策略选择、样本构建、变量定义、稳健性检验清单和内生性处理方案。
Causal inference toolkit for when experiments are not possible: estimate treatment effects from observational data with assumption checks and mandatory caveats.
$ npx skills add ai-analyst-lab/ai-analyst --skill causal -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ai-analyst-lab/ai-analyst causal --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/ai-analyst-lab/ai-analyst.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/causal .claude/skills/causal && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "causal" agent skill from https://github.com/ai-analyst-lab/ai-analyst/tree/main/.claude/skills/causal into .claude/skills/causal/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "causal", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/ai-analyst-lab/ai-analyst/tree/main/.claude/skills/causalType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add ai-analyst-lab/ai-analyst --skill causal -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ai-analyst-lab/ai-analyst causal --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ai-analyst-lab/ai-analyst.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/causal .agents/skills/causal && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "causal" agent skill from https://github.com/ai-analyst-lab/ai-analyst/tree/main/.claude/skills/causal into .agents/skills/causal/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "causal", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ai-analyst-lab/ai-analyst --skill causal -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ai-analyst-lab/ai-analyst causal --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ai-analyst-lab/ai-analyst.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/causal .cursor/skills/causal && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "causal" agent skill from https://github.com/ai-analyst-lab/ai-analyst/tree/main/.claude/skills/causal into .cursor/skills/causal/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "causal", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/ai-analyst-lab/ai-analyst.git --path .claude/skills/causal--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add ai-analyst-lab/ai-analyst --skill causal -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ai-analyst-lab/ai-analyst causal --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ai-analyst-lab/ai-analyst.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/causal .gemini/skills/causal && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "causal" agent skill from https://github.com/ai-analyst-lab/ai-analyst/tree/main/.claude/skills/causal into .gemini/skills/causal/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "causal", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install ai-analyst-lab/ai-analyst causalInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add ai-analyst-lab/ai-analyst --skill causal -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/ai-analyst-lab/ai-analyst.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/causal .github/skills/causal && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "causal" agent skill from https://github.com/ai-analyst-lab/ai-analyst/tree/main/.claude/skills/causal into .github/skills/causal/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "causal", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ai-analyst-lab/ai-analyst --skill causal -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install ai-analyst-lab/ai-analyst causal --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ai-analyst-lab/ai-analyst.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/causal .opencode/skills/causal && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "causal" agent skill from https://github.com/ai-analyst-lab/ai-analyst/tree/main/.claude/skills/causal into .opencode/skills/causal/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "causal", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
causalCausal inference toolkit for when experiments are not possible: estimate treatment effects from observational data with assumption checks and mandatory caveats.
Causal is an agent skill from ai-analyst-lab/ai-analyst. Causal inference toolkit for when experiments are not possible: estimate treatment effects from observational data with assumption checks and mandatory caveats. Invoke as /causal. Trigger on "causal", "caused", "impact of", "effect of", "attribution", "counterfactual", "difference-in-differences", "DiD", "propensity matching", "pre-post". If randomization IS possible, route to /experiment design instead.
Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Research & Science, covering Econometrics and empirical research and Experimental design. The repository describes itself as: AI Product Analyst — Claude Code-powered data analysis toolkit. The licence is MIT.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 52c0744. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Causal loads about 1.8k tokens when it runs. Until then it costs about 104 tokens; SKILL.md has 607 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from ai-analyst-lab/ai-analyst at commit 52c0744, republished under its MIT licence (© ai-analyst-lab). 607 words, ~1,786 tokens.
.claude/skills/causal/SKILL.md (or your agent's skills folder).Multi-mode skill for causal inference when experiments aren't possible. Helps users estimate treatment effects from observational data with explicit assumption checking, sensitivity analysis, and mandatory caveats. Uses coded helpers from helpers/stats/experiment_stats/causal/.
Invoke as /causal [mode] or trigger on causal inference intents:
/causal selectPurpose: Walk the method selection decision tree and recommend a causal method.
Agent: agents/causal/causal-method-selector.md
Flow:
/experiment design/causal analyzePurpose: Run the selected causal method on data.
Agent: agents/causal/causal-analyzer.md
Flow:
from helpers.stats.experiment_stats.causal import (
pre_post_analysis, did_basic, propensity_match,
regression_adjust,
)
# Method routing:
# "pre_post" → pre_post_analysis(pre, post, covariates)
# "did" → did_basic(df, outcome, treat, post)
# "psm" → propensity_match(df, treat, covariates, outcome)
# "regression" → regression_adjust(df, outcome, treatment, covariates)working/causal_analysis_results.json/causal checkPurpose: Run assumption checks for the selected method.
Agent: agents/causal/causal-assumption-checker.md
Flow:
from helpers.stats.experiment_stats.causal import (
check_parallel_trends, check_common_support,
balance_table,
)/causal sensitivityPurpose: Test how robust the estimate is to unmeasured confounding.
Agent: agents/causal/causal-sensitivity.md
Flow:
from helpers.stats.experiment_stats.causal import rosenbaum_bounds, e_value
# PSM: rosenbaum_bounds(treated_outcomes, control_outcomes)
# All: e_value(risk_ratio, ci_lower)/causal reportPurpose: Generate a report with mandatory caveats.
Agent: agents/causal/causal-report-generator.md
Flow:
outputs/causal_report_{{DATE}}.md/causal fullPurpose: End-to-end: select → analyze → check → sensitivity → report. Flow: Runs all modes in sequence. All Type C checkpoints fire.
Methods ranked by causal credibility (highest to lowest):
| Level | Method | Confidence |
|---|---|---|
| 1 | RCT (Randomized Experiment) | HIGH |
| 2 | DiD + Regression Adjustment | MODERATE-HIGH |
| 3 | PSM (Good Overlap + Balance) | MODERATE |
| 4 | DiD (Parallel Trends OK) | MODERATE |
| 5 | Regression Adjustment | LOW-MODERATE |
| 6 | Pre-Post (With Trend) | LOW |
| 7 | Pre-Post (Simple) | VERY LOW |
Every causal report MUST include the method-specific caveat. These are architecturally required — the agent cannot produce a report without them.
| Method | Mandatory Caveat |
|---|---|
| Pre-Post | "Assumes nothing else changed during this period. Any concurrent event could explain this result." |
| DiD | "Assumes the control group would have followed the same trend. Plausible but unprovable." |
| PSM | "Controls for observed confounders only. Unmeasured factors could bias this estimate." |
| Regression | "Assumes all relevant confounders are included and the model is correctly specified." |
| Function | Module | Use For |
|---|---|---|
pre_post_analysis() | causal.pre_post | Pre-post comparison |
did_basic() | causal.did | 2x2 DiD estimator |
parallel_trends_test() | causal.did | Test parallel trends assumption |
event_study() | causal.did | Period-by-period effects |
propensity_match() | causal.matching | PSM pipeline |
balance_table() | causal.balance | SMD balance diagnostics |
love_plot() | causal.balance | Before/after balance visual |
regression_adjust() | causal.regression | OLS with covariates |
rosenbaum_bounds() | causal.sensitivity | PSM sensitivity |
e_value() | causal.sensitivity | Universal sensitivity measure |
check_parallel_trends() | causal.assumptions | DiD assumption |
check_common_support() | causal.assumptions | PSM assumption |
/causal select → "Can you randomize? YES" → suggest /experiment design/experiment power → NOT_VIABLE → suggest /causal select/causal check → All assumptions FAIL → suggest redesign or descriptive-only analysisanalyses/{slug}/
├── causal_config.yaml # Method selection + parameters (tracked)
├── working/ # Intermediates (gitignored)
│ ├── causal_analysis_results.json
│ ├── assumption_report.md
│ └── sensitivity_report.md
└── outputs/ # Final reports (per-analysis run folder)
└── causal_report_{{DATE}}.md© ai-analyst-lab, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .claude/skills/causal of ai-analyst-lab/ai-analyst.
Open the folder on GitHubat commit 52c0744
Causal next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Causal this skillai-analyst-lab/ai-analyst | 304 | — | ~1.8k | Automated safety check: Pass | MIT | |
| Fin Experiment Designcsmar432/finai-research | 109 | — | ~4.2k | Automated safety check: Pass | MIT | |
| Judea PearlK-Dense-AI/mimeo | 282 | — | ~1.7k | Automated safety check: Pass | MIT | |
| Academic Paper Verifybrycewang-stanford/Auto-Empirical-Research-Skills | 4.5k | — | ~2.9k | Automated safety check: Pass | Custom licence | |
| Designing Experimentsforyourhealth111-pixel/Vibe-Skills | 3.6k | — | ~600 | Automated safety check: Pass | Apache-2.0 | |
| Jape Identification Strategyfranklee16/academic-research-skills | 223 | 1 repos | ~707 | Automated safety check: Pass | None |
csmar432/finai-research
经济金融实证方法设计。根据研究想法和REFINEDDESIGN.md,生成完整的实证研究设计方案,覆盖识别策略选择、样本构建、变量定义、稳健性检验清单和内生性处理方案。
K-Dense-AI/mimeo
Applies Judea Pearl's causal reasoning frameworks to distinguish correlation from causation, evaluate AI capabilities, and make counterfactual decisions.
brycewang-stanford/Auto-Empirical-Research-Skills
Thoroughly verify all code, tables, figures, modeling decisions, and quantitative claims in an academic paper against its source R scripts and output files.
foryourhealth111-pixel/Vibe-Skills
Design experiments and quasi-experiments before analysis. An agent skill from foryourhealth111-pixel/Vibe-Skills.
franklee16/academic-research-skills
A skill your agent uses when designing or defending the empirical identification of a Journal of Applied Econometrics (JAE) manuscript — a credible strategy applied to real data, with assumptions…
foryourhealth111-pixel/Vibe-Skills
Estimate causal effects from existing data. An agent skill from foryourhealth111-pixel/Vibe-Skills.
ai-analyst-lab/ai-analyst
Never present a metric or number in isolation; anchor every number to a comparison (prior period, benchmark, or another segment) or state that none is available.
ai-analyst-lab/ai-analyst
Retrieve proven SQL patterns, table cheatsheets, and join patterns from .knowledge/query-archaeology/ so past work gets reused.
ai-analyst-lab/ai-analyst
Save completed analyses to the knowledge system's analysis archive for future reference.
ai-analyst-lab/ai-analyst
Verify Google Workspace MCP authentication at the start of any session that needs Google APIs (Docs, Slides, Drive).
ai-analyst-lab/ai-analyst
Standardized workflow for uploading local chart PNGs to Google Drive and making them available for insertion into Google Docs and Slides.
ai-analyst-lab/ai-analyst
Independently validate the current analysis with a second model (OpenAI Codex).
Categories
Causal inference toolkit for when experiments are not possible: estimate treatment effects from observational data with assumption checks and mandatory caveats. Causal is an agent skill from ai-analyst-lab/ai-analyst. Causal inference toolkit for when experiments are not possible: estimate treatment effects from observational data with assumption checks and mandatory caveats.
Causal fits situations like: difference-in-differences; propensity matching.
Run `npx skills add ai-analyst-lab/ai-analyst --skill causal -a claude-code`. Or copy the skill folder (.claude/skills/causal in ai-analyst-lab/ai-analyst) into .claude/skills/causal in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ai-analyst-lab/ai-analyst --skill causal -a codex`. Or copy the skill folder (.claude/skills/causal in ai-analyst-lab/ai-analyst) into .agents/skills/causal in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ai-analyst-lab/ai-analyst --skill causal -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/causal, .gemini/skills/causal, .github/skills/causal and .opencode/skills/causal in your project.
SKILL.md names no scripts, command-line tools or credentials: Causal is instructions for the agent only. Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Causal is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.8k tokens (SKILL.md is roughly 7.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Causal: Fin Experiment Design (csmar432/finai-research, 109 stars), Judea Pearl (K-Dense-AI/mimeo, 282 stars), Academic Paper Verify (brycewang-stanford/Auto-Empirical-Research-Skills, 4.5k stars) and Designing Experiments (foryourhealth111-pixel/Vibe-Skills, 3.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
ai-analyst-lab (a GitHub organization) maintains it in ai-analyst-lab/ai-analyst, which has 304 GitHub stars. The repository holds 43 skills in this directory. The repository was last updated on September 30, 2026.
Source: ai-analyst-lab/ai-analyst on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.