← 返回 Skills 市场
128
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install skylv-git-pruner
功能描述
Safely removes merged and stale Git branches. Identifies branches already on main/master. Triggers: clean branches, remove old branches, delete merged branch...
安全使用建议
This skill appears to be what it says — a set of instructions for pruning Git branches — but follow these precautions before using it:
- Run a dry run first: list candidate branches without deleting them (e.g., git branch --merged origin/main and inspect dates). Do not run deletion commands until you verify the list.
- The SKILL.md omits exact commands for detecting unpushed commits and calculating commit age. Prefer well-known checks such as git log origin/branch..branch or git cherry -v origin/branch to detect unpushed commits, and use git log --since/--before or for-each-ref with committerdate for date-based filtering.
- Be careful with platform-specific commands: the file uses findstr (Windows). On macOS/Linux replace with grep. Confirm the agent's execution environment before running any shell commands.
- Avoid git branch -D unless you have confirmed there are no important unpushed commits. Prefer git branch -d and only force-delete when you understand the consequences.
- Backup or test in a non-critical repository first. If the agent can execute commands autonomously, ensure it always asks explicit confirmation before performing deletions.
If the skill were improved, request explicit, cross-platform commands for each detection step, and a safer deletion workflow (dry-run mode, explicit command examples for detecting unpushed commits, and clearer protected-branch patterns).
功能分析
Type: OpenClaw Skill
Name: skylv-git-pruner
Version: 1.0.0
The skylv-git-pruner skill is a standard utility for managing Git branches. It provides instructions for identifying and deleting merged or stale branches while explicitly including safety measures such as protecting core branches (main, master, develop) and requiring user confirmation before execution. No malicious patterns or data exfiltration risks were found in SKILL.md or _meta.json.
能力评估
Purpose & Capability
Name and description match the instructions: all actions are Git operations (listing branches, categorizing by commit date/upstream, and deleting). The skill does not request unrelated credentials, binaries, or install extra tooling.
Instruction Scope
The SKILL.md stays on-topic (Git branch discovery and deletion) and includes safety steps (show list, exclude protected branches, require confirmation). However, several steps are vague (no exact commands to detect unpushed commits or to compute '90+ days' vs '30 days'), and one example uses 'findstr' (Windows-only), which may mislead agents on non‑Windows platforms. Vagueness could lead to unintended deletions if an agent exercises broad discretion.
Install Mechanism
No install spec or code files; instruction-only skills are lower risk because nothing is written to disk by the skill itself.
Credentials
No environment variables, credentials, or config paths are requested — proportional to the stated purpose.
Persistence & Privilege
always is false and there is no request for persistent or elevated privileges; the skill does not attempt to modify other skills or system-wide settings.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install skylv-git-pruner - 安装完成后,直接呼叫该 Skill 的名称或使用
/skylv-git-pruner触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of skylv-git-pruner.
- Safely identifies and removes merged, stale, and orphaned Git branches.
- Determines the main branch and excludes protected branches (main, master, develop, release/*).
- Shows branches to be deleted before making changes and requests user confirmation.
- Filters out branches with recent commits or unpushed changes.
- Supports triggers like "clean branches" and "delete merged branches" for easy usage.
元数据
常见问题
Skylv Git Pruner 是什么?
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 插件,目前累计下载 128 次。
如何安装 Skylv Git Pruner?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install skylv-git-pruner」即可一键安装,无需额外配置。
Skylv Git Pruner 是免费的吗?
是的,Skylv Git Pruner 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Skylv Git Pruner 支持哪些平台?
Skylv Git Pruner 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Skylv Git Pruner?
由 SKY-lv(@sky-lv)开发并维护,当前版本 v1.0.0。
推荐 Skills