repo-cleanup-loop
repo-cleanup-loop
A configuration of [
loop-controller]. That skill supplies the loop machinery — primitive selection, the full guardrail stack, state externalization. This skill supplies the three things specific to "keep the repo state intentional": the per-class recipe (it delegates the post-merge-branch case to [git-post-merge-cleanup], it does not re-implement it), the mechanical proof (a classified inventory where nothing is "safely removable" until evidence flips it), and the recover-before-delete HITL boundary that makes deletion safe. Readloop-controllerfor the guardrails; they're inherited, not repeated here.Why
disable-model-invocation: this loop deletes branches, prunes refs, and removes worktrees on its own, on a clock — irreversible acts. It is user-driven: you want to type/loopit weekly (or run/repo-cleanup-looponce), not have Claude silently start pruning because it noticed debris.