agentleFS
ulises-jeremiasulises-jeremias/agent-toolkit/skills/tooling/jupyter-notebook/SKILL.md

jupyter-notebook

Skill19 starsChanged 2 months agoMITView on GitHub

Create, scaffold, or refactor Jupyter notebooks (.ipynb) for experiments and tutorials. Prefer

  • Installs packages

15 other projects use a version of this, 15 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use find-skills, setup-matt-pocock-skills and 6 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • VercelSkill

    find-skills

    Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.

    Also in 5 projects that use this

  • GoogleSkill

    setup-matt-pocock-skills

    Configure this repo for the engineering skills — set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.

    Also in 3 projects that use this

  • GoogleSkill

    prototype

    Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.

    Also in 3 projects that use this

  • MicrosoftSkill

    grill-with-docs

    Grilling session that challenges your plan against the existing domain model, sharpens terminology, and updates documentation (CONTEXT.md, ADRs) inline as decisions crystallise. Use when user wants to stress-test a plan against their project's language and documented decisions.

    Also in 3 projects that use this

  • +4 more from google

The file

We split this skill into the rules it gives an agent

11 rules. 3 are common, 2 are distinctive, and 6 are very specific to this project.

  • 3

    Common

    Most of the 15 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Common:

    Create clean, reproducible Jupyter notebooks for two primary modes:

    line 11
  2. Common:

    Prefer the bundled templates and the helper script for consistent structure and fewer JSON mistakes.

    line 16
  3. Very specific:

    Create a new .ipynb notebook from scratch.

    line 21
  4. Very specific:

    If you prefer uv for a pinned interpreter:

    line 71
  5. Distinctive:

    Fill the notebook with small, runnable steps: Keep each code cell focused on one step.

    line 86
  6. Common:

    Validate the result: Run the notebook top-to-bottom when the environment allows.

    line 97
  7. Very specific:

    Use tmp/jupyter-notebook/ for intermediate files.

    line 112
  8. Very specific:

    Write final artifacts under output/jupyter-notebook/ when working in a repository.

    line 113
  9. Very specific:

    Use stable, descriptive filenames (e.g.

    line 115
  10. Very specific:

    Prefer uv for dependency management.

    line 119
  11. Distinctive:

    Do not commit notebook outputs that contain secrets or large binary blobs.

    line 133

“Common” is measured: kept by at least 6 in 10 of the 15 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Jupyter Notebook

Create clean, reproducible Jupyter notebooks for two primary modes:

  • Experiments — exploratory analysis, ablations, hypothesis testing.
  • Tutorials — instructional walkthroughs, teaching-oriented notebooks.

Prefer the bundled templates and the helper script for consistent structure and fewer JSON mistakes.

When to use

  • Create a new .ipynb notebook from scratch.
  • Convert rough notes or scripts into a structured notebook.
  • Refactor an existing notebook to be more reproducible and skimmable.
  • Build experiments or tutorials that will be read or re-run by other people.

Decision tree

  • Exploratory / analytical / hypothesis-driven → experiment.
  • Instructional / step-by-step / audience-specific → tutorial.
  • Editing an existing notebook → treat as a refactor: preserve intent and improve structure.

Prerequisites

  • python3 (provided by bootstrap).
  • Optional: uv for local notebook execution and dependency isolation (also from bootstrap).

skills check jupyter-notebook validates python3 is present.

Helper script

The bundled scaffolder (scripts/new_notebook.py, stdlib only) loads a template, updates the title cell, and writes a notebook to --out. Two ways to invoke it:

Option A — newnotebook wrapper (recommended)

bootstrap installs a tiny wrapper at ~/.local/bin/newnotebook so the script is available without remembering its full path:

newnotebook --kind experiment \
  --title "Compare prompt variants" \
  --out output/jupyter-notebook/compare-prompt-variants.ipynb

newnotebook --kind tutorial \
  --title "Intro to embeddings" \
  --out output/jupyter-notebook/intro-to-embeddings.ipynb

Option B — call the script directly

python3 ~/.local/share/agent-toolkit/skills/jupyter-notebook/scripts/new_notebook.py \
  --kind experiment \
  --title "Compare prompt variants" \
  --out output/jupyter-notebook/compare-prompt-variants.ipynb

If you prefer uv for a pinned interpreter:

uv run --python 3.12 python ~/.local/share/agent-toolkit/skills/jupyter-notebook/scripts/new_notebook.py \
  --kind tutorial \
  --title "Intro to embeddings"

The script uses only the Python standard library — no extra deps required.

Workflow

  1. Lock the intent. Pick experiment or tutorial. Capture the objective, audience, and what "done" looks like.
  2. Scaffold from the template (use newnotebook or option B above).
  3. Fill the notebook with small, runnable steps. Keep each code cell focused on one step. Add short markdown cells that explain purpose and expected result. Avoid large, noisy outputs when a short summary works.
  4. Apply the right pattern. For experiments, follow references/experiment-patterns.md. For tutorials, references/tutorial-patterns.md.
  5. Edit safely when working with existing notebooks. Preserve structure; avoid reordering cells unless it improves the top-to-bottom story. Prefer targeted edits over full rewrites. If you must edit raw JSON, review references/notebook-structure.md first.
  6. Validate the result. Run the notebook top-to-bottom when the environment allows. If execution is not possible, say so explicitly and call out how to validate locally. Use the final pass checklist in references/quality-checklist.md.

Templates and helper script

  • Templates live in assets/experiment-template.ipynb and assets/tutorial-template.ipynb (chezmoi-managed, read-only — do not edit in place; copy and modify).
  • The helper script loads a template, updates the title cell, and writes a notebook.

Temp and output conventions

  • Use tmp/jupyter-notebook/ for intermediate files; delete when done.
  • Write final artifacts under output/jupyter-notebook/ when working in a repository.
  • Use stable, descriptive filenames (e.g. ablation-temperature.ipynb).

Dependencies (install only when needed)

Prefer uv for dependency management.

Optional Python packages for local notebook execution:

uv pip install jupyterlab ipykernel

The bundled scaffold script needs no extra dependencies.

Boundaries

  • This skill scaffolds and refactors notebooks. It does not run them — for execution, use Jupyter / VS Code / the user's preferred runtime.
  • Do not commit notebook outputs that contain secrets or large binary blobs; clear outputs before staging when in doubt.

Reference map

  • references/experiment-patterns.md — experiment structure and heuristics.
  • references/tutorial-patterns.md — tutorial structure and teaching flow.
  • references/notebook-structure.md — notebook JSON shape and safe editing rules.
  • references/quality-checklist.md — final validation checklist.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.