← Back to Skills Marketplace
sky-lv

Skylv Repo Cleaner

by SKY-lv · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
44
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install skylv-repo-cleaner
Description
Safely removes merged and stale Git branches. Identifies branches already on main/master. Triggers: clean branches, remove old branches, delete merged branch...
README (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

Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install skylv-repo-cleaner
  3. After installation, invoke the skill by name or use /skylv-repo-cleaner
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug skylv-repo-cleaner
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

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

How do I install Skylv Repo Cleaner?

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

Is Skylv Repo Cleaner free?

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

Which platforms does Skylv Repo Cleaner support?

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

Who created Skylv Repo Cleaner?

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

💬 Comments