What it does
worktree-cleaner lists the git worktrees of the current repository and classifies each one using evidence: whether it is merged, the state of its pull request, uncommitted or unpushed work, whether it is locked or stale, and whether a running session is using it. Removal can be done one worktree at a time or by group. The skill always asks the user before removing anything and verifies every removal.
It is suited to repositories where worktrees have piled up, for example one per Claude Code task or thread, or where the output of `git worktree list` has become long. It also fits requests to clean up, prune or tidy worktrees.
It runs against the repository the user is working in and works through the user's confirmation at each removal step.
Safety
Our team has not reviewed this resource. Only automated rules checked it; resources with high-risk signals are not published. These are signals, not a guarantee that installing it is safe. Try it in a sandbox project first.
- Runs code or changes an assistant's behaviour
Sources
- AI Templates (aitmpl) first seen 13 Nov 2026 · last seen 17 Nov 2026 · its page on the source · figures reported by the source: aitmpl downloads 12
worktree-cleaner
Inventory the git worktrees of the current repository, classify each one with evidence (merged, PR state, uncommitted or unpushed work, locked, stale, in use by a running session) and remove them one at a time or by group, always asking the user first and verifying every removal. Use when worktrees have piled up (for example one per Claude Code task or thread), when `git worktree list` is long, or when the user asks to clean up, prune or tidy worktrees.
v1.0.0As shown on www.aitmpl.com when we last read it