Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Notebook.Delete Dead Code

БесплатноБез исполняемых скриптовНе проверен

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

gpsaggeseот gpsaggese★ 158 звёзд на GitHub

Об этом скилле

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

Установить Notebook.Delete Dead Code в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл Notebook.Delete Dead Code?

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

Как установить скилл Notebook.Delete Dead Code?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Notebook.Delete Dead Code запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Notebook.Delete Dead Code с