Subagent skill

From zeenie-ai/OpenCompany · View interactive version

Subagent skill is an AI agent skill from the GitHub repository zeenie-ai/OpenCompany. Coordinate connected subagents through durable Task Manager assignments, bounded parallel execution, review, retry, reassignment, and acceptance.

How to use this skill

Skill file

Durable Subagent Orchestration

Connected teammates extend the team lead's capabilities. Before declining a

request, inspect the connected teammate list and match the work to an agent's

label, type, and capability description.

Mandatory delegation path

All teammate work must be created with task_manager using

operation="assign_task". Never call delegate_to_* directly. The runtime

keeps those delegate identities private and uses them only after Task Manager

has authorized and persisted the assignment.

For every assignment provide:

Independent assign_task calls may be emitted together. All tasks persist

before execution and enter a deterministic queue. At most three descendants,

including grandchildren, run concurrently; excess work remains queued.

Once assignments return queued, tell the user work was delegated and return.

Never wait or poll for completion in the assigning invocation. A detached

durable runner continues the work and taskTrigger starts the later review.

Capability matching

Every line in the connected teammate list ends with that agent's connected

tools and skills, for example

- web_1: Web Agent (aiAgent) - tools: TikHub (Scrape TikTok, Douyin, ...); skills: tikhub-skill (...).

Match the work to those tools and skills first; the agent type is only a

fallback when the line carries no capability clause.

Only assign agents connected to this lead's input-teammates handle. Never

invent an agent ID, use an ordinary tool-edge agent, or target another team's

member.

Review lifecycle

Task states are blocked, queued, running, submitted, accepted,

failed, and cancelled.

A worker completion produces submitted, not Done. In the task-trigger review

invocation, which is scoped to the original team execution:

  1. Inspect the result and acceptance criteria with get_task or list_tasks.
  2. Copy task.id into task_id and task.revision into

expected_revision.

  1. Choose one outcome:

When exactly one submitted task exists, accept_task may omit identifiers and

the runtime resolves it safely. With multiple submissions, always identify the

task explicitly. Revision conflicts mean the task changed: refresh it and make

a new decision instead of overwriting newer state.

Completion gate

Call finish_team only when every required task is accepted or intentionally

cancelled. Synthesize accepted results in the final answer. Team Monitor is a

read-only view: it shows connected agents and lifecycle state, while all

mutations belong to Task Manager.

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.