ao-rules
Skill này làm gì
Skill này giữ các quy tắc chung cho mọi skill AO, như máy nào sở hữu một phiên và khi nào cần bạn đồng ý. Skill dành cho người dùng Agent Orchestrator từ khung chat của mình.
Khi nào nên dùng
- ✓Khi một skill AO khác cần kết nối tới các máy AO của bạn.
- ✓Khi bạn muốn biết máy nào đang chạy một phiên AO nhất định.
- ✓Khi agent của bạn cần kiểm tra xem một thao tác có cần sự cho phép của bạn không.
Liên kết skill
https://github.com/OrchestratorInc/agent-orchestrator/blob/main/integrations/grok-bot/skills/ao-rules/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 biết trong các máy của mình, máy nào đang chạy phiên AO có tên checkout-fix.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent đọc các quy tắc chung trước, rồi dùng danh sách máy AO bạn đã lưu để kết nối an toàn tới từng máy. Các thay đổi 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.
AO rules
Every ao-* skill follows these rules. Other skills link here instead of repeating them.
AO hosts
An AO host is one computer that runs the AO daemon. Each host has its own projects, sessions and orchestrators, and AO never links them: a repo cloned on two hosts is two separate projects. AO names a project after its folder, so both can still get the same id, and then the same session id (for example agent-orchestrator-1-12) can exist on both. Always name a session as <host>/<session id>, and act only on the host that owns it.
Memory keeps one note named AO hosts, with one line per host:
| Field | Example | Meaning |
|---|---|---|
name |
Pro |
A short name: the user's pick, else the model word of the ListMachines label (Pro, Air, mini). Never the network hostname such as MacBookAir.lan |
reach |
local or remote |
How you get to its AO |
via |
laptop |
The ListMachines label of the computer whose shell you use |
base |
http://192.168.1.20:7444 |
Remote only. The host's LAN address from AO's remote access settings |
header |
~/.ao-grok/studio.header |
Remote only. File on via that holds the host's password |
- local: the Grok Bot desktop app runs on the AO host.
viais the host itself. - remote: the Grok Bot desktop app runs on another computer. You call the host's AO API over the network from
via. TheaoCLI onviatalks only tovia's own AO, so never use it for a remote host.
One computer can be via for itself (local) and for other hosts (remote) at the same time.
Every run: call ListMachines, then use every host whose via computer is connected, in parallel, labelled by host name. Say once which hosts you could not reach. Never hard-code machine ids or home paths.
Calling AO
Start every shell command that calls AO with this helper. It works in zsh and bash:
aoapi(){ # aoapi METHOD PATH [JSON]
local base hdr=() data=() f="${AO_RUN_FILE:-$HOME/.ao/running.json}"
if [ -n "$AO_REMOTE_BASE" ]; then base="$AO_REMOTE_BASE"; hdr=(-H @"$AO_REMOTE_HEADER")
else [ -f "$f" ] || { echo "AO_NOT_RUNNING" >&2; return 3; }
base="http://127.0.0.1:$(grep -o '"port": *[0-9]*' "$f" | grep -o '[0-9]*$')"; fi
[ -n "$3" ] && data=(--data "$3")
curl -sS --fail-with-body --max-time 30 -X "$1" "${hdr[@]}" -H 'Content-Type: application/json' "${data[@]}" "$base/api/v1/$2"
}
- Local host: use
aoapias is. - Remote host: on the
viacomputer, first setAO_REMOTE_BASE='<base>' AO_REMOTE_HEADER="$HOME/.ao-grok/<name>.header". - Build JSON bodies with
python3 -c 'import json,sys; print(json.dumps(...))' "$ARG", never by pasting text into quotes. - Anything longer than one line goes in a file first:
~/.ao-grok/out/<date>-<short name>.mdonvia. The user can see what was sent. - Use the
aoCLI only where a skill says "local only".
Errors
| You see | Meaning and next step |
|---|---|
AO_NOT_RUNNING, or connection refused on a local host |
AO is not running there. Ask the user to open AO |
| Connection refused or timeout on a remote host | The host is asleep, off this network, or remote access is off. Ask the user to check AO's remote access settings on the host |
| HTTP 401 or 403 on a remote host | The host's password changed. Run ao-setup "Remote host" again |
| HTTP 404 on a session path | No such session on that host. Check the host name |
| Any other error | AO returns JSON with message. Relay it in plain words |
Who does what: orchestrator first
Each project on a host has at most one live orchestrator: an agent that plans the project's work, starts and steers workers, and gets their reports. It has more context than you do. You are the user's phone line to it.
- Send to the orchestrator (ao-orchestrator): starting or changing work, "catch me up", "why", "what next", plans, and anything that needs judgement about the code.
- Do directly: status lists (ao-status), answering a pending request with the user's own pick (ao-answer), stop and interrupt, merges after the user's yes, files and screenshots (ao-actions).
- Never start a worker yourself in a project that has a live orchestrator. Ask the orchestrator instead. With no orchestrator, ask the user whether to start one or to start the worker directly.
- After you act directly on a worker (answer, stop, merge), the orchestrator sees it through AO. Don't send it a separate note.
Decisions
A worker asks for two kinds of decision. A **
Câu hỏi thường gặp
Tôi có cần tự đọc skill này không?
Không. Agent của bạn đọc nó ở chế độ nền khi bạn dùng các skill AO khác.
Tại sao skill giữ một danh sách máy?
Một dự án có thể tồn tại trên hai máy, nên danh sách giúp mỗi phiên gắn với đúng máy.
Skill có lưu mật khẩu của tôi không?
Skill chỉ trỏ đến một tệp trên máy bạn chứa mật khẩu máy chủ, và không hiển thị mật khẩu đó.
Chi tiết
Mô tả gốc của tác giả
Shared rules and the connection helper for every ao-* skill (run Orchestrator from chat). Read before running any ao-* skill.
Độ phổ biến
- Sao GitHub
- 14k
- Vị trí xếp hạng
- #11263
- 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-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.
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.