Full-empirical-analysis-skill-R is a skill in brycewang-stanford/Auto-Empirical-Research-Skills, last changed 2 Sept 2026. It can change agent settings and run shell commands — read the findings before installing.

From the author
Classical end-to-end empirical analysis workflow in the modern tidyverse + econometrics R ecosystem — dplyr + tidyr + haven + fixest + sandwich + lmtest + clubSandwich + AER + ivreg + did + bacondecomp + HonestDiD + eventstudyr + rdrobust + rddensity + Synth + gsynth + synthdid + MatchIt + WeightIt + cobalt + ebal + grf + DoubleML + mediation + marginaleffects + modelsummary + kableExtra + gt + ggplot2 + ggpubr + cowplot + binsreg. **Defaults to economics empirical-paper style** (AER / QJE / AEJ) — every run produces a publication-ready output set with a multi-column regression table (M1→M6 progressive controls/FE) as the centerpiece, plus Table 1 (descriptives), mechanism / heterogeneity / robustness tables, and event-study + coefficient + trend figures. Covers the full 8-step R pipeline an applied economist runs on every paper — (1) data import & cleaning (read_dta/read_csv, naniar, janitor, validate-merges), (2) variable construction (mutate/across/winsorize/group_by + lag/lead with dplyr), (3) descriptive statistics & Table 1 (gtsummary, modelsummary::datasummary, tableone), (4) classical diagnostic tests (shapiro/jarque.bera.test/bptest/dwtest/bgtest/vif/adf.test/kpss.test/Hausman), (5) baseline modeling (fixest::feols, ivreg, did::att_gt, eventstudyr, sun_ab, did_imputation, synthdid, rdrobust, MatchIt, WeightIt, grf::causal_forest, DoubleML, mediation), (6) robustness battery (modelsummary stack, clubSandwich CRSE, fwildclusterboot, ri2, robomit Oster, bacondecomp, HonestDiD), (7) further analysis (interactions + marginaleffects, mediation::mediate, gsem via lavaan, dose-response splines, grf CATE), (8) publication-ready tables & figures (modelsummary, kableExtra, gt, stargazer, texreg, flextable to LaTeX/Word/HTML; ggplot2 + ggpubr + cowplot + binsreg + iplot for figures). **Also covers two parallel domain modes that share the same 8-step scaffolding** — **Mode A — Epidemiology / public health** (target-trial emulation, IPTW + g-formula + TMLE doubly-robust triplet via `WeightIt` / `gfoRmula` / `tmle` / `ltmle`, Mendelian randomization via `MendelianRandomization` / `TwoSampleMR` / `MRPRESSO`, KM / Cox / AFT / RMST survival via `survival` / `survminer` / `flexsurv`, E-value sensitivity via `EValue`, principal stratification — STROBE / TRIPOD reporting), and **Mode B — ML causal inference** (DML via `DoubleML`, S/T/X/R/DR meta-learners via `causalweight` / `grf`, causal forest via `grf::causal_forest`, BART/BCF via `bartCause` / `bcf`, matrix completion via `MCPanel`, CATE distribution + policy tree via `policytree`, off-policy evaluation, conformal causal via `conformalInference` / `cfcausal`, fairness audit via `fairmodels`, DAG learning via `pcalg` / `bnlearn` / LLM-assisted). Use when the user asks for a complete R empirical analysis, wants a tidyverse-style reproducible R script / Quarto workflow, prefers fixest over reghdfe, needs the R counterpart to StatsPAI / 00.1 / 00.2, or names a specific R step in isolation ("feols with cluster", "MatchIt nearest neighbor", "bacondecomp in R", "gtsummary table 1", "modelsummary to Word"). Mode A triggers on "target trial emulation R", "tmle ltmle", "MendelianRandomization", "TwoSampleMR", "MRPRESSO", "survival cox AFT", "STROBE R", "EValue R", "公共健康 R", "流行病学 R". Mode B triggers on "DoubleML R", "grf causal forest", "policytree", "bartCause bcf", "conformal causal R", "fairmodels", "pcalg NOTEARS", "因果机器学习 R".

At a glance

What it can touch

How much a skill can do, not whether it is risky.

Pattern check

1 item to review

Name copied from another skill

R38 · High · SKILL.md:2

Commit bfa0a6e · 3 Nov 2026

How the check works

Pattern check:1 item to reviewSee it

Install

Each tab says whether it installs commit bfa0a6e, the one we checked, or the latest version.

Read this before installing: Name copied from another skill — SKILL.md:2

Read SKILL.md first
Licence not identified
Licence
4.9k
Repo stars

What it can touch

From the files and frontmatter at commit bfa0a6e. This is how much a skill can do, not whether it is risky.

Pattern check

Pattern check: 1 item to review · commit bfa0a6e · 3 Nov 2026

We checked every text file in this skill, at commit bfa0a6e on 3 Nov 2026, against 45 published patterns such as download-and-run commands, hidden text and credential access. We don't run the skill, we don't read the web pages it points to, and we can't judge everything its instructions might lead an agent to do. In published tests, pattern checks like this one missed most malicious skills. Read the skill before you install it — especially anything it asks you to download or run.

