skills/29-quarcs-lab-project20XXy/dot-claude/skills/env-snapshot/SKILL.md
Captures tool versions, packages, and kernel info as a reproducibility record in notes/. Use when documenting the environment.
npx skillsauth add brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research env-snapshotInstall 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.
Capture the full environment state and save it as a reproducibility record.
Gather system and tool versions:
uname -a # OS info
quarto --version # Quarto
uv --version # uv
python3 --version # Python
Capture Python package versions:
uv pip list # all installed packages with versions
Capture Jupyter kernel list:
uv run jupyter kernelspec list
If R is available, capture R session info:
R -e "sessionInfo()"
If Stata is available, note the version:
which stata # or check nbstata.conf for edition info
Read ~/.config/nbstata/nbstata.conf for stata_dir and edition.
If TeX Live is available:
pdflatex --version | head -1
Generate a timestamped Markdown file with all collected information:
# Environment Snapshot — YYYY-MM-DD
## System
- OS: ...
- Platform: ...
## Tools
| Tool | Version |
| ---- | ------- |
| Quarto | x.x.x |
| uv | x.x.x |
| Python | 3.12.x |
| R | x.x.x (or N/A) |
| Stata | SE x.x (or N/A) |
| TeX Live | xxxx (or N/A) |
## Jupyter Kernels
- python3: /path/to/kernel
- ir: /path/to/kernel (or N/A)
- nbstata: /path/to/kernel (or N/A)
## Python Packages
| Package | Version |
| ------- | ------- |
| numpy | x.x.x |
| pandas | x.x.x |
| ... | ... |
## R Session Info
(full sessionInfo() output, or "R not available")
## Stata Packages
(ado dir output, or "Stata not available")
Save to notes/environment-YYYYMMDD.md (using today's date).
Report the file path.
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.