Cleanup Repo

Clean up a Git repository's merged branches and worktrees, then prune filesystem cruft (recursively-empty directories and orphaned node_modules). Use when asked to clean up / tidy / prune merged branches, remove stale or finished worktrees, delete branches whose PRs have already merged (including squash-merges), or sweep empty directories and leftover node_modules. Two-pass merge detection (git ancestry plus merged GitHub PRs), an uncommitted-changes guard on worktrees, an optional Linear "Done" writeback, per-pass confirmation gates, and a --dry-run preview. Protected branches are never touched.

rheged-studio Updated

File contents

rheged-studio/agent-skills/tree/main/skills/cleanup-repo commit 80d8659a8d

Frequently asked questions

npx skillmds@latest add rheged-studio/cleanup-repo