notebook-refactor

notebook-refactor is a skill for Claude Code from Methasit-Pun/data_engineer_claude_skills. It costs 152 tokens per session (1,141 once invoked), scanned A, original, no licence file.

A refactoring skill for Jupyter notebooks, which are documents that combine code, results, and notes. It turns exploratory, order-dependent cells into named functions with clear inputs and outputs, along with docstrings and light tests.

In plain words
What is it for?
Cleaning up notebooks by separating settings from logic, extracting functions, removing cell-order assumptions, and adding basic tests.
Why use it?
It reduces hidden dependencies between cells, global state, and the difficulty of reviewing or reusing notebook code.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the data-engineer-skills plugin — 28 skills shipped together

Good fit Cleaning up notebooks by separating settings from logic, extracting functions, removing cell-order assumptions, and adding basic tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/methasit-pun/data_engineer_claude_skills/notebook-refactor
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 Methasit-Pun/data_engineer_claude_skills --skill notebook-refactor
Clone the repo
git clone --depth 1 https://github.com/Methasit-Pun/data_engineer_claude_skills

Made for: Claude Code.

Or install data-engineer-skills, the plugin that ships this one along with the rest of its 28 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 notebook-refactor

README.md
[![agentmods](https://agentmods.dev/badge/skills/methasit-pun/data_engineer_claude_skills/notebook-refactor.svg)](https://agentmods.dev/skills/methasit-pun/data_engineer_claude_skills/notebook-refactor)
Your own site
<a href="https://agentmods.dev/skills/methasit-pun/data_engineer_claude_skills/notebook-refactor"><img src="https://agentmods.dev/badge/skills/methasit-pun/data_engineer_claude_skills/notebook-refactor.svg" alt="Measured on agentmods" height="20"></a>
Per session 152 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,141 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 unknown 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.00152 $0.01141
Opus 5 $0.00076 $0.00571
Sonnet 5 $0.00030 $0.00228
Haiku 4.5 $0.00015 $0.00114

Measured 7d ago against content hash 1deaf394ab3a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

notebook-refactor 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 7d 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.

08-code-quality/notebook-refactor/SKILL.md · 86 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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. 7d ago First seen · 86 lines · 152 tokens per session scan A 1deaf394ab3a

Subscribe to this mod's changes

notebook-refactor is a skill published in the GitHub repository Methasit-Pun/data_engineer_claude_skills (1 stars, last pushed 1mo ago), with no licence file. It adds 152 tokens to every session and 1,141 once invoked, about $0.0008 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

astropy

Core Python library for astronomy and astrophysics workflows that need Astropy APIs, including units/quantities, coordinates, FITS I/O, tables, time systems, WCS, and cosmology. Use when implementing or debugging astronomical data analysis code with Astropy.

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

bioservices

Unified Python interface to 40+ bioinformatics services. Use when querying multiple databases (UniProt, KEGG, ChEMBL, Reactome) in a single workflow with consistent API. Best for cross-database analysis, ID mapping across services. For quick single-database lookups use gget; for sequence/file manipulation use…

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

cobrapy

Constraint-based metabolic modeling (COBRA). FBA, FVA, gene knockouts, flux sampling, SBML models, for systems biology and metabolic engineering analysis.

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

dask

Distributed computing for larger-than-RAM pandas/NumPy workflows. Use when you need to scale existing pandas/NumPy code beyond memory or across clusters. Best for parallel file processing, distributed ML, integration with existing pandas code. For out-of-core analytics on single machine use vaex; for in-memory speed…

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

matlab

Build, review, migrate, and safely plan MATLAB or GNU Octave numerical workflows, including arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.

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

optimize-for-gpu

GPU-accelerates scientific Python on NVIDIA hardware and verifies that the result is correct and faster. Use for CUDA/GPU optimization; CPU-bound NumPy, SciPy, pandas, scikit-learn, NetworkX, scikit-image, vector-search, image-processing, graph, simulation, or file-I/O workloads; CuPy, cuDF, cuML, cuGraph, cuVS…

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