cleanup-github-worktree
Installation
SKILL.md
清理过期 Worktree(GitHub 版)
手动触发:当用户明确要求清理、删除或回收长时间未使用的 worktree 时执行。
前置约束
必须在 master 上执行:执行前 git branch --show-current;若不是 master,中止并提示用户切换。
工作流
Step 1: 选择清理时间范围
使用 AskQuestion 让用户选择阈值:
- 提示:
选择清理阈值:超过多久未使用的 worktree 将被清理? - 选项:
1 周(对应 7 天)2 周(对应 14 天)1 个月(对应 30 天)