What problem does it solve? Repositories accumulate stale Git worktrees and local branches over time, and deleting them by hand risks losing dirty work, unpushed commits, or branches whose squash-merged PRs leave no ancestry trail. This Skill classifies every worktree and branch deterministically so only verified-safe targets are removed. ## Core Features & Use Cases - Deterministic audit: Classifies each worktree and branch as protected, deletable (candidate-merged, candidate-pr-merged, candidate-gone, candidate-stale), or needing review, using merge ancestry, GitHub PR state via the gh CLI, upstream tracking, age, and unpushed-commit counts. - Guarded cleanup: Re-classifies every target immediately before deletion, refuses anything not marked as a candidate, runs as a dry run unless --apply is passed, and never deletes dirty worktrees or branches with unpushed commits. - Broken registration handling: Detects prunable worktree registrations, distinguishes them from leftover directories, and reports them safely instead of crashing. - Use Case: After weeks of parallel feature work, run the audit to get one table grouping deletable, review-needed, and protected worktrees, then approve a single batch cleanup that removes merged branches while preserving anything with uncommitted or unpushed work. ## Quick Start Ask the assistant to audit all Git worktrees and stale branches in this repository and remove the ones that are safely merged or inactive.