skylv-git-pruner

Safely removes merged and stale Git branches. Identifies branches already on main/master. Triggers: clean branches, remove old branches, delete merged branches, git cleanup.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "skylv-git-pruner" with this command: npx skills add sky-lv/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

  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 <- current develop

Commands: git branch -d (safe) or git branch -D (force) Remote: git push origin --delete branch-name

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Universal Release

Universal release workflow. Auto-detects version files and changelogs. Supports Node.js, Python, Rust, Claude Plugin, and generic projects. Use when user say...

Registry SourceRecently Updated
2670Profile unavailable
Coding

Skill Publisher — ClawHub 一键发布器

将本地 skill 目录发布到 clawhub.com 的自动化发布助手。 当用户说"发布这个 skill 到 clawhub"、"把 XX skill 上传到 clawhub"、 "clawhub publish"、"发布到 clawhub" 等时触发。 自动处理:token 验证、CLI bug patch、...

Registry SourceRecently Updated
3450Profile unavailable
Coding

Chief Feature Workflow

Create and implement new features in Chief-managed projects using the Chief CLI. Use when asked to create a new PRD, implement a feature with Chief, set up a...

Registry SourceRecently Updated
4471Profile unavailable
Coding

ReviewEvo

Self-improving code reviewer that learns your codebase over time. Analyzes git history, spots patterns, identifies risk — and gets smarter every run.

Registry SourceRecently Updated
4791Profile unavailable