cleanup-repo
Installation
SKILL.md
cleanup-repo
Remove merged Git worktrees and branches, then run a filesystem-hygiene pass —
each pass behind its own confirmation gate, with a --dry-run preview.
The branch/worktree pass mirrors the behaviour of the /cleanup-branches
slash command it was extracted from. The filesystem-hygiene pass (recursively-empty
directories and orphan node_modules/) is new to this skill. See
references/design-notes.md for the naming
rationale and the deliberately-deferred future extensions.
Configuration
Five knobs live in config.json beside this file. Read it at the
start of a run and use its values throughout. Edit your copied config.json to
match the consuming repo: