delegation

Delegate tasks to subagents for synchronous or background execution.

Updated Dec 1, 2025
One-click install
npx skills add https://github.com/KartikSharma4448/MyPortfolio --skill delegation-kartiksharma4448
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: delegation
Source: https://github.com/KartikSharma4448/MyPortfolio/tree/main/.local/skills/delegation
Command: npx skills add https://github.com/KartikSharma4448/MyPortfolio --skill delegation-kartiksharma4448

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Delegate tasks to specialized subagents for autonomous execution and orchestration.

Core Features & Use Cases

  • Synchronous task delegation: Use subagent for immediate results.
  • Background processing: Use startAsyncSubagent for tasks that can run in the background.
  • Async follow-ups: Use messageSubagent for non-blocking follow-ups.
  • Sync follow-ups: Use messageSubagentAndGetResponse to receive results on demand.
  • Skill integration: Include relevantFiles to access skill docs when needed.

Quick Start

Delegate the current task to a subagent for synchronous execution 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 autonomous AI agents for execution?

You can delegate tasks to autonomous AI agents using subagent for synchronous execution or startAsyncSubagent for background processing. This allows specialized subagents to handle orchestration and return results independently.

What's the best way to run background tasks with subagents?

Use startAsyncSubagent to run background tasks with subagents. This initiates non-blocking autonomous execution, allowing you to continue orchestration while the subagent processes the delegated task independently.

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

Yes, you can send follow-up messages to a running async subagent using messageSubagent for non-blocking communication, or messageSubagentAndGetResponse when you need to receive synchronous results on demand.

How does synchronous task delegation work for AI agents?

Synchronous task delegation uses the subagent function to assign a task to a specialized agent and immediately wait for the result. It blocks the current execution until the subagent completes its processing and returns the output.

Do I need any specific dependencies to use subagent orchestration?

No specific dependencies are required to use subagent orchestration. The skill provides built-in functions for synchronous, asynchronous, and background task delegation without needing external components or setup.

When should I use synchronous versus asynchronous subagent delegation?

Use synchronous subagent delegation when you need immediate results, and startAsyncSubagent for long-running background tasks. Use messageSubagentAndGetResponse for sync follow-ups or messageSubagent for non-blocking async follow-ups.