git-cleanup-merged
CommunitySafely prune merged branches and worktrees.
Authorlestrrat
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Clean up local branches and worktrees that have been merged into a target branch, reducing clutter and avoiding confusion about stale refs.
Core Features & Use Cases
- Detects merged branches and active worktrees against a target branch (default: main).
- Enforces safety rules: never delete the target or main branch; requires user confirmation before deletion; reports a clear summary of what will be removed and what will be skipped.
- Supports a safe, repeatable cleanup workflow in local repositories, improving maintainability and reducing repo drift.
Quick Start
Run the git-cleanup-merged workflow to review and remove merged branches and worktrees after confirmation.
Dependency Matrix
Required Modules
None requiredComponents
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-cleanup-merged Download link: https://github.com/lestrrat/claude-code/archive/main.zip#git-cleanup-merged Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.