cleanup-worktrees

Community

Clean up old git worktrees and branches.

Authorluigiinred
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps manage and clean up old or unused Git worktrees and their associated local branches, preventing clutter and ensuring a tidy repository.

Core Features & Use Cases

  • List Worktrees: Displays all Git worktrees, sorted by their last activity timestamp.
  • Interactive Removal: Allows users to select multiple worktrees for deletion.
  • Associated Cleanup: Automatically removes the corresponding local branch (if merged) and any associated Android Virtual Device (AVD) emulator.
  • Use Case: After completing a feature in a separate worktree, use this Skill to easily remove the worktree, delete the feature branch, and clean up the related AVD emulator.

Quick Start

Use the cleanup-worktrees skill to list and remove old 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: cleanup-worktrees
Download link: https://github.com/luigiinred/dotfiles/archive/main.zip#cleanup-worktrees

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 223,000+ vetted skills library on demand.