Skip to content
Back to skills

Git Worktree Cleanup At Scale

ASecurity

Identify and remove stale git worktrees blocking branch deletion in multi-repo environments

  • 17 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
toolsgit

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add vamseeachanta/workspace-hub --skill git-worktree-cleanup-at-scale --agent claude-code

Installs 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 with every re-scan.

Security grade badge for Git Worktree Cleanup At Scale
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vamseeachanta-git-worktree-cleanup-at-scale/badge)](https://www.skillsdirectory.com/skills/vamseeachanta-git-worktree-cleanup-at-scale)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…