skills/29-quarcs-lab-project20XXy/dot-claude/skills/new-analysis/SKILL.md
Scaffolds a method-specific analysis notebook (DiD, IV, RDD, LASSO, Panel FE) with boilerplate. Use when starting a new econometric analysis.
npx skillsauth add brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research new-analysisInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Create a new notebook pre-populated with method-specific boilerplate for a common econometric technique.
$ARGUMENTS — the method name and optional title (e.g., "DiD Event Study", "IV Analysis of Colonial Origins", "RDD Minimum Wage", "LASSO Variable Selection", "Panel FE Growth Regressions")Parse the method from the arguments. Recognized methods:
Follow the same notebook creation conventions as /project:new-notebook:
notebooks/ for existing files to determine the next sequential number.ipynb with the appropriate kernel and setup cell:
import sys; sys.path.insert(0, ".."); from config import set_seeds, DATA_DIR; set_seeds()source("../config.R"); set_seeds()clear all followed by set seed 42Add method-specific sections as markdown and code cells:
All methods include these sections:
#| label: tbl-<method>-sumstats)#| label: tbl-<method>-main)#| label: fig-<method>-main)Method-specific boilerplate:
#| label: fig-event-study), TWFE regression, staggered treatment note#| label: fig-rd-plot)#| label: fig-lasso-path), selected variables, post-LASSO OLSCreate the Jupytext .md pair:
uv run jupytext --set-formats ipynb,md:myst notebooks/<name>.ipynb
Register in _quarto.yml under manuscript.notebooks:
- notebook: notebooks/<name>.ipynb
title: "N<number>: <title>"
Confirm the notebook renders: quarto render notebooks/<name>.ipynb
Report the file path and list the embed-ready cell labels created.
tools
Show mcp-stata identity, connected tools, and status. Use when the user asks if mcp-stata is available, asks about access to the toolkit, or asks what Stata tools are connected.
tools
Activate when users mention Stata commands, .do files, regressions, econometrics, stored results, graphs, dataset inspection, replication, or Stata errors. Route the task through mcp-stata tools and the specialized research skills instead of treating it as plain text coding.
development
Build and review paper-ready regression, balance, and summary tables from Stata outputs. Use when the user needs a clean table for a draft, appendix, or coauthor share-out.
tools
Install, configure, update, or verify mcp-stata across Claude Code, Codex, Gemini CLI, Cursor, Windsurf, and VS Code. Activate when users ask to set up the Stata toolkit or troubleshoot the installation.