clean-up
把常见收尾工作自动化,减少手工清理和仓库杂乱。
执行删除/停用操作,需谨慎授权与确认以免误删工作分支或资源
在 PR 合并后清理本地分支、worktree、远端引用并关闭已完成的背景任务。
在 PR 已合并或者代理任务结束后,帮你清理本地 git 分支、worktree、远端追踪引用,并关停已经完成的后台任务或 agent 团队。适合合并后做收尾、或你说要“清理已合并的分支/移除 stale worktrees”时使用。只会删除那些工作已安全备份或合并的项,确保不会误删未落地的改动。
▸ 展开 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/stacks/github-workflow/skills/clean-up/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/dustinkeeton/wafflestack/main/stacks/github-workflow/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