/pauls-skills:pr-sweepfrom pauls-skills
Review every open PR into a target branch, fix what's wrong, merge them one at a time, then prove the merged result works together (CI on the new head, an integration review across the PRs, the dev deploy and its smoke test) and leave a written promote-ready verdict. Works on any repo; SpartBoard has a profile. Use for "sweep the PRs", "merge the overnight work", "land everything in dev", "clean up the open PRs", "get dev ready to promote", or after nightly routines or a parallel plan finish. Also the landing step inside goodnight.
Ships in pauls-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Turn a pile of open PRs (nightly routines, a plan sliced into parallel sessions) into one merged target branch you can promote with confidence. Merging isn't the hard part. The hard part is proving the PRs work together: each one can be correct alone and still break a sibling. The sweep isn't done until the merged head passes the integration gate (section 6) and the sweep record says what was and wasn't checked.
Arguments ($ARGUMENTS) may name the repo, the target branch, PRs to include or skip, a cutoff time, or --unattended. They override this file.
Modes.
--unattended, or when goodnight runs this): never ask. Make the call that ships the safest good result, log it as a judgment call (what you chose, why, how to undo it), and keep going.Invoking this skill authorizes merging PRs that pass the gates into the target branch. It never authorizes merging into the production branch; that's promote's job, or the repo's equivalent.
CLAUDE.md, its docs, its skills such as /ship). They win over this file.Before touching a PR, learn how this repo works, and write it at the top of the ledger:
dev, develop, dev-<name>), otherwise the default branch. Name the production branch too.run or verify-* skill)?Read CLAUDE.md, the README, docs/, .github/workflows/, .claude/skills/ and the package scripts. If references/<repo-name>.md exists next to this file, start from it and check it against the repo; the repo wins where they disagree. Anything you can't find goes in the profile as "none", and its check becomes a named gap in the sweep record. Don't invent one.
Start <scratchpad>/pr-sweep-ledger.md now and update it at every step: profile, start time, the target head SHA at start (the sweep base), every work item with status (ready, fixing, reviewing, waiting on session, merged, left open), who's on it, last sign of progress, everything running in the background, judgment calls. After compaction or a check-in, read it first.
Gather:
list_sessions with mine: true), and the last runs of scheduled tasks (list_triggers, then the last_run session). Look for a failed run, a branch pushed with no PR, or a session still working. Open PRs for pushed branches whose work looks finished.Sort each item:
Collect everything only Paul can decide: product calls, which of two duplicates to keep, a PR that changes behavior its description didn't mention, anything you'd otherwise leave open for a judgment reason. Ask in one batch, the most important first (AskUserQuestion takes up to 4; list the rest in the same message with your default for each). Then run unattended. Ask again only if something new comes up that really is his call, and keep merging everything it doesn't block while you wait.
Unattended: skip this. Each of these becomes a logged judgment call or a PR left open.
Work runs in background Agents, isolation: 'worktree', model: sonnet. Each brief carries the PR number, what's wrong, the profile's fast-check commands, and "CRITICAL FINAL STEP: report back"; about one agent in ten finishes the work and dies without reporting. Never put two agents on the same hot file at once.
effort: high. Add a security lens for anything touching auth, access rules, user data or money, and a protected-files lens when one changed. Each reviewer is told to find how the PR breaks, not to approve it. Findings come back with severity (blocking or minor), file:line and a concrete way it fails. Add the repo's own review bot findings and unresolved threads to the same list.run/verify-* skill, or the run skill) before it merges. If that's not possible, it's a named gap in the record.Merge one at a time, in this order: protected-file and shared-infrastructure PRs first, then small fixes, then features; within a group, oldest first.
At the cutoff, stop starting new work. Anything unmerged stays open, with where it stands.
Run this on the target's head once the train is done. It's what makes the branch promotable.
Agent (model: sonnet, effort: high) over <sweep base>..<head>, told to assume the merged PRs break each other and find where: two changes to the same component, settings list, listener, route, schema, query or access rule; double registration; changed shapes one PR writes and another reads; order-dependent migrations. Adjudicate and fix as in section 4, with fix PRs going through the same train.git bisect locally for a test failure; the PR whose diff touches the failing area for a deploy failure). Fix forward with a small PR when the cause is clear. Otherwise revert that PR's merge with a revert PR through the train, reopen the original with the evidence, and run the gate again. Never leave the head red.Write the record and post it as a new comment on the repo's open issue titled PR sweep log (create the issue the first time; reuse it after that). Put the same text in the final report. promote reads the latest one.
PR sweep YYYY-MM-DD HH:MM — <target> @ <head SHA> (base <sweep base SHA>)
Verdict: promote-ready | not ready — <one-line reason>
Merged: #12 <title>, #15 <title>, …
Left open: #18 <reason>, …
Reverted: #14 <why, issue or PR link>
Checked: per-PR review (2+ lenses) · gating audit · CI on head · integration review · dev deploy · smoke test · UI driven for #12, #15
Gaps: <each check that couldn't run, and which PRs it leaves unproven>
Fixed during sweep: <one line per confirmed finding fixed, with PR>
Judgment calls: <each, with how to undo>
Promote-ready means every check ran and passed and there are no gaps, or the only gaps are ones Paul has explicitly accepted. Anything else is "not ready", with the reason first.
Then one short message in this thread:
A completion ping that never arrives looks just like work in progress, so check for evidence.
send_later in a cloud session; CronCreate locally). Never end a turn with work in flight and no check-in scheduled.git fetch, then git for-each-ref --sort=-committerdate refs/remotes), task status, a session's newest event, CI step progress.timeout 20m gh run watch <id> --exit-status). Agents run lint and targeted tests only; full suites hang under load, so CI is the full gate.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ops-pivers/claude-skills --plugin pauls-skills41 skills in this plugin
/aim-higherTake a task, research how top practitioners in its field work, push it to go deeper across altitude, depth, range and verification, grill the user until the plan is settled, then do the work and prove it worked with real measurements./animateBuild an animation from scratch, making the decisions in the order that determines whether it feels right — should it animate at all, what purpose, which tool, which properties, which curve and duration, how it interrupts, how it exits. Writes the implementation. Use when asked to animate something, add motion, make a component feel alive, or build a transition. For critiquing existing motion use review-animations; for auditing a whole codebase use improve-animations./Other plugins' skills for the same job