Fin Data Acquisition
csmar432/finai-research
根据REFINEDDESIGN.md中的变量定义,自动获取所需数据并生成可执行的回归分析脚本(Python/Stata)。
A skill your agent uses when the user needs to inspect, audit, or diagnose the safety of a Stata do-file.
$ npx skills add SepineTam/mcp-for-stata --skill diagnostic-dofile -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install SepineTam/mcp-for-stata diagnostic-dofile --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/SepineTam/mcp-for-stata.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/stata-toolbox/skills/diagnostic-dofile .claude/skills/diagnostic-dofile && 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 "diagnostic-dofile" agent skill from https://github.com/SepineTam/mcp-for-stata/tree/master/plugins/stata-toolbox/skills/diagnostic-dofile into .claude/skills/diagnostic-dofile/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "diagnostic-dofile", 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/SepineTam/mcp-for-stata/tree/master/plugins/stata-toolbox/skills/diagnostic-dofileType 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 SepineTam/mcp-for-stata --skill diagnostic-dofile -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install SepineTam/mcp-for-stata diagnostic-dofile --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/SepineTam/mcp-for-stata.git skills-src && mkdir -p .agents/skills && cp -r skills-src/plugins/stata-toolbox/skills/diagnostic-dofile .agents/skills/diagnostic-dofile && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "diagnostic-dofile" agent skill from https://github.com/SepineTam/mcp-for-stata/tree/master/plugins/stata-toolbox/skills/diagnostic-dofile into .agents/skills/diagnostic-dofile/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "diagnostic-dofile", 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 SepineTam/mcp-for-stata --skill diagnostic-dofile -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install SepineTam/mcp-for-stata diagnostic-dofile --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/SepineTam/mcp-for-stata.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/plugins/stata-toolbox/skills/diagnostic-dofile .cursor/skills/diagnostic-dofile && 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 "diagnostic-dofile" agent skill from https://github.com/SepineTam/mcp-for-stata/tree/master/plugins/stata-toolbox/skills/diagnostic-dofile into .cursor/skills/diagnostic-dofile/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "diagnostic-dofile", 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/SepineTam/mcp-for-stata.git --path plugins/stata-toolbox/skills/diagnostic-dofile--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 SepineTam/mcp-for-stata --skill diagnostic-dofile -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install SepineTam/mcp-for-stata diagnostic-dofile --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/SepineTam/mcp-for-stata.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/plugins/stata-toolbox/skills/diagnostic-dofile .gemini/skills/diagnostic-dofile && 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 "diagnostic-dofile" agent skill from https://github.com/SepineTam/mcp-for-stata/tree/master/plugins/stata-toolbox/skills/diagnostic-dofile into .gemini/skills/diagnostic-dofile/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "diagnostic-dofile", 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 SepineTam/mcp-for-stata diagnostic-dofileInstalls 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 SepineTam/mcp-for-stata --skill diagnostic-dofile -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/SepineTam/mcp-for-stata.git skills-src && mkdir -p .github/skills && cp -r skills-src/plugins/stata-toolbox/skills/diagnostic-dofile .github/skills/diagnostic-dofile && 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 "diagnostic-dofile" agent skill from https://github.com/SepineTam/mcp-for-stata/tree/master/plugins/stata-toolbox/skills/diagnostic-dofile into .github/skills/diagnostic-dofile/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "diagnostic-dofile", 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 SepineTam/mcp-for-stata --skill diagnostic-dofile -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install SepineTam/mcp-for-stata diagnostic-dofile --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/SepineTam/mcp-for-stata.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/plugins/stata-toolbox/skills/diagnostic-dofile .opencode/skills/diagnostic-dofile && 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 "diagnostic-dofile" agent skill from https://github.com/SepineTam/mcp-for-stata/tree/master/plugins/stata-toolbox/skills/diagnostic-dofile into .opencode/skills/diagnostic-dofile/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "diagnostic-dofile", 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.
diagnostic-dofileA skill your agent uses when the user needs to inspect, audit, or diagnose the safety of a Stata do-file.
Diagnostic Dofile is an agent skill from SepineTam/mcp-for-stata. Use this skill when the user needs to inspect, audit, or diagnose the safety of a Stata do-file. Typical scenarios include: uncertainty about whether a .do file is safe; receiving a complete do-file from an unofficial source (not the Stata website, not a well-known academic institution or professor's official site); asking to check a batch of do-files; or requesting a read-only security/risk/portability diagnostic report. The skill does not modify the original file; it only emits a JSON report. Note that this is…
Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `diagnose_dofile.py`).
It sits in Research & Science, covering Econometrics and empirical research and Security review. It works with Model Context Protocol. The repository describes itself as: Stata-MCP: A MCP server for integrating Stata into your agent loop with a safety-first design. The licence is AGPL-3.0.
8 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit d339615. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships script files (Python), which the agent can run.
Shell commands in SKILL.md call:
uvFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use uv, which can reach the network depending on how they are called.
From 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.
Diagnostic Dofile loads about 1.2k tokens when it runs. Until then it costs about 156 tokens; SKILL.md has 452 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 found no risky patterns in SKILL.md.
Automated 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 SepineTam/mcp-for-stata at commit d339615, republished under its AGPL-3.0 licence (© SepineTam). 452 words, ~1,245 tokens.
.claude/skills/diagnostic-dofile/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.This skill inspects a Stata do-file without changing the original file and outputs a JSON diagnostic report. The underlying script reuses stata_mcp.utils.parse_dofile and stata_mcp.guard.blacklist, so it handles Stata command abbreviations, prefixes (capture / quietly), macro expansion, block comments, #delimit ;, and other common constructs.
Recommended situations:
This skill is not required every time you write a do-file. For analysis code you wrote yourself, understand, and trust, you can run it directly without generating a diagnostic report each time.
uv run plugins/stata-toolbox/skills/diagnostic-dofile/diagnose_dofile.py path/to/file.doSave the report to a file:
uv run plugins/stata-toolbox/skills/diagnostic-dofile/diagnose_dofile.py path/to/file.do -o report.jsonBased on src/stata_mcp/guard/blacklist.py:
!, !!, shell, xshell, winexec, unixcmd.erase, rm, rmdir.do, run, include.python, mata, java, plugin.ssc, net, github, adoupdate, update.cd, chdir.use xxx.dta followed by save xxx.dta, replace pointing to the same file.clear all / drop _all.graph export xxx, replace.export xxx, replace.replace such as outreg2, esttab, estout, putexcel, putdocx, putpdf, logout, texdoc.log using xxx.log, replace.saveold xxx, replace.reghdfe, estout, outreg2, esttab, coefplot, ivreg2, rdrobust.help <command> to verify installation./Users/... or C:\....webuse or network URLs for loading data.cd / chdir working-directory changes.The report is a JSON object with the following structure:
{
"schema_version": "0.1.0",
"generated_at": "2026-09-22T12:34:56.789012Z",
"file": {
"path": "/project/analysis.do",
"size_bytes": 1234,
"sha256": "abc123...",
"encoding": "utf-8",
"has_bom": false,
"line_ending": "lf"
},
"summary": {
"total_lines": 100,
"code_lines": 60,
"comment_lines": 30,
"blank_lines": 10,
"error_count": 2,
"warning_count": 5,
"info_count": 3
},
"findings": [
{
"level": "error",
"line": 12,
"category": "dangerous_command",
"message": "Detected dangerous command 'shell'"
}
]
}stata_do. To disable the guard, configure ~/.statamcp/config.toml, but this is not recommended.© SepineTam, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file in plugins/stata-toolbox/skills/diagnostic-dofile of SepineTam/mcp-for-stata.
Open the folder on GitHubat commit d339615
Diagnostic Dofile 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 |
|---|---|---|---|---|---|---|
| Diagnostic Dofile this skillSepineTam/mcp-for-stata | 264 | — | ~1.2k | Automated safety check: Pass | AGPL-3.0 | |
| Fin Data Acquisitioncsmar432/finai-research | 109 | — | ~2k | Automated safety check: Pass | MIT | |
| Fin Generate Ideacsmar432/finai-research | 109 | — | ~2.5k | Automated safety check: Pass | MIT | |
| Fin Idea Discoverycsmar432/finai-research | 109 | — | ~2.7k | Automated safety check: Pass | MIT | |
| Fin Novelty Checkcsmar432/finai-research | 109 | — | ~1.4k | Automated safety check: Pass | MIT | |
| Stata Replicationpedrohcgs/claude-code-my-workflow | 1.7k | — | ~2.1k | Automated safety check: Notes | MIT |
csmar432/finai-research
根据REFINEDDESIGN.md中的变量定义,自动获取所需数据并生成可执行的回归分析脚本(Python/Stata)。
csmar432/finai-research
针对经济金融研究方向的创意生成与评估。生成8-12个可发表的研究idea,过滤后在数据可行的情况下进行小规模实证验证,输出排序后的研究想法报告。
csmar432/finai-research
经济金融研究的完整想法发现流程。从研究方向出发,经过文献综述、想法生成、新颖性验证、实证方法设计和数据获取,输出经过数据实证验证的可执行研究方案。
csmar432/finai-research
验证经济金融研究想法的新颖性。在JF、JFE、RFS、JME等顶刊及arXiv中搜索近三年文献,输出结构化新颖性报告和定位策略。
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…
brycewang-stanford/Auto-Empirical-Research-Skills
A skill your agent uses when aer-identification has fixed the design, after methodology choice and before aer-robustness or aer-tables-figures, to run an AER-track analysis with StatsPAI — the…
SepineTam/mcp-for-stata
Inspect, validate, summarize, and render local Stata-MCP audit evidence under .statamcp.
SepineTam/mcp-for-stata
Run a local smoke test for the Stata-MCP server. An agent skill from SepineTam/mcp-for-stata.
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.
Works with
Categories
A skill your agent uses when the user needs to inspect, audit, or diagnose the safety of a Stata do-file. Diagnostic Dofile is an agent skill from SepineTam/mcp-for-stata. Use this skill when the user needs to inspect, audit, or diagnose the safety of a Stata do-file.
Diagnostic Dofile fits situations like: the user needs to inspect; diagnose the safety of a Stata do-file.
Run `npx skills add SepineTam/mcp-for-stata --skill diagnostic-dofile -a claude-code`. Or copy the skill folder (plugins/stata-toolbox/skills/diagnostic-dofile in SepineTam/mcp-for-stata) into .claude/skills/diagnostic-dofile in your project. Claude Code loads it when a task matches its description.
Run `npx skills add SepineTam/mcp-for-stata --skill diagnostic-dofile -a codex`. Or copy the skill folder (plugins/stata-toolbox/skills/diagnostic-dofile in SepineTam/mcp-for-stata) into .agents/skills/diagnostic-dofile 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 SepineTam/mcp-for-stata --skill diagnostic-dofile -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/diagnostic-dofile, .gemini/skills/diagnostic-dofile, .github/skills/diagnostic-dofile and .opencode/skills/diagnostic-dofile in your project.
Going by SKILL.md and its folder, Diagnostic Dofile needs Python for the scripts in its folder and the command-line tools its instructions call (uv). Our summary lists: Python 3.
SKILL.md contains no URLs. Its commands use uv, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Diagnostic Dofile is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.2k tokens (SKILL.md is roughly 5k 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 Diagnostic Dofile: Fin Data Acquisition (csmar432/finai-research, 109 stars), Fin Generate Idea (csmar432/finai-research, 109 stars), Fin Idea Discovery (csmar432/finai-research, 109 stars) and Fin Novelty Check (csmar432/finai-research, 109 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
SepineTam (a GitHub user) maintains it in SepineTam/mcp-for-stata, which has 264 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on October 6, 2026.
Source: SepineTam/mcp-for-stata on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.