StatsPAI — Development skill for Claude Code
StatsPAI is the first Agent-native Python library for causal inference and applied econometrics — unified API, broad cross-method coverage, structured result objects, machine-readable schemas, Skills.
How to install StatsPAI
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open brycewang-stanford/StatsPAI and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What StatsPAI does
StatsPAI is the first Agent-native Python library for causal inference and applied econometrics — unified API, broad cross-method coverage, structured result objects, machine-readable schemas, Skills, an MCP server, and R/Stata parity validation.
Alternatives in Development
- Magnitude — Open source inference server your agent sets up for you 1.5k ★
- Clawgod — This is NOT a third-party Claude Code client 837 ★
- New Project — Create a new project with all scaffolding rules applied 335 ★
README
[English](https://github.com/brycewang-stanford/statspai/blob/main/README.md) | [中文](https://github.com/brycewang-stanford/statspai/blob/main/README_CN.md)
StatsPAI: an Agent&Python-native Stata/R replacement for applied causal inference
[](https://pypi.org/project/StatsPAI/) [](https://pypi.org/project/StatsPAI/) [](https://github.com/brycewang-stanford/statspai/blob/main/LICENSE) [](https://github.com/brycewang-stanford/statspai/actions) [](https://brycewang-stanford.github.io/StatsPAI/) [](https://pepy.tech/projects/statspai) [](https://joss.theoj.org/papers/9f1c837b1b1df7adfcdd538c3698e332) [](https://doi.org/10.5281/zenodo.19933900)
StatsPAI is for empirical researchers who would normally jump between Stata, R, and Python. Its goal is to make common Stata/R econometrics and causal-inference workflows feel native in Python: load a dataset, estimate a model, inspect diagnostics, export tables, and hand the result to an agent or notebook without leaving one API.
It is meant to be a practical replacement path for new Python-first work:
- Stata-style routines: `regres
Related Skills
Artifact Lifecycle
Unified lifecycle management for all framework artifacts (skills, agents, hooks, workflows, templates, schemas
Reviewer Reformat
You are repairing the machine-readable formatting of a pull-request review result. The findings have already b
Academic
Write academic prose - thesis chapters, papers, abstracts, literature reviews, methodology and results section
Long Context Retrieval
Read large files and broad search results progressively instead of blowing up the live context window.
Harden Auth
Deployment hardening step 2 — review auth/session/authz surfaces. Identifies insecure cookies, broad CORS, mis
Triton Flash Attention V2
Implement FlashAttention v2 kernels in Triton with online softmax, causal masking, GQA head routing, multi-str
Related Agents
Econometrics Critic
Use this agent when you need rigorous econometric review of any empirical research design, strategy memo, pape
Methodology Reviewer Agent
v1.0 You are a methodology reviewer specializing in empirical social science. You evaluate papers with the rig
Peer Reviewer Quant
A simulated peer reviewer specializing in quantitative methods, causal inference, and empirical rigor. Invoked