git-worktree-clean

Installation
SKILL.md

Git Worktree Clean

Batch cleanup of stale git worktrees. A Python script lists worktrees, classifies each as merged / unmerged / protected, removes the safe ones, and reports reclaimed space. Disk accounting is language-neutral — it skips symlinks (e.g. a shared node_modules) and .git, with no stack-specific excludes.

Part of the Worktree Lifecycle Suite: /git-worktree | /git-worktree-status | /git-worktree-remove

Steps

Always preview first:

uv run "${CLAUDE_SKILL_DIR}/scripts/git_worktree_clean.py" --dry-run

Then execute:

Installs
1
GitHub Stars
1
First Seen
Jun 22, 2026
git-worktree-clean — bossjones/boss-skills