Git.Delete
БесплатноБез исполняемых скриптовНе проверенRemove a function, file, or directory from the repo and clean up all references
от gpsaggese★ 158 звёзд на GitHubОб этом скилле
Goal
- Given a target
<SRC>(function, file, or directory), remove it cleanly, with no dangling references or dead code - Identify what
<SRC>is before proceeding
Plan Only (--only_plan)
- With
--only_plan, follow.claude/skills/skill.rules.mdsection "Create Only a Plan with--only_plan" - Write the plan to
git.delete.<INPUT_REF>.md, then stop without executing the skill
If <SRC> Is a Function
- Remove the function definition from its source file
- Find all callers across the codebase and remove or refactor them
- Remove orphaned helpers: recursively remove functions now called only by
<SRC>(or each other) - Remove tests that exclusively test
<SRC>or its orphaned helpers - Clean up imports that were only needed by the deleted code
If <SRC> Is a File or Directory
- Remove the file/directory from the repo
- Find all references: any
import,from ... import,require, or path string pointing to<SRC> - Remove or refactor each reference: delete the import and any dependent code, or replace it with a substitute if one exists
- Remove related tests that exclusively test the removed file/directory
- Update configs (e.g.
pyproject.toml,setup.py,__init__.py,MANIFEST.in) that reference<SRC>
After Removal (all Cases)
- Summarize the changes
- Do not commit any change
Verification
-
--only_plan(check only this item): the plan is ingit.delete.<INPUT_REF>.mdin the current dir, has theGenerated byline, and nothing was executed - If created, the output file is
git.delete.<INPUT_REF>.mdin the current dir - Run the test suite to confirm nothing is broken
- Run a final grep for the removed name to catch remaining references
- The file
git.delete.<INPUT_REF>.md, if created, says that it was generated by.claude/skills/git.delete/SKILL.md
Ask for Help If Unsure How to Do
- If the task is not perfectly clear, you MUST not perform it, but ask for
clarifications
- For a complex task, create
git.delete.<INPUT_REF>.mdin the current dir, with 5 bullet points explaining the plan<INPUT_REF>comes from<SRC>, as in.claude/skills/skill.rules.md### Name the Output File
- Say in that file how it was generated, with this line as the first bullet:
- Generated by `.claude/skills/git.delete/SKILL.md`
- For a complex task, create
Установить Git.Delete в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Git.Delete?
Remove a function, file, or directory from the repo and clean up all references
Как установить скилл Git.Delete?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Git.Delete запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic