git-branch-cleanup

Official

Clean up local Git branches safely and fast.

Authorsage-base
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps developers cleanse their local Git repository by analyzing branches and safely identifying candidates for deletion. It categorizes branches based on merge status, last activity, and remote-tracking information to reduce clutter without risking lost work.

Core Features & Use Cases

  • Branch analysis: detects merged, unmerged, stale (inactive for a defined period), and remote-tracking branches.
  • Safe cleanup workflow: proposes deletions with a dry-run preview and requires explicit user confirmation before removal.
  • Safety guards: prevents deletion of protected branches (e.g., main, master) and currently checked-out branches.
  • Use Case: You have dozens of feature branches; run this Skill to generate a concise list of branches that can be safely deleted to reclaim space and reduce complexity.

Quick Start

Analyze the current repository to identify branches eligible for deletion and output a concise cleanup plan.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: git-branch-cleanup
Download link: https://github.com/sage-base/sagebase/archive/main.zip#git-branch-cleanup

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.