ao-actions
Skill này làm gì
Skill này xử lý các thao tác đơn lẻ trên một phiên Agent Orchestrator hoặc một pull request. Skill dành cho người chạy AO và muốn điều khiển một tác vụ cụ thể ngay trong khung chat của mình.
Khi nào nên dùng
- ✓Khi bạn muốn dừng một phiên đang còn chạy.
- ✓Khi bạn muốn merge một pull request đã hoàn thành do AO tạo ra.
- ✓Khi bạn muốn xem ảnh chụp màn hình trình duyệt hoặc các tệp mà phiên đã tạo ra.
Liên kết skill
https://github.com/OrchestratorInc/agent-orchestrator/blob/main/integrations/grok-bot/skills/ao-actions/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 dừng phiên đang xây trang thanh toán rồi merge pull request của phiên đó.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent tìm phiên, sau đó chạy thao tác AO tương ứng trên máy đang sở hữu phiên đó. Các thao tác làm thay đổi, như kết thúc phiên hoặc merge, sẽ chờ bạn đồng ý.
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. Find the session first (ao-rules "AO hosts": <host>/<session id>). Run each action on the owner host from its via computer. "Yes" means the user's yes for that exact action in this chat.
| Ask | Do | Yes needed | Hosts |
|---|---|---|---|
| Stop what it's doing now | aoapi POST "sessions/<id>/conversation/interrupt" |
No | All |
| End the session | aoapi POST "sessions/<id>/kill" '{}' |
Yes | All |
| Resume an exited agent | aoapi POST "sessions/<id>/resume-agent" '{}' |
No | All |
| Restore an ended session | aoapi POST "sessions/<id>/restore" '{}' (an ended orchestrator can't come back while its project has another live one) |
Yes | All |
| Merge a PR | see "Merge" | Yes, per PR | All |
| Start AO's reviewer on a session's PR | ao review trigger <id> |
Yes | Local |
| Screenshot a session's browser | see "Screenshot" | No | Local |
| A session's files | see "Files" | No | Local |
| Keep the host awake | see "Keep awake" | Yes | Local |
| Recurring agent work | see "Automations" | Yes | Local |
| Start one worker directly | aoapi POST sessions '<json>' with projectId, displayName, prompt |
Yes | All |
For an action marked Local on a remote host, ask that host's orchestrator to do it (ao-orchestrator).
Start a worker directly only when the project has no orchestrator and the user doesn't want one (ao-rules "orchestrator first").
Merge
First show the PR and ask:
f(){ <aoapi helper>; aoapi GET "sessions/<session id>/pr" | python3 -c '
import json,sys
for p in json.load(sys.stdin).get("prs") or []:
if str(p.get("number"))==sys.argv[1]: print(json.dumps({"url":p.get("url"),"headSha":p.get("headSha"),"state":p.get("state"),
"ci":(p.get("ci") or {}).get("state"),"review":(p.get("review") or {}).get("decision"),"mergeability":(p.get("mergeability") or {}).get("state")}))' '<pr number>'; }; f
Tell the user the link, checks (ci), review decision and whether it can merge (mergeability). Never merge on failing checks or conflicting without the user saying so for that PR. On yes, merge exactly the commit you showed:
f(){ <aoapi helper>; aoapi POST "prs/<pr number>/merge" "$(python3 -c 'import json,sys; print(json.dumps({"prUrl":sys.argv[1],"expectedHeadSha":sys.argv[2]}))' '<url>' '<headSha>')"; }; f
If the PR got new commits since you showed it, AO refuses the merge. Show it again and ask again.
Screenshot
The session must have a browser page open. BROWSER_CAPABILITY_INVALID means it has none: say so.
f(){ mkdir -p ~/.ao-grok/out && AO_SESSION_ID='<id>' ao browser screenshot ~/.ao-grok/out/<id>-$(date +%H%M%S).png; }; f
Then CopyToBox and SendToUser.
Files
A session's deliverables are in its artifact folder:
f(){ ls -la "${AO_DATA_DIR:-$HOME/.ao/data}/artifacts/<id>/"; }; f
Send the file the user asks for with CopyToBox and SendToUser. HTML reports render best opened on the phone as a file.
Keep awake
For a run that must last overnight, after a yes:
f(){ <aoapi helper>; aoapi POST awake/sessions "$(python3 -c 'import json,sys; print(json.dumps({"mode":"duration","durationSeconds":int(sys.argv[1]),"scope":"ao"}))' '<seconds>')"; }; f
Say when it ends. The user can stop it in AO. An AWAKE error that mentions a safety stop means AO stopped keep-awake on purpose (for example on battery): tell the user to resume it in AO. Don't resume it yourself.
Automations
For recurring agent work that should run on the host even when the bot is off (for example "every night, update dependencies in <project>"), create an AO automation after a yes:
ao automation create --project '<project>' --name '<name>' --cron '<m h dom mon dow>' --timezone '<IANA zone>' --prompt '<task>'
ao automation list shows them. To remove one after a yes: ao automation delete --yes <id>. Use a Grok routine instead when the job is to tell the user something (ao-status "Digest", ao-answer waiting check).
Câu hỏi thường gặp
Agent có kết thúc hoặc merge gì mà không hỏi không?
Không. Kết thúc phiên, merge PR và một số thay đổi khác cần bạn đồng ý rõ ràng cho đúng thao tác đó.
Nếu cùng một tên phiên tồn tại trên hai máy thì sao?
Agent đặt tên cho mỗi phiên kèm theo máy của nó, nên chỉ thao tác trên đúng máy.
Agent có thể giữ máy tính thức không?
Có, nó có thể giữ máy chủ luôn thức, nhưng chỉ sau khi bạn đồng ý.
Chi tiết
Mô tả gốc của tác giả
Direct actions on one AO session or PR: stop or interrupt, resume, merge a PR, start a review, screenshot a session's browser, send a session's files, keep a host awake, and recurring AO automations. Use for "stop <session>", "merge <PR>", "review <session>'s PR", "show me what <session> built", "keep the Mac awake tonight", "every night, ...".
Độ phổ biến
- Sao GitHub
- 14k
- Vị trí xếp hạng
- #11260
- 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-answer
14kCho phép agent của bạn tìm các phiên AO đang chờ quyết định của bạn, hiển thị các lựa chọn dưới dạng tùy chọn và gửi câu trả lời về phiê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.