delegation

Delegate tasks to specialized subagents via subagent and startAsyncSubagent interfaces.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Delegation enables teams to break work into autonomous tasks by routing them to specialized subagents, reducing manual coordination and speeding up execution.

Core Features & Use Cases

  • Synchronous delegation: Use subagent to execute a task immediately and return the result.
  • Background execution: Start tasks with startAsyncSubagent to run in the background and collect results later.
  • Async follow-ups: Use messageSubagent to send follow-ups without blocking, or messageSubagentAndGetResponse for synchronous follow-ups when a result is needed.
  • Planning & context: When using a session plan, reference full task context via fromPlan to coordinate multiple tasks.

Quick Start

Delegate the next task from my session plan to a subagent and return the result.

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 asynchronous execution?

To delegate tasks asynchronously, use the startAsyncSubagent interface to run background tasks, then collect structured results later without blocking your main workflow.

What's the best way to coordinate multi-task workflows with subagents?

Coordinating multi-task workflows requires referencing full task context via fromPlan, allowing specialized subagents to execute planned tasks in parallel and return structured results.

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

You can send follow-up messages to running background subagents using messageSubagent for non-blocking updates, or messageSubagentAndGetResponse when you need a synchronous reply.

When should I use synchronous delegation instead of background execution?

Use synchronous delegation via the subagent interface when you need immediate task execution and results, rather than using startAsyncSubagent for non-blocking background processing.

Do I need a session plan to delegate tasks to subagents?

A session plan is not strictly required, but using fromPlan provides full task context for coordinating multiple tasks, enabling autonomous execution across session-planned workflows.

What are the limitations of asynchronous subagent orchestration?

Asynchronous subagent orchestration handles multi-task workflows and follow-up interactions, but complex real-time dependencies may require synchronous messageSubagentAndGetResponse calls to retrieve immediate results.