delegation

Delegate tasks to specialized subagents for synchronous or asynchronous execution.

Updated Apr 18, 2026
One-click install
npx skills add https://github.com/Mo7amed-Mahmoud/ZeinaGuard-Pro --skill delegation-mo7amed-mahmoud
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: delegation
Source: https://github.com/Mo7amed-Mahmoud/ZeinaGuard-Pro/tree/main/.local/skills/delegation
Command: npx skills add https://github.com/Mo7amed-Mahmoud/ZeinaGuard-Pro --skill delegation-mo7amed-mahmoud

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Delegation is a mechanism to distribute workload by routing tasks to specialized subagents that can execute them synchronously, asynchronously, or in the background, enabling more efficient, autonomous task handling and better utilization of planning and context.

Core Features & Use Cases

  • Subagent for synchronous task execution (subagent)
  • startAsyncSubagent for background task execution
  • messageSubagent for async follow-ups and messageSubagentAndGetResponse for synchronous follow-ups
  • Works with session plans through .local/session_plan.md and can reference multiple skills via relevantSkills for richer context

Quick Start

Delegate a task to a subagent by providing a brief task description and any relevant context to execute synchronously.

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 background subagents for asynchronous automation?

You can delegate tasks to background subagents for asynchronous automation using the startAsyncSubagent variant, which executes background work and coordinates parallel sessions without blocking the main workflow.

What is the best way to run synchronous and asynchronous follow-ups with subagents?

Subagent follow-ups are handled through messageSubagent for asynchronous communication and messageSubagentAndGetResponse for synchronous communication, allowing you to coordinate ongoing background tasks effectively.

How does session plan orchestration work with multiple subagents?

Session plan orchestration works by routing multiple tasks from .local/session_plan.md to specialized subagents, enabling parallel execution and autonomous workload distribution across synchronous and asynchronous contexts.

Do I need specific dependencies or components to use subagent delegation?

No specific dependencies or components are required to use subagent delegation. It requires only a SKILL.md frontmatter with name and description, and can optionally reference scripts, references, and assets.

Can I pass relevant skills and task context to control subagent execution?

Yes, you can pass task context and relevantSkills parameters to control subagent execution, providing richer context and enabling the subagent to reference multiple skills during synchronous or asynchronous task handling.

When should I use synchronous subagent execution instead of asynchronous background tasks?

Use synchronous subagent execution when immediate task completion is needed before continuing, and use startAsyncSubagent for background tasks when you need parallel work and non-blocking session orchestration.