git-cleanup

Community

Clean up local git branches safely.

AuthorRamprasad4121
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps you safely manage and clean up local Git branches and worktrees that have become accumulated over time, preventing clutter and confusion.

Core Features & Use Cases

  • Categorizes Branches: Identifies branches as merged, squash-merged, superseded, or active work.
  • Safe Deletion Workflow: Ensures no data is lost by requiring explicit user confirmation at multiple stages.
  • Handles Complex Cases: Differentiates between safe deletions (-d) and force deletions (-D) for squash-merged branches.
  • Groups Related Branches: Analyzes and presents branches with shared prefixes as a single unit.
  • Detects Dirty Worktrees: Warns about uncommitted changes before potential worktree removal.

Quick Start

Use the git-cleanup skill to analyze and suggest local git branches for deletion.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 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-cleanup
Download link: https://github.com/Ramprasad4121/srp/archive/main.zip#git-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.