smithery.ai

stata

Execute Stata do-files via Bash using absolute paths and automatically retrieve logs.

First seen Mar 19, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 842 B
  • docs SUMMARY.md 98 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 8 installs

SKILL.md

Stata Skill

Executable Path: "D:/Stata/StataMP-64.exe"

1. CODE GENERATION RULES (Mandatory)

Whenever you create or edit a .do file, you MUST insert these two lines at the very top:

capture log close        // Closes any previously open logs to prevent errors
set more off             // Prevents Stata from pausing for user input (freezing)

## Operational Instructions

### Correct Execution Example
If you want to run `analysis.do` located in `D:/Project/`:

powershell -Command "& \"D:/Stata/StataMP-64.exe\" /e do
      \"D:/AutoRegMonkey/workspace/analysis.do\""

工作目录设在workspace,log文件也输出到workspace
在根目录下读取同名的log文件,那是stata的输出