cosmos-delegate-to-agent_skill

This skill teaches how to delegate tasks to specialist agents using delegateToAgent, optimizing dependency graph analysis and progress tracking.

0

GitHub Stars

1

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill getcosmos/agent-skills --skill cosmos-delegate-to-agent

  • SKILL.md11.6 KB

Overview

This skill teaches agents how to use the delegateToAgent tool to orchestrate multi-agent work reliably. It focuses on dependency analysis, deciding between parallel and serial execution, and maintaining progress tracking across plans or ad-hoc tasks. The goal is efficient, auditable delegation to specialist agents while avoiding common orchestration pitfalls.

How this skill works

The skill inspects task lists or user requests to detect explicit dependency markers and infer implicit dependencies from task semantics. It groups tasks into parallelizable waves or serial chains, then issues delegateToAgent calls accordingly, taking advantage of immutable context branching for safe parallel runs. It also updates plan documents or tracking tools as delegations complete and handles tool constraints like max delegation depth and circular references.

When to use it

  • When a request involves multiple specialist activities (e.g., design, implementation, testing)
  • When tasks may be independent and could run in parallel to save time
  • When tasks have clear dependencies that require ordered execution
  • When you need to delegate parts of a plan, todo list, or multi-step request
  • When you must provide progress updates to the user or a plan document

Best practices

  • Parse the full plan or request first; identify explicit markers like “Depends on:” or numbered tasks
  • Create a dependency graph and group independent tasks into parallel waves
  • Provide each delegated agent with self-contained context and any required outputs from prior tasks
  • Update the plan/todos immediately when a delegated task completes (checkboxes, status fields, timestamps)
  • Avoid unnecessary serialization but do not parallelize tasks that reference each other

Example use cases

  • Review a codebase: delegate security, performance, and style reviews in parallel to three specialist agents
  • Build an API: run schema and type creation in parallel, then wait and delegate endpoint implementation, then delegate tests
  • Execute a product plan: break a multi-phase plan into waves, track status in the plan document and update as waves finish
  • Handle an ad-hoc request: infer a mental dependency graph, create a todo list, then delegate tasks following the graph

FAQ

List available agents with manageAgent({ action: "list" }) and match specializations to task needs. If unsure, ask the user to select from the available agents.

What if a delegated task needs output from another agent?

Treat that as a dependency: wait for the producing task to complete, capture its outputs, and supply them in the dependent delegateToAgent call to ensure correctness.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational
cosmos-delegate-to-agent skill by getcosmos/agent-skills | VeilStrat