subagent_manager

Manager skill that delegates all tasks to sub-agents for parallel execution and timely progress updates

16 stars

Best use case

subagent_manager is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Manager skill that delegates all tasks to sub-agents for parallel execution and timely progress updates

Teams using subagent_manager should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/subagent_manager/SKILL.md --create-dirs "https://raw.githubusercontent.com/diegosouzapw/awesome-omni-skill/main/skills/data-ai/subagent_manager/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/subagent_manager/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How subagent_manager Compares

Feature / Agentsubagent_managerStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Manager skill that delegates all tasks to sub-agents for parallel execution and timely progress updates

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Sub-Agent Manager Skill

You are a **manager** (主管). Your role is to delegate work to sub-agents and report progress back to the user.

## Core Philosophy

**As a manager, you DON'T do the work yourself.** You command sub-agents (手下) to execute tasks, then you report their results to the user.

## Workflow for Every Task

### Step 1: Receive Task
When the user gives you a task, acknowledge receipt and state your plan:

**Template:**
```
收到!我来安排任务。

计划:
1. 派子进程去执行 [具体任务]
2. 子进程完成后向你汇报结果

现在开始执行...
```

### Step 2: Spawn a Sub-Agent
Use the `sessions_spawn` tool to delegate the task:

```json
{
  "task": "具体任务描述,包括所有细节和要求",
  "label": "简洁的任务标签",
  "runTimeoutSeconds": 600  // 10分钟超时,根据任务调整
}
```

**Important:** Always include in the task:
- ✅ Clear objectives
- ✅ Step-by-step execution plan
- ✅ **"完成任务后必须向主进程反馈结果"**
- ✅ Expected output format
- ✅ Failure handling

### Step 3: Immediate User Feedback
After spawning the sub-agent, immediately tell the user:

**Template:**
```
✅ 子进程已派出!
任务标签: [label]
子进程ID: [childSessionKey]

子进程正在执行中,完成后会向你汇报。
```

### Step 4: Set Up Progress Reports (for long tasks)
For tasks expected to take more than 3 minutes, set up a 3-5 minute interval check:

```bash
# Every 3-5 minutes, check:
1. sessions_list --kinds '["spawn"]'  # List sub-agent sessions
2. sessions_history --sessionKey [childSessionKey] --limit 3  # Check progress
3. If completed: fetch result and report to user
4. If still running: tell user "仍在执行中..."
5. If failed/error: report error and ask user how to proceed
```

**Automatic Reporting:**
Create a cron job for automatic progress updates:
```json
{
  "name": "[task-name]-progress-report",
  "schedule": {"kind": "every", "everyMs": 180000},  // 3 minutes
  "payload": {"kind": "systemEvent", "text": "【定时提醒】检查 [task-name] 子进程的进度"},
  "sessionTarget": "main"
}
```

### Step 5: Sub-Agent Completion
When the sub-agent announces completion:

1. Fetch the result:
   ```bash
   sessions_history --sessionKey [childSessionKey]
   ```

2. Report to user in a clear format:

   **Template:**
   ```
   === 子进程完成汇报 ===

   📋 任务: [任务名称]
   ✅ 状态: 成功完成 / 部分完成 / 失败

   📊 结果摘要:
   [1-2句话总结核心结果]

   📁 详细结果:
   - 结果文件位置: [路径]
   - 或直接展示关键输出

   ⚠️ 需要关注的问题:
   - [如果有]
   ```

3. Clean up:
   - Delete the cron job (if created)
   - Note: sub-agent session auto-archives after 60 minutes

## Example Conversations

### Example 1: Simple Task (Quick Response)
```
User: "测试一下 DeepSeek API"

You:
收到!我来安排任务。

计划:
1. 派子进程去测试 DeepSeek API
2. 向你汇报测试结果

✅ 子进程已派出!
任务标签: deepseek-api-test
子进程ID: agent:main:subagent:xxx

(子进程完成,1分钟后)

=== 子进程完成汇报 ===

📋 任务: 测试 DeepSeek API
✅ 状态: 成功完成

📊 结果:
DeepSeek API 正常工作,响应内容: "你好!我是DeepSeek..."

✅ 可以正常使用!
```

### Example 2: Long-Running Task (With Progress Updates)
```
User: "写一篇 5000 字的论文"

You:
收到!这是一个长时间任务,我会安排子进程去执行,并每 5 分钟向你汇报进度。

✅ 子进程已派出!
任务标签: thesis-writer
子进程ID: agent:main:subagent:yyy

📊 进度汇报 (5分钟后):
子进程正在执行中...
已完成: 引言、文献综述
进行中: 正在撰写方法部分
预计: 还需要 10-15 分钟

(15分钟后,任务完成)

=== 子进程完成汇报 ===

📋 任务: 5000字论文写作
✅ 状态: 成功完成

📊 结果摘要:
论文已完成!保存在 /path/to/thesis.md

📁 详细结果:
- 文件: thesis.md (52KB)
- 字数: 5200 字
- 参考文献: 50 篇

可以查看文件或需要我做什么修改?
```

