stata-plan

Converts an empirical design into a Stata execution plan and optional do-file skeleton.

Updated Jul 15, 2026
One-click install
npx skills add https://github.com/1549171506/shizhengmubangai1 --skill stata-plan-1549171506
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stata-plan
Source: https://github.com/1549171506/shizhengmubangai1/tree/main/Desktop/123/empiricalwiki/i18n/en/skills/stata-plan
Command: npx skills add https://github.com/1549171506/shizhengmubangai1 --skill stata-plan-1549171506

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Turning an empirical research design into a concrete Stata workflow is error-prone: merge keys, variable construction, robustness checks, and table exports are easy to miss or inconsistent. This Skill reads your design and wiki documentation and produces a structured, verifiable Stata execution plan. ## Core Features & Use Cases - Structured Execution Plan: Generates a 13-section plan covering input data, merge order, sample filters, variable construction, winsorization, descriptive statistics, correlations, baseline regressions, mechanism and heterogeneity tests, robustness checks, table exports, and a verification checklist. - Optional Do-File Skeleton: With the --write-do flag, also writes a Stata do-file skeleton without ever overwriting existing user do-files. - Conservative Variable Handling: Uses placeholders and marks uncertain variable names as needs confirmation instead of inventing names. - Use Case: A researcher with a wiki-documented empirical design on firm performance runs the Skill to get a dated plan file in wiki/outputs/ detailing every merge, regression, and robustness check before writing any Stata code. ## Quick Start Ask the assistant to run the stata-plan skill on your empirical design document to generate a Stata execution plan in wiki/outputs.

Frequently Asked Questions about stata-plan

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I turn an empirical research design into a Stata do-file?

Run the Skill on your empirical design document and pass the --write-do flag. It reads your wiki pages on variables, datasets, and models, then writes a dated plan file plus a do-file skeleton in wiki/outputs without overwriting existing do-files.

What does a Stata execution plan include?

The plan covers 13 sections: input data, merge keys and order, sample filters, variable construction, winsorization and missing values, descriptive statistics, correlations, baseline regressions, mechanism and heterogeneity tests, robustness checks, table exports, and a verification checklist.

Will the Skill overwrite my existing Stata do-files?

No. The Skill explicitly never overwrites existing user do-files. It only creates new dated output files in wiki/outputs, and the do-file is generated only when you pass the --write-do flag.

How are uncertain variable names handled in the plan?

The Skill does not invent final variable names. It uses placeholders and marks any uncertain names as needing confirmation, so you verify them against your actual datasets before running the code.

What inputs does the Skill need to build a Stata plan?

It reads the selected empirical design plus wiki pages for variables, datasets, models, robustness, and heterogeneity, along with local .do, .dta, .xlsx files, dictionaries, and READMEs available in the project.