Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ufomiao/git-clean-branches
Safely find and clean up merged or stale Git branches with dry-run mode and custom base/protected branches support
Passed 22 of 23 test cases with the skill, and 8 of 23 without it.
and 15 more in the full report
14 fixed8 passed either way1 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 14 test cases the skill fixed. Same model, same prompt, with and without the skill.
I need to remove a local abandoned branch `feature/bad-idea` without interactive prompt even though it is not merged into main.
| Checked | Without skill | With skill |
|---|---|---|
| Uses `/git-cleanBranches` with `--force feature/bad-idea`. | Missed | Passed |
The instructions your model reads when the skill loads.
该命令安全地识别并清理已合并或长期未更新 (stale) 的 Git 分支。
默认以只读预览 (--dry-run) 模式运行,需明确指令才会执行删除操作。
# [最安全] 预览将要清理的分支,不执行任何删除
/git-cleanBranches --dry-run
# 清理已合并到 main 且超过 90 天未动的本地分支 (需逐一确认)
/git-cleanBranches --stale 90
# 清理已合并到 release/v2.1 的本地与远程分支 (自动确认)
/git-cleanBranches --base release/v2.1 --remote --yes
# [危险] 强制删除一个未合并的本地分支
/git-cleanBranches --force outdated-feature
--base <branch>:指定清理的基准分支(默认为仓库的 main/master)。--stale <days>:清理超过指定天数未提交的分支(默认不启用)。--remote:同时清理远程已合并/过期的分支。--dry-run:默认行为。仅列出将要删除的分支,不执行任何操作。--yes:跳过逐一确认的步骤,直接删除所有已识别的分支(适合 CI/CD)。--force:使用 -D 强制删除本地分支(即使未合并)。git fetch --all --prune,确保分支状态最新。--base 参数或自动识别的 main/master 作为比较基准。test cases passed, vs 8 / 23 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.