What problem does it solve? Long-running repositories accumulate merged branches, stale worktrees, and orphaned worktree metadata, cluttering the workspace and making branch management error-prone. This Skill detects cleanup candidates and enforces a safe, user-confirmed removal process. ## Core Features & Use Cases - Automatic Detection: Identifies merged branches, stale worktrees (inactive over 7 days), orphaned worktree metadata, and locally tracked branches deleted on the remote. - Guided Cleanup Flow: Runs cleanup-suggest.sh to output a CleanupSuggestion JSON, then executes git worktree remove, git branch -d, and git worktree prune only after user confirmation. - Safety Constraints: Never deletes the currently checked-out branch, develop, or main, and never auto-deletes anything without explicit user approval. - Use Case: After several feature branches are merged into develop, ask the agent to scan the repository; it lists merged branches and stale worktrees, you confirm which to remove, and it prunes them safely. ## Quick Start Ask the agent to scan this repository for merged branches and stale worktrees and suggest which ones to clean up.