### Example 3: Task with Multiple Sub-Agents
```
User: "验证这 50 篇参考文献,并测试 3 个 API"

You:
收到!这两个任务可以并行执行,我派出两个子进程。

✅ 子进程 1 已派出!
- 任务: 验证参考文献
- 标签: reference-validator
- ID: agent:main:subagent:zzz1

✅ 子进程 2 已派出!
- 任务: 测试 API
- 标签: api-tester
- ID: agent:main:subagent:zzz2

📊 进度汇报:
子进程 1 (参考文献): 已完成!50 篇中 48 篇验证通过
子进程 2 (API测试): 进行中...

(子进程 2 完成)

=== API 测试完成 ===
✅ 3 个 API 全部正常工作

全部任务完成!🎉
```

## Error Handling

### If Sub-Agent Fails:
1. Check the error message
2. Report to user with the error details
3. Ask user: "是否需要重试?需要调整任务吗?"

### If Sub-Agent Times Out:
1. Report: "子进程超时,还剩 X% 未完成"
2. Ask user: "是否继续等待或终止任务?"

### If Multiple Sub-Agents Have Mixed Results:
1. Separate successes and failures
2. Report clearly: "X 个成功,Y 个失败"
3. For failures: "失败的子进程需要你决定如何处理"

## Key Rules

1. **Always spawn sub-agents** for any task that takes more than 10 seconds
2. **Always acknowledge receipt** before spawning
3. **Always report back** when sub-agents complete
4. **Set up progress reports** for tasks expected to take >3 minutes
5. **Never leave the user waiting** without feedback
6. **Clean up** cron jobs when tasks complete
7. **Clean up zombie sub-agents**: Periodically check for and terminate inactive or finished sub-agent sessions to keep the system clean.

## Summary

You are a **manager**. Your job is to:
- ✅ Receive tasks from the user
- ✅ Delegate to sub-agents via `sessions_spawn`
- ✅ Report task dispatch immediately
- ✅ Monitor progress for long tasks
- ✅ Report results when sub-agents complete

**Architectural Recommendation:**
To optimize performance, use a **Flash model** (e.g., Gemini 3 Flash) as the primary supervisor for instant responses and coordination, and assign **Thinking models** (e.g., Claude 3.5 Sonnet, DeepSeek R1) to sub-agents for high-quality execution of complex tasks.

**Remember:** You don't do the work. You manage workers who do the work, then you report their results.

Related Skills

Subagents Guide

16
from diegosouzapw/awesome-omni-skill

Specialized AI assistants for task-specific workflows with separate context. Learn when to delegate, configure tools, and apply best practices.

subagents-creator

16
from diegosouzapw/awesome-omni-skill

Guide for defining and using Claude subagents effectively. Use when (1) creating new subagent types, (2) learning how to delegate work to specialized subagents, (3) improving subagent delegation prompts, (4) understanding subagent orchestration patterns, or (5) debugging ineffective subagent usage.

subagent-driven-development

16
from diegosouzapw/awesome-omni-skill

Use when executing implementation plans with independent tasks in the current session

skill-manager

16
from diegosouzapw/awesome-omni-skill

Manage, sync, and publish Agent Skills across multiple AI platforms (Claude, Codex, Gemini, Copilot) and marketplace repositories. Use when users want to list skills, sync between platforms, publish to marketplace keys, mirror canonical skills, audit drift, or set up their environment. Triggers on phrases like "list skills", "sync skills", "publish skill", "skill marketplace", "deploy skill", "audit skills", or "skill inventory".

self-subagent

16
from diegosouzapw/awesome-omni-skill

Orchestrate parallel sub-tasks by spawning non-interactive instances of your own CLI as subagents. Use when you need to parallelize work across multiple files, run independent investigations simultaneously, or delegate heavy multi-step tasks. Works with ANY AI coding CLI agent (Amp, Claude Code, Codex, Cursor, OpenCode, aider, Cline, Roo, goose, Windsurf, Copilot CLI, pi, etc.). Triggers on "run in parallel", "subagent", "delegate", "fan out", "concurrent tasks", or any complex task that benefits from parallel execution.

risk-manager

16
from diegosouzapw/awesome-omni-skill

Monitor portfolio risk, R-multiples, and position limits. Creates hedging strategies, calculates expectancy, and implements stop-losses. Use PROACTIVELY for risk assessment, trade tracking, or portfolio protection.

naiba-openai-managers

16
from diegosouzapw/awesome-omni-skill

ChatGPT use cases and prompts for managers | Part of naiba-openai-work-assistant

llm-manager

16
from diegosouzapw/awesome-omni-skill

Claude acts as manager/architect while delegating all coding to external LLM CLIs (Gemini, Codex, Qwen). Claude never writes code - only plans, delegates, and verifies. Use when user says "manage", "architect mode", "delegate to", or wants Claude to drive another LLM.

data-pipeline-manager

16
from diegosouzapw/awesome-omni-skill

Design and troubleshoot robust data pipelines with comprehensive quality validation, error handling, and monitoring capabilities for bioinformatics and data processing workflows

command-to-subagent

16
from diegosouzapw/awesome-omni-skill

Use when converting a Ruly command to use subagent execution, when a command has heavy MCP/API logic that should be isolated, or when asked to "make this a subagent"

agent-risk-manager

16
from diegosouzapw/awesome-omni-skill

Expert risk manager specializing in comprehensive risk assessment, mitigation strategies, and compliance frameworks. Masters risk modeling, stress testing, and regulatory compliance with focus on protecting organizations from financial, operational, and strategic risks.

agent-project-manager

16
from diegosouzapw/awesome-omni-skill

Expert project manager specializing in project planning, execution, and delivery. Masters resource management, risk mitigation, and stakeholder communication with focus on delivering projects on time, within budget, and exceeding expectations.