ao-update
Skill này làm gì
Skill này cập nhật các skill Agent Orchestrator mà bot của bạn dùng. Skill dành cho người muốn có phiên bản mới nhất của các skill đó mà không phải cài lại bằng tay.
Khi nào nên dùng
- ✓Khi bạn muốn biết có phiên bản mới hơn cho các skill AO của mình không.
- ✓Khi bạn muốn xem những gì đã thay đổi trước khi cập nhật.
- ✓Khi bạn muốn bot tải các skill AO mới nhất sau khi bạn đồng ý.
Liên kết skill
https://github.com/OrchestratorInc/agent-orchestrator/blob/main/integrations/grok-bot/skills/ao-update/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 kiểm tra xem các skill Orchestrator Bot của mình có bản cập nhật không và xem những gì đã thay đổi.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent so sánh các skill với danh sách đã xuất bản, hiển thị những thay đổi, và chỉ tải các tệp đã thay đổi sau khi bạn đồng ý. Mỗi tệp được kiểm tra với checksum đã xuất bản trước khi được lưu.
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. This runs on the bot's own cloud computer (the box), not on the user's computers. It changes only this bot's ao-* skills, and only after the user's yes.
The skills are published in the public AO repository (OrchestratorInc/agent-orchestrator, folder integrations/grok-bot/) with a manifest.json that lists each skill's sha256. Every check reads the newest commit on main, then downloads the manifest and the skills from that exact commit, so the files always match each other.
1. Save the fetcher
Save it on the box if /workspace/ao-bot/fetch.py is missing or differs:
f(){ mkdir -p /workspace/ao-bot && cat > /workspace/ao-bot/fetch.py <<'PY'
import hashlib, json, os, re, subprocess, sys
REPO, DIR = "OrchestratorInc/agent-orchestrator", "integrations/grok-bot"
SRC = os.environ.get("AO_BOT_SOURCE") # a local folder instead of GitHub, for testing
STATE = os.environ.get("AO_BOT_STATE", "/workspace/ao-bot")
def get(url): # curl, so the system's certificates are used
r = subprocess.run(["curl", "-fsSL", "--max-time", "30", "-H", "User-Agent: ao-bot", url], capture_output=True)
if r.returncode: sys.exit(f"DOWNLOAD_FAILED {url} {r.stderr.decode().strip()}")
return r.stdout
def commit():
return "local" if SRC else json.loads(get(f"https://api.github.com/repos/{REPO}/commits/main"))["sha"]
def read(sha, path):
return open(os.path.join(SRC, path), "rb").read() if SRC else get(f"https://raw.githubusercontent.com/{REPO}/{sha}/{DIR}/{path}")
def installed():
p = os.path.join(STATE, "manifest.json")
return json.load(open(p)) if os.path.exists(p) else {"version": None, "skills": []}
def split(text): # frontmatter name and folded description, then the body
m = re.match(r"---\nname: (.+)\ndescription: >-\n((?: .*\n)+)---\n", text)
if not m: sys.exit("BAD_SKILL_FILE")
return m.group(1).strip(), " ".join(l.strip() for l in m.group(2).splitlines()), text[m.end():]
cmd = sys.argv[1] if len(sys.argv) > 1 else "check"
sha = commit(); new = json.loads(read(sha, "manifest.json")); old = installed()
was = {s["id"]: s["sha256"] for s in old["skills"]}; now = {s["id"]: s for s in new["skills"]}
changed = [i for i in now if was.get(i) != now[i]["sha256"]]
removed = [i for i in was if i not in now]
if cmd == "check":
print(json.dumps({"installed": old["version"], "latest": new["version"], "commit": sha[:12], "changed": changed, "removed": removed}))
elif cmd == "fetch":
out = os.path.join(STATE, "pending"); files = {}
for i in changed:
data = read(sha, now[i]["path"])
if hashlib.sha256(data).hexdigest() != now[i]["sha256"]: sys.exit(f"HASH_MISMATCH {i}")
files[i] = data.decode()
os.makedirs(out, exist_ok=True)
for f in os.listdir(out): os.remove(os.path.join(out, f))
order = sorted(files, key=lambda i: (i != "ao-rules", i == "ao-update", i))
for i in order:
name, desc, body = split(files[i])
json.dump({"name": name, "description": desc, "body": body}, open(os.path.join(out, i + ".json"), "w"))
json.dump({"version": new["version"], "commit": sha, "apply": order, "manifest": new}, open(os.path.join(out, "PLAN.json"), "w"))
print(json.dumps({"ready": order, "folder": out}))
elif cmd == "done":
plan = json.load(open(os.path.join(STATE, "pending", "PLAN.json")))
json.dump(plan["manifest"], open(os.path.join(STATE, "manifest.json"), "w")); print("INSTALLED", plan["version"])
PY
}; f
2. Check (read-only, no yes needed)
python3 /workspace/ao-bot/fetch.py check prints the installed and latest version, the changed skills and any removed ones. installed: null means this bot was never updated here: every skill counts as changed, which is fine. Nothing changed: say it's up to date and stop. DOWNLOAD_FAILED: GitHub or the network didn't answer (a 404 means the skills aren't published at that path yet). Say so and try again later.
3. Show and ask once
One short message: installed and latest version, which skills changed, and any removed ones. Ask "Update to <latest>?".
4. On yes
python3 /workspace/ao-bot/fetch.py fetch. It downloads each changed skill, checks its sha256 against the manifest and, only if all match, writes one<id>.jsonper skill plusPLAN.jsonin/workspace/ao-bot/pending/.HASH_MISMATCH <id>: stop, change nothing, and tell the user.- Go through
PLAN.jsonapplyin order (ao-rules first, ao-update last). For each, call UpdateSkill with that
Câu hỏi thường gặp
Nó có cập nhật mà không hỏi không?
Không. Nó hiển thị các thay đổi trước và chỉ tải xuống sau khi bạn đồng ý.
Checksum là gì?
Đó là một mã xác nhận rằng tệp khớp với phiên bản đã xuất bản, nên một tệp bị hỏng hoặc bị sửa đổi sẽ được phát hiện.
Nó có thay đổi máy tính của tôi không?
Không. Skill chạy trên máy tính đám mây của bot và chỉ thay đổi các skill AO của bot.
Chi tiết
Mô tả gốc của tác giả
Update this bot's ao-* skills to the latest published version: check what changed, show it, and after the user's yes download each changed skill, verify its sha256 against the published manifest, and rewrite it. Use for "update Orchestrator Bot", "update the AO bot", "update my AO skills", "what's new in Orchestrator Bot".
Độ phổ biến
- Sao GitHub
- 14k
- Vị trí xếp hạng
- #11266
- 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.