一键导入
env-snapshot
Captures tool versions, packages, and kernel info as a reproducibility record in notes/. Use when documenting the environment.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Captures tool versions, packages, and kernel info as a reproducibility record in notes/. Use when documenting the environment.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Scaffold a Quarto analysis notebook (generic or method-specific — DiD, IV, RDD, LASSO, Panel FE), register it in _quarto.yml, apply publication-quality figure styling, and generate dataset codebooks. Use when starting a new analysis notebook.
Manage the project's literature workflow — ideate research questions, run structured literature reviews, add citations to references.bib, write annotation notes in references/, and audit citation integrity. Use for any bibliography or literature task.
Audit a Quarto manuscript or a single notebook — freeze freshness, data-path existence, citation integrity, figure/table export presence, placeholder and anonymization checks. Produces a scored review report under notes/. Read-only — never modifies notebooks, data, or the manuscript.
Build publication-quality regression and robustness tables from notebook estimation output, exported to tables/ as CSV + Markdown + LaTeX. Use when creating a results table.
Draft and revise manuscript prose for index.qmd — sections, the abstract, regression-result interpretation, and referee responses. Use when writing or revising the manuscript.
Reads the manuscript and notebooks to generate a structured abstract. Use when writing or updating the abstract.
| name | env-snapshot |
| description | Captures tool versions, packages, and kernel info as a reproducibility record in notes/. Use when documenting the environment. |
| allowed-tools | Bash, Read, Write, Glob, Grep |
| version | 1.0.0 |
| workflow_stage | setup |
| tags | ["environment","reproducibility","documentation"] |
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.