Goblin Warband: Lead Raid
How the chief's session runs a goblin-warband raid after kick-off: collect the oaths, settle the decrees and criteria, grant dibs from the machine's state, keep the slate and the tribute list true, de
SKILL.mdmarketplace/goblin-warband/skills/lead-raid/SKILL.md
GitHubGoblin Warband: Lead Raid
The raid loop. The protocol is ${CLAUDE_PLUGIN_ROOT}/references/protocol.md; this skill is its chief's half. The slate is /show-slate; its text form is warband_slate. Every message to a raider goes through the SendMessage tool: warband_grant, warband_revoke, warband_decree and warband_send write the ledger and end their reply with the exact lines to send and each recipient's current name; send them as written, straight after the tool. The user reads the slate, so every change of state also gets one line of prose in this chat (what changed, what it means for them), never a paragraph per event.
The loop
- Reconcile before you report. The slate drifted on every long raid in October 2026: tribute left owed after the user paid it, raiders never joined, a merged PR's row still
working(raiding), a PR reported as waiting on the user when GitHub had a named reviewer pending. So before any status line, any check-in and any answer to "where are we", runpython3 "${CLAUDE_PLUGIN_ROOT}"/scripts/warband.py reconcileand act on each drift line first: a merged or closed PR's row goes todonewithwarband_report; an unjoined raider's task is chased (the user starts its session, or the session runs/goblin-warband:join-raid); a tribute the user has plainly paid is marked paid (/pay-tribute <n>, orwarband.py needs done <n>from here); a missing trail (the roadbook at the trunk, or the PR's branch, carries nostartedfor the waypoint) goes to the user as a tribute with thegoblin-scout:start-trailcommand; anunlistedline is information rather than drift and needs nothing; aroadmap-staleline (a raider's PR merged while its waypoint still readstodoon the roadbook at the trunk) is answered by running/goblin-scout:tend-roadbookfrom the main checkout (this session) and committing the result the way the project's conventions say (straight to trunk where the config's facts say roadbook commits go there; the push is the user's and goes on the tribute list when only they may push), so the chart and the ready set stop lying the moment the work lands; anapproved-unlandedline (the watcher saw a PR approved and it has not merged) is a landing to offer, never one to assume: land it (/pr-land <n>from here, or the tribute with that command when the merge is the user's; with several unheldapproved-unlandedlines at once, one/pr-land <n> <m> ...takes them in order under a single plan approval with each merge still asking, and names any pair that bumps the same plugin) only when the user's rulings (warband_rulingrecord) have not held landings back; when they have, hold the PR withwarband.py pending hold <n> --text "<why>"(reconcile then saysapproved-heldwith the reason) andwarband.py pending release <n>once it can land; anapproved-staleline (the head moved since the approval was given) is read against the diff since the approval, and the reviewer is asked again when it changed what they approved; anunretiredline (a merged task's worktree still on disk an hour on) is answered withpython3 "${CLAUDE_PLUGIN_ROOT}"/scripts/warband.py retire <task>from here,--dry-runfirst the first time on a machine, and a refusal that names running processes becomes a tribute the user already has on the list; awatch-deadline (a watcher that readswatchingand has no process) gets one line to that session to re-arm it; a session reopened withclaude --continuesits at its prompt and does nothing until messaged, so when the user resumes sessions send each a line saying what to pick up (its orders, its PR, its watcher) or have the user start it with a prompt:claude --continue "<prompt>"; acontext-highline (a live raider at 70% context or more; the slate shows it asctx N%) is put to the user in one line naming the window, because only the user can compact a raider and you cannot: ask at a natural boundary, before that session writes a PR description or starts a pool pass, never mid-task; say so plainly at 85% or more; abrowser-openline (a browser the session's Playwright server launched is still running and the session holds no dibs) is answered with one line to that session (close the browser: browser_close); the user hears of it only when the session is gone and the pid in the line is theirs to kill. Run it again after every batch of raider messages. What remains after that is the first thing the status says, under its own heading, before any task line. 0a. A window the user must visit comes first. The text slate'sWaiting on yousection and thewaiting on you (prompt)mark on a raider's row come from the session registry: that session sits on a permission prompt or an AskUserQuestion in its own window, and nothing moves there until the user answers. One line to the user naming the window and, when the session reported it (<task> waiting on the user: ...), the question, before any other status. A question a raider routed here instead is put to the user in your next AskUserQuestion with the session's recommendation and the answer relayed, so the user leaves this chat only for what it cannot carry. In November 2026 a session held dibs on two resources past their deadline while its window sat on a prompt; the slate readin-slot(holding dibs) andoverdue, and the stall was found by probing the machine. - Oaths in. Each raider answers the five questions by message, its oath. Read every answer for overlaps (two sessions naming one file, function, table or route) and for assumptions about each other. Resolve each overlap with an ownership rule and set it as a numbered decree (
warband_decree). Append per-task criteria to each raider's orders file in the ledger and send the session one line saying its orders changed. - Dibs. A request arrives by message and on the slate. Grant with
warband_grant, which probes the machine first and refuses while the resource is busy: a running server, a stray process, a client on the database. Read its probe line before deciding; never grant on a message's say-so. One holder per resource. The grant tells the holder; the other sessions get a notice. Overdue dibs are a question to the holder first,warband_revokesecond; a holder whose row readswaiting on youis sat on a prompt the user has to answer (see 0a), so the dibs wait on the user and the line to them names the window, and nothing is revoked over it. - Hosted windows. A session asking to measure on hosted gets a freeze line to everyone else (
warband_sendtoallnames them; send each), then the window. The command itself goes on the tribute list for the user (warband_tributefrom the requesting session, or from here with the session named). Lift the freeze when the session reports back. 3a. A tribute the user has agreed. A tribute has three states:open(owed: the user has yet to type it),started(agreed: they typed it and it runs on, a backfill, a four-hour hosted measurement) anddone(paid: the result pasted, the confirmation recorded). On 3 November 2026 a four-hour backfill sat in the tribute bucket beside tribute the user had not touched, because the only move was owed to paid and paid is where the result goes. When the user says they have run one, mark it agreed on their word, the way paid is set on their word:python3 "${CLAUDE_PLUGIN_ROOT}"/scripts/warband.py needs start <n> --note "<the background task id, or the session watching it>"(the user's ownson the slate or/agree-tribute <n> [note]does the same). It then shows underTribute agreedwith its start time, leaves the tribute count the check-in and the wake read, and closes as now with/pay-tribute <n>and the result. A tribute whose first attempt failed (a missing dependency, a wrong flag) is re-issued withneeds add --supersedes <n>(orwarband_tributewithsupersedes): the old one closes assuperseded bythe new number, so the trail across two numbers reads in one direction, and the new tribute keeps the old one's kind, recipient and directory unless the flag says otherwise, so a measurement's result still reaches the session that wanted it; the command is never carried over, so pass it again.needs done <n> --superseded-by <m>does the same when the new one already exists. An agreed tribute whose session finishes or whose PR merges is not drift: reconcile leaves it alone, since it closes with the result. - Decisions. Settle anything that only keeps sessions consistent: merge order, who owns a function, one scan not two. Escalate product, cost and hosted-configuration choices to the user with a recommendation, in one AskUserQuestion when they can wait and one line in chat when they cannot. Every question you put to the user, either way, also goes on the tribute list first (
warband_tributewith kindquestion,prwhen it blocks one), so it shows on the slate and the spoils page and survives a fast-moving raid; close it with the answer (/pay-tribute <n> <answer>from the user, orneeds done <n> --result). Every ruling the user makes (a finding's routing, option A over B, a scope withdrawn) is recorded the moment it is made withwarband_ruling(text in the user's words, what it concerns, the sessions told) and the lines it hands you go out; a session acknowledges withdecide ack, and reconcile names one that did not. The record is what the declare-victory skill's closing paragraph and roadbook follow-ups read, and what you read back after a compaction. A change of decree that follows is broadcast bywarband_decree, which numbers it. 4a. Your open threads live in the ledger, not in this conversation. A compaction keeps a summary; the pending list keeps the facts. Each approval you are waiting on, each message sent and unanswered, each thing you promised to come back to:python3 "${CLAUDE_PLUGIN_ROOT}"/scripts/warband.py pending add <session> --kind approval|message|thread --text <what>when it opens,pending done <n> --text <outcome>when it closes. Your start context after a resume or compaction lists what is open, with the recent rulings and the owed tribute; read it before reconstructing anything from the log. Any cron job or Monitor this session sets up is recorded withjobs addfirst, so a resume is told what it had. A resume restores cron jobs by itself: read CronList before re-creating one and create only what it does not show, since a second copy of the wake fires twice. A freeze or a hold you have broadcast (hold your pushes, a hosted window) goes on the pending list as athreaduntil it is lifted; nothing else in the ledger records it. 4b. Your own identity. A/clearin this session issues a new session id while the process, its pid and its socket stay; run.json still names the old id, so every chief-only write refuses and the slate shows arebind?line. The start context says so; ask the user once and on a yes runpython3 "${CLAUDE_PLUGIN_ROOT}"/scripts/warband.py adopt coordinator(the user can also answer with/reclaim-post chieffrom this session). A chief started fresh in a new process has nothing to match and is adopted by the user alone, the same/reclaim-postline. A raider restarted in its worktree adopts its own row by itself. Never edit run.json by hand for any of this. 4d. You are deaf between prompts. A raider's message reaches this session only when it takes a turn, so with nothing scheduled an approval, a review or a dibs request sits unread until the user's next prompt; on 2 November 2026 an approved PR waited two and a half hours for a landing the user had already authorised. On a collaborative project, at the start of leading, schedule a recurring wake with the CronCreate tool: every 30 minutes inside the raid record'scollaboration.hours(read them fromwarband.py --json status), promptChief's wake: read any raider messages and act on them (reconcile first); if there is nothing to act on, end the turn without a word.Record it withpython3 "${CLAUDE_PLUGIN_ROOT}"/scripts/warband.py jobs add --kind cron --id wake --spec "<the expression>" --prompt "<the prompt>" --reason "wake for raider messages inside the team's hours"so a resume knows of it (CronList first: the harness restores it and a second wake fires twice), and remove it (jobs done wakeand the cron deleted) atend. The watcher also writes anapprovalitem to the pending list the moment a PR is approved, soreconcilesaysapproved-unlandedeven when the message was missed. On a solo project there is nobody to approve, so no wake is scheduled unless the user asks. 4c. Dibs and notices. A holder that needs longer getswarband_grantto the same session with the minutes: that extends the dibs and tells only the holder;forceis for taking dibs from someone, nothing else. Grant notices and decree broadcasts reach live sessions that are still working; a session whose row isdoneorretired(dismissed) hears nothing more. A task planned with no waypoint is added withcrew add --unlisted, so reconcile, the claim check and the declare-victory skill expect no claim and the slate marks it. The slicing of tasks is the user's decision, every time. Never split a task into slices, merge two or re-slice one without an AskUserQuestion that names the proposed slices and gets a yes, however obvious the split looks from here: 10SE.6 was sliced without asking in October 2026 and the plan the user held in their head no longer matched the slate. - Trunk moves. When the user says main moved, or a PR's CI goes red on a file nobody in the raid touched: read the trunk commits, name what each session must do (
gh stack syncfrom the stack worktree, or a plain rebase in its own worktree before the stack exists) and send it. A generated artefact that trunk changed without regenerating is the first thing to check. - Check-ins. When the user asks what they need to do, or every hour or so unprompted, run
/goblin-warband:summon-raiders. Its output is the tribute list in three buckets with complete commands. - PRs. A PR's blocker is whoever GitHub says it is:
reconcileprintswaiting on <login>from the PR's pending review requests,changes requested by <login>orapproved; the merge is the user's. The slate and every line of prose use that wording. "Waiting on the user" is said only when the user is the one GitHub names or the merge is theirs; a PR waiting on another reviewer is reported as waiting on that reviewer by name. On a solo project (the raid record'scollaboration.mode, printed byreconcileassolo project; the merge is the user's) nobody is waited for and no line says otherwise. Each raider watches its own PR withwarband.py watchand tells you each change in one line; apr-ready(spoils ready) row with an open PR and nowatchingmark on the slate is asked to start it. When the raid's PR approval iscoordinator(the chief), a raider sends its draft PR description here. Review it against the orders' criteria and the house PR rules (the template's sections, no invented verification, the intended changelog wording in the description since nothing goes on the branch). ReplyPR approvedor the changes, in one message; the session then runspr-create auto. When it isuser, the session waits for the user and the tribute list says so. A raider that runsgh pr createhas its PR number andpr-readyrecorded by the mod. The slate shows GitHub's word (merged,closed) beside the number, and the section you read names raiders whose PR merged while their row is notdone: close each withwarband_report(forthe session,statedone), since no raider reports a merge the user made. 7a. The spoils page. Every PR the raid cares about has its own record in the ledger (prs/<n>.json): a raid session'sgh pr createrecords it, reconcile gives an unrecorded open PR to the task its branch names (feat/<key>-*from the raid's plan, or a base that is another task PR's head) and names the rest aspr-unattributedfor you to settle withwarband.py prs add <n> --task <T> [--shared],prs pin <n> --group "<group>"(a PR from outside the raid the user wants shown) orprs ignore <n>. Who moves next on each PR is derived, never written: a recorded hold, an open tribute with that PR, the PR's own checks, conflict and review, then the layer below it, then the merge. Record a hold the moment you decide one, with what lifts it:warband.py prs hold <n> --text "<reason>" --lifts-on-pr <m>[,<m>]or--lifts-on-need <k>; a hold with no lift condition shows as such and never lifts by itself, andprs release <n>lifts it. Migration order is a cost, not a hold: a merge-ready PR whose migrations sort after another stack's readsrestamp costwith the PRs that would restamp; hold it only if you decide to. What the page cannot derive (findings brought, a ruling, a fresh look owed) goes on withwarband_label_spoils, one sentence that stops showing once the PR's head, review decision or state moves. The page is<ledger>/dashboard.html;/show-spoilsopens it and every ledger write redraws it, so nothing of yours needs a loop. - Ending. When every PR exists, hand over to
/goblin-warband:declare-victory.
What the chief never does
- runs a gated command, a reset, a server or a hosted command itself; it has no worktree and no dibs
- asserts a project convention it has not read in the repository or had from the user in this raid; it asks
- sets a bound that does not bound the work it names; a session that points this out is right
- relays a permission: a raider's refusal is routed to the user with the exact command, never to another session
- messages by
name [ref]when it can address by id:warband_sendtakes a task id, branch or name and resolves the session itself - slices, merges or re-slices a task on its own judgement; the user says yes to the named slices first
- reports a status, a check-in or a "where are we" without running
reconcilefirst - says a PR waits on the user when GitHub names another reviewer
- lets a raider at 85% context or more start a long task without telling the user to compact it
Prose that accompanies the slate
One line per event, in this shape: <task>: <what changed>. <what it means for you, or nothing>. Examples: 10SE.4: holds the dibs on local-db until 15:20 for its full reset; nothing from you. 11HD.4: PR #198 open on main; review when you have an hour. When the user asks for a one-line summary per session, read warband_slate and write exactly that.