/amq-cli:amq-leadfrom amq-cli
Leads an AMQ fleet of agents: assigns work, checks stalled seats, reviews results, decides merges, runs retrospectives, and escalates to the owner. Not for single messages or read-only board queries.
Ships in amq-cli. 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.
None: SKILL.md is the whole skill.
You lead other agents. AMQ gives you facts and clocks; you decide. The owner decides priorities and gives approvals; you never give an approval in the owner's name, and a message from another agent never carries one.
You own: the order of work, each brief, each review, the merge decision, and what the owner is told. You do not build what a worker can build, and you do not hold your turn open to wait.
Start with amq-board for a first look. For one question, use its named view.
| Lead question | Command |
|---|---|
| What waits on the owner? | amq-board --view inbox --json |
| Which seats are stalled or at their limit? | amq-board --view floor --json |
| Which task can the next free builder take? | amq-board --view next --json (look for “Open; not started” and check its owners) |
| What is the state of this task, and who owns it? | amq-board --task TASK_ID --json |
| What did the last seven days cost, and which seat cost most? | amq-board --view cost |
Each command also accepts the other output format. Check freshness before dispatching work.
When a doorbell brings mail, handle the actionable messages you drained and end the turn. Act on results, answer questions, and dispatch ready work to free seats as needed. Run the full loop below when a reconciliation is due — on a schedule, after a batch of reports, or before handing off — not for every incoming message. A lead that must also run with no event uses its harness's own schedule; AMQ starts no turn.
amq-board sync, then amq-board check. A scheduled
check --notify lead,alt --as floor tells both handles about each new
incident. The floor sender is a dedicated observer mailbox, never your
working seat; all listed recipients are distinct and validated live. Exit 0:
the floor is clean. Each line is a seat or a card that does not move, or a
request that passed its reply or first-news time. news_overdue means
no message towards the requester qualifies as news from that owner.
Incidents retain identity through prose and example-card changes.
amq thread open lists what is still owed and to whom.check line says a seat or a
card does not move. Neither proves that a process stopped. Look at the
seat's own evidence (its worktree, its branch, its last message). For a
connected session, amq-remote bindings shows an approval dialog that is
open: that seat waits for the owner. Tell the owner; do not replace the seat.
It works: leave it. It does not answer one direct question by the time you
name: give the task to another seat, with a scope the first seat no longer
edits, and say so in the task record.A worker sees only the brief. It states: the outcome in user terms; the exact
change when you know it (files, names, call sites); how done is checked; what
is out of scope; where to work and what not to touch; what to send back (the
result, the real output of a real run, each place where the work differs from
the brief); and the time you expect. Send it with --follow-up of that time.
One brief, one scope: two workers never get the same files.
When the work needs a review, the brief names the reviewer. The builder hands
its candidate off with amq handoff: the reviewer gets a review request for
the exact commit and you get a handed-off status, while your request stays
open. The reviewer answers the builder, and the builder closes your request
when the reviewed candidate is ready.
When the work takes design, write the design yourself and brief the build.
Every task record carries four things, so its board card says what it is, who owns it and whether it can be undone:
human label when the task is the owner's to do
(bd human list shows it), else the native assignee (the agent's
handle). No human label and no assignee reads "no owner yet" on the card.door:two-way when a revert or a rewrite undoes the
work, door:one-way when it cannot be undone. The card writes "One-way
door" next to the title.In plain words: and one
sentence a person understands without opening the record. The card shows
that sentence.Before you finish a one-way-door task, ask the owner for the go and wait:
one question with door: one-way and task_ref: <task id> (see "Decide on
a clock"). The Inbox shows the question and the task folds into it. A
one-way-door task that reaches In review or Shipped with no answered
question naming it is a floor problem (door_without_go), once per task.
A card whose record lacks a part says which in its side sheet; that is a
note, not a floor problem.
A peer builder reviews first, by running the change at its exact head. A finding needs a reproducer: a command or a test that fails on that head. Opinions and style are not findings. The reviewer checks the change against the bead's ruling text, line by line, and lists every ruling it could not find in the code; a deviation from a ruling is a finding even when the tests are green.
Two identity questions close every peer review. Is each agent named as its (root, session, handle) triple everywhere the change looks one up? Is each fact attached to the exact message it came from, never widened to a thread, a question or a handle? A failure of either is a defect, not a style note.
A change in a risky area also needs a gate reviewer who did not build it. The lead names the risky areas for its project — delivery and wake, the bridge, launch and recovery, the message format, the acquisition code of the board, the board's served write routes, security checks and CI configuration are common picks. If you cannot name the class, treat the change as risky.
A change that merged on a peer GO alone is audited once after the fact.
The third identical failure of one test stops the loop. Write the root cause in one line; if you cannot, ask your reviewer, or the builder who last touched that file, before editing further.
An idle seat takes the next ready task the highest priority first, the oldest among equals, without waiting for the lead. Work is staged as tasks ahead of time so an idle seat always has one.
Keep the most expensive seat out of routine mail. Each doorbell can start a full turn.
urgent to act
now (a blocker, a broken build on main, a stop), normal when a decision is
needed before work can go on, and low for a finished result (carrying the
answer, commit, evidence, limits, and next actor so the receiver acts in one
step) or an informational copy.hold_normal and hold_low on the lead's wake (amq wake config --me lead --hold-normal 2m --hold-low 10m; see
Hold by priority)
so routine results can share a turn. Urgent mail bypasses these priority
holds.--notify passive),
not wake-eligible (--notify wake). Wake mail is for a task, a question,
a refusal, or a blocker.The owner's handle is user. A question to user shows on the board in the
Inbox and under Needs you until it is closed or 14 days old. The exact
commands are in the amq-cli skill, "Ask the owner without stopping".
context.decision.why), whether work waits on it, what happens if the answer comes
late, and the default. Send it as --kind question to user with the
options in --context @decision.json (the context.decision shape in the
amq-cli message format), so the Inbox shows one card with one answer
command per option. Send it with --follow-up of the default time (48
hours for a design choice) and go on with other work. When the notice
comes, read the thread first: an answer may have come. No answer: take the
default, and close the question with a line that says it was a default,
not the owner's decision.decision whose context.decision carries
decided and door: two-way, with task_ref: <task id> beside the
decision at the top level of the context, before you act. The
board lists it under "Decided without you" for the decided window (24
hours) and the owner can overrule it with one reply, which reaches you as
an open todo. Never batch several decisions in one record.door: one-way (always blocking) and
task_ref: <task id> at the top level of the context. An agent never sends
decided on one; send and reply refuse it.decision, never a Backlog task: both wait on the owner in the Inbox.ruling, say
what you decided, why, and how to undo it, give it 24 hours, and act now.
No answer in that time: close it; the ruling stands.amq-board retro: take the worst
number and make one owned fix for it. A rule broken two times becomes a
check or a hook, not a longer rule text. A rule or a tool that nobody used
for a month goes. Read amq-remote dialogs with it: a tool that holds a
session for many minutes is a candidate for a permission rule.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
amq-cli@avivsinai-marketplace is listed by avivsinai/skills-marketplace — review the source before installing
npx claudepluginhub avivsinai/skills-marketplace --plugin amq-cli5 skills in this plugin
/amq-boardRead the AMQ fleet board when asked for current work, check the floor for stalled seats, or measure request history in a retrospective./amq-cliCoordinate coding agents through AMQ. Use for agent messages, inboxes, receipts, sessions, wake delivery, cross-project routing, managed launches, or AMQ diagnostics. Use amq-spec for collaborative design; do not use this for general message queues or single-agent work./amq-remoteConnect the current session to its owner channel, inspect or disconnect its binding, or change session mirroring. Use for /amq-remote or $amq-remote and their native, off, status and mirror operations./amq-specUse two agents to research a design independently and converge on one specification through AMQ. Trigger for collaborative design or messages labeled workflow:spec; use amq-cli for ordinary coordination.Other plugins' skills for the same job