amq-lead
Skill94 starsChanged 12 days agoMITView on GitHub
Lead an AMQ fleet when assigning work, checking stalled seats, reviewing a worker result, deciding whether to merge, running a retrospective, or escalating a decision to the owner. Not for sending one message (use amq-cli) or for reading the board alone (use amq-board).
In this repository5 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- amq-boardSkill
- amq-cliSkill
- amq-remoteSkill
- amq-specSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 8 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
Start with amq-board for a first look.
- Distinctive: line 37
Run it when a doorbell brings a report and before you end a turn.
- Distinctive: line 41
Owner first: Read new owner messages. Record each instruction where it stays: a task for work, a ruling for a decision.
- Very specific: line 80
When the work needs a review, the brief names the reviewer.
- Distinctive: line 86
When the work takes design, write the design yourself and brief the build.
- Distinctive: line 90
No person reads the code. So the builder never reviews its own work: you review it, or a seat that did not build it does, on another model …
- Distinctive: line 94
Read the diff, not the report.
- Distinctive: line 104
When you will act against the owner's words, write the decision record first, then act.
- Distinctive: line 143
No answer in that time: close it.
- Distinctive: line 151
Never stop a turn on a question when other work is ready.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AMQ lead
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.
Ask the published board
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.
The loop
Run it when a doorbell brings a report and before you end a turn. A lead that must also run with no event uses its harness's own schedule; AMQ starts no turn.
- Owner first. Read new owner messages. Record each instruction where it stays: a task for work, a ruling for a decision. Act on it before agent mail.
- See the floor.
amq-board sync, thenamq-board check. A scheduledcheck --notify lead,alt --as floortells both handles about each new incident. Thefloorsender 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_overduemeans no message towards the requester qualifies as news from that owner. Incidents retain identity through prose and example-card changes.amq thread openlists what is still owed and to whom. - Free seat, ready work: dispatch. Give the seat the highest-priority ready task with a brief (below). Do not start a new task to keep a seat busy when a started one waits for review: review first.
- Late or silent seat: ask one time, then replace. A follow-up notice
says a request is still open at its time; a
checkline 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 bindingsshows 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 wait that landed: release it. For each task that waits for something outside the queue (a review by a person, a deploy, another team), read that thing one time. Never report "it waits" from memory.
- Report what changed, to the owner, in two lines. Nothing changed: say nothing.
A brief
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.
Review and done
- No person reads the code. So the builder never reviews its own work: you review it, or a seat that did not build it does, on another model when one is there. What you built yourself goes to another seat. The owner gets outcomes and proof, never a diff to read.
- Read the diff, not the report. Run or read the real output.
- Findings go back in one message, as exact edits. Each finding names its origin (new, there before the change, or brought in by a fix) and the size of its remedy. A remedy larger than the change it protects is a design question, not a finding.
- A peer seat reviews the change first; after its GO, the gate reviewer for the area decides. Round two reviews only the fix diff and attacks what the fix changed; a third round never starts, you decide between shipping with a named known limit, a smaller scope, or a decision record or question by the door rule.
- When you will act against the owner's words, write the decision record first, then act.
- Merge only what you reviewed, on green checks that ran on that head. Say "GO" for one named change; a general "go" from anyone is not a merge order.
- Done is the user's path working, not a passed test. Close the task record yourself, with what was seen: that line is the proof the owner reads.
Decide on a clock
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".
- A question is one decision: the options with the cost of each, the one
you recommend and why (
context.decision.why), whether work waits on it, what happens if the answer comes late, and the default. Send it as--kind questiontouserwith the options in--context @decision.json(thecontext.decisionshape in the amq-cli message format), so the Inbox shows one card with one answer command per option. Send it with--follow-upof 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. - A two-way door — a decision that can be undone — you decide yourself
and record: one message of kind
decisionwhosecontext.decisioncarriesdecidedanddoor: two-way, withtask_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. - A one-way door — an action that cannot be undone — waits for the
owner: a question with
door: one-way(always blocking) andtask_ref: <task id>at the top level of the context. An agent never sendsdecidedon one; send and reply refuse it. - A decision only the owner can make is such a question or a bead of
type
decision, never a Backlog task: both wait on the owner in the Inbox. - A ruling is a question that you answer yourself first. Take it when
the work would stop and the action can be undone. Label it
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. - No default, ever, for an action that deletes, publishes, deploys, spends, or speaks for the owner. Ask with no follow-up time, say "no default", and work on something else.
- The owner answers where they like: in a chat, from the phone, or with a reply. The session that asked closes the question with the answer; a session that only heard it sends the answer and the question's ID to the one that asked. See Tell the owner on another channel.
- Never stop a turn on a question when other work is ready.
Limits you keep
- Started work before new work: finish, or stop it and say so.
- A task with nothing merged for a week: cut its scope or close it.
- Hand off your own session at a step boundary before its context is large: write the open tasks, rulings and waits where the next session reads them.
- Each two weeks, or after a bad day, run
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. Readamq-remote dialogswith it: a tool that holds a session for many minutes is a candidate for a permission rule.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

