What problem does it solve?
This Skill automates the removal of merged or stale Git worktrees, helping developers maintain an organized workspace, free up disk space, and avoid clutter from old development branches. It simplifies repository maintenance, saving time and reducing complexity.
Core Features & Use Cases:
- Remove Single Worktree: Safely delete a specific worktree by issue number or path, with safety checks for uncommitted changes.
- Clean Merged Worktrees: Automatically identify and remove worktrees associated with merged branches, keeping your local repo tidy.
- Use Case: After merging several pull requests, use this skill to automatically identify and remove all worktrees associated with those merged branches. This keeps your local repository clean and efficient, freeing up valuable disk space.
Quick Start:
Use the worktree-cleanup skill to remove all git worktrees associated with merged branches.