Stata Audit
SepineTam/mcp-for-stata
Inspect, validate, summarize, and render local Stata-MCP audit evidence under .statamcp.
End-to-end Stata replication pipeline — scaffolds numbered .do files in scripts/stata/, executes them via the stata-mcp MCP server, captures logs and outputs to output/, and produces…
$ npx skills add pedrohcgs/claude-code-my-workflow --skill stata-replication -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install pedrohcgs/claude-code-my-workflow stata-replication --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/pedrohcgs/claude-code-my-workflow.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/stata-replication .claude/skills/stata-replication && 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 "stata-replication" agent skill from https://github.com/pedrohcgs/claude-code-my-workflow/tree/main/.claude/skills/stata-replication into .claude/skills/stata-replication/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "stata-replication", 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/pedrohcgs/claude-code-my-workflow/tree/main/.claude/skills/stata-replicationType 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 pedrohcgs/claude-code-my-workflow --skill stata-replication -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install pedrohcgs/claude-code-my-workflow stata-replication --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pedrohcgs/claude-code-my-workflow.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/stata-replication .agents/skills/stata-replication && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "stata-replication" agent skill from https://github.com/pedrohcgs/claude-code-my-workflow/tree/main/.claude/skills/stata-replication into .agents/skills/stata-replication/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "stata-replication", 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 pedrohcgs/claude-code-my-workflow --skill stata-replication -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install pedrohcgs/claude-code-my-workflow stata-replication --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pedrohcgs/claude-code-my-workflow.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/stata-replication .cursor/skills/stata-replication && 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 "stata-replication" agent skill from https://github.com/pedrohcgs/claude-code-my-workflow/tree/main/.claude/skills/stata-replication into .cursor/skills/stata-replication/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "stata-replication", 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/pedrohcgs/claude-code-my-workflow.git --path .claude/skills/stata-replication--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 pedrohcgs/claude-code-my-workflow --skill stata-replication -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install pedrohcgs/claude-code-my-workflow stata-replication --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pedrohcgs/claude-code-my-workflow.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/stata-replication .gemini/skills/stata-replication && 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 "stata-replication" agent skill from https://github.com/pedrohcgs/claude-code-my-workflow/tree/main/.claude/skills/stata-replication into .gemini/skills/stata-replication/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "stata-replication", 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 pedrohcgs/claude-code-my-workflow stata-replicationInstalls 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 pedrohcgs/claude-code-my-workflow --skill stata-replication -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/pedrohcgs/claude-code-my-workflow.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/stata-replication .github/skills/stata-replication && 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 "stata-replication" agent skill from https://github.com/pedrohcgs/claude-code-my-workflow/tree/main/.claude/skills/stata-replication into .github/skills/stata-replication/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "stata-replication", 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 pedrohcgs/claude-code-my-workflow --skill stata-replication -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install pedrohcgs/claude-code-my-workflow stata-replication --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pedrohcgs/claude-code-my-workflow.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/stata-replication .opencode/skills/stata-replication && 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 "stata-replication" agent skill from https://github.com/pedrohcgs/claude-code-my-workflow/tree/main/.claude/skills/stata-replication into .opencode/skills/stata-replication/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "stata-replication", 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.
stata-replicationEnd-to-end Stata replication pipeline — scaffolds numbered .do files in scripts/stata/, executes them via the stata-mcp MCP server, captures logs and outputs to output/, and produces…
Stata Replication is an agent skill from pedrohcgs/claude-code-my-workflow. End-to-end Stata replication pipeline — scaffolds numbered .do files in scripts/stata/, executes them via the stata-mcp MCP server, captures logs and outputs to output/, and produces publication-ready tables (esttab) and figures (graph export). Mirrors /data-analysis for R-first projects. Use when user says "stata replication", "set up Stata pipeline", "scaffold the .do files", "run Stata analysis", "AEA replication package in Stata", or when a project's analysis language is Stata not R.
Its SKILL.md is about 2.1k 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 Database administration. It works with Model Context Protocol. The repository describes itself as: A ready-to-fork Claude Code template for academics using LaTeX/Beamer + R. Multi-agent review, quality gates, adversarial QA, and replication protocols. The licence is MIT.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit ae72617. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
ReadWriteEditGlobGrepBashAgentTaskFrom allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
claudeFrom the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
github.comaeadataeditor.github.ioFrom 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.
Stata Replication loads about 2.1k tokens when it runs. Until then it costs about 130 tokens; SKILL.md has 855 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 noted patterns worth knowing about, such as sudo or a known installer.
allowed-tools: Read, Write, Edit, Glob, Grep, Bash, Agent, TaskAutomated 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 pedrohcgs/claude-code-my-workflow at commit ae72617, republished under its MIT licence (© pedrohcgs). 855 words, ~2,061 tokens.
.claude/skills/stata-replication/SKILL.md (or your agent's skills folder)./stata-replication — Stata pipeline scaffold + executionBuild a complete Stata replication pipeline in scripts/stata/: numbered .do files following .claude/rules/stata-code-conventions.md, executed via the stata-mcp MCP server, with outputs landing in output/.
do scripts/stata/99_run_all.do./data-analysis./data-analysis is the right fit; consider extending the convention rule for Python or porting one of these skills.stata-mcp installedThis skill requires the stata-mcp MCP server. Install once per user:
claude mcp add stata-mcp --scope user -- uvx stata-mcpThe MCP server provides command-guarded Stata execution (refuses destructive operations like !/shell/erase), RAM monitoring, and Stata Language Server pairing. Maintained by SepineTam.
If stata-mcp is not installed, the skill halts at Phase 0 with installation instructions.
stata-mcp is registered in the user's MCP configuration. If not → halt with install instructions.scripts/stata/ directory exists or can be created..claude/rules/stata-code-conventions.md — every emitted .do file follows this convention.--from-r flag is set, locate the existing R pipeline at scripts/R/ and use it as a translation source. Apply the Stata → R pitfalls table from replication-protocol.md in reverse.Emit (or update) these files in scripts/stata/, each conforming to the header convention from stata-code-conventions.md:
scripts/stata/
├── 00_install.do # ssc install, set globals, paths, sessionInfo capture
├── 01_clean.do # raw → cleaned panel
├── 02_descriptive.do # summary tables, balance (iebaltab), attrition
├── 03_analyze.do # main regression specs (reghdfe / ivreg2 as needed)
├── 04_robustness.do # alt specs, sensitivity
├── 05_tables_figures.do # esttab .tex outputs + graph export PDFs
└── 99_run_all.do # do "01_clean.do" / do "02_..." / ...If the paper or data source suggests specific specs (e.g., DiD with reghdfe, IV with ivreg2, RD with rdrobust), tailor 03_analyze.do accordingly.
--no-execute)For each script in numbered order:
stata-mcp to execute the .do file.output/NN_log.smcl per the header convention) and the resulting .dta / .tex / .pdf outputs.failed and the error in Why, then halt — do NOT auto-fix unless the failure is trivial (typo flagged by Stata at parse time). For substantive failures (insufficient observations, singular matrices, missing covariates), surface to the user..do file ran — kept, dropped, or failed — to quality_reports/spec-ledger.md, with the same columns, commit stamp and append-only block as /data-analysis Phase 3 ("Specification ledger"). A failed run is a row too, with Status failed and the error in Why.For long-running scripts (> 2 minutes), use the Monitor tool to stream stdout — same pattern documented in /data-analysis and /audit-reproducibility.
output/.output/sessionInfo_stata.txt was captured (package versions)./audit-reproducibility if a manuscript exists — it reads Stata .dta outputs via haven/pyreadstat.If --from-r was set, run the R version of the same analysis (assumed to live at scripts/R/) and compare:
replication-protocol.md tolerance).Discrepancies are surfaced for the user to investigate — typical culprits: clustering df, default options (logit vs probit for PS), bootstrap seed handling.
/data-analysis — R analogue. Same pipeline shape, different language./audit-reproducibility — reads both .rds and .dta outputs. Cross-checks manuscript claims against the produced values./review-paper — if the paper exists and cites tables/figures produced by this pipeline, /review-paper auto-invokes /audit-reproducibility (per cross-artifact-review.md)..dta files. Never. All transformations happen via the .do files; .dta outputs are derived and reproducible.99_run_all.do. This is the AEA-mandated one-command entry point. Build it even for small projects., robust by default. Use , cluster(id) at the appropriate level — see stata-code-conventions.md §6.esttab and \input{} — see stata-code-conventions.md §4..do file starts with version 18 per the convention..claude/rules/stata-code-conventions.md — the discipline contract..claude/rules/replication-protocol.md — tolerance thresholds (applies across R / Stata / Python).Long Stata fits (multi-hour bootstrap with cluster bootstrap, large reghdfe with millions of observations, simulation studies) should be background-launched and tailed with the Monitor tool — same pattern as /data-analysis and /audit-reproducibility for R / Python. The .do file logs to SMCL (output/NN_log.smcl). Monitor does not attach to a background job or its stderr: only the stdout of the command you give it becomes events. So run Monitor on a command that tails the log and filters for progress lines and Stata errors, e.g. tail -f output/NN_log.smcl | grep --line-buffered -E '\{err\}|r\([0-9]+\);|<your progress marker>', so Claude can react to errors mid-stream (a multi-hour run needs persistent: true, then TaskStop once the job ends).
© pedrohcgs, 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/stata-replication of pedrohcgs/claude-code-my-workflow.
Open the folder on GitHubat commit ae72617
We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in pedrohcgs/claude-code-my-workflow, which our catalogue first saw on October 7, 2026.
Stata Replication 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 |
|---|---|---|---|---|---|---|
| Stata Replication this skillpedrohcgs/claude-code-my-workflow | 1.6k | 1 repos | ~2.1k | Automated safety check: Notes | MIT | |
| Stata AuditSepineTam/mcp-for-stata | 264 | — | ~1.2k | Automated safety check: Pass | AGPL-3.0 | |
| Diagnostic DofileSepineTam/mcp-for-stata | 264 | — | ~1.2k | Automated safety check: Pass | AGPL-3.0 | |
| Referee2scunning1975/MixtapeTools | 470 | 2 repos | ~2.4k | Automated safety check: Pass | None | |
| Stata DiscoverSepineTam/mcp-for-stata | 264 | — | ~1.7k | Automated safety check: Pass | AGPL-3.0 | |
| Rfc Impl GeneratorSepineTam/mcp-for-stata | 264 | — | ~1.1k | Automated safety check: Pass | AGPL-3.0 |
SepineTam/mcp-for-stata
Inspect, validate, summarize, and render local Stata-MCP audit evidence under .statamcp.
SepineTam/mcp-for-stata
A skill your agent uses when the user needs to inspect, audit, or diagnose the safety of a Stata do-file.
scunning1975/MixtapeTools
Systematic audit and review by Referee 2. An agent skill from scunning1975/MixtapeTools.
SepineTam/mcp-for-stata
A skill your agent uses when you need to find Stata on the user's machine or configure stata-mcp to use it.
SepineTam/mcp-for-stata
Generate RFC and IMPL documents from a user-provided feature/fix description.
SepineTam/mcp-for-stata
A packaged Stata Runner skill via official MCP-for-Stata server including statado, adopackageinstall, help, readlog and getdatainfo tools.
pedrohcgs/claude-code-my-workflow
Adversarial 5-7 question challenge to a deck's pedagogical choices — ordering, prerequisites, cognitive load, motivation.
pedrohcgs/claude-code-my-workflow
Qualify a check before it is allowed to clear anything — prove it can detect the failure it is meant to catch.
pedrohcgs/claude-code-my-workflow
Compile a Beamer LaTeX slide deck with XeLaTeX (3 passes + bibtex).
pedrohcgs/claude-code-my-workflow
Show current context status and session health. An agent skill from pedrohcgs/claude-code-my-workflow.
pedrohcgs/claude-code-my-workflow
Pre-screen analysis outputs (tables, figures, logs) built on restricted or confidential data for statistical-disclosure-limitation problems before any release.
pedrohcgs/claude-code-my-workflow
Snapshot the computational environment for a replication package — detects the analysis stack (R / Stata / Python) and emits the right lockfiles (renv.lock + sessionInfo.txt, requirements.txt /…
Works with
Categories
End-to-end Stata replication pipeline — scaffolds numbered .do files in scripts/stata/, executes them via the stata-mcp MCP server, captures logs and outputs to output/, and produces…. Stata Replication is an agent skill from pedrohcgs/claude-code-my-workflow.do files in scripts/stata/, executes them via the stata-mcp MCP server, captures logs and outputs to output/, and produces publication-ready tables (esttab) and figures (graph export).
Stata Replication fits situations like: user says stata replication; set up Stata pipeline; scaffold the .do files; run Stata analysis.
Run `npx skills add pedrohcgs/claude-code-my-workflow --skill stata-replication -a claude-code`. Or copy the skill folder (.claude/skills/stata-replication in pedrohcgs/claude-code-my-workflow) into .claude/skills/stata-replication in your project. Claude Code loads it when a task matches its description.
Run `npx skills add pedrohcgs/claude-code-my-workflow --skill stata-replication -a codex`. Or copy the skill folder (.claude/skills/stata-replication in pedrohcgs/claude-code-my-workflow) into .agents/skills/stata-replication 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 pedrohcgs/claude-code-my-workflow --skill stata-replication -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/stata-replication, .gemini/skills/stata-replication, .github/skills/stata-replication and .opencode/skills/stata-replication in your project.
Going by SKILL.md and its folder, Stata Replication needs the command-line tools its instructions call (claude). Our summary lists: Python 3. Its frontmatter pre-approves these tools: Read, Write, Edit, Glob, Grep, Bash, Agent, Task.
SKILL.md names 2 domains. As links in the text: github.com and aeadataeditor.github.io. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
Stata Replication is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.1k tokens (SKILL.md is roughly 8.2k 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 Stata Replication: Stata Audit (SepineTam/mcp-for-stata, 264 stars), Diagnostic Dofile (SepineTam/mcp-for-stata, 264 stars), Referee2 (scunning1975/MixtapeTools, 470 stars) and Stata Discover (SepineTam/mcp-for-stata, 264 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
pedrohcgs (a GitHub user) maintains it in pedrohcgs/claude-code-my-workflow, which has 1,645 GitHub stars. The repository holds 59 skills in this directory. The repository was last updated on September 27, 2026.
Source: pedrohcgs/claude-code-my-workflow on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.