Skip to content
Back to skills

New Notebook

ASecurity

Creates a Jupyter notebook with Jupytext pairing and registers it in _quarto.yml. Use when adding a new notebook.

  • 5,142 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 3, 2026
researchpythonbash

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill new-notebook --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of New Notebook?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for New Notebook
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/brycewang-stanford-new-notebook/badge)](https://www.skillsdirectory.com/skills/brycewang-stanford-new-notebook)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: new-notebook
description: Creates a Jupyter notebook with Jupytext pairing and registers it in _quarto.yml. Use when adding a new notebook.
argument-hint: <name> <title>
allowed-tools: Bash, Read, Write, Edit, Glob, Grep
---

# Create New Notebook

Create a new Jupyter notebook with Jupytext pairing and register it in the manuscript.

## Arguments

- `$ARGUMENTS` — the notebook name and title (e.g., "notebook-02 Regression Analysis")

## Steps

1. Parse the name and title from the arguments. Follow the naming convention: `notebook-NN.ipynb` (sequential numbering)
2. Check `notebooks/` for existing notebooks to determine the next number
3. Create the `.ipynb` file in `notebooks/` with:
   - 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:** `clear all` followed by `set seed 42`
   - A markdown cell with the notebook title
4. Create the Jupytext `.md` pair by running: `uv run jupytext --set-formats ipynb,md:myst notebooks/<name>.ipynb`
5. Register the notebook in `_quarto.yml` under `manuscript.notebooks`:
   ```yaml
   - notebook: notebooks/<name>.ipynb
     title: "N<number>: <title>"
   ```
6. Confirm the notebook renders: `quarto render notebooks/<name>.ipynb`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in research →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.