Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

Notebook.Delete Dead Code

FreeNo executable scriptsNot checked

Remove all the dead code in a Jupyter notebook and in the paired utility file

gpsaggeseby gpsaggese★ 158 GitHub stars

About this skill

Goal

  • Given a Jupyter notebook, remove its dead code and the dead code in the paired utility file

Workflow

Follow Notebook Conventions

  • Read and follow .claude/skills/notebook.rules.md

Find Unused Functions

  • Find the functions in the notebook and in the paired *_utils.py file that the notebook does not use
  • Print a summary of the unused functions

Remove Unused Code

  • Remove the unused functions from the notebook and from the paired utility file
  • Remove their unit tests, if any

Sync with Jupytext

  • At the end, sync the paired .py file with Jupytext, following # Code Architecture and Responsibility -> ## Utilities vs. Notebook Responsibilities in .claude/skills/notebook.rules.md

Verification

  • Confirm no remaining code references the removed functions
  • Run the notebook top to bottom following ## Testing Notebook in .claude/skills/notebook.rules.md and confirm it completes without errors

Install Notebook.Delete Dead Code in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the Notebook.Delete Dead Code skill do?

Remove all the dead code in a Jupyter notebook and in the paired utility file

How do I install the Notebook.Delete Dead Code skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the Notebook.Delete Dead Code skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare Notebook.Delete Dead Code with