Team

From MeroZemory/oh-my-droid · View interactive version

Team is an AI agent skill from the GitHub repository MeroZemory/oh-my-droid. Coordinate named agents as a team with inter-agent communication

How to use this skill

Skill file

Team Skill

Coordinate named agents as a team with inter-agent messaging, shared context, file ownership, and leader-managed lifecycle.

Usage

/team [task description]
/team --roles architect,executor,qa-tester [task description]
/team --max-members 3 [task description]
/team --timeout 15 [task description]
/team --dry-run [task description]

Arguments

| Argument | Description | Default |

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

| --roles | Comma-separated role list | Auto-determined from task |

| --max-members | Override max team size | 5 |

| --timeout | Team timeout in minutes | 10 |

| --dry-run | Show team plan without executing | false |

How It Works

You are the team leader. Your job is to orchestrate a coordinated team of specialist agents.

Phase 1: INIT — Analyze and Compose Team

  1. Analyze the user's task description
  2. Determine which roles are needed:
  1. If --roles is specified, use those roles directly
  2. If --dry-run is specified, show the plan and stop

Phase 2: DELEGATE — Assign Work

  1. Break the task into concrete assignments with:
  1. Send task assignments to each member via mailbox
  2. Spawn member agents in background with:

Phase 3: COORDINATE — Monitor and Adjust

  1. Poll member status periodically
  2. Handle incoming messages from members:
  1. Detect stale members (no heartbeat > 5 min) and reassign if needed
  2. If a critical member (architect) fails, consider aborting

Phase 4: COLLECT — Gather Results

  1. Collect all completed results
  2. Check for file conflicts (shouldn't happen with ownership, but verify)
  3. Aggregate findings into shared context

Phase 5: FINALIZE — Verify and Wrap Up

  1. Run verification: tsc --noEmit, npm test, npm run lint (as applicable)
  2. Broadcast shutdown to all members
  3. Report final summary to user

Dry-Run Output

When --dry-run is specified, show this and stop:

[TEAM PLAN]
Task: Add REST API endpoint for user preferences
Members:
  - architect-1 (architect): Design API schema and endpoint structure
  - executor-1 (executor): Implement controller and service layer
  - executor-2 (executor): Implement database migration and model
  - qa-tester-1 (qa-tester): Write integration tests

File Ownership:
  - executor-1: src/controllers/preferences.ts, src/services/preferences.ts
  - executor-2: src/models/preferences.ts, migrations/

Estimated: 4 agents, ~10 min
Proceed? [Y/n]

Team Status Display

During execution, show periodic status updates:

[TEAM: api-build]
├ ✓ architect-1 completed — API schema defined
├ → executor-1 working — implementing controller
├ → executor-2 working — implementing migration
└ 1/3 completed

Error Handling

Integration

Anti-Patterns

  1. Over-staffing — Don't spawn 5 agents for a task that one executor can handle
  2. Missing architect — Complex tasks need an architect to design before executors implement
  3. No file ownership — Without ownership, parallel executors will conflict on the same files
  4. Ignoring stale members — Always check heartbeats and reassign if a member goes silent
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.