AGENT SKILL

oma-coordination

Guide for coordinating PM, Frontend, Backend, Mobile, and QA agents on complex projects via CLI. Use for manual step-by-step coordination and workflow guidance.

License 许可
MIT
最近更新
2026-11-12
Stars
★ 1
Forks
0

01 前言 Front Matter

name
oma-coordination
description
Guide for coordinating PM, Frontend, Backend, Mobile, and QA agents on complex projects via CLI. Use for manual step-by-step coordination and workflow guidance.

03 SKILL.md 正文

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

  • User wants step-by-step coordination, manual agent spawning, or multi-domain work planning without full automation.
  • Task spans multiple specialist agents and requires contract alignment.

When to use

  • Complex feature spanning multiple domains (full-stack, mobile)
  • Coordination needed between frontend, backend, mobile, and QA
  • User wants step-by-step guidance for multi-agent coordination

When NOT to use

  • Simple single-domain task -> use the specific agent directly
  • User wants automated execution -> use orchestrator
  • Quick bug fixes or minor changes

Expected inputs

  • Complex feature or project goal
  • Required domains and priority tiers
  • Workspace/session constraints and API/data contract needs

Expected outputs

  • Manual coordination sequence
  • PM task decomposition, agent spawn order, monitoring guidance, and QA review step
  • API/data contract alignment checkpoints

Dependencies

  • PM, frontend, backend, mobile, QA, and orchestrator skills
  • CLI oma agent spawn and progress/result memory conventions

Control-flow features

  • Branches by task complexity, priority tiers, dependency ordering, and whether automation is desired
  • Spawns independent same-priority tasks in parallel when appropriate
  • Monitors progress files and contract alignment

Structural Flow

Entry

  1. Confirm the task is complex enough for multi-agent coordination.
  2. Start with PM task decomposition.
  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

  • If task is simple, route to one specialist.
  • If user wants automated execution, use orchestrator.
  • If QA finds CRITICAL issues, re-spawn responsible agents.

Failure and recovery

  • If contracts diverge, pause downstream frontend/mobile work until backend/API contract is reconciled.
  • If agent workspaces conflict, split ownership boundaries.
  • If progress stalls, inspect progress files and reissue focused instructions.

Exit

  • Success: specialist outputs are coordinated and QA-reviewed.
  • Partial success: blocked agents, contract conflicts, or QA failures are explicit.

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 progress-{agent}[-{sessionId}].md
Validate contracts VALIDATE API/data model alignment
Notify coordination status NOTIFY Final coordination summary

Tools and instruments

  • oma agent spawn, PM/frontend/backend/mobile/QA agents
  • Memory/progress/result files
  • Configured code intelligence, with native fallback per ../_shared/core/code-intelligence.md

Canonical command path

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: -m/--model <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

  • Task requires multiple domains.
  • PM decomposition can identify independent priority tiers.

Effects and side effects

  • Spawns or guides multiple agents.
  • Coordinates workspace ownership and QA feedback.

Guardrails

  1. Always start with PM Agent for task decomposition
  2. Spawn independent tasks in parallel (same priority tier)
  3. Define API contracts before frontend/mobile tasks
  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 scoped search when unavailable or timed out
  7. Never skip steps in the workflow; follow each step sequentially without omission

Workflow

Step 1: Plan with PM Agent

PM Agent analyzes requirements, selects tech stack, creates task breakdown with priorities.

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

  • Use memory read tool to poll progress-{agent}[-{sessionId}].md files (spawned agents write the session-suffixed form)
  • Verify API contracts align between agents
  • Ensure shared data models are consistent

Step 4: QA Review

Spawn QA Agent last to review all deliverables. Address CRITICAL issues by re-spawning agents.

Automated Alternative

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

References

04 同仓库更多 Skills

vasceannie
vasceannie/slopgate

type-strictness

Enforce strict type compliance by eliminating `Any` types and `# type: ignore` comments. Use when: (1) Editing code that contains `Any` as a type annotation (2) Code has `# type: ignore` or `# pyright: ignore` comments (3) User requests type fixes or type strictness enforcement (4) Importing from untyped third-party libraries (5) User asks to "fix types", "remove Any", or "add proper typing" (6) Pyrefly or mypy reports type errors that need resolution (7) Code review reveals weak typing patterns Follows hierarchical resolution: codebase inference → type stubs → library inspection → type guards → casting (last resort).

