Repo Cleanup

Post-shipping git working-state reconciliation mechanics: fast-forward + prune the default branch, sweep `[gone]` and squash-merged local branches, remove stale/detached agent worktrees, sweep orphan `worktree-agent-*` isolation branches, triage orphan stashes by closedByPullRequestsReferences (not bare issue state), sweep untracked-file noise against an allowlist, mop up stale remote branches, and clear orphan claim labels. Use when the user asks "delete the [gone] branches", "why won't this squash-merged branch delete", "triage these orphan stashes", "remove stale agent worktrees", "why are there worktree-agent branches left over", "is this stash safe to drop", or any low-level branch/worktree/stash reconciliation mechanic. Also triggers when a project workflow skill (a generated tidy-repo) invokes sassy-dog:repo-cleanup by name. The repo's own generated tidy-repo owns the top-level post-shipping cleanup request and delegates the mechanics here.

Sassy-Dog Updated

File contents

Sassy-Dog/sassydog-skills/tree/main/skills/repo-cleanup commit b1f3771da2

Frequently asked questions

npx skillmds@latest add sassy-dog/repo-cleanup