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.md

GitHub

Goblin 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

  1. 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", run python3 "${CLAUDE_PLUGIN_ROOT}"/scripts/warband.py reconcile and act on each drift line first: a merged or closed PR's row goes to done with warband_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>, or warband.py needs done <n> from here); a missing trail (the roadbook at the trunk, or the PR's branch, carries no started for the waypoint) goes to the user as a tribute with the goblin-scout:start-trail command; an unlisted line is information rather than drift and needs nothing; a roadmap-stale line (a raider's PR merged while its waypoint still reads todo on the roadbook at the trunk) is answered by running /goblin-scout:tend-roadbook from 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; an approved-unlanded line (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 unheld approved-unlanded lines 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_ruling record) have not held landings back; when they have, hold the PR with warband.py pending hold <n> --text "<why>" (reconcile then says approved-held with the reason) and warband.py pending release <n> once it can land; an approved-stale line (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; an unretired line (a merged task's worktree still on disk an hour on) is answered with python3 "${CLAUDE_PLUGIN_ROOT}"/scripts/warband.py retire <task> from here, --dry-run first the first time on a machine, and a refusal that names running processes becomes a tribute the user already has on the list; a watch-dead line (a watcher that reads watching and has no process) gets one line to that session to re-arm it; a session reopened with claude --continue sits 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>"; a context-high line (a live raider at 70% context or more; the slate shows it as ctx 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; a browser-open line (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's Waiting on you section and the waiting 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 read in-slot (holding dibs) and overdue, and the stall was found by probing the machine.
  2. 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.
  3. 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_revoke second; a holder whose row reads waiting on you is 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.
  4. Hosted windows. A session asking to measure on hosted gets a freeze line to everyone else (warband_send to all names them; send each), then the window. The command itself goes on the tribute list for the user (warband_tribute from 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) and done (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 own s on the slate or /agree-tribute <n> [note] does the same). It then shows under Tribute agreed with 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 with needs add --supersedes <n> (or warband_tribute with supersedes): the old one closes as superseded by the 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.
  5. 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_tribute with kind question, pr when 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, or needs 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 with warband_ruling (text in the user's words, what it concerns, the sessions told) and the lines it hands you go out; a session acknowledges with decide 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 by warband_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 with jobs add first, 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 a thread until it is lifted; nothing else in the ledger records it. 4b. Your own identity. A /clear in 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 a rebind? line. The start context says so; ask the user once and on a yes run python3 "${CLAUDE_PLUGIN_ROOT}"/scripts/warband.py adopt coordinator (the user can also answer with /reclaim-post chief from this session). A chief started fresh in a new process has nothing to match and is adopted by the user alone, the same /reclaim-post line. 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's collaboration.hours (read them from warband.py --json status), prompt Chief'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 with python3 "${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 wake and the cron deleted) at end. The watcher also writes an approval item to the pending list the moment a PR is approved, so reconcile says approved-unlanded even 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 gets warband_grant to the same session with the minutes: that extends the dibs and tells only the holder; force is for taking dibs from someone, nothing else. Grant notices and decree broadcasts reach live sessions that are still working; a session whose row is done or retired (dismissed) hears nothing more. A task planned with no waypoint is added with crew 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.
  6. 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 sync from 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.
  7. 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.
  8. PRs. A PR's blocker is whoever GitHub says it is: reconcile prints waiting on <login> from the PR's pending review requests, changes requested by <login> or approved; 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's collaboration.mode, printed by reconcile as solo project; the merge is the user's) nobody is waited for and no line says otherwise. Each raider watches its own PR with warband.py watch and tells you each change in one line; a pr-ready (spoils ready) row with an open PR and no watching mark on the slate is asked to start it. When the raid's PR approval is coordinator (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). Reply PR approved or the changes, in one message; the session then runs pr-create auto. When it is user, the session waits for the user and the tribute list says so. A raider that runs gh pr create has its PR number and pr-ready recorded 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 not done: close each with warband_report (for the session, state done), 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's gh pr create records 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 as pr-unattributed for you to settle with warband.py prs add <n> --task <T> [--shared], prs pin <n> --group "<group>" (a PR from outside the raid the user wants shown) or prs 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, and prs release <n> lifts it. Migration order is a cost, not a hold: a merge-ready PR whose migrations sort after another stack's reads restamp cost with 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 with warband_label_spoils, one sentence that stops showing once the PR's head, review decision or state moves. The page is <ledger>/dashboard.html; /show-spoils opens it and every ledger write redraws it, so nothing of yours needs a loop.
  9. 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_send takes 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 reconcile first
  • 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.