Identify and remove stale git worktrees blocking branch deletion in multi-repo environments
Scanned 9/9/2026
Install to Claude Code
npx -y skills add vamseeachanta/workspace-hub --skill git-worktree-cleanup-at-scale --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Git Worktree Cleanup At Scale?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/vamseeachanta-git-worktree-cleanup-at-scale-workspace-hub)More formats (shields.io, HTML) on the badges page.
---
name: git-worktree-cleanup-at-scale
description: Identify and remove stale git worktrees blocking branch deletion in multi-repo environments
version: 1.0.0
source: auto-extracted
extracted: 2026-04-14
metadata:
tags: ["git", "worktree", "automation", "branch-hygiene", "multi-repo"]
---
# Git Worktree Cleanup at Scale
Worktrees are lightweight working directories sharing a `.git` store, useful for parallel agent work. However, stale worktrees block branch deletion and consume disk space. List active worktrees with `git worktree list`, identify ones on merged/obsolete branches, then remove with `git worktree remove <path>` before deleting the branch. This is especially critical in automation-heavy repos where agent sessions leave behind worktrees. Implement automated cleanup hooks to prevent accumulation.Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Playbook for creating and editing uCoz landing pages via MCP tools (`templates_tool`, `ftp_tool`, `modules_tool`). Use for tasks such as: "build a landing page", "update the homepage as a landing page", "create a promo page on the homepage", "add a lead form / menu / SEO to the homepage". Homepage: `page_list`, `page_get`; first publish — `page_update` with full `page_tmpl`; HTML edits after generation — `patch_template` (module_id=2, template_id=1), not `update_template`. Activate the mail f...