Skip to content

gpsaggese/helpers / .claude/skills/notebook.delete_dead_code

notebook.delete_dead_code

Verified

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

FileKindSize
SKILL.mdskill md1.0 KB
---
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
deprecation-and-migrationaddyosmani/agent-skillsManages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
performance-optimizationaddyosmani/agent-skillsOptimizes application performance across frontend, backend, queries, and databases. Use when performance requirements exist, when you suspect performance regressions, when Core Web Vitals or load times need improvement, when N+1 query patterns need fixing, or when profiling reveals bottlenecks.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
Agent Cost Reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json.Stars: 118kUpdated Claude CodeCodexVerifiedInstall
Agent Cost Reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json.Stars: 118kUpdated Claude CodeCodexVerifiedInstall