delegation

Delegate tasks to specialized subagents for synchronous or asynchronous execution.

Updated Apr 20, 2026
One-click install
npx skills add https://github.com/AmirEmad11/instabot --skill delegation-amiremad11
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: delegation
Source: https://github.com/AmirEmad11/instabot/tree/main/.local/skills/delegation
Command: npx skills add https://github.com/AmirEmad11/instabot --skill delegation-amiremad11

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Coordinating multiple coding tasks manually is slow and error-prone. This Skill lets you offload work to specialized subagents that execute tasks autonomously, either blocking for immediate results or running in parallel in the background. ## Core Features & Use Cases - Synchronous Delegation: Use subagent() to launch a subagent and block until it returns the task result. - Asynchronous Parallel Execution: Use startAsyncSubagent() to launch multiple independent tasks simultaneously and collect results later with waitForBackgroundTasks. - Follow-up Messaging: Use messageSubagent() for fire-and-forget follow-ups or messageSubagentAndGetResponse() when you need the subagent's answer before continuing. - Use Case: Given a session plan with tasks T002, T003, and T004, launch all three as async subagents referencing the plan, then collect their results once they finish. ## Quick Start Delegate task T003 from my session plan to a subagent and run it in the background while I continue working.

Frequently Asked Questions about delegation

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

FAQPage Schema
How do I run multiple tasks in parallel with subagents?

Call startAsyncSubagent once per independent task, optionally referencing task IDs from a session plan with fromPlan set to true. Each call returns immediately, and you collect all results later using waitForBackgroundTasks.

What is the difference between subagent and startAsyncSubagent?

subagent blocks until the task completes and returns the result directly, while startAsyncSubagent returns immediately and runs the task in the background. Use subagent when you need the output before continuing.

When should I not delegate a task to a subagent?

Avoid delegation for simple tasks you can do directly, read-only operations like grep or glob, quick file edits, and analysis or debugging work such as code review. Subagents also cannot run workflows or preview the app.

How do I send a follow-up message to a running subagent?

Use messageSubagent with the subagent's alias for asynchronous fire-and-forget follow-ups, or messageSubagentAndGetResponse with a timeout when you need the reply immediately. The alias is returned when the subagent starts.

How do subagents get access to implementation skills?

Pass skill file paths through the relevantSkills parameter using the full path from the skills view. Include every implementation skill with integration details such as auth or storage, but exclude orchestration skills meant for the main agent.