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.
npx skills add brycewang-stanford/AER-Skills --skill aer-statspaigit clone --depth 1 https://github.com/brycewang-stanford/AER-SkillsWrote 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.
[](https://agentmods.dev/skills/brycewang-stanford/aer-skills/aer-statspai)<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.
<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>- NVIDIA SkillSpector warn
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 contentFix: 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.
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.
| Model | Per session | Once 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 |
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.
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, andscdata - A StatsPAI MCP server is connected (tools prefixed
statspai) and you can chaindetect_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 toaer-tables-figures
When NOT to Use
- The deposited replication package must be Stata-only (some coauthors /
Data Editor workflows assume
.dofiles) → usetemplates/stata/ - You want exact, pinned, language-native scripts to commit verbatim into an
openICPSR deposit → use
templates/python/,templates/r/, ortemplates/stata/ - The methodological choice is the open question — go to
aer-identificationfirst; come back here to execute once the design is fixed
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.
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.
- 3mo ago First seen · 233 lines · 68 tokens per session scan A 49e94f6a7090
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.
aer-statspai compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| aer-statspaibrycewang-stanford/AER-Skills | Skill | 63 | today | MIT | A | 68 | Claude Code, Codex |
| review-paperpedrohcgs/claude-code-my-workflow | Skill | 1.8k | 27d ago | MIT | A | 0 | Claude Code |
| oracle-reviewpedrohcgs/claude-code-my-workflow | Skill | 1.8k | 27d ago | MIT | A | 0 | Claude Code |
| audit-reproducibilitypedrohcgs/claude-code-my-workflow | Skill | 1.8k | 27d ago | MIT | A | 54 | Claude Code |
| capture-environmentpedrohcgs/claude-code-my-workflow | Skill | 1.8k | 27d ago | MIT | A | 139 | Claude Code |
| data-management-planpedrohcgs/claude-code-my-workflow | Skill | 1.8k | 27d ago | MIT | A | 143 | Claude Code, Codex |
| extract-tikzpedrohcgs/claude-code-my-workflow | Skill | 1.8k | 27d ago | MIT | A | 83 | Claude Code |