Awesome-Agent-Skills-for-Empirical-Research new-notebook
Creates a Jupyter notebook with Jupytext pairing and registers it in _quarto.yml. Use when adding a new notebook.
install
source · Clone the upstream repo
git clone https://github.com/brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/29-quarcs-lab-project20XXy/dot-claude/skills/new-notebook" ~/.claude/skills/brycewang-stanford-awesome-agent-skills-for-empirical-research-new-notebook && rm -rf "$T"
manifest:
skills/29-quarcs-lab-project20XXy/dot-claude/skills/new-notebook/SKILL.mdsource content
Create New Notebook
Create a new Jupyter notebook with Jupytext pairing and register it in the manuscript.
Arguments
— the notebook name and title (e.g., "notebook-02 Regression Analysis")$ARGUMENTS
Steps
- Parse the name and title from the arguments. Follow the naming convention:
(sequential numbering)notebook-NN.ipynb - Check
for existing notebooks to determine the next numbernotebooks/ - Create the
file in.ipynb
with:notebooks/- The correct kernel (ask user: Python, R, or Stata)
- A first code cell with the setup appropriate for the chosen kernel:
- Python:
import sys; sys.path.insert(0, ".."); from config import set_seeds, DATA_DIR; set_seeds() - R:
source("../config.R"); set_seeds() - Stata:
followed byclear allset seed 42
- Python:
- A markdown cell with the notebook title
- Create the Jupytext
pair by running:.mduv run jupytext --set-formats ipynb,md:myst notebooks/<name>.ipynb - Register the notebook in
under_quarto.yml
:manuscript.notebooks- notebook: notebooks/<name>.ipynb title: "N<number>: <title>" - Confirm the notebook renders:
quarto render notebooks/<name>.ipynb