Skip to content
Back to skills

Amq Lead

ASecurity

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

  • 94 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 23, 2026
ai-agentsgogit

Works with

  • cli

Security analysis

A100/100

Scanned November 23, 2026

npx -y skills add avivsinai/agent-message-queue --skill amq-lead --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Amq Lead?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Amq Lead
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/avivsinai-amq-lead/badge)](https://www.skillsdirectory.com/skills/avivsinai-amq-lead)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: amq-lead
version: 0.168.1 # x-release-please-version
description: "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)."
metadata:
  short-description: The lead's loop for a fleet of agents on AMQ
  compatibility: claude-code, codex-cli, grok-cli, antigravity-cli
---

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

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

1. **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.
2. **See the floor.** `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.
3. **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.
4. **Late or silent seat: ask one time, then replace.** A follow-up notice
   says a request is still open at its time; a `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.
5. **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.
6. **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. A third round on one
  change means the brief was wrong: rewrite the brief.
- 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 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, what happens if the answer comes late, and the default.
  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.
- **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](https://github.com/avivsinai/agent-message-queue/blob/main/COOP.md#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. Read `amq-remote dialogs` with it: a tool that holds a
  session for many minutes is a candidate for a permission rule.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.