← Back to Skills Marketplace
sky-lv

Skylv Git Pruner

by SKY-lv · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
128
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install skylv-git-pruner
Description
Safely removes merged and stale Git branches. Identifies branches already on main/master. Triggers: clean branches, remove old branches, delete merged branch...
Usage Guidance
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).
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install skylv-git-pruner
  3. After installation, invoke the skill by name or use /skylv-git-pruner
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug skylv-git-pruner
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 128 downloads so far.

How do I install Skylv Git Pruner?

Run "/install skylv-git-pruner" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Skylv Git Pruner free?

Yes, Skylv Git Pruner is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Skylv Git Pruner support?

Skylv Git Pruner is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Skylv Git Pruner?

It is built and maintained by SKY-lv (@sky-lv); the current version is v1.0.0.

💬 Comments