← 返回 Skills 市场
sky-lv

Skylv Repo Cleaner

作者 SKY-lv · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
44
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install 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...
使用说明 (SKILL.md)

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

  1. Always show user what will be deleted first
  2. Exclude protected branches: main, master, develop, release/*
  3. Exclude branches with unpushed commits
  4. 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

安全使用建议
This skill appears safe to install as an instruction-only Git cleanup helper. Before using it, make sure you are in the intended repository, inspect the list of branches it proposes to delete, and be especially cautious with force deletion or deleting branches from the remote origin.
功能分析
Type: OpenClaw Skill Name: skylv-repo-cleaner Version: 1.0.0 The skill is a standard Git utility designed to identify and remove merged or stale branches. The instructions in SKILL.md emphasize safety by explicitly requiring user confirmation, protecting core branches (main, master, develop), and checking for unpushed commits before deletion. No evidence of data exfiltration, malicious execution, or prompt injection was found.
能力评估
Purpose & Capability
The skill is coherent with its stated Git branch cleanup purpose, but it can delete local and remote Git branches, including a documented force-delete option.
Instruction Scope
The instructions include safety boundaries: show what will be deleted first, exclude protected branches, exclude branches with unpushed commits, and ask for confirmation.
Install Mechanism
This is instruction-only with no install spec, no code files, no package dependencies, and no static scan findings.
Credentials
The Git commands act on the user's current repository and may affect the remote origin; this is proportionate to branch pruning but can impact shared repositories.
Persistence & Privilege
No background execution, persistence, credential collection, stored memory, or privilege-escalation behavior is described.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install skylv-repo-cleaner
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /skylv-repo-cleaner 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release rebrands the skill as "skylv-git-pruner" (previously "skylv-repo-cleaner"). - Adds robust detection and categorization of branches: merged, stale, orphaned, and active. - Ensures safe deletion by previewing actions to the user and excluding protected or unpushed branches. - Supports key triggers such as "clean branches" or "delete merged branches". - Provides clear output format and actionable Git commands for local and remote branch cleanup.
元数据
Slug skylv-repo-cleaner
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

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。

💬 留言讨论