Document Environment Snapshot

SkillDocs & knowledge

Captures tool versions, packages, and kernel info as a reproducibility record in notes/. Use when documenting the environment.

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.

Then ask your AI: use the Document Environment Snapshot skill

What this skill tells your AI

The instructions your AI receives, as published by brycewang-stanford/auto-empirical-research-skills in skills/29-quarcs-lab-project20XXy/dot-claude/skills/env-snapshot/SKILL.md and read by ahel’s review.

Capture the full environment state and save it as a reproducibility record.

Steps

  1. Gather system and tool versions:

    uname -a                    # OS info
    quarto --version            # Quarto
    uv --version                # uv
    python3 --version           # Python
    
  2. Capture Python package versions:

    uv pip list                 # all installed packages with versions
    
  3. Capture Jupyter kernel list:

    uv run jupyter kernelspec list
    
  4. If R is available, capture R session info:

    R -e "sessionInfo()"
    
  5. 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.

  6. If TeX Live is available:

    pdflatex --version | head -1
    
  7. 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")
    
  8. Save to notes/environment-YYYYMMDD.md (using today's date).

  9. Report the file path.

Signals

GitHub stars
4k
Forks
531
Last commit
Sep 2026
Advanced
Item type
skill
Key
env-snapshot
Source
github.com/brycewang-stanford/auto-empirical-research-skills