How the check worksReport an incorrect finding

Format check

Each agent reads SKILL.md a little differently. We check the file against each one's published rules; we don't run the skill in any agent.

  • Agent Skills specFails

    The open format from agentskills.io, held to the strictest version of each rule among the agents we check.

    • Error

      The name "Full-empirical-analysis-skill-R" has uppercase letters. Names may use only a–z, 0–9 and single hyphens. N3

      Fix: Use name: full-empirical-analysis-skill-r and rename the folder to match.

    • Error

      The name "Full-empirical-analysis-skill-R" doesn't match its folder "00.3-Full-empirical-analysis-skill_R". The spec requires them to match. N4

      Fix: Set name: 00-3-full-empirical-analysis-skill-r, or rename the folder to full-empirical-analysis-skill-r.

    • Error

      The description is 3,425 characters; the limit is 1,024. D2

      Fix: Shorten it to 1,024 characters or fewer, and move detail into the body.

    • Warning

      Fields outside the spec: triggers. Uploads to the Claude apps and API, and the spec's validator, reject the file; most agents ignore these fields. O1

      Fix: Delete them for a portable skill, or keep them if you only target the agents that read them.

    • Warning

      The body is 2431 lines; the spec suggests under 500. B1

      Fix: Move detailed sections into reference files and link to them from SKILL.md.

    • Warning

      The body is about 29,284 tokens (approx.); the spec suggests under 5,000. B2

      Fix: Move detail into reference files that the agent reads only when needed.

    • Note

      The first sentence of the description is 435 characters. Agents shorten long descriptions, so lead with the main job. D8

      Fix: Start with one short sentence that names the job.

    • Note

      There is no license field, so readers can't tell whether they may reuse the skill. O2

      Fix: Add license: with an SPDX name such as MIT or Apache-2.0, or the name of a bundled licence file.

  • Claude CodePasses with warnings

    Claude Code reads its own extra fields, ignores unknown ones, and still loads a skill whose frontmatter is broken, without its fields.

    • Warning

      The description comes to 3,425 characters; Claude Code's skill listing cuts each entry at 1,536. The listing keeps every skill's name, but past its budget (1% of the context window) Claude Code drops descriptions, starting with the skills used least. D5

      Fix: Put the key use case first, or move detail into the body.

    • Note

      The name "Full-empirical-analysis-skill-R" doesn't match its folder "00.3-Full-empirical-analysis-skill_R". Claude Code shows the skill as /Full-empirical-analysis-skill-R, and the folder name also invokes it. N4

      Fix: Set name: 00-3-full-empirical-analysis-skill-r, or rename the folder to full-empirical-analysis-skill-r.

    • Note

      The first sentence of the description is 435 characters. Agents shorten long descriptions, so lead with the main job. D8

      Fix: Start with one short sentence that names the job.

    • Note

      Claude Code ignores fields it doesn't know: triggers. O1

      Fix: Check the spelling against Claude Code's field list, or delete them.

    • Note

      The body is 2431 lines; the spec suggests under 500. Claude Code's docs say the same. B1

      Fix: Move detailed sections into reference files and link to them from SKILL.md.

    • Note

      The body is about 29,284 tokens (approx.); the spec suggests under 5,000. After compaction Claude Code keeps only the first 5,000 tokens of a skill. B2

      Fix: Move detail into reference files that the agent reads only when needed.

  • Claude apps & API uploadFails

    Uploading to claude.ai or the Claude API, or packaging with Anthropic's script, accepts only the six spec fields and stops on anything else.

    • Error

      The name "Full-empirical-analysis-skill-R" has uppercase letters. Anthropic's validator allows only lowercase letters, digits and hyphens. N3

      Fix: Use name: full-empirical-analysis-skill-r and rename the folder to match.

    • Error

      The name "Full-empirical-analysis-skill-R" doesn't match its folder "00.3-Full-empirical-analysis-skill_R". claude.ai refuses an upload whose folder name doesn't match the skill name. N4

      Fix: Set name: 00-3-full-empirical-analysis-skill-r, or rename the folder to full-empirical-analysis-skill-r.

    • Error

      The description is 3,425 characters; the limit is 1,024. Anthropic's validator rejects it. D2

      Fix: Shorten it to 1,024 characters or fewer, and move detail into the body.

    • Error

      Upload and packaging fail on fields outside the spec: triggers. O1

      Fix: Delete them, and keep your own data under metadata as text values.

    • Note

      The body is 2431 lines; the spec suggests under 500. Anthropic's guidance says the same. B1

      Fix: Move detailed sections into reference files and link to them from SKILL.md.

    • Note

      The body is about 29,284 tokens (approx.); the spec suggests under 5,000. Anthropic's guidance says the same. B2

      Fix: Move detail into reference files that the agent reads only when needed.

  • OpenAI (Codex & API)Fails

    Codex finds SKILL.md by its exact name and needs a description; OpenAI's Skills API checks the frontmatter against the spec and caps uploads.

    • Error

      The name "Full-empirical-analysis-skill-R" has uppercase letters. OpenAI's upload follows the spec, which allows only a–z, 0–9 and hyphens. N3

      Fix: Use name: full-empirical-analysis-skill-r and rename the folder to match.

    • Error

      The description is 3,425 characters; the limit is 1,024. Codex has no limit, but OpenAI's upload follows the spec. D2

      Fix: Shorten it to 1,024 characters or fewer, and move detail into the body.

    • Warning

      The name "Full-empirical-analysis-skill-R" doesn't match its folder "00.3-Full-empirical-analysis-skill_R". OpenAI's own upload example uses a differently named folder, but the spec it follows says they must match. N4

      Fix: Set name: 00-3-full-empirical-analysis-skill-r, or rename the folder to full-empirical-analysis-skill-r.

    • Warning

      Fields outside the spec: triggers. Codex ignores them; OpenAI doesn't say whether its upload accepts them. O1

      Fix: Delete them, or move your own data under metadata as text values.

    • Note

      The first sentence of the description is 435 characters. Agents shorten long descriptions, so lead with the main job. D8

      Fix: Start with one short sentence that names the job.

  • VS Code & CopilotPasses with warnings

    VS Code reads skills one folder below .github/skills, .claude/skills or .agents/skills and falls back to the folder name when the name is missing or differs; GitHub's Copilot docs require the exact name SKILL.md.

    • Warning

      The name "Full-empirical-analysis-skill-R" has uppercase letters. VS Code uses the folder name whenever the name differs from it. N3

      Fix: Use name: full-empirical-analysis-skill-r and rename the folder to match.

    • Warning

      The name "Full-empirical-analysis-skill-R" doesn't match its folder "00.3-Full-empirical-analysis-skill_R". VS Code uses the folder name, 00.3-Full-empirical-analysis-skill_R, instead. N4

      Fix: Set name: 00-3-full-empirical-analysis-skill-r, or rename the folder to full-empirical-analysis-skill-r.

    • Warning

      The description is 3,425 characters; the limit is 1,024. VS Code cuts it at 1,024 characters. D2

      Fix: Shorten it to 1,024 characters or fewer, and move detail into the body.

    • Note

      VS Code ignores fields it doesn't support: triggers. O1

      Fix: Delete them unless another agent you target reads them.

