AGENT SKILL

AO 工作器操作规范

ao-operator-discipline

在生成、引导或审计 Agent Orchestrator 工作器时使用,尤其是当用户指定精确的 AO 参数(如 codex、runtime、project、claim-pr 或 PR 目标)时。

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

01 前言 Front Matter

name
ao-operator-discipline
description
Use when spawning, steering, or auditing Agent Orchestrator workers, especially when the user specifies exact AO parameters such as codex, runtime, project, claim-pr, or PR targets.

03 SKILL.md 正文

AO Operator Discipline

Overview

AO parameters are commitments. If the user asks for Codex workers, PR-specific workers, a certain runtime, or a specific project, you must pass those parameters explicitly and then verify that AO actually honored them.

The failure pattern this skill prevents is simple: a worker exists, but it is the wrong worker.

When to Use

Use this skill when:

  • the user asks to use AO or ao
  • you plan to run ao spawn, ao send, ao session claim-pr, or ao status
  • the user specifies a worker type such as Codex, Claude, Gemini, or a runtime
  • you are claiming PRs or creating a PR-focused worker fleet

Do not use this skill for tiny read-only checks like a one-off ao status.

Agent Name Resolution — Read Config First

Before evaluating any --agent value, read the active AO config:

AO_CONFIG_PATH="${AO_CONFIG_PATH:-${HERMES_HOME:-$HOME/.hermes}/agent-orchestrator.yaml}"
if [ -f "$AO_CONFIG_PATH" ]; then
  head -20 "$AO_CONFIG_PATH"   # check defaults.agent and installed plugins
else
  echo "AO_CONFIG_PATH not configured: AO config file to read agent defaults. Example: export AO_CONFIG_PATH=\$HOME/.hermes/agent-orchestrator.yaml"
fi

--agent values are resolved against the config, not against AO package plugin directories. If <X> in --agent <X> is not a well-known CLI name (codex, claude, claude-code, gemini), look it up in the config before concluding it's unsupported.

Resolve shorthands from the config's agents: entries and defaults.agent, not from memory of another machine. A custom name often wraps another CLI (for example an alias that runs the claude CLI against a different API provider); command -v <name> shows whether it is installed on this host.

Never scan packages/agent-*/ as a substitute for reading the config.

Required Rules

  1. Treat user-specified AO parameters as hard requirements:

    • --agent
    • --runtime
    • --project
    • --claim-pr
    • target PR / branch / evidence standard
  2. Never rely on AO defaults when the user asked for something specific.

  3. After every ao spawn, verify the spawned session before trusting it.

  4. If the verified session does not match the request, kill or replace it. Do not proceed with the wrong worker.

Spawn Pattern

For Codex workers, use an explicit agent override:

unset GITHUB_TOKEN
ao spawn --project <project> --agent codex --claim-pr <pr> "<task>"

If the user specified another runtime too, pass it explicitly:

unset GITHUB_TOKEN
ao spawn --project <project> --agent codex --runtime tmux --claim-pr <pr> "<task>"

Verification Checklist

Immediately after spawn, inspect the session file under ~/.agent-orchestrator/.../sessions/<session> and confirm:

  • agent=codex when Codex was requested
  • pr=<expected PR URL> when a PR was specified
  • runtimeHandle.data.launchCommand contains the expected CLI and model

Example verification:

python3 - <<'PY'
from pathlib import Path
p = Path("~/.agent-orchestrator/<hash>-<project>/sessions/<session>").expanduser()
print(p.read_text())
PY

For Codex requests, expected launch shape:

agent=codex
launchCommand=...'codex' ... --model 'gpt-6.1-sol' ...

If you see gemini, claude, MiniMax, or another unexpected launcher, the spawn is wrong.

Tmux Monitoring

After verification, check the tmux pane with at least 20 lines:

tmux capture-pane -pt <tmux-session>:0.0 -S -40

Look for:

  • real PR-specific work
  • tool use
  • red/green testing
  • review or CI inspection

Do not accept a welcome screen, generic prompt, or stale queued message as evidence the worker is on task.

Recovery

If a worker was launched with the wrong agent or runtime:

ao session kill <session>
ao spawn --project <project> --agent codex --claim-pr <pr> "<task>"

Then re-run the verification checklist.

Common Mistakes

  • Spawning without --agent codex because “the config probably defaults correctly”
  • Inspecting ao status only, instead of session metadata
  • Treating “session exists” as proof that the worker matches the user’s request
  • Monitoring only the last 5 lines of tmux output

Minimum Completion Bar

Do not report success on AO setup until you have all of:

  • explicit spawn command with required parameters
  • verified session metadata
  • verified launch command
  • tmux evidence showing the worker is actually doing the assigned PR/task

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