AGENT SKILL
notebook.delete_dead_code
Remove all the dead code in a Jupyter notebook and in the paired utility file
适用职业开发工程师
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-02
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- model
- haiku
- description
- Remove all the dead code in a Jupyter notebook and in the paired utility file
03 SKILL.md 正文
Goal
- Given a Jupyter notebook, remove the dead code from the notebook and 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 utility file
*_utils.pythat are not used in the notebook - Print a summary of the found unused functions
Remove Unused Code
- Remove the code of the unused functions from the notebook and from the paired utility file
- Remove the unit tests associated to those unused functions, if any
Sync with Jupytext
- At the end, sync the paired
.pyfile with Jupytext following the conventions in# 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
04 同仓库更多 Skills
tutorial_in_60_mins.propagate_docker_changes
Sync tutorial and class-project Docker files to match project_template
★ 0
tutorial_in_60_mins.merge_markdown
Merge the content of a markdown file into a Jupyter notebook
★ 0
tutorial_in_60_mins.format
Format a directory to follow the "Learn X in 60 Minutes" tutorial conventions
★ 0
tutorial_in_60_mins.create
Create a tutorial directory for the Learn X in 60 Minutes conventions
★ 0
todo.reorg_in_progress
Reorganize ai_task_queue.md so in-progress tasks, not-started tasks, and mislabeled topic headers sit under the right H1 stage
★ 0
todo.reorg_headers
Reorganize ai_task_queue.md .md so every H2 topic matches ALL TOPICS and every H3 task sits under the right topic, keeping its H1 stage
★ 0