delegation

Delegate tasks to subagents for synchronous or asynchronous parallel execution.

Updated Mar 12, 2026
One-click install
npx skills add https://github.com/aryankumarrai/VarAI --skill delegation-aryankumarrai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: delegation
Source: https://github.com/aryankumarrai/VarAI/tree/main/.local/skills/delegation
Command: npx skills add https://github.com/aryankumarrai/VarAI --skill delegation-aryankumarrai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines complex workflows by allowing you to delegate specific tasks to specialized subagents, enabling parallel processing and autonomous execution.

Core Features & Use Cases

  • Synchronous Task Execution: Use subagent() to run a task and wait for its result, ideal for sequential steps.
  • Asynchronous Task Execution: Use startAsyncSubagent() to launch tasks in the background, allowing for parallel execution of independent operations.
  • Follow-up Messaging: Communicate with running subagents using messageSubagent() (async) or messageSubagentAndGetResponse() (sync) for iterative refinement or status checks.
  • Use Case: When planning a complex coding task, you can delegate code generation to one subagent, unit testing to another, and documentation to a third, all running concurrently.

Quick Start

Delegate the task of fixing the authentication bug in src/auth.ts to a subagent.

Frequently Asked Questions about delegation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I delegate tasks to subagents for parallel execution?

You can delegate tasks to subagents for parallel execution by using the `startAsyncSubagent()` function, which launches independent operations in the background without blocking your main workflow.

What is the difference between synchronous and asynchronous task delegation?

Synchronous task delegation uses `subagent()` to wait for a result before continuing, while asynchronous delegation uses `startAsyncSubagent()` to run tasks concurrently in the background for parallel processing.

Can I send follow-up messages to a running subagent?

Yes, you can send follow-up messages to running subagents for iterative refinement or status checks using `messageSubagent()` for asynchronous communication or `messageSubagentAndGetResponse()` for synchronous replies.

When should I use parallel processing for complex workflow management?

You should use parallel processing for complex workflow management when you need to distribute independent operations across multiple agents, such as generating code, running unit tests, and writing documentation concurrently.

Does the delegation skill require any external dependencies?

No, the delegation skill does not require any external dependencies, allowing you to implement workflow automation and agent communication without additional environment setup or package installations.