tidying-worktrees
OfficialKeep fleet worktrees clean and safe.
AuthorSocketDev
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Sweep and prune spent git worktrees across the fleet, removing only those that are fully merged or no longer present on the remote, thereby reclaiming space and reducing clutter without disrupting active work.
Core Features & Use Cases
- Fleet-wide cleanup: safely removes obsolete worktrees across multiple repos with a conservative, no-prompt policy.
- Safety-first: preserves worktrees that are dirty, ahead of base, or still linked to active remotes to prevent data loss.
- Maintenance-ready: designed for periodic care (e.g., loop runs) and pre-cascade housekeeping to ensure a clean fleet state.
Quick Start
Instruct the AI to run the tidying-worktrees sweep in dry-run mode to identify removable worktrees across the fleet.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 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: tidying-worktrees Download link: https://github.com/SocketDev/socket-mcp/archive/main.zip#tidying-worktrees 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 510,000+ vetted skills library on demand.