edit-notebook

edit-notebook is a skill for Claude Code from YoungjaeDev/my-claude-plugins. It costs 67 tokens per session (532 once invoked), scanned A, original, MIT.

A structure-aware editor for Jupyter Notebook files. Jupyter Notebooks combine executable code, results, and written explanations in `.ipynb` files.

In plain words
What is it for?
Use it to add, change, or delete notebook cells while preserving notebook formatting and tracking inserted cells.
Why use it?
It avoids corrupting notebook structure or inserting cells in the wrong order when changing notebook files.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: names the NotebookEdit tool; mentions Claude Code; mentions Codex.

Part of the ml plugin — 4 skills shipped together

Good fit Use it to add, change, or delete notebook cells while preserving notebook formatting and tracking inserted cells.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/youngjaedev/my-claude-plugins/edit-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 YoungjaeDev/my-claude-plugins --skill edit-notebook
Clone the repo
git clone --depth 1 https://github.com/YoungjaeDev/my-claude-plugins

Made for: Claude Code.

Or install ml, the plugin that ships this one along with the rest of its 4 skills.

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 edit-notebook

README.md
[![agentmods](https://agentmods.dev/badge/skills/youngjaedev/my-claude-plugins/edit-notebook/github.svg)](https://agentmods.dev/skills/youngjaedev/my-claude-plugins/edit-notebook)
Your own site
<a href="https://agentmods.dev/skills/youngjaedev/my-claude-plugins/edit-notebook"><img src="https://agentmods.dev/badge/skills/youngjaedev/my-claude-plugins/edit-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 edit-notebook

Your own site · 80×15
<a href="https://agentmods.dev/skills/youngjaedev/my-claude-plugins/edit-notebook"><img src="https://agentmods.dev/badge/skills/youngjaedev/my-claude-plugins/edit-notebook.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 532 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.00067 $0.00532
Opus 5.5 $0.00027 $0.00213
Sonnet 5.5 $0.00013 $0.00106
Haiku 4.5 $0.00007 $0.00053

Measured 24d ago against content hash b2aeec89a691, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

edit-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 24d 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/ml/skills/edit-notebook/SKILL.md · 44 lines

What it actually says

Notebook Editing

Edit .ipynb files through a structure-aware path, never as raw text. Three edit modes, and the user runs the cells.

Tool selection

  • Claude Code: NotebookEdit for every .ipynb change.
  • Codex (no NotebookEdit): a short nbformat Python snippet that reads, mutates the cells and writes. Detect the interpreter first (python3 → python → py -3), since pinning one name breaks either macOS or Windows.
  • nbformat install: check with <py> -c "import nbformat" and install on a miss with the same interpreter, <py> -m pip install nbformat. nbformat is not in the stdlib, and a bare pip can target a different environment than the one checked.
  • Never use Edit, Write, or Bash(sed/cat) on .ipynb.

Cell insertion: track cell_id

NotebookEdit returns the inserted cell's id. Pass it to the next insert so cells land in order:

NotebookEdit(edit_mode="insert", cell_type="code", new_source="...")
-> Returns cell_id='abc123'

NotebookEdit(edit_mode="insert", cell_id="abc123", cell_type="code", new_source="...")
-> Returns cell_id='def456'

NotebookEdit(edit_mode="insert", cell_id="def456", ...)

An insert without cell_id lands at the beginning, so a sequence of them comes out in reverse order.

Mode Purpose cell_id
replace Update existing cell Required
insert Add new cell Recommended (omit = top insertion)
delete Remove cell Required

Execution and verification

  • NotebookEdit edits only and never executes. After adding cells, tell the user: "Please run the cells in Jupyter".
  • Do NOT use mcp__ide__executeCode: it corrupts notebook state.
  • After editing, read the first 30 lines of the notebook to confirm the cell order, and confirm that existing outputs are preserved.
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 24d ago Changed · -10 lines · +6 tokens per session b2aeec89a691
  2. 2mo ago First seen · 54 lines · 61 tokens per session scan A b5c8549ecb53

Subscribe to this mod's changes

edit-notebook is a skill published in the GitHub repository YoungjaeDev/my-claude-plugins (2 stars, last pushed 2d ago), licensed MIT. It adds 67 tokens to every session and 532 once invoked, about $0.0003 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-09-05.

Related

edit-notebook compared with skills from other repositories

edit-notebook next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
edit-notebookYoungjaeDev/my-claude-pluginsSkill22d agoMITA67Claude Code
instrument-data-to-allotropeanthropics/knowledge-work-pluginsSkill38ktodayApache-2.0A123Claude Code
exploratory-data-analysisK-Dense-AI/scientific-agent-skillsSkill59k3d agoMITA83Claude Code
matlabK-Dense-AI/scientific-agent-skillsSkill59k3d agoMITA44Claude Code
phylogeneticsK-Dense-AI/scientific-agent-skillsSkill59k3d agoMITA71Claude Code, Codex
research-engineerdavila7/claude-code-templatesSkill35ktodayMITA43Claude Code, Codex
mapping-to-snomedmaziyarpanahi/openmedSkill5.9k3d agoApache-2.0A205Claude Code