aer-statspai

aer-statspai is a skill for Claude Code, Codex from brycewang-stanford/AER-Skills. It costs 68 tokens per session (3,051 once invoked), scanned A, original, MIT.

A Python-based analysis engine for causal inference and econometrics, used after the research design and estimator have been chosen. It can run analyses, robustness and sensitivity checks, and export tables in formats such as LaTeX, Word, and Excel.

In plain words
What is it for?
Use it to execute an AER-style empirical analysis, run required diagnostics and robustness checks, and create publication-ready result tables.
Why use it?
It gives an agent one interface for carrying out the statistical methods already selected for an economics study. It does not choose or change the research methodology.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the aer-skills plugin — 15 skills shipped together

Good fit Use it to execute an AER-style empirical analysis, run required diagnostics and robustness checks, and create publication-ready result tables.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/brycewang-stanford/aer-skills/aer-statspai
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add brycewang-stanford/AER-Skills --skill aer-statspai
Clone the repo
git clone --depth 1 https://github.com/brycewang-stanford/AER-Skills

Made for: Claude Code, Codex.

Or install aer-skills, the plugin that ships this one along with the rest of its 15 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for aer-statspai

README.md
[![agentmods](https://agentmods.dev/badge/skills/brycewang-stanford/aer-skills/aer-statspai/github.svg)](https://agentmods.dev/skills/brycewang-stanford/aer-skills/aer-statspai)
Your own site
<a href="https://agentmods.dev/skills/brycewang-stanford/aer-skills/aer-statspai"><img src="https://agentmods.dev/badge/skills/brycewang-stanford/aer-skills/aer-statspai/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for aer-statspai

Your own site · 80×15
<a href="https://agentmods.dev/skills/brycewang-stanford/aer-skills/aer-statspai"><img src="https://agentmods.dev/badge/skills/brycewang-stanford/aer-skills/aer-statspai.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,051 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 4 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium analysis-evasion · line 1
    Suspicious Unicode normalization or mixed-script content
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
  • medium Agent Snooping · line 200
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
  • medium Agent Snooping · line 201
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
  • medium Agent Snooping · line 202
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00068 $0.03051
Opus 5.5 $0.00027 $0.01220
Sonnet 5.5 $0.00014 $0.00610
Haiku 4.5 $0.00007 $0.00305

Measured 3mo ago against content hash 49e94f6a7090, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

aer-statspai scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/aer-statspai/SKILL.md · 233 lines

How it starts

The opening of the file, as written. The whole thing — 233 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AER StatsPAI

Overview

aer-statspai is the implementation engine option for this stack. Where aer-identification and aer-robustness decide which estimator and which diagnostics a referee will demand, this skill is about running them — through StatsPAI, an open-source, agent-native Python platform that exposes 1,000+ causal-inference and econometrics functions behind one unified API, plus a machine-readable MCP server an agent can drive directly.

It is one more choice, not a replacement. The Stata / R / Python templates in templates/ remain the default for users who want drop-in, version-pinned scripts. Reach for StatsPAI when you want a single Python surface that covers the whole AER identification toolkit, self-describes its assumptions to an agent, and exports publication-ready LaTeX / Word / Excel tables from the estimator object.

This skill does not override the methodology. The modern-default rules in aer-identification (no TWFE on staggered data, Anderson-Rubin under weak IV, local-linear RDD, placebo inference for SCM) still bind. StatsPAI executes those rules; it does not relax them.

When to Use

  • You want to run the empirical analysis interactively from the agent, not just receive template code to run later by hand
  • You want one Python dependency covering DiD, IV, RDD, SCM, matching, DML, and causal forests instead of stitching together fixest, did, rdrobust, linearmodels, and scdata
  • A StatsPAI MCP server is connected (tools prefixed statspai) and you can chain detect_design → recommend → fit → audit_result → sensitivity → bibtex
  • You need publication-ready tables straight from the estimator object (.to_latex(), .to_docx(), .to_excel()) to hand to aer-tables-figures

When NOT to Use

  • The deposited replication package must be Stata-only (some coauthors / Data Editor workflows assume .do files) → use templates/stata/
  • You want exact, pinned, language-native scripts to commit verbatim into an openICPSR deposit → use templates/python/, templates/r/, or templates/stata/
  • The methodological choice is the open question — go to aer-identification first; come back here to execute once the design is fixed

Read the full file on GitHub · 233 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 233 lines · 68 tokens per session scan A 49e94f6a7090

Subscribe to this mod's changes

aer-statspai is a skill published in the GitHub repository brycewang-stanford/AER-Skills (63 stars, last pushed today), licensed MIT. It adds 68 tokens to every session and 3,051 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

aer-statspai compared with skills from other repositories

aer-statspai next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
aer-statspaibrycewang-stanford/AER-SkillsSkill63todayMITA68Claude Code, Codex
review-paperpedrohcgs/claude-code-my-workflowSkill1.8k27d agoMITA0Claude Code
oracle-reviewpedrohcgs/claude-code-my-workflowSkill1.8k27d agoMITA0Claude Code
audit-reproducibilitypedrohcgs/claude-code-my-workflowSkill1.8k27d agoMITA54Claude Code
capture-environmentpedrohcgs/claude-code-my-workflowSkill1.8k27d agoMITA139Claude Code
data-management-planpedrohcgs/claude-code-my-workflowSkill1.8k27d agoMITA143Claude Code, Codex
extract-tikzpedrohcgs/claude-code-my-workflowSkill1.8k27d agoMITA83Claude Code