Đang tải…
Đang tải…
Recovers valuable unmerged work and prunes stale branches and PRs until the repository is tidy.
npx claude-code-templates@latest --loop engineering/repo-cleanup-loopLoop Engineering — a recurring janitor that keeps the repo's branch and PR list honest without deleting anything valuable.
Find stale branches and abandoned PRs, recover any work worth keeping (extract to an issue or fresh branch), and safely remove the rest.
Suggested interval: 7d (weekly). Because this loop can delete branches, keep the cadence slow and review its actions.
/loop 7d "Scan branches and PRs. For each stale one, decide: salvage valuable work into an issue/branch, or delete if fully merged or abandoned. Never lose unmerged work. Continue until the branch and PR list is clean."
git-context-controller./branch-cleanup; the git-workflow-manager agent guides safe operations.No stale branches or abandoned PRs remain and all salvageable work is captured.
command:git-workflow/branch-cleanup — prunes merged/stale branches.agent:git/git-workflow-manager — guards safe git operations.skill:git/git-context-controller — inspects branch/PR history.A six-month-old spike/new-parser branch holds a useful prototype; the loop extracts it into an issue with the diff attached, then deletes the branch.