git-worktree-remove
Installation
SKILL.md
Git Worktree Remove
Safely remove a single git worktree with branch cleanup and safety checks. A Python script resolves the target, runs the safety checks, removes the worktree, deletes the branch (local and remote), and prunes references.
Part of the Worktree Lifecycle Suite: /git-worktree | /git-worktree-status | /git-worktree-clean
Steps
uv run "${CLAUDE_SKILL_DIR}/scripts/git_worktree_remove.py" <name_or_path> [--force] [--keep-branch] [--keep-remote]
The target may be a bare name (auth), a directory basename
(boss-skills-auth), a branch (worktree-auth), or a full path. The script: