SKILL
worktree-cleaner
盘点当前仓库的 git 工作树,依据证据对每个工作树分类(已合并、PR 状态、有未提交或未推送的工作、已锁定、已过期、正被运行中的会话使用),并逐个或按组删除,始终先询问用户并验证每次删除。适用于工作树堆积时(例如每个 Claude Code 任务或线程一个)、`git worktree list` 输出过长时,或用户要求清理、修剪或整理工作树时。
机器翻译查看英文原文
Inventory the git worktrees of the current repository, classify each one with evidence (merged, PR state, uncommitted or unpushed work, locked, stale, in use by a running session) and remove them one at a time or by group, always asking the user first and verifying every removal. Use when worktrees have piled up (for example one per Claude Code task or thread), when `git worktree list` is long, or when the user asks to clean up, prune or tidy worktrees.
适用对象:软件开发与测试。自动收录 · 待核查。
在 Cursor 中使用
该组合的专门教程待补充,尚未核实适配。
准备条件
- 本条仅收录原作者的技能元数据;请阅读完整说明,确认依赖、许可与使用条件。
选择已有说明的 AI 工具,或在页面加载后保存待办及提出教程请求。
查看原作者说明 ↗