SKILL.md

We only show SKILL.md text here when its licence clearly allows it.

Read SKILL.md on GitHub (opens in a new tab)

Files

Copies

These share its SKILL.md or its name and description but not all its files, so we list them separately.

More from brycewang-stanford/Auto-Empirical-Research-Skills

SkillWhat it can touchPattern checkLicenceUpdated
  • Instructions only
Pattern check: Nothing flaggedNo licence2 Apr 2026
  • Instructions only
Pattern check: Nothing flaggedNo licence2 Apr 2026
  • Instructions only
Pattern check: Nothing flaggedNo licence2 Apr 2026
abstractReads the manuscript and notebooks to generate a structured abstract. Use when writing or updating the abstract.
  • Runs shell commands
  • +1 more

Pattern check: 1 item to reviewNo licenceUpdated 2 Apr 2026

  • Runs shell commands
  • Pre-approves tools
Pattern check: 1 item to reviewNo licence2 Apr 2026
abstract-writing-guideCraft structured research abstracts that maximize clarity and journal acceptance
  • Instructions only

Pattern check: Nothing flaggedNo licenceUpdated 2 Apr 2026

  • Instructions only
Pattern check: Nothing flaggedNo licence2 Apr 2026
  • Instructions only
Pattern check: Nothing flaggedNo licence3 Jun 2026
All skills in brycewang-stanford/Auto-Empirical-Research-Skills

Other Testing & QA skills

Same category, most repo stars first.

SkillWhat it can touchPattern checkLicenceUpdated
finishing-a-development-branchUse when implementation is complete, all tests pass, and you need to decide how to integrate the work

obra/superpowers

  • Runs shell commands
  • +1 more

Pattern check: Nothing flaggedMITUpdated 12 Aug 2026

  • Runs shell commands
  • Reaches the network
Pattern check: Nothing flaggedMIT12 Aug 2026
systematic-debuggingUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes

obra/superpowers

  • Runs shell commands
  • +1 more

Pattern check: Nothing flaggedMITUpdated 9 Oct 2026

  • Runs shell commands
  • Bundles scripts
Pattern check: Nothing flaggedMIT9 Oct 2026
  • Runs shell commands
  • Reaches the network
Pattern check: Nothing flaggedMIT10 Oct 2026
  • Instructions only
Pattern check: Nothing flaggedMIT11 Aug 2026
  • Runs shell commands
  • Reaches the network
  • +2 more
Pattern check: Nothing flaggedApache 2.020 Apr 2026
  • Instructions only
Pattern check: Nothing flaggedMIT8 Oct 2026

Repo facts from GitHub on 3 Nov 2026. Files read at commit bfa0a6e.

QAI did not write these skills and is not affiliated with their authors unless a page says so. Logos and icons belong to their owners and are not a mark of approval. How we check