← 返回
数据分析

Phy Agent Manager

Meta-orchestrator that analyzes tasks and creates execution plans using subagents. Use when user says "/agent-manager", "帮我分析该用什么 agent", "调度一下", "orchestrat...
元编排器,分析任务并通过子代理制定执行计划。用户说“/agent-manager”“帮我分析该用什么 agent”“调度一下”等时使用。
phy041
数据分析 clawhub v1.0.2 2 版本 100000 Key: 无需
★ 0
Stars
📥 410
下载
💾 5
安装
2
版本
#agent#latest#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 后: 确认测试通过

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


Author

Canlah AI — Run performance marketing without breaking your brand.

版本历史

共 2 个版本

  • v1.0.2 当前
    2026-05-21 13:28 安全 安全
  • v1.0.0
    2026-03-30 18:56 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Twitter Scrape

phy041
Scrape Twitter profiles and tweets via GraphQL, export to JSON or database
★ 0 📥 1,027
data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 368 📥 140,594
data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 165 📥 60,092