Automates the safe removal of Git worktrees by verifying ticket status and updating VS Code workspace configurations.
The Worktree Cleanup skill provides a robust orchestration script for developers using Git worktrees within devcontainer environments. It goes beyond simple directory removal by integrating with ticket management systems (SDD) to prevent accidental data loss, automatically updating VS Code multi-root workspace files, and managing associated Git branches. This skill is ideal for maintaining a clean development environment while ensuring that all work is verified and merged before resources are deleted.
Key Features
01Automated SDD ticket status verification before cleanup
02Intelligent safety prompts for unmerged or incomplete work
03Deep integration with VS Code multi-root workspace files
04CrewChief CLI orchestration for standard worktree removal
05Dry-run mode to preview deletions and workspace changes
060 GitHub stars
Use Cases
01Cleaning up feature branches safely after a pull request is merged
02Pruning devcontainer disk space by removing obsolete worktrees
03Synchronizing VS Code workspace folders with current Git repository state