holding-a-merge-queuelisted
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