operator-approval-loop
Skill này làm gì
Hệ thống này đảm bảo các tin nhắn quan trọng do AI agent soạn cho người khác được con người xem xét và phê duyệt trước khi gửi. Nó lưu lại mọi thứ đã gửi và ai đã phê duyệt.
Khi nào nên dùng
- ✓Khi một AI agent soạn câu trả lời cho khách hàng hoặc đối tác.
- ✓Khi bạn cần ghi lại chính xác ai đã phê duyệt từng tin nhắn.
- ✓Khi bạn muốn ngăn các tin nhắn sai hoặc trùng lặp được gửi đi.
Liên kết skill
https://github.com/affaan-m/ECC/blob/main/skills/operator-approval-loop/SKILL.mdSao 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
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Vui lòng xem xét và phê duyệt tin nhắn này cho khách hàng về tình trạng đơn hàng của họ.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Khi một tin nhắn được tạo, nó được lưu như bản nháp và được đánh dấu để xem xét. Con người xem bản nháp, phê duyệt hoặc từ chối. Nếu được phê duyệt, hệ thống ghi lại ai đã duyệt và khi nào, đảm bảo tin nhắn được gửi đi đúng là tin đã duyệ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.
Operator Approval Loop
An agent that talks to external counterparties should never send on its own judgment and should keep the operator informed internally. This skill defines the contract: every outbound draft is filed as an obligation, an operator decides on the exact text, and a delivery ledger proves what went out.
When to Use
- An agent drafts replies to customers, suppliers, investors, or partners in a shared channel, email, or chat, and a human must approve before send.
- You need an audit trail that links each sent message to the exact draft text, the operator who approved it, and the decision time.
- You have seen a stale approval release a rewritten draft, or two workers deliver the same approved message twice.
- Drafts keep re-asking counterparties for facts the ledger already holds.
How It Works
Objects
| Object | Meaning |
|---|---|
| Obligation | One thing we owe a counterparty. Status moves drafted, then approved or rejected, then sent. Carries direction, counterparty, channel, and an updated_at epoch. |
| Draft | Sidecar row holding the exact draft text, a sha256 of that text, origin coordinates (platform, channel, thread, user), and priority (P0 to P3). One per obligation, replaced on re-file. |
| Decision | An operator's approve or reject, recorded with the operator id, a nonce, and the draft epoch it was made against. |
| Approval snapshot | Immutable text, hash, epoch and destination recorded by the already-authorized decision writer. Missing snapshots cannot grant dispatch. |
| Claim | Durable reservation with a random token and state; at most one active claim per obligation. |
| Delivery | Ledger row proving one send or notice for one (obligation, decision) pair. |
The reference schema is in references/approval-ledger.sql.
Filing a draft
- Clean inputs. Strip control characters, collapse whitespace in single-line fields, and enforce length caps (draft, summary, context, counterparty). Empty or oversized fields are refused, not truncated silently.
- Run the baseline gate (below). It may refuse the filing.
- Hash the draft text with sha256. The hash prefix goes into the summary so the approval panel shows which text it is approving.
- Upsert. If an open drafted obligation already exists for the same
(counterparty, channel), replace the draft sidecar and advance the
obligation's
updated_at. That advance is the epoch rotation: any decision keyed to the old epoch can no longer release the new text. Otherwise insert a new obligation with statusdrafted. - Route the filing receipt only to a configured, verified internal ops destination. If the origin is that internal destination, acknowledge there. Never-silent means internal reporting, not an automatic external reply. Keep draft hashes, approval status, operator identity and workflow metadata out of counterparty-visible channels. Unknown or unclassified origins stay quiet; a direct message is not automatically internal.
If a verified internal destination is unavailable, retain the filing result in the internal tool result or operator surface. Never fall back to an external or unknown origin. A tool result exposed to outsiders is not an internal surface.
Filing a draft does not authorize an external response. Any policy-permitted clarifying question or neutral response is a separate outbound decision, subject to the existing mention, channel, draft-only, frozen and never constraints in counterparty-channel-discipline. It must not disclose internal approval metadata.
Baseline gate
Before any draft is filed, query the current baseline for the counterparty (a temporal ledger, contract store, or CRM):
- Signed or delivered contract on record: refuse the filing with the evidence and a recommendation. Asking a counterparty about specs after signing is the exact failure this gate exists to stop.
- Operator override:
force_despite_signed_contractlets the filing through and stamps[BASELINE_OVERRIDE_SIGNED_CONTRACT]into the draft context. - Gate service unreachable: the filing proceeds and the context is stamped
[BASELINE_CHECK_UNAVAILABLE]. The panel sees that the guard was off. Failures never silently disable the gate. - When facts are available, attach the freshest few to the context as a
[BASELINE FACTS: ...]digest so the draft lands with current truth.
Deciding
…
Câu hỏi thường gặp
Điều gì xảy ra nếu nội dung bản nháp thay đổi sau khi đã được phê duyệt?
Nếu bản nháp thay đổi sau khi duyệt, nó cần được xem xét và phê duyệt lại. Điều này đảm bảo tin nhắn cuối cùng là tin mà con người thực sự đã đồng ý.
Hệ thống ngăn tin nhắn giống nhau bị gửi hai lần bằng cách nào?
Hệ thống lưu lại mọi tin nhắn đã gửi và đã duyệt. Trước khi gửi, nó kiểm tra xem một tin nhắn giống hệt đã được gửi dựa trên phê duyệt tương ứng hay chưa.
“Baseline gate” là gì?
Đó là kiểm tra ban đầu, xem thông tin hiện có về người nhận (như hợp đồng đã ký) trước khi cho phép tạo bản nháp. Điều này ngăn agent hỏi những thông tin lẽ ra đã được biết.
Chi tiết
Mô tả gốc của tác giả
Operator approval contract with internal filing notices for agent-drafted outbound messages, hashed drafts, epoch-keyed decisions, durable delivery claims and receipts, and a pre-draft baseline gate. Use when an agent drafts messages to external counterparties and a human operator must approve, reject, or steer each send before it leaves.
repo: affaan-m/ECC
Độ phổ biến
- Sao GitHub
- 280k
- Vị trí xếp hạng
- #371
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
accessibility
280kGiúp agent của bạn tạo giao diện mà ai cũng dùng được, đảm bảo website và app hoạt động tốt với người khuyết tật như người mù hoặc khó vận động.
agent-architecture-audit
280kGiúp agent của bạn kiểm tra xem mọi thứ có hoạt động đúng không, đồng thời tìm và sửa các lỗi trong hệ thống AI để chúng chạy như mong đợi.
agent-eval
280kGiúp agent của bạn so sánh các công cụ lập trình AI khác nhau, đo xem công cụ nào nhanh hơn, rẻ hơn và đáng tin cậy hơn cho từng tác vụ.
agent-harness-construction
280kGiúp agent của bạn hiểu rõ hơn cách thực hiện tác vụ, tối ưu các công cụ và chỉ dẫn mà agent dùng để tăng khả năng thành công.
Skill tương tự
discord-user-post
394kCho phép agent của bạn đăng tin nhắn đã duyệt lên Discord dưới tên bạn qua app Discord trên máy tính, sau khi xác nhận đúng kênh.
configure-channel
394kHướng dẫn agent của bạn kết nối một ứng dụng chat như Telegram với OpenClaw, lưu token bot an toàn và kiểm tra tin nhắn có đi qua được không.
discord
394kGiúp agent của bạn đọc, gửi, sửa và thả biểu cảm cho tin nhắn Discord qua OpenClaw, và kiểm tra đúng tin nhắn trước khi thay đổi.