What problem does it solve?
This Skill helps you audit and clean up stale Git worktrees created by agent, autopilot, and branch-based workflows without accidentally deleting active work. It reduces the manual effort of checking branch status, PR state, merge status, authorship, and recoverability before cleanup.
Core Features & Use Cases
- Evidence-based worktree auditing: Enumerates worktrees, checks dirty state, compares unique commits against main, and resolves PR status through multiple search strategies.
- Safe deletion planning: Classifies branches into delete, in-flight, closed-review, or unshipped-work buckets so cleanup decisions are explicit and reversible.
- Recovery-aware cleanup: Captures recovery SHAs, deletes in dependency-safe order, and reports final state after pruning.
- Use cases: Clean up orphaned launch or autopilot worktrees, remove merged-and-shipped branches, and identify abandoned staging areas created from other engineers' commits.
Quick Start
Ask the AI to audit worktrees in /workspaces/main and produce a deletion plan with verification evidence before removing anything.