worktree-cleanup
CommunityClean up stale Git worktrees, free space.
Authormvillmow
Version1.0.0
Installs0
System Documentation
What problem does it solve? This Skill automates the removal of merged or stale Git worktrees, helping developers maintain an organized workspace, free up disk space, and avoid clutter from old development branches. It simplifies repository maintenance, saving time and reducing complexity.
Core Features & Use Cases:
- Remove Single Worktree: Safely delete a specific worktree by issue number or path, with safety checks for uncommitted changes.
- Clean Merged Worktrees: Automatically identify and remove worktrees associated with merged branches, keeping your local repo tidy.
- Use Case: After merging several pull requests, use this skill to automatically identify and remove all worktrees associated with those merged branches. This keeps your local repository clean and efficient, freeing up valuable disk space.
Quick Start: Use the worktree-cleanup skill to remove all git worktrees associated with merged branches.
Dependency Matrix
Required Modules
None requiredComponents
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: worktree-cleanup Download link: https://github.com/mvillmow/ml-odyssey/archive/main.zip#worktree-cleanup Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.