pr-sweep
PR Sweep — batch-review + dedup-close + gated auto-merge
Repo profile — read
.claude/repo-profile.mdfirst. This skill is repo-agnostic; arc is the reference implementation. Use the profile's values wherever this doc shows an arc default:repo_slug(thegh -Rtarget),gate_mode(arc =scripts: no CI on PRs, sogh pr checksis empty andpre-mergeis the only gate;ci/bothrepos ALSO requiregh pr checksgreen),verification_entry/pre_merge_entry. Arc's own provenance for the lessons below is not inlined here (fuller case narratives, where they exist, are under.claude/case-law/).
A batch driver over pr-review. pr-review handles
ONE PR (read → verify against code → run verification gate → detect conflicts → verdict).
pr-sweep runs that engine across all open PRs, then does the two things a
single-PR engine can't: resolve cross-PR duplicate/conflict clusters (keep
one, comment + close the rest) and gated auto-merge the clean ones.
This is the thing a cron schedules: one run = sync + review-all + dedup-close +
(optionally) merge. It is the PR-world twin of issue-sweep;
together they let an independent machine keep both issues and PRs moving with no
human in the loop — escalating only the genuinely human-only decisions.