fix-notebook

fix-notebook is a skill for Claude Code from stellarshenson/claude-code-plugins. It costs 22 tokens per session (988 once invoked), scanned A, original, MIT.

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 Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

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

Good fit Use it to fix headers, section order, imports, GPU selection, random seeds, configuration, output descriptions, progress bars, colours, and equations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/stellarshenson/claude-code-plugins/fix-notebook
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.

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.

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

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fix-notebook

README.md
[![agentmods](https://agentmods.dev/badge/skills/stellarshenson/claude-code-plugins/fix-notebook/github.svg)](https://agentmods.dev/skills/stellarshenson/claude-code-plugins/fix-notebook)
Your own site
<a href="https://agentmods.dev/skills/stellarshenson/claude-code-plugins/fix-notebook"><img src="https://agentmods.dev/badge/skills/stellarshenson/claude-code-plugins/fix-notebook/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fix-notebook

Your own site · 80×15
<a href="https://agentmods.dev/skills/stellarshenson/claude-code-plugins/fix-notebook"><img src="https://agentmods.dev/badge/skills/stellarshenson/claude-code-plugins/fix-notebook.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00022 $0.00988
Opus 5.5 $0.00009 $0.00395
Sonnet 5.5 $0.00004 $0.00198
Haiku 4.5 $0.00002 $0.00099

Measured 1mo ago against content hash 72c1e627593f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 (4 stars, last pushed today), licensed MIT. It adds 22 tokens to every session and 988 once invoked, about $0.0001 per session on Opus 5.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

exploratory-data-analysis

Performs bounded, local exploratory analysis of explicitly supported scientific files. Supports 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

matlab

Builds, reviews, migrates, and plans MATLAB or GNU Octave numerical workflows. Use for arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.

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

phylogenetics

Builds and analyzes phylogenetic trees using MAFFT multiple sequence alignment, IQ-TREE maximum likelihood with ModelFinder and branch support, and FastTree approximate inference. Uses ETE3 for tree summaries and visualization. Applies to homologous nucleotide or protein sequences, microbial gene trees, protein…

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

research-engineer

An uncompromising Academic Research Engineer. Operates with absolute scientific rigor, objective criticism, and zero flair. Focuses on theoretical correctness, formal verification, and optimal implementation across any required technology.

davila7/claude-code-templates · 43 tokens

presenting-conference-talks

Generates conference presentation slides (Beamer LaTeX PDF and editable PPTX) from a compiled paper with speaker notes and talk script. Use when preparing oral talks, spotlight presentations, or invited talks for ML and systems conferences.

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