/install skylv-repo-cleaner
Git Branch Pruner
Overview
Safely identifies and removes merged, stale, and orphaned Git branches.
When to Use
- User asks to "clean up branches" or "delete merged branches"
- Branch list is too long to manage
How It Works
Step 1: Identify main branch
git branch --show-current git remote show origin | findstr "HEAD branch"
Step 2: List all branches
git branch -a --format "%(refname:short) %(upstream:short) %(committerdate:short)"
Step 3: Categorize
Merged: already in main/master Stale: no commit in 90+ days Orphaned: no upstream tracking Active: recent commits under 30 days
Step 4: Safe deletion
- Always show user what will be deleted first
- Exclude protected branches: main, master, develop, release/*
- Exclude branches with unpushed commits
- Ask for confirmation before deletion
Output Format
Merged branches (safe to delete): feature-old-login -> DELETE bugfix-typo-2024 -> DELETE
Protected (do not delete): main \x3C- current develop
Commands: git branch -d (safe) or git branch -D (force) Remote: git push origin --delete branch-name
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install skylv-repo-cleaner - 安装完成后,直接呼叫该 Skill 的名称或使用
/skylv-repo-cleaner触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Skylv Repo Cleaner 是什么?
Safely removes merged and stale Git branches. Identifies branches already on main/master. Triggers: clean branches, remove old branches, delete merged branch... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 44 次。
如何安装 Skylv Repo Cleaner?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install skylv-repo-cleaner」即可一键安装,无需额外配置。
Skylv Repo Cleaner 是免费的吗?
是的,Skylv Repo Cleaner 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Skylv Repo Cleaner 支持哪些平台?
Skylv Repo Cleaner 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Skylv Repo Cleaner?
由 SKY-lv(@sky-lv)开发并维护,当前版本 v1.0.0。