git-worktree-cleanup

Community

Tidy up git worktrees automatically.

Authorandres-vv
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill automates the cleanup of Git worktrees that are no longer needed, specifically those whose branches have been merged or whose associated Pull Requests have been closed, preventing clutter and improving repository management.

Core Features & Use Cases

  • Automated Merged Branch Cleanup: Removes Git worktrees tied to branches that are already merged into the base branch.
  • Pull Request Status Check: Identifies and cleans up worktrees for branches associated with closed or merged Pull Requests, even for squash merges.
  • Work Item Resolution: Updates Azure DevOps (ADO) work items to a 'Resolved' state for branches that have been cleaned up.
  • Use Case: After completing a feature and merging its Pull Request, this Skill can automatically remove the corresponding worktree and update the related ADO ticket.

Quick Start

Run the git-worktree-cleanup skill to prune stale Git worktrees.

Dependency Matrix

Required Modules

None required

Components

scripts

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: git-worktree-cleanup
Download link: https://github.com/andres-vv/Flowkify-mission-10x/archive/main.zip#git-worktree-cleanup

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.