← ClaudeAtlas

holding-a-merge-queuelisted

Use when one session holds the merge queue while other sessions push branches, when watching several pull requests for approval or CI changes, when a merge or a review or a plan change affects a branch another session owns, when a peer session reports a result you are about to act on, when a check fails for a reason the diff cannot explain or passes on a re-run, or before an action that affects the whole machine such as a restart or a keep-awake change.
ubermuda/loupe · ★ 2 · Code & Development · score 65
Install: claude install-skill ubermuda/loupe
# Holding a merge queue One session holds the queue. Other sessions own their branches and push to them. The queue holder merges, and merges nothing it has not checked itself. `working-with-prs` carries the gate, the body and the merge protocol. This skill carries two things that only appear when a queue runs for hours across several sessions: reading check state without lying to yourself, and coordinating with peers who cannot see what you see. ## Start a monitor when you take the queue Start a monitor before you do anything else with the queue. Peers push, the owner approves and checks finish while you wait, and no message tells you. A queue holder with no monitor sees each change only when it next looks. Use the `Monitor` tool with `persistent: true`, run from the main checkout, and this command: ```bash .agents/skills/holding-a-merge-queue/scripts/queue-monitor.sh ``` It polls every open pull request once a minute. It prints one line for each pull request whose line changed, and one line for each pull request that left the open list. The first pass prints every open pull request, and that is your baseline. `ONCE=1` runs a single pass, which prints the whole queue once. A monitor line tells you where to look. Before you merge, run the bucket count and the approval-time check below on the current head. The script follows the counting rule. It prints `pass=N/N` only when every required check passed and no other bucket exists. `running` covers a pending check and a c