fix-notebook

A notebook-repair skill that brings a notebook into line with the project's data-science standards, including structure, styling, progress indicators, and explanatory text.

In plain words
What is it for?
Use it to fix headers, section order, imports, GPU selection, random seeds, configuration, output descriptions, progress bars, colours, and equations.
Why use it?
It turns a disorganised or incomplete notebook into a more consistent, understandable, and reproducible document.

Skill for Claude CodeCodex

Part of the datascience plugin — 20 skills, 15 commands shipped together

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/fix-notebook
Any agent
npx skills add stellarshenson/claude-code-plugins --skill fix-notebook
Clone the repo
git clone --depth 1 https://github.com/stellarshenson/claude-code-plugins

Made for: Claude Code, Codex.

Or install datascience, the plugin that ships this one along with the rest of its 20 skills, 15 commands.

Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 988 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.00022 $0.00988
Opus 5 $0.00011 $0.00494
Sonnet 5 $0.00004 $0.00198
Haiku 4.5 $0.00002 $0.00099

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

Security

Grade A, and why

fix-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/fix-notebook/SKILL.md · 74 lines

How it starts

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

Fix Notebook

Read a notebook and fix it to comply with ALL standards. Applies changes directly.

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

Read these skills before making changes. They are the source of truth. Do NOT hardcode colors or patterns in this skill - always defer to the skills.

What to fix

Header

  • Missing or sparse header -> add/rewrite with flowing prose (purpose, method, rationale)
  • Bullet-list-only approach -> numbered phases with "what AND why"
  • Missing output description -> add **Output**: <artifacts>

Structure (per notebook-standards skill)

  • GPU after imports -> move before
  • Scattered imports -> consolidate into single cell with autoreload
  • Missing reproducibility -> add set_seed
  • Scattered config -> consolidate with rich summary at end
  • No markdown headers before sections -> add them
  • Section header without overview text below it -> add a 1-2 sentence overview (or 3-5 bullets when listy) before the first code cell of that section. File-level Header section is the sole exception
  • Configuration cell with no Rich render at end -> add the sectioned rprint(f"""[bold cyan]Configuration[/bold cyan] ...""") block per the canonical template in notebook-standards/SKILL.md
  • Configuration cell on a GPU notebook without [bold]Device[/bold] sub-section showing torch.cuda.get_device_name(0) -> add the Device block per notebook-standards/references/gpu-setup.md section 5
  • Markdown cell containing equations as plain text (e.g. P(A|B) = P(B|A) * P(A) / P(B)) -> rewrite per notebook-standards references/equations.md: unicode glyphs inline, full/display equations as standalone $$...$$ blocks on their own line
  • Markdown cell with odd number of unescaped $ (heuristic for stray dollar amounts that MathJax will eat) -> surface the cell number and ask the user whether each $ is a price (escape as \$) or a math delimiter (leave + verify pairs match)

Read the full file on GitHub · 74 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 · 74 lines · 22 tokens per session scan A 72c1e627593f

Subscribe to this mod's changes

fix-notebook is a skill published in the GitHub repository stellarshenson/claude-code-plugins (3 stars, last pushed 3d ago), licensed MIT. It adds 22 tokens to every session and 988 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

agent-platform-model-registry

Agent Platform Model Registry Management. Use when you need to upload, list, describe, update, or delete machine learning models (and their versions) in the Agent Platform Model Registry. Don't use for model training, model deployment to endpoints, or managing non-Agent Platform models.

google/skills · 60 tokens

bigquery-ai-ml

Leverages BigQuery's built-in machine learning and GenAI capabilities for advanced data analytics. Use when you need to write SQL queries that perform time-series forecasting, predict values, detect outliers or anomalies, find key drivers, perform semantic search or vector search, classify text, calculate similarity…

google/skills · 104 tokens

ondb

A logical analysis and reasoning tool for AI. Use when decomposing documents into structured knowledge, querying entities and relations, validating consistency, or indexing files. Trigger on "remember", "what do I know about", "link X to Y", "show dependencies", "analyze this document", entity CRUD, or cross-skill…

x-cmd/x-cmd · 71 tokens

neuron-evaluation-engineer

Create and run AI evaluations with datasets, assertions, and output drivers in Neuron AI. Use this skill whenever the user mentions evaluation, testing AI systems, creating evaluators, dataset-driven testing, assertion-based validation, or wants to measure AI system performance. Also trigger for tasks involving…

neuron-core/neuron-ai · 77 tokens

mixed-precision

Use FP16/BF16 mixed precision to accelerate training and reduce memory. Use when optimizing GPU performance.

aiming-lab/AutoResearchClaw · 25 tokens

sparse-autoencoder-training

Provides guidance for training and analyzing Sparse Autoencoders (SAEs) using SAELens to decompose neural network activations into interpretable features. Use when discovering interpretable features, analyzing superposition, or studying monosemantic representations in language models.

Orchestra-Research/AI-Research-SKILLs · 58 tokens