Oma coordination

From gracefullight/stock-checker · View interactive version

Oma coordination is an AI agent skill from the GitHub repository gracefullight/stock-checker. Coordinate assigned specialist tasks and handoffs manually. Use when supervising a multi-agent project step by step.

How to use this skill

Skill file

Multi-Agent Workflow Guide

Scheduling

Goal

Guide manual multi-agent coordination for complex work that spans PM, frontend, backend, mobile, and QA responsibilities.

Intent signature

When to use

When NOT to use

Expected inputs

Expected outputs

Dependencies

Control-flow features

Structural Flow

Entry

  1. Confirm the task is complex enough for multi-agent coordination.
  2. Reuse a current plan and handoff state; use PM when task decomposition or contract changes are needed.
  3. Identify priority tiers and shared contracts.

Scenes

  1. PREPARE: Define session, domains, and task decomposition needs.
  2. ACT: Spawn agents by priority with separate workspaces.
  3. VERIFY: Monitor progress and API/data contract alignment.
  4. FINALIZE: Run QA review and coordinate remediation.

Transitions

Failure and recovery

Exit

Logical Operations

Actions

| Action | SSL primitive | Evidence |

|--------|---------------|----------|

| Read request and domains | READ | User prompt and project context |

| Select agent plan | SELECT | PM decomposition and priority tiers |

| Spawn agents | CALL_TOOL | oma agent spawn |

| Monitor progress | READ | injected task/run-scoped progress, claims, and receipts |

| Validate contracts | VALIDATE | API/data model alignment |

| Notify coordination status | NOTIFY | Final coordination summary |

Tools and instruments

Canonical command path

# If planning is required, dispatch the declared PM task first; otherwise reuse the current plan.
oma agent spawn pm <pm-prompt-file> <session-id> --task-id <plan.pm_task.id> -w ./pm
oma agent spawn backend <backend-prompt-file> <session-id> --task-id <plan.backend_task.id> -w ./backend &
oma agent spawn frontend <frontend-prompt-file> <session-id> --task-id <plan.frontend_task.id> -w ./frontend &
wait

When native runtime dispatch is available (per-agent target vendor equals the current runtime vendor), prefer the runtime's native subagent path and use oma agent spawn as the cross-vendor fallback — same resolution rule as oma-orchestration.

Useful agent spawn options: --vendor <vendor> (CLI vendor override), --isolation worktree (git worktree per spawn, prevents file conflicts), --read-only (non-destructive tools only, e.g. for review/QA passes).

Resource scope

| Scope | Resource target |

|-------|-----------------|

| LOCAL_FS | Progress/result files and workspaces |

| PROCESS | Agent spawn commands |

| MEMORY | Session state and task board |

| CODEBASE | Shared contracts and implementation areas |

Preconditions

Effects and side effects

Guardrails

  1. Reuse a valid plan; call PM only when decomposition or contract changes are required
  2. Spawn independent tasks in parallel (same priority tier)
  3. Reuse or update contracts for changed API boundaries before dependent frontend/mobile work
  4. QA review is always the final step
  5. Assign separate workspaces to avoid file conflicts (or use --isolation worktree for a git worktree per spawn)
  6. Follow ../_shared/core/code-intelligence.md: discover configured tools, do not auto-install or track, and use native search only for paths outside this project or ignored paths when unavailable or timed out
  7. Resume from the current handoff state and execute applicable steps in dependency order; record why a branch is not applicable

Workflow

Step 1: Plan with PM Agent

Reuse an existing valid plan. Otherwise, PM analyzes requirements and creates the task breakdown, acceptance checks, contracts, and priorities. Preserve injected session/task/run IDs; do not regenerate a plan already frozen by dispatch.

Step 2: Spawn Agents by Priority

Resolve the dispatch path per agent, then spawn:

  1. Resolve the per-agent target vendor from oma-config.yaml (agents: override, else model_preset)
  2. If the target vendor equals the current runtime vendor and a native subagent path exists, use native dispatch
  3. Otherwise use oma agent spawn for that agent
  4. Spawn all same-priority tasks in parallel using background processes
# Example: spawn backend and frontend in parallel
oma agent spawn backend backend-prompt.md session-id --task-id plan.backend_task.id -w ./backend &
oma agent spawn frontend frontend-prompt.md session-id --task-id plan.frontend_task.id -w ./frontend &
wait
Step 3: Monitor & Coordinate
Step 4: QA Review

Review the coordinated deliverables with QA. Resolve blocking defects and required verification gaps through the responsible agents; rerun affected checks before finalizing.

Automated Alternative

For fully automated execution without manual spawning, use the orchestrator skill instead.

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.