delegation

Delegate tasks to specialized subagents for synchronous or asynchronous execution.

Updated Jul 10, 2026
One-click install
npx skills add https://github.com/SaberAloui/agri-hub --skill delegation-saberaloui
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: delegation
Source: https://github.com/SaberAloui/agri-hub/tree/main/.local/skills/delegation
Command: npx skills add https://github.com/SaberAloui/agri-hub --skill delegation-saberaloui

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Coordinating multi-step development work alone forces sequential execution and context overload. This Skill lets you offload tasks to specialized subagents that run autonomously, in parallel, or in the background while you continue orchestrating. ## Core Features & Use Cases - Synchronous Delegation: Use subagent() to launch a subagent and block until it returns a structured result with success status and output. - Asynchronous Parallel Execution: Use startAsyncSubagent() to launch multiple independent tasks simultaneously and collect results later via waitForBackgroundTasks. - Follow-Up Messaging: Use messageSubagent() for fire-and-forget follow-ups or messageSubagentAndGetResponse() when you need the subagent's answer immediately. - Use Case: Given a session plan with tasks T002, T003, and T004, launch all three in parallel with startAsyncSubagent({ task: "T002", fromPlan: true }) and gather results when 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.