fleet-tidying-worktrees

Official

Safely prune fleet worktrees across repos.

AuthorSocketDev
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Sweeps across fleets of repositories to remove spent git worktrees that are fully merged into the remote base or gone from the remote with nothing unpushed. Conservative and no-prompt: a dirty worktree or one carrying unpushed commits is always kept, as it may be part of a parallel session’s live work. Use for periodic low-friction fleet maintenance or before cascade waves to clear interrupted-work leftovers. Defaults to a dry-run; pass --fix to apply changes.

Core Features & Use Cases

  • Conservative, fleet-wide pruning of spent worktrees that are safe to remove.
  • Safely preserves live worktrees with unpushed commits or active workflows.
  • Useful for periodic maintenance and pre-cascade cleanup across many repos.

Quick Start

Run the fleet-wide tidying-worktrees routine in dry-run mode to review removals, then run it again with --fix to delete spent worktrees.

Dependency Matrix

Required Modules

None required

Components

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: fleet-tidying-worktrees
Download link: https://github.com/SocketDev/socket-mcp/archive/main.zip#fleet-tidying-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 510,000+ vetted skills library on demand.