repo-cleanup-loop

Installation
SKILL.md

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. Read loop-controller for 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 /loop it weekly (or run /repo-cleanup-loop once), not have Claude silently start pruning because it noticed debris.

The 5-part contract

Installs
1
GitHub Stars
11
First Seen
Sep 4, 2026