notebook

A tool for creating Jupyter notebooks, which are documents that combine runnable code, notes, and results. It asks about the notebook's purpose, author, hardware, libraries, and long-running work before setting it up.

In plain words
What is it for?
Use it to start a new data-science or machine-learning notebook with the required structure, configuration, visual style, and optional progress bars.
Why use it?
It removes the need to remember the project's required notebook layout, styling, imports, and progress indicators. It also helps keep notebook numbering consistent with existing files.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/stellarshenson/claude-code-plugins/notebook
Any agent
npx skills add stellarshenson/claude-code-plugins --skill notebook
Clone the repo
git clone --depth 1 https://github.com/stellarshenson/claude-code-plugins

Made for: Claude Code, Codex.

Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 930 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00018 $0.00930
Opus 5 $0.00009 $0.00465
Sonnet 5 $0.00004 $0.00186
Haiku 4.5 $0.00002 $0.00093

Measured 2d ago against content hash f7cc50745c24, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

notebook scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/datascience/skills/notebook/SKILL.md · 50 lines

How it starts

The opening of the file, as written. The whole thing — 50 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Create New Notebook

Scaffold a properly structured notebook. Uses skills for standards - do NOT duplicate their rules here.

Skills to apply

  • datascience:notebook-standards - section order, GPU selection, imports, config cell; its references/rich-output.md (colour palette, print patterns) and references/equations.md (unicode inline + display math)
  • datascience:progressbars - progress bar style and patterns (if long-running ops)

Read these skills before generating the notebook. They are the source of truth for structure, colors, and patterns.

Steps

  1. ASK the user:

    • Purpose (what the notebook does - used for header narrative)
    • Author initials (default: kj)
    • GPU needed? (yes/no) - if yes, GPU selection: pin a specific GPU by UUID (default, reproducible) or auto-pick the freest GPU at runtime? See notebook-standards/references/gpu-setup.md
    • Libraries needed (torch, polars, sklearn, transformers, etc.)
    • Long-running operations? (yes/no - if yes, ask classic tqdm or modern rich per progressbars skill)
  2. Determine next notebook number by scanning existing NN-*.ipynb or NN-*.py files.

  3. Check pyproject.toml - ensure rich in dependencies. If progress bars needed, ensure tqdm or rich per chosen style. Add if missing.

  4. Create <NN>-<initials>-<description>.ipynb (default) or .py if user prefers.

  5. Header: brief narrative paragraph (purpose, method, rationale - 2-4 sentences of flowing prose, not bullets). Approach section with numbered phases explaining "what AND why". Output section listing specific artifacts.

  6. Structure: follow notebook-standards skill exactly - GPU first, imports grouped with autoreload, reproducibility seeds, config cell with sectioned Rich render. Section overview MANDATORY - every ## Section Name header gets a 1-2 sentence overview (or 3-5 bullets when listy) directly below, BEFORE the first code cell.

  7. Configuration cell: hyperparameters with inline comments + sectioned Rich render at the END of the same cell. When GPU is enabled, the render MUST include [bold]Device[/bold] sub-section showing torch.cuda.get_device_name(0) so the resolved GPU is visible in the output. See notebook-standards/SKILL.md Configuration template + notebook-standards/references/gpu-setup.md section 5.

Read the full file on GitHub · 50 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 50 lines · 18 tokens per session scan A f7cc50745c24

Subscribe to this mod's changes

notebook is a skill published in the GitHub repository stellarshenson/claude-code-plugins (3 stars, last pushed 2d ago), licensed MIT. It adds 18 tokens to every session and 930 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

instrument-data-to-allotrope

Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…

anthropics/knowledge-work-plugins · 123 tokens

biopython

Comprehensive molecular biology toolkit. Use for sequence manipulation, file parsing (FASTA/GenBank/PDB), phylogenetics, and programmatic NCBI/PubMed access (Bio.Entrez). Best for batch processing, custom bioinformatics pipelines, BLAST automation. For quick lookups use gget; for multi-service integration use…

K-Dense-AI/scientific-agent-skills · 76 tokens

exploratory-data-analysis

Perform bounded, local exploratory analysis of explicitly supported scientific files. Use for redacted CSV/TSV/JSON profiles; optional NumPy, HDF5, FASTA/FASTQ, and basic image metadata inspection; missingness/leakage audits; outlier and transformation sensitivity; and rigorous EDA report scaffolds. Other domain…

K-Dense-AI/scientific-agent-skills · 83 tokens

arboreto

Infer gene regulatory networks (GRNs) from gene expression data using scalable algorithms (GRNBoost2, GENIE3). Use when analyzing transcriptomics data (bulk RNA-seq, single-cell RNA-seq) to identify transcription factor-target gene relationships and regulatory interactions. Supports distributed computation for…

K-Dense-AI/scientific-agent-skills · 66 tokens

nature-statistics

Audit, revise, or draft manuscript statistical reporting for Nature / high-impact journal submissions. Use when the user asks to check statistical analysis sections, p values, confidence intervals, sample size, biological versus technical replicates, randomization, blinding, multiple-comparison correction, model…

Yuan1z0825/nature-skills · 139 tokens

paper-illustration

Generate publication-quality AI illustrations for academic papers using Gemini image generation. Creates architecture diagrams, method illustrations with Claude-supervised iterative refinement loop. Use when user says "生成图表", "画架构图", "AI绘图", "paper illustration", "generate diagram", or needs visual figures for papers.

wanshuiyin/Auto-claude-code-research-in-sleep · 67 tokens