About
The cleanup-dangling-worktrees skill automates the maintenance of Git worktrees by identifying and removing directories linked to successfully merged GitHub pull requests. It prioritizes data integrity through a multi-step safety protocol, ensuring that worktrees are only deleted if they have no uncommitted changes, no unpushed commits, and a confirmed 'MERGED' status on GitHub. This tool is essential for developers who leverage worktrees for concurrent feature development and want to avoid the manual overhead of pruning stale metadata and directories.