Git Cleanup
Safely analyzes and removes merged, squash-merged, and superseded local git branches and worktrees through a multi-step gated workflow.
Git Cleanup is a sophisticated developer utility designed to manage local repository clutter without the risk of data loss. It goes beyond basic git commands by intelligently detecting squash-merged branches that standard tools often miss, grouping related branch iterations by name prefix to identify superseded work, and performing thorough safety checks for uncommitted changes in worktrees. Operating on a 'Safety First' principle, the skill provides a comprehensive analysis of your local environment and requires explicit user confirmation at two separate gates before executing any destructive actions, making it an essential tool for maintaining clean, high-performance development environments.