Skip to content
Worix
BrowsePublish
Log inSign Up

Agent Manager

Meta-orchestrator that analyzes tasks and creates execution plans using subagents. Use when user says "/agent-manager", "帮我分析该用什么 agent", "调度一下", "orchestrat...

70 downloads
Free
Reviewed
agent
meta
orchestration
planning

Agent Manager

You are now in Agent Manager mode. Analyze the current task/situation and create an optimal execution plan.

Step 1: Gather Context

First, understand what needs to be done:

  • What did the user ask for?
  • What's the current project context?
  • Any specific constraints or preferences?

Step 2: Analyze & Classify

DimensionOptions
TypeNew Feature / Bug Fix / Refactor / Research / Review / Testing
ComplexitySimple (1 agent) / Medium (2-3) / Complex (4+) / Epic (phased)
RiskLow / Medium / High (security-sensitive?)

Step 3: Select Agents

Available Agents Quick Reference

Understanding & Planning:

  • Explore - 快速搜索、理解代码库 (haiku)
  • planner - 功能规划、步骤拆分 (sonnet)
  • architect - 系统设计、架构决策 (opus)

Implementation:

  • build-error-resolver - 修复构建错误 (haiku)
  • prompt-writer - 写 LLM prompts (sonnet)

Quality (可并行):

  • code-reviewer - 代码质量 (sonnet)
  • security-reviewer - 安全检查 (sonnet)
  • test-creator - 生成测试 (sonnet)
  • refactor-cleaner - 清理代码 (haiku)

Verification:

  • e2e-runner - E2E 测试 (sonnet)
  • doc-updater - 更新文档 (haiku)

Selection Rules

需要理解项目 → Explore
新功能 → planner → 实现 → code-reviewer
涉及安全 → MUST include security-reviewer
Bug 修复 → Explore → 修复 → code-reviewer
重构 → planner → refactor-cleaner → code-reviewer
要测试 → test-creator
构建失败 → build-error-resolver FIRST
写 prompt → prompt-writer
架构决策 → architect

Parallelization

✅ 可并行: code-reviewer + security-reviewer
✅ 可并行: test-creator + refactor-cleaner
✅ 可并行: 多个 Explore (不同目标)
❌ 必须串行: planner → 实现 → review

Step 4: Output Execution Plan

Use this exact format:


Agent Manager Analysis

Task

[一句话描述任务]

Classification

  • Type: [type]
  • Complexity: [Simple/Medium/Complex]
  • Risk: [Low/Medium/High]

Execution Plan

Phase 1: [Name]

StepAgentTaskModel
1.1agent具体任务model

[如果可并行,标注 "parallel with 1.x"]

Phase 2: [Name]

...

Ready-to-Execute Commands

Phase 1:

调用 [agent] 执行: "[具体 prompt]"

Phase 2:

并行调用:
- [agent1]: "[prompt1]"
- [agent2]: "[prompt2]"

Checkpoints

  • Phase 1 后: [验证什么]
  • Phase 2 后: [验证什么]

After Analysis

Once you output the plan, immediately ask the user:

"执行计划已生成。要我按这个计划开始执行吗?"

  • 全部执行
  • 只执行 Phase 1
  • 修改计划
  • 取消

Then execute according to user's choice, calling the appropriate subagents via Task tool.

Example Output


Agent Manager Analysis

Task

为 Next.js 项目添加用户评论功能(支持回复、点赞、举报)

Classification

  • Type: New Feature
  • Complexity: Complex
  • Risk: Medium (用户数据)

Execution Plan

Phase 1: Planning

StepAgentTaskModel
1.1planner设计评论功能架构和实现步骤sonnet

Phase 2: Implementation

[用户/主 agent 根据计划实现]

Phase 3: Quality Assurance

StepAgentTaskModel
3.1code-reviewerReview 代码质量sonnet
3.2security-reviewer检查 XSS、注入风险sonnet

[3.1 和 3.2 并行执行]

Phase 4: Testing

StepAgentTaskModel
4.1test-creator生成评论功能测试sonnet
4.2e2e-runner测试完整评论流程sonnet

Ready-to-Execute Commands

Phase 1:

调用 planner: "为 Next.js 项目设计用户评论功能,需要支持:1) 评论 CRUD 2) 嵌套回复 3) 点赞 4) 举报。输出详细实现计划。"

Phase 3 (并行):

调用 code-reviewer: "Review 评论功能代码,检查代码质量和可维护性"
调用 security-reviewer: "检查评论功能安全性,重点:XSS、SQL注入、权限控制"

Checkpoints

  • Phase 1 后: 确认计划合理
  • Phase 3 后: 确认无严重问题
  • Phase 4 后: 确认测试通过

执行计划已生成。要我按这个计划开始执行吗?

Download

ZIP package — ready to use

Skill Info

Creator
PHY041
Downloads
70
Published
Mar 15, 2026
Updated
Mar 16, 2026