ao-answer
Skill này làm gì
Skill này tìm các phiên lập trình AI đang bị kẹt chờ bạn. Skill hiển thị từng câu hỏi hoặc yêu cầu phê duyệt để bạn có thể trả lời ngay từ khung chat.
Khi nào nên dùng
- ✓Khi bạn muốn biết phiên agent nào đang chờ phản hồi của bạn.
- ✓Khi một agent hỏi bạn có đồng ý một thay đổi hoặc chọn một tùy chọn.
- ✓Khi bạn muốn agent xử lý các câu hỏi đang chờ theo những quy tắc bạn đã đặt.
Liên kết skill
https://github.com/OrchestratorInc/agent-orchestrator/blob/main/integrations/grok-bot/skills/ao-answer/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
“Tôi muốn xem hiện có gì đang chờ tôi trong các dự án AO của mình.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent kiểm tra từng máy để tìm các phiên đang chờ hoặc bị chặn, rồi liệt kê các câu hỏi đang chờ. Lựa chọn của bạn được gửi đến phiên đó đúng như bạn đã chọn.
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.
Follow the ao-rules skill. Its "Decisions" section says who may answer. Answers go straight to the worker, not through the orchestrator: the user's pick must arrive exactly as given.
1. Find what's waiting
On every host, in parallel:
f(){ <aoapi helper>
aoapi GET 'sessions?active=true' | python3 -c '
import json,sys,time,calendar
now=time.time()
for s in json.load(sys.stdin)["sessions"]:
st=(s.get("activity") or {}).get("state"); t=(s.get("lastEventAt") or "")[:19]
if st in ("waiting_input","blocked"): print("W", s["id"])
elif st=="idle" and t and now-calendar.timegm(time.strptime(t,"%Y-%m-%dT%H:%M:%S"))<86400: print("I", s["id"], s.get("lastEventAt"))' |
while read -r k id at; do
if [ "$k" = W ]; then
aoapi GET "sessions/$id/conversation" | python3 -c '
import json,sys
d=json.load(sys.stdin); found=False
for a in d.get("activities") or []:
if a.get("activityKind") in ("approval","user_input") and a.get("status")=="pending":
found=True; print(json.dumps({"session":sys.argv[1],"kind":a["activityKind"],"requestId":a.get("requestId"),
"summary":a.get("summary"),"decisions":a.get("decisions") or (a.get("detail") or {}).get("decisions"),"detail":a.get("detail")}))
if not found: print(json.dumps({"session":sys.argv[1],"kind":"reply"}))' "$id" 2>/dev/null
else
aoapi GET "sessions/$id/history?offset=0&limit=1" | python3 -c '
import json,sys,re
t=(json.load(sys.stdin).get("turns") or [{}])[0]; r=(t.get("agentResponse") or "").strip()
if re.search(r"\?[\s*_`)\]]*$", r): print(json.dumps({"session":sys.argv[1],"kind":"reply","lastEventAt":sys.argv[2],"asked":r[-300:]}))' "$id" "$at" 2>/dev/null
fi
done; }; f
Each line is one thing waiting:
kind |
What it is |
|---|---|
approval |
Permission to run a command or change files. summary and detail.input say what; decisions are the options [{id, kind, label}] |
user_input |
A question. detail.message asks it; detail.schema.properties are the fields, with choices in enum or oneOf |
reply |
The agent asked in plain text: a session that waits with no request (or a terminal session), or an idle session from the last 24 hours whose last reply ends with a question (asked holds its end). Read its last reply (ao-status "One session in detail") |
In the AO waiting check routine: keep what you already showed in ~/.ao-grok/shown.txt on via, one line per item (<host> <session> <requestId>, or <host> <session> reply <lastEventAt> for a reply), and message only about new items. Send nothing when nothing new is waiting.
2. Show it
Per session, one short briefing first: <host>/<session> and its name, what it is doing, and what it asks, in one or two sentences. Don't recommend anything. Then:
approval: the command or change verbatim, the risk you judge (ao-rules), and thedecisionslabels exactly as options in one card. Mark a decision whosekindisallow_alwaysas "changes this agent's permissions for good".user_input: one card with every question in it, in order (the card pages through them). A field withoneOforenumis a question: use theoneOftitles orenumvalues as its options, exactly. A field whose_meta._askUserQuestionCustomAnswer.questionIdnames another field is that question's "Other" box: show it as a typed-answer option on that question, not as its own question. Any other free-text field is a question with a typed answer.detail.inputModeurlcan't be answered from chat: tell the user to open AO.reply: the agent's question from its last reply, with options if it gave clear ones, else ask for a typed answer.
Several sessions at once: explain them together, then cards per session.
3. Answer
On the owner host, from its via computer:
- Approval:
aoapi POST "sessions/<id>/conversation/approvals/<requestId>/resolve" "$(python3 -c 'import json,sys; print(json.dumps({"decisionId":sys.argv[1]}))' '<decision id>')" - Question:
contentmaps each field name to the pick. For a picked option use itsoneOfconst(or theenumvalue), not the title. For a typed "Other" answer, put the text under the "Other" field (for examplequestion_0_custom) and leave its question out:aoapi POST "sessions/<id>/conversation/inputs/<requestId>/resolve" "$(python3 -c 'import json,sys; print(json.dumps({"action":"accept","content":json.loads(sys.argv[1])}))' '{"<field>":"<pick>"}')"The user says no or skip: `{"act
Câu hỏi thường gặp
Nó có tự trả lời thay tôi mà không hỏi không?
Chỉ khi bạn đã đặt quy tắc cho việc đó, chẳng hạn chế độ vắng mặt hoặc các phê duyệt thường trực.
Câu trả lời của tôi có bị thay đổi trước khi đến agent không?
Không. Lựa chọn của bạn được gửi tới worker đúng như bạn đã đưa ra.
Còn phiên không hoạt động đã hỏi một câu thì sao?
Skill cũng liệt kê các phiên không hoạt động trong ngày qua mà phản hồi cuối cùng có hỏi bạn điều gì đó.
Chi tiết
Mô tả gốc của tác giả
Find AO sessions that wait on the user, show each question or approval as tap-to-answer options, and send the answer back to that session, following ao-rules "Decisions" (default, away mode, standing approvals). Use for "what's waiting on me", "answer <session>", "approve it", the AO waiting check routine, and away mode.
Độ phổ biến
- Sao GitHub
- 14k
- Vị trí xếp hạng
- #11261
- Giấy phép
- Apache-2.0
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
using-ao
14kCung cấp cho agent của bạn hướng dẫn về công cụ dòng lệnh AO để khởi chạy worker, quản lý phiên và tạo các tác vụ tái sử dụng.
ao-actions
14kCho phép agent của bạn thao tác trên một phiên AO hoặc một pull request, như dừng, tiếp tục, merge PR hoặc gửi các tệp của nó.
ao-orchestrator
14kGiúp agent của bạn gửi yêu cầu tới orchestrator của dự án AO, chờ phản hồi và chuyển phản hồi đó lại cho bạn.
ao-rules
14kThiết lập các quy tắc an toàn chung và bước kết nối mà các skill AO khác tuân theo, để agent của bạn xử lý phiên trên đúng máy.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.