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
Instalar
Copia esta carpeta en tu proyecto de Claude Code (requiere Node.js):
npx degit davila7/claude-code-templates/cli-tool/components/skills/git/worktree-cleaner .claude/skills/worktree-cleanerO instálalo para todos tus proyectos:
npx degit davila7/claude-code-templates/cli-tool/components/skills/git/worktree-cleaner ~/.claude/skills/worktree-cleanerContenido del archivo
Creado por sus autores originales y compartido bajo la licencia MIT. Lo mostramos sin cambios, con crédito y enlace a la fuente. Fuente ↗
…