跳到正文
FunCoding

ao-actions

Direct actions on one Orchestrator 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 Orchestrator automations. Use for "stop <session>", "merge <PR>", "review <session>'s PR", "show me what <session> built", "keep the Mac awake tonight", "every night, ...".

Star
15,368
许可证
Apache-2.0
最近提交
2026年12月2日

integrations/grok-bot/skills/ao-actions/SKILL.md

在 GitHub 上查看

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.

AskDoYes neededHosts
Stop what it's doing nowaoapi POST "sessions/<id>/conversation/interrupt"NoAll
End the sessionaoapi POST "sessions/<id>/kill" '{}'YesAll
Resume an exited agentaoapi POST "sessions/<id>/resume-agent" '{}'NoAll
Restore an ended sessionaoapi POST "sessions/<id>/restore" '{}' (an ended orchestrator can't come back while its project has another live one)YesAll
Merge a PRsee "Merge"Yes, per PRAll
Start Orchestrator's reviewer on a session's PRao review trigger <id>YesLocal
Screenshot a session's browsersee "Screenshot"NoLocal
A session's filessee "Files"NoLocal
Keep the host awakesee "Keep awake"YesLocal
Recurring agent worksee "Automations"YesLocal
Start one worker directlyaoapi POST sessions '<json>' with projectId, displayName, promptYesAll

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, Orchestrator 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 Orchestrator. An AWAKE error that mentions a safety stop means Orchestrator stopped keep-awake on purpose (for example on battery): tell the user to resume it in Orchestrator. 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 "), create an Orchestrator 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).

相似的 Skill

rea-ci-tests-audit

MOmorluto/rea486k近 7 天新增 7,690 个 star

rea-changelog-update

MOmorluto/rea486k近 7 天新增 7,690 个 star

wizard

MAmattpocock/skills337k近 7 天新增 4,217 个 star

pr

MAmattpocock/skills337k近 7 天新增 4,217 个 star

triage

MAmattpocock/skills337k近 7 天新增 4,217 个 star

精选

git-guardrails-claude-code

阻止危险的 git 命令,避免误推、误删分支。

MAmattpocock/skills337k近 7 天新增 4,217 个 star