Skip to content
Back to skills

Notebook.Delete Dead Code

ASecurity

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

  • 158 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 7, 2026
testinggotesting

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add gpsaggese/helpers --skill notebook.delete_dead_code --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Notebook.Delete Dead Code?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Notebook.Delete Dead Code
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gpsaggese-notebook-delete-dead-code/badge)](https://www.skillsdirectory.com/skills/gpsaggese-notebook-delete-dead-code)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: Remove all the dead code in a Jupyter notebook and in the paired utility file
model: haiku
---

# 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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in testing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.