AGENT SKILL
Git 文件删除与引用清理
git.delete
从仓库中删除函数、文件或目录,并清理所有相关引用
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-02
- Stars
- ★ 155
- Forks
- 170
01 前言 Front Matter
- model
- haiku
- description
- Remove a function, file, or directory from the repo and clean up all references
03 SKILL.md 正文
Goal
- Given a target
<SRC>(function, file, or directory), remove it from the repo cleanly with no dangling references or dead code - Identify what
<SRC>is before proceeding
If <SRC> Is a Function
- Remove the function definition from its source file
- Find all callers: search the entire codebase for any call sites and remove or refactor them
- Remove orphaned helpers: recursively find functions that are now only
called by
<SRC>(or each other) and remove them too - Remove tests: delete all unit tests that exclusively test
<SRC>or its orphaned helpers - Clean up imports: remove any 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: search for any
import,from ... import,require, or path strings pointing to<SRC> - Remove or refactor each reference: delete the import and any code that depended on it, or replace it with an alternative if a substitute exists
- Remove related tests: delete test files that exclusively test the removed file/directory
- Update configs: check and update any config files (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
- [ ] Run the test suite to confirm nothing is broken
- [ ] Run a final grep for the removed name to catch any remaining references
Ask for Help If Unsure How to Do
- If the task is not perfectly clear, you MUST not perform it, but ask for
clarifications
- When the task is complex, create a
plan.mdwith 5 bullet points explaining what the plan is
- When the task is complex, create a
04 同仓库更多 Skills
Docker 文件同步与模板对齐
tutorial_in_60_mins.propagate_docker_changes
同步教程和课程项目的 Docker 文件,使其与 project_template 保持一致。
★ 155
Markdown 合并至 Jupyter Notebook
tutorial_in_60_mins.merge_markdown
将 Markdown 文件的内容合并到 Jupyter Notebook 中。
★ 155
60 分钟教程格式规范化
tutorial_in_60_mins.format
格式化目录,使其遵循「Learn X in 60 Minutes」(60 分钟学会 X)教程约定。
★ 155
60 分钟教程目录创建
tutorial_in_60_mins.create
按照「Learn X in 60 Minutes」(60 分钟学会 X)约定创建教程目录。
★ 155
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
★ 155
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
★ 155