What problem does it solve? Cleaning up a git worktree on Windows often fails because the active session holds a directory handle, so git worktree remove deletes the files but leaves a locked empty folder behind. This Skill moves the session out of the worktree, verifies no uncommitted or unpushed work is lost, and removes the directory completely. ## Core Features & Use Cases - Safe pre-checks: Verifies git status is clean and no unpushed commits exist before removing anything. - Session relocation: Moves the session back to the repository root via the deferred MCP directory tool before removal. - Locked-folder recovery: Runs a detached PowerShell retry loop that deletes the folder once the session's handle is released, handling the Windows "Permission denied" and "being used by another process" errors. - Use Case: After merging a pull request, ask to clean up the ticket worktree; the session returns to the repo root and the worktree directory is fully removed while the local branch is preserved. ## Quick Start Clean up the worktree for ticket PROJ-123 and move this session back to the repository root.