★ 1
vasceannie
vasceannie/slopgate

slopgate-test-extender

Extend Python test suites with parametrization, fixture reuse, and quality enforcement. Use when asked to add tests, extend existing tests, improve test coverage, consolidate duplicate tests, fix test quality issues, or when Slopgate reports untested-production-code, missing test references, or coverage gaps. Triggers on requests like "add tests for X", "extend these tests", "parametrize tests", "consolidate tests", "fix test quality", "improve test coverage", "write tests for this function", "test this module", "behavior tests", "integration tests", "missing tests", "coverage holes", "untested code", or when a hook denies with test-related findings.

★ 1
vasceannie
vasceannie/slopgate

slopgate-intelligent-coding-patterns

Pattern-selection playbook for agents editing code with complex branching, stateful parsers/workflows, duplicated skeletons, policy checks, or ordered transforms. Load before refactoring if/elif dispatch chains, boolean-flag state machines, repeated validation predicates, parallel provider/language implementations, or regex/content transformation pipelines. Also load when asked to "apply a design pattern", "which pattern should I use here", "refactor this switch statement", "replace if-elif chain", "state machine pattern", "strategy pattern", "template method", "pipeline pattern", "specification pattern", "dispatch table", "guard clause refactor", "reduce cyclomatic complexity", or when Slopgate fires PY-CODE-014, PY-CODE-017, PY-CODE-018, QUALITY-LINT-001, or PY-QUALITY-010. Use with behavior-locking tests and avoid pattern theater for simple one-off code.

★ 1
vasceannie
vasceannie/slopgate

slopgate-hygiene-orchestrator

Orchestrate systematic elimination of linter warnings and errors across Python, TypeScript, and Rust codebases. Use when asked to "clean up lints", "fix all warnings", "run hygiene", "eliminate type errors", "orchestrate code quality fixes", "fix lint errors", "resolve quality gate failures", "pass CI checks", "reduce tech debt", "refactor to pass hooks", or when a Slopgate hook denies with QUALITY-LINT-001, PY-CODE-017, PY-CODE-018, or any collector finding. This skill coordinates multiple code-hygiene-enforcer agents working in parallel on non-conflicting file groupings, tracks progress persistently via JSON exports, and loops until all issues are resolved. CRITICAL: Never run linters directly—always use `slopgate lint check` as the primary gate, discover project-specific tools from config files, and export findings to JSON for tracking.

★ 1
vasceannie
vasceannie/slopgate

slopgate-code-smell-utility-locator

Autoactivate when code-smell hooks or reviews mention feature envy, thin wrappers, duplicate helpers, duplicate code, scattered helpers, builders/factories/config/constants/dataclass reuse, PY-CODE-012, PY-CODE-013, QUALITY-LINT-001, or repeated slopgate code-quality denials. Also load when asked to "find existing helpers", "consolidate utilities", "search for duplicate code", "where is this already implemented", "reuse existing logic", "don't duplicate this", "find similar functions", "utility inventory", "code smell radar", or before adding new helpers/wrappers so agents can find existing shared utilities and consolidate instead of duplicating.

★ 1
vasceannie
vasceannie/slopgate

slopgate-code-hygiene-refactor

Recovery playbook for Slopgate and project quality failures. Load after hook/lint denials such as PY-CODE-017 flat sibling modules, PY-CODE-018 oversized modules, QUALITY-LINT-001 post-edit quality backstops, PY-QUALITY-010 magic numbers / repeated literals, PY-CODE-012/PY-CODE-013 smell findings, type-suppression bans, duplicate helpers, or repeated hygiene retry loops. Also load when asked to "refactor this module", "split this file", "extract a class", "reduce complexity", "fix god class", "flatten module hierarchy", "move code to a package", "extract helpers", "consolidate duplicates", "replace magic numbers with constants", or when a hook blocks an edit with structural complaints. Focuses on preserving public APIs while refactoring toward packages, cohesive modules, typed seams, and focused tests.

★ 1