clean-up

仓库创建 2026年7月2日最近提交 22 天前SkillHot 收录 22 天前
▸ 精选理由

常规收尾自动化,减少手动清理与遗留资源占用。

▸ 风险提示

会删除分支与收回资源,需谨慎授予写权限并确认已安全合并。

这个 Skill 做什么

在 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.

开发编程清理git资源回收通用
0
Stars
0
Forks
35
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/dustinkeeton/wafflestack/main/.claude/skills/clean-up/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/dustinkeeton/wafflestack/main/.claude/skills/clean-up/SKILL.md"
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
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有