What problem does it solve? After merging pull requests, repositories accumulate debris: [gone] local branches, squash-merged branches that refuse to delete, orphaned agent worktrees and worktree-agent-* isolation branches, stale stashes, untracked noise files, and lingering remote branches. This Skill performs the low-level git reconciliation mechanics to clean all of it safely, with guards against deleting in-flight work. ## Core Features & Use Cases - Branch reconciliation: Fast-forward the default branch, sweep [gone] and squash-merged local branches (using -D after MERGED-PR verification), and delete stale remote branches while protecting branches that are the base of an open PR. - Worktree and stash triage: Remove detached or orphaned agent worktrees and classify stashes by closedByPullRequestsReferences — auto-dropping superseded work and asking only on genuinely ambiguous cases. - Untracked-file sweep: Enumerate with git clean -ndx (including gitignored files), auto-discard allowlisted noise like .DS_Store and node_modules/, and never touch a never-discard list such as .env.local. - Use Case: After a 35-issue parallel shipping run leaves 36 orphan worktree-agent-* branches and a pile of stashes, invoke this Skill to classify every artifact, delete what verifiably shipped, and surface only the genuinely ambiguous leftovers for review. ## Quick Start Ask the agent to clean up the repository by deleting merged branches, stale worktrees, and superseded stashes after the recent PRs shipped.