AGENT SKILL

Agent Orchestrator 工作流编排

agent-orchestrator

当在由 Agent Orchestrator 管理的仓库中工作,或用户询问如何正确使用 `ao` 时使用此技能。涵盖默认的 AO 工作流:用 `ao start` 初始化,用 `ao spawn` 分派工作,用 `ao status` 或 `ao session ls` 查看进度,用 `ao send` 引导会话,以及安全地恢复或清理会话。包括严格的参数保真、spawn 前的上限清理、配额墙回退和 spawn 后的验证。

适用职业AI 工程师
使用场景编码任务委派
License 许可
MIT
最近更新
2026-11-14
Stars
★ 6
Forks
0

01 前言 Front Matter

name
agent-orchestrator
description
Use this skill when working in repositories managed by Agent Orchestrator or when the user asks how to use `ao` properly. Covers the default AO workflow: bootstrap with `ao start`, dispatch work with `ao spawn`, inspect progress with `ao status` or `ao session ls`, steer sessions with `ao send`, and recover or clean up sessions safely. Includes strict parameter fidelity, pre-spawn cap cleanup, quota-wall fallback, and post-spawn verification.

02 资源文件 1

03 SKILL.md 正文

Agent Orchestrator

Use AO for durable coding work instead of manually creating worktrees or running agent CLIs directly. User-specified AO constraints (--agent, --runtime, --project, --claim-pr, target PR/branch/evidence standard) are mandatory — never substitute another agent/runtime because defaults exist.

Default workflow

  1. Bootstrap the repo or project with ao start.
  2. Dispatch non-trivial coding work with ao spawn.
  3. Inspect live state with ao status or ao session ls.
  4. Send follow-up instructions with ao send.
  5. Recover or clean up sessions with ao session restore and ao session cleanup.

Commands to prefer

# Start AO in the current repo
ao start

# Start AO for another local repo or clone from GitHub
ao start ~/path/to/repo
ao start https://github.com/owner/repo

# Dispatch work
ao spawn "fix the flaky GitHub SCM retry path"
ao spawn -p agent-orchestrator bd-1234
ao spawn --project agent-orchestrator --claim-pr 456

# Inspect and steer work
ao status
ao session ls
ao send <session-id> "Also update the failing test coverage."

# Recovery and cleanup
ao session restore <session-id>
ao session cleanup --dry-run

Read first

  • ~/.hermes/agent-orchestrator.yaml — ALWAYS read this first to resolve --agent shorthands (e.g. agy=antigravity); defaults.agent is the default when none specified.
  • references/config.md — config schema for editing agent-orchestrator.yaml.
  • ~/.claude/skills/ao-worker-dispatch/SKILL.md — pre-dispatch checklist (venv, commit discipline, branch drift, CodeRabbit verify).
  • ~/.claude/skills/ao-operator-discipline/SKILL.md — strict parameter fidelity + post-spawn verification.
  • ~/.claude/skills/ao-spawn-gate/SKILL.md — pre-spawn safety gate.
  • ~/.claude/skills/ao-session-monitor/SKILL.md — proper tmux inspection for live workers.
  • ~/.claude/skills/ao-model-override/SKILL.md — override the worker's model (e.g. claude-sonnet-4-6, claude-opus-4-7) WITHOUT editing ~/.hermes/agent-orchestrator.yaml. Use whenever the user names a specific model and the project default isn't it (e.g. "use claude sonnet with AO"). ao spawn has NO --model flag; the only inline override is AO_CONFIG_PATH pointing at a temp copy of the config — the skill ships spawn-with-model.sh for this.

Working rules

  • Prefer ao spawn for coding, debugging, CI fixes, review follow-up, and multi-step work.
  • Use direct shell commands only for quick diagnostics or when AO itself is unavailable.
  • If multiple projects are configured and cwd does not disambiguate, pass -p, --project.
  • Prefer the existing AO session lifecycle over ad hoc worktrees and hand-run agent CLIs.
  • When editing AO config, read references/config.md.

When not to use AO

  • Tiny read-only checks: git status, gh pr view, rg, simple file inspection.
  • One-off local diagnostics where starting a full worker would be slower than the task.

Spawn admission and resource handling

Before a spawn, follow ao-spawn-gate/SKILL.md; for bulk or iterative spawn sequences, also follow ao-spawn-safety/SKILL.md. Those are the current owners for the live channel setting, AO worker cap, batch size, and GitHub API quota handling. Do not copy their mutable values into a local environment variable or treat old defaults/history as the current setting.

If an applicable worker/channel limit is reached, defer only the new spawn and report the measured count and resumption condition. Do not run ao session cleanup, kill workers, or raise a cap automatically. Preserve unrelated sessions and continue independent authorized work.

An activity or quota statement in a worker pane is only a lead. Before classifying a worker or provider as blocked, use the full-history, two-sample procedure in ao-session-monitor/SKILL.md and record the current provider status with its source and timestamp. Do not classify from a grep/tail result, count matching keywords, or route to a different provider automatically. Honor explicit user-selected agent/runtime/model constraints. Consider an alternative only when the task permits it and current evidence confirms the requested provider cannot complete the specific operation.

Historical provider-quota incidents are dated diagnosis context, not current provider defaults or authorization to clean up sessions or change the worker.

Parameter fidelity and post-spawn verification rules

  1. Respect explicit AO parameters exactly:

    • --agent
    • --runtime
    • --project
    • --claim-pr
    • target PR / branch / evidence standard
  2. Never substitute another agent/runtime because defaults exist.

  3. After every ao spawn, verify the spawned session file under ~/.agent-orchestrator/.../sessions/<session>:

    • agent=<expected>
    • runtimeHandle.data.launchCommand contains the expected CLI
  4. If the user asked for Codex workers, the session must show:

    • agent=codex
    • launchCommand contains codex
  5. After metadata verification, inspect the tmux pane with at least 20 lines:

    • tmux capture-pane -pt <tmux-session>:0.0 -S -40
  6. If verification fails, kill and replace the worker. Do not continue with a mismatched worker.

Output requirements

When reporting AO setup or supervision, include:

  • the exact session ids
  • the target PR URLs
  • proof of agent=<expected>
  • proof of launchCommand
  • whether each worker is productive, drifting, or dead
  • the preflight cap-check output (active count, dry-run, post-cleanup count)

Related files

  • Config reference: references/config.md
  • CLI help: ao --help, ao spawn --help, ao start --help
  • Repo policies: AGENTS.md, CLAUDE.md
  • Binary installation norms: scripts/setup.sh for repo maintainers, npm install -g "${AO_NPM_PACKAGE:-@jleechanorg/ao-cli}" for others; ao doctor must pass after any install or update

04 同仓库更多 Skills

jleechanorg
jleechanorg/jleechan-skills

disk-reclaim-playbook

Use Disk Magician to diagnose disk growth or qualify cleanup on macOS or Linux.

★ 6
jleechanorg
jleechanorg/jleechan-skills

claudea-bench

Compare `claudea` and normal `claude` on a fair split of comparable work by default; use `--strict` for duplicate runs of the exact same task.

★ 6
jleechanorg
jleechanorg/jleechan-skills

pr

Alias for the canonical pr-lifecycle PR workflow skill (/pr-workflow, /prw).

★ 6
jleechanorg
jleechanorg/jleechan-skills

whisper

OpenAI's general-purpose speech recognition model. Supports 99 languages, transcription, translation to English, and language identification. Six model sizes from tiny (39M params) to large (1550M params). Use for speech-to-text, podcast transcription, or multilingual audio processing. Best for robust, multilingual ASR.

★ 6
jleechanorg
jleechanorg/jleechan-skills

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

★ 6
jleechanorg
jleechanorg/jleechan-skills

pr-report

This skill should be used when the user asks for a PR report, PR audit, PR delta analysis, /pr-report, or wants per-PR summary with delta files/lines. Generates a structured report for one or more open PRs covering purpose, files changed, +/− line counts, /code-standards + /thermo review findings, /ponytail simplification opportunities, file-overlap combination candidates, and /green status per pr-green-definition. Output: machine-readable JSONL + human-readable markdown. Read-only by default; can apply simplifications if user opts in.

★ 6