Chuyển đến nội dung
Skillpedia
Tự động hóa8.6k · #12394

queue-handoff

Skill này làm gì

Skill này hướng dẫn agent AI giao công việc cho agent khác hoặc cho người qua hàng đợi của OpenRig, để không còn gì nằm lại trong chat hoặc không có chủ. Skill dành cho các đội agent làm việc qua nhiều lượt.

Khi nào nên dùng

  • ✓Khi bạn kết thúc một lượt làm việc mà vẫn còn bước tiếp theo.
  • ✓Khi bạn đang bị chặn bởi công việc của agent khác và cần chờ.
  • ✓Khi bạn cần chuyển một việc cho con người dưới dạng mục có theo dõi.

Liên kết skill

https://github.com/mvschwarz/openrig/blob/main/packages/daemon/assets/plugins/openrig-core/skills/queue-handoff/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/mvschwarz/openrig/blob/main/packages/daemon/assets/plugins/openrig-core/skills/queue-handoff/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tôi đã xong phần parser. Chuyển bước tiếp theo cho người rà soát qua hàng đợi, kèm ghi chú họ cần.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill tạo hoặc cập nhật một mục hàng đợi bền vững với chủ sở hữu, trạng thái và bước tiếp theo, để người nhận được đánh thức và công việc không bị mất.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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> (or rig 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) or canceled/denied as 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 work
  • canceled — sender or receiver withdrew
  • no-follow-on — terminal completion, nothing else needed
  • escalation — 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

Câu hỏi thường gặp

Người nhận có được đánh thức không?

Mặc định, người nhận nhận được một ping đánh thức cùng với mục hàng đợi bền vững.

Sao không chỉ gửi tin nhắn chat?

Skill nói tin nhắn chat có thể bị bỏ lỡ, còn mục hàng đợi thì bền vững và có chủ sở hữu.

Nếu công việc đã xong thì sao?

Nếu đã hoàn tất mà không có chủ sở hữu tiếp theo, skill yêu cầu đóng mục là hoàn thành thay vì chuyển giao.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
8.6k
Vị trí xếp hạng
#12394
Giấy phép
Apache-2.0
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự