queue-handoff
What it does
This skill guides an AI agent in handing work to another agent or a human through OpenRig's queue, so nothing is left in chat or without an owner. It is for teams of agents that work across many turns.
When to use it
- βWhen you are ending a turn on work that still has a next step.
- βWhen you are blocked on another agent's work and need to wait for it.
- βWhen you need to escalate something to a human as a tracked item.
Skill link
https://github.com/mvschwarz/openrig/blob/main/packages/daemon/assets/plugins/openrig-core/skills/queue-handoff/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βI have finished the parser part. Pass the next step to the reviewer through the queue with the notes they need.β
5 new skills a week. 1 minute to read.
How it works
It creates or updates a durable queue item with the owner, state and next step, so the receiver is woken and the work is not lost.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Queue Handoff
Durable work handoff via queue items. Lets the system keep moving through compactions, missed messages, and interruptions by passing the ball forward instead of leaving work suspended in chat or in-flight without an owner.
Use this when
- Ending a turn on substantive work. Active work should end by passing the ball to an owner or to the human β never by going idle with the rig appearing dormant.
- Finishing a slice that has a clear next step. Default-nudge: receiver gets a wake-ping plus the durable queue item.
- Blocked on another agent's work. Use
rig queue block <id> --on <child>(orrig queue update <id> --state blocked --blocked-on <child>). The item stays active and returns to pending when its blocker completes. Waiting on something outside the queue, such as CI or a long job? Park the row:rig queue block <id> --on external:<what> --wake-after <duration> --continuation "<what resumes>". It stays yours and reads parked, not stalled, and the timer wakes you. - Escalating to the human. Make the escalation a durable attention item, not just a chat message.
Don't use this when
- The work is genuinely complete and there's no follow-on owner. Use
closure_reason: no-follow-on(terminal completion) orcanceled/deniedas appropriate. - The handoff would be too small and turn work into bureaucracy. Bundle the work into a coherent slice instead of decomposing every step.
- The handoff would be too broad and lose ownership/proof/closure criteria. Shape the qitem so the receiver knows the expected next action and closure evidence.
The hot-potato terminal-turn-rule
Active work ends by passing the ball to a named next owner or to the human. The qitem state machine enforces this:
pending β in-progress β done requires closure_reason from one of:
handed_off_toβ work continues at a different seat (target = new owner)deniedβ receiver rejected the workcanceledβ sender or receiver withdrewno-follow-onβ terminal completion, nothing else neededescalationβ kicked up to a higher tier (target = escalation target)supersededβ replaced by another qitem (target = successor qitem id)
Two of those (handed_off_to, escalation) additionally
require closure_target. The daemon enforces this at the domain layer;
every surface (CLI, MCP, future UI) inherits the same guarantee.
done is terminal. closure_reason: blocked_on is valid only on an active
state=blocked park record, as used by workflow writers; combining it with
state=done is rejected. Use the block command above to wait on another qitem.
The drafted-park failure (draft β throw). The rule is about the actual pass, not the
intention to pass. A turn that ends with a self-instruction typed into your own prompt but left
unsent β a drafted go-ahead, a next-atom note you never sent β has not handed off; it has
parked, and the seat sits idle for as long as nobody notices. Drafting the handoff feels like
doing it; it isn't. Your last act on a turn must be an EDIT or a SEND β a committed change, a
rig send, a rig queue handoff β never a drafted prompt line left in the buffer. If your
final output is an instruction addressed to yourself, you haven't ended the turn, you've stalled it.
The dispatcher's other half β supersession closes your own outbox. Ending your turn cleanly is only half the rule; the other half fires when you move the world. When a phase transition or a fold receipt supersedes work you dispatched, close those dispatches yourself β with a citation to the event that superseded them. Closure-on-supersession belongs to the dispatcher, never the receiver. Make it a habit: after every fold receipt / phase transition, run an outbox audit β which of my open dispatches did this just make moot? β and close them with the citation.
Why it must live with you: stale dispatch-debt is invisible to the dispatcher because it lands on someone else's queue β the cost is externalized, so no feedback loop ever fires to make you clean it up. The receiver inherits debt they did not create and must burn cycles verifying it before they can hold cleanly; a queue full of stale-pending makes check-before-holding β the discipline you most want cheap β expensive, and it degrades the idle-detector's signal (a real owner looks the same as a stale dispatch). Close it at the source: the moment your own transition mo
FAQ
Does the receiver get woken up?
By default, the receiver gets a wake-up ping along with the durable queue item.
Why not just send a chat message?
The skill says a chat message can be missed, while a queue item stays durable and has an owner.
What if the work is finished?
If it is complete with no follow-on owner, the skill says to close it as complete instead of handing it off.
Details
Original description by the author
Use when ending a turn, finishing a slice, blocked on another agent's work, or escalating to a human β durable work handoff via queue items so the system keeps moving across compactions, missed messages, and interruptions. Covers the hot-potato terminal-turn-rule (active work ends by passing the ball, not by going idle), default-nudge semantics, and when `--no-nudge` is appropriate for intentional cold park or human gate.
repo: mvschwarz/openrig
Popularity
- GitHub stars
- 8.6k
- Ranking position
- #12394
- License
- Apache-2.0
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
agent-operated-software
8.6kHelps your agent design, build or debug an ongoing app whose live backend includes AI agents, such as a Markdown or JSON agent control plane.
agent-operated-workflows
8.6kHelps your agent decide whether a bounded procedure should be run by an AI agent or by ordinary code, and how to resume it from verified evidence.
applying-a-permission-policy
8.6kHelps your agent set up the command permissions an AI coding agent uses during team setup, so routine commands run with fewer approval prompts.
claude-compaction-restore
8.6kHelps a Claude Code agent rebuild its working picture after its context is compacted, using a saved restore map, its transcript and the files it touched.
Similar skills
knowledge-automation
394kHelps your agent set up a recurring job that brings new content into your Knowledge vault on a schedule, then checks that the job runs.
knowledge-source-ingest
394kHelps your agent keep a Knowledge vault current with new items from chat channels, feeds, or mailboxes, without re-adding what it already has.
benchmark
280kHelps your agent measure code speed and performance. It's useful for ensuring things are fast and finding slowness issues.