agentleFS
hybridlabor-apihybridlabor-api/aos/skills/basic/ao-orchestrator/SKILL.md

ao-orchestrator

Skill9 starsChanged 23 days agoApache-2.0View on GitHub

Multi-project orchestrator using AO daemon. Spawn, inspect, coordinate, review parallel agents in Git worktrees.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Instead of making changes directly across multiple repositories within a single context window, the Orchestrator breaks down high-level …

    line 20
  2. Very specific:

    Quality Gate & PR Review: Run ao review once a worker completes its task, verify tests, and coordinate cross-project integration.

    line 30
  3. Very specific:

    Run worker agents in fresh, isolated Git worktrees (ao/<session-id>/root) so they never conflict with uncommitted working trees:

    line 51
  4. Distinctive:

    When the user asks you to coordinate work across multiple projects:

    line 104
  5. Very specific:

    Run ao project ls to verify the repositories exist in AO.

    line 107

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

👑 AO Multi-Project Orchestrator (/ao-orchestrator)

Overview

This skill equips any AI coding agent across all supported harnesses (Claude Code, Google Antigravity, OpenCode, Cursor, Codex) to act as a Multi-Project Orchestrator supervising tasks across independent code repositories via the Agent Orchestrator (AO) background daemon (~/.local/bin/ao).

Instead of making changes directly across multiple repositories within a single context window, the Orchestrator breaks down high-level business goals into scoped work items, delegates them to specialized worker agents running in isolated Git worktrees, monitors their progress, and reviews/integrates their Pull Requests.


🧭 Orchestrator Responsibilities

  1. Project Discovery & Mapping: Identify which repositories and workspaces are involved in the user's goal.
  2. Task Decomposition: Split cross-repo features into clear, atomic specifications for individual worker sessions.
  3. Session Lifecycle Management: Spawn worker agents with explicit roles (architect, techlead, ui_ux, engineering, reviewer, shipping), appropriate harnesses (claude-code, opencode, agy), and specific prompts.
  4. Coordination & Supervision: Track running sessions via ao session ls, inspect agent logs, and inject steering instructions or clarifications via ao send.
  5. Quality Gate & PR Review: Run ao review once a worker completes its task, verify tests, and coordinate cross-project integration.

🛠️ AO CLI Core Command Suite

The Orchestrator interacts with the local daemon (listening on loopback port 3101) strictly through the ao CLI:

1. Discovery & Status

# Check AO daemon health and version
ao status

# List all registered repositories and workspaces
ao project ls

# List active and recent agent sessions across all projects
ao session ls

2. Spawning Multi-Project Workers

Run worker agents in fresh, isolated Git worktrees (ao/<session-id>/root) so they never conflict with uncommitted working trees:

# Spawn a Backend Engineer in Project A
ao spawn \
  --project <project-id-or-path> \
  --name "Backend-API" \
  --role engineering \
  --harness claude-code \
  --prompt "Implement the OAuth2 callback handler per specification in issue #42. Ensure all tests pass."

# Spawn a Frontend Designer/Engineer in Project B
ao spawn \
  --project <project-id-or-path> \
  --name "Frontend-UI" \
  --role ui_ux \
  --harness claude-code \
  --prompt "Build the settings page OAuth connection cards with Tailwind and React."

# Spawn an Adversarial Reviewer for an existing worker branch
ao spawn \
  --project <project-id-or-path> \
  --name "Audit-Worker" \
  --role reviewer \
  --prompt "Review branch ao/<session-id>/root for security gaps, unhandled errors, and contract compliance."

3. Monitoring & Steering Sessions

# Inspect detailed state of a specific session
ao session get <session-id>

# Send instructions, feedback, or corrections to a running worker
ao send <session-id> "The database migration must support SQLite and Postgres. Please update the schema."

# Switch agent harness if needed (e.g. switch to opencode or agy)
ao session switch-agent <session-id> --to opencode

4. Review & Completion

# Trigger an AO code review of the worker's changes
ao review <session-id>

# Clean up or terminate completed sessions
ao session kill <session-id>
ao session cleanup

📋 Multi-Project Orchestration Protocol

When the user asks you to coordinate work across multiple projects:

  1. Step 1: Check Registered Projects Run ao project ls to verify the repositories exist in AO. If a project is not registered, instruct the user to register it or navigate to the directory and run ao project add ..
  2. Step 2: Propose the Architecture & Work Breakdown Present a clear plan to the user:
    • Which repo needs what changes.
    • What workers will be spawned and with which AOS roles.
    • The dependency order (e.g. Backend API first, then Frontend integration).
  3. Step 3: Spawn Workers Orderly Spawn the prerequisite workers. Avoid spawning dependent workers before the contract/API they depend on is established.
  4. Step 4: Report Progress to User Provide regular, concise summaries in your response showing the status of each spawned session and next actions.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.