worktree-janitor

Community

Safely prune git worktrees across repos

Authorgabrielkoerich
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Audit and clean git worktrees safely across repositories, including stale metadata and merged local branches.

Core Features & Use Cases

  • List all worktrees in a repository and identify merged or unused entries.
  • Audit local branches that are fully merged and eligible for cleanup without risking work in progress.
  • Use a safe, guarded workflow to prune metadata and remove unused worktrees across multiple repos.

Quick Start

Run the janitor script with audit to review worktrees, then prune safely after confirming results.

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: worktree-janitor
Download link: https://github.com/gabrielkoerich/skills/archive/main.zip#worktree-janitor

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.