run-repo-cleanup
Installation
SKILL.md
Run Repo Cleanup
Turn a messy repo — dirty working tree, unpushed commits, possibly multiple worktrees from parallel subagents — into a small number of focused PRs on the private fork only, each with diff-read commits inside and a comprehensive self-review body outside. End state must be tidy: no stale branches local or remote, no stale worktrees, working tree clean.
When To Use
Trigger on phrases and git states like:
- "clean up this repo", "tidy up before I push", "land my work in PRs"
- "my working tree is a mess — sort it out", "sweep these uncommitted changes"
- "I have N worktrees from the parallel subagents — merge them in order"
- "open the cleanup PRs against the fork, not upstream"
- "split this dirty branch into commits and a self-review body"
- "retire merged branches and worktrees", "prune the stale branches"
- Git state:
git statusis dirty + unpushed commits, orgit worktree listshows ≥2 entries, or a fork-vs-upstreamoriginsetup is active.
Do NOT use this skill for: