Notebook.Delete Dead Code
FreeNo executable scriptsNot checkedRemove all the dead code in a Jupyter notebook and in the paired utility file
by gpsaggese★ 158 GitHub starsAbout 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.pyfile 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
.pyfile with Jupytext, following# Code Architecture and Responsibility->## Utilities vs. Notebook Responsibilitiesin.claude/skills/notebook.rules.md
Verification
- Confirm no remaining code references the removed functions
- Run the notebook top to bottom following
## Testing Notebookin.claude/skills/notebook.rules.mdand 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
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
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
by Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
by Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
by Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
by Anthropic