Use when multiple independent subtasks can run in parallel, when a research or exploration task is large enough to keep separate rather than do inline (doing it inline fills the conversation with intermediate steps you'll carry through to the end), or when you need a specialized agent type (explore for deep search, shell for system commands). Any task with a clear deliverable and no dependency on the current thread is a good candidate to delegate.
$npx -y skills add dtyq/magic --skill subagentsInstalls into the current project.
Run `npx skills use "https://github.com/dtyq/magic" --skill "dtyq/magic/subagents"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/dtyq/magic" that are relevant to the current task. Run `npx skills add "https://github.com/dtyq/magic"` and select the relevant skills, then follow their instructions.