clean-up
常规收尾自动化,减少手动清理与遗留资源占用。
会删除分支与收回资源,需谨慎授予写权限并确认已安全合并。
在 PR 合并后清理本地已合并分支、worktrees、远程跟踪引用并关闭完成的后台任务。
在 PR 合併後把開發痕跡收尾:刪除已合併的本地分支與 worktrees、執行 git fetch --prune 清理遠端追蹤引用,並關閉已完成的背景任務或團隊。何時用?PR 剛合併、/delegate 結束或你說要 tidy up 時;原則是只移除那些工作已安全落地的項目,不做程式碼重構。
▸ 展开 SKILL.md 英文原文
Tidy up after a finished process: delete local git branches and worktrees whose pull request has already merged, prune stale remote-tracking refs, and spin down background tasks and teams that have completed their work. Use this whenever one or more PRs have just merged, after a /delegate run wraps up, or when the user says things like "clean up", "clean up the merged branches", "remove stale worktrees", "tidy up my branches", or "we're done, spin down the agents". This is git + agent housekeeping — NOT source-code cleanup or refactoring.
帮我安装这个 skill:https://raw.githubusercontent.com/dustinkeeton/wafflestack/main/.claude/skills/clean-up/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/dustinkeeton/wafflestack/main/.claude/skills/clean-up/SKILL.md"# Clean Up Housekeeping after work has landed. Two independent domains: - **Git** — local branches and worktrees whose PR is merged, plus a `git fetch --prune`. - **Harness** — background tasks and teams that have finished their work. The guiding principle is that cleanup should only ever remove things whose work is **already safe elsewhere** — a branch whose PR merged, a task that completed. Anything still in flight, or holding the only copy of some work, is left alone. Because the destructive half (force-deleting branches, deleting teams) can't be undone, the default is to **show the full plan and wait for a yes** before touching anything. ## Arguments | Arg | Effect | |---|---| | _(n