Install any skill in seconds. Free to start, no credit card required.
Get Started Free →brycewang-stanford/coding-guidelines
Standardized Python & Stata coding practices for empirical research projects
Passed 18 of 22 test cases with the skill, and 10 of 22 without it.
and 12 more in the full report
8 fixed10 passed either way4 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 8 test cases the skill fixed. Same model, same prompt, with and without the skill.
In Stata, I need to run a regression on a subsample of large firms (total_assets > median_assets) and export the table without losing the full dataset in memory for subsequent analyses. Provide the Stata code block.
| Checked | Without skill | With skill |
|---|---|---|
| Encloses the subsample filtering and estimation within a preserve and restore block. | Missed | Passed |
| Uses keep if inside the block to restrict the dataset to the target subsample. | Missed | Passed |
The instructions your model reads when the skill loads.
Version: 1.0 Last Updated: January 2026 Purpose: Standardized coding practices for empirical research projects
ProjectName/
├── Code/ # All analysis scripts
│ ├── [Number]_[Name].py # Data processing (Python)
│ ├── AN_[Number]_[Name].do # Analysis scripts (Stata)
│ ├── AN_[Number]_[Name].py # Analysis scripts (Python)
│ ├── LogFiles/ # Stata log files
│ └── README.md # Project documentation
├── Data/
│ ├── Raw/ # Original data (never modify)
│ ├── Intermediate/ # Partial processing
│ └── Clean/ # Analysis-ready data
└── Results/
├── Tables/ # Regression tables
└── Figures/ # Visualizations
test cases passed, vs 10 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.