maestro
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseMaestro Workflow
Maestro工作流
"Spend tokens once on a good plan; reuse it many times."
"在优质规划上投入一次Token,便可多次复用。"
Triggers
触发命令
| Trigger | Action |
|---|---|
| Start Prometheus interview mode (supports |
| Execute plan with Agent Teams (supports |
| Validate Maestro prerequisites |
| Show current Maestro state |
| Post-execution plan verification |
| Inject code style guides into project CLAUDE.md |
| Scaffold project context (product, tech stack, guidelines) |
| Clean stale Maestro state |
| Deep read-only investigation with structured report |
| Capture decisions, context, and constraints to persistent notepad |
| Extract hard-won principles as reusable learned skills |
| Delegated security analysis with severity ratings |
| Iterative fix-and-verify loop (max 5 cycles) |
| Multi-agent research with session persistence |
| TDD implementation (kraken) |
| Quick fixes |
| Strategic advisor (opus) |
| Codebase search |
| 触发命令 | 操作 |
|---|---|
| 启动Prometheus访谈模式(支持 |
| 通过Agent Teams执行规划(支持 |
| 验证Maestro前置依赖 |
| 显示当前Maestro状态 |
| 执行后规划验证 |
| 将代码风格指南注入项目CLAUDE.md文件 |
| 搭建项目上下文(产品、技术栈、规范) |
| 清理过期的Maestro状态 |
| 深度只读调研并生成结构化报告 |
| 将决策、上下文和约束条件保存至持久记事本 |
| 从实践中提取可复用的经验技能 |
| 委托式安全分析并生成严重等级评级 |
| 迭代式修复与验证循环(最多5轮) |
| 多Agent调研并支持会话持久化 |
| TDD实现(kraken) |
| 快速修复 |
| 战略顾问(opus) |
| 代码库搜索 |
Planning Flow
规划流程
/design → prometheus (team lead) → detect libraries → fetch docs (Context7/WebSearch) → spawns explore/oracle → interview → leviathan (review) → plan file- User triggers
/design <description> - Prometheus creates team if research needed
2.5. Loads prior wisdom from (if any) 2.7. Detects external library/framework mentions and fetches docs via Context7 MCP (falls back to WebSearch/WebFetch)
.maestro/wisdom/ - Spawns explore for codebase research (and web research when relevant)
- Spawns oracle for architectural decisions
- Conducts structured interview (one question at a time, multiple-choice options, incremental validation)
- Draft updates in
.maestro/drafts/{topic}.md - When clear, generate plan to
.maestro/plans/{name}.md - Spawn leviathan to validate plan quality
- Cleanup team
Quick mode () streamlines to: team → 1 explore → 1-2 questions → plan
--quick/design → prometheus (团队负责人) → 检测依赖库 → 获取文档 (Context7/WebSearch) → 启动explore/oracle → 访谈 → leviathan (审核) → 规划文件- 用户触发
/design <需求描述> - 若需调研,Prometheus会创建协作团队
2.5. 加载中的历史经验(如有) 2.7. 检测外部库/框架提及,并通过Context7 MCP获取文档( fallback至WebSearch/WebFetch)
.maestro/wisdom/ - 启动explore进行代码库调研(相关时同步进行网络调研)
- 启动oracle进行架构决策
- 开展结构化访谈(逐个问题提问,提供多选选项,逐步验证)
- 在中更新草稿
.maestro/drafts/{topic}.md - 需求明确后,生成规划文件至
.maestro/plans/{name}.md - 启动leviathan验证规划质量
- 清理协作团队
快速模式()简化流程:团队 → 1次explore → 1-2个问题 → 生成规划
--quickExecution Flow
执行流程
/work → orchestrator (team lead) → spawn workers in parallel → workers self-claim tasks- User triggers
/work - Orchestrator loads plan from 2.5. Validates plan structure and confirms with user before proceeding 2.7. Optionally creates a git worktree for isolated execution (prevents conflicts with concurrent sessions)
.maestro/plans/ - Creates tasks via TaskCreate with dependencies
- Spawns 2-4 workers in parallel (kraken, spark)
- Assigns first round, workers self-claim remaining via TaskList
- Orchestrator verifies results, extracts wisdom to
.maestro/wisdom/ - Suggests for post-execution verification
/review
Use to skip already-completed tasks.
--resume/work → orchestrator (团队负责人) → 并行启动工作Agent → Agent自主认领任务- 用户触发
/work - Orchestrator从加载规划 2.5. 验证规划结构,并在执行前与用户确认 2.7. 可选创建git工作区以隔离执行(避免与并发会话冲突)
.maestro/plans/ - 通过TaskCreate创建带依赖关系的任务
- 并行启动2-4个工作Agent(kraken、spark)
- 分配首轮任务,剩余任务由Agent通过TaskList自主认领
- Orchestrator验证执行结果,将经验提取至
.maestro/wisdom/ - 建议执行进行执行后验证
/review
使用可跳过已完成的任务。
--resumeState Directory
状态目录
.maestro/
├── plans/ # Committed work plans
├── drafts/ # Interview drafts
├── wisdom/ # Accumulated learnings
└── context/ # Project context (product, tech stack, guidelines)
.worktrees/ # Git worktrees for isolated plan execution (project root).maestro/
├── plans/ # 已确认的工作规划
├── drafts/ # 访谈草稿
├── wisdom/ # 积累的经验
└── context/ # 项目上下文(产品、技术栈、规范)
.worktrees/ # 用于隔离规划执行的Git工作区(项目根目录)Agents
Agent列表
| Agent | Purpose | Model | Team Lead? | Has Team Tools? |
|---|---|---|---|---|
| Interview-driven planner. Detects libraries and fetches docs via Context7 MCP. Has web research tools (WebSearch, WebFetch) | sonnet | Yes | Yes (full) |
| Execution coordinator | sonnet | Yes | Yes (full) |
| TDD implementation | sonnet | No | Yes (self-claim) |
| Quick fixes | sonnet | No | Yes (self-claim) |
| Strategic advisor | opus | No | Yes (self-claim) |
| Codebase search | sonnet | No | Yes (self-claim) |
| Deep plan reviewer | opus | No | Yes (self-claim) |
| Knowledge consolidation | haiku | No | Yes (self-claim) |
| Status tracking | haiku | No | Yes (self-claim) |
| Security analysis (read-only) | opus | No | Yes (self-claim) |
All agents have , , , for team self-coordination. Only team leads have , , and for spawning.
TaskListTaskGetTaskUpdateSendMessageTaskTeamCreateTeamDelete| Agent | 用途 | 模型 | 是否为团队负责人? | 具备团队工具? |
|---|---|---|---|---|
| 访谈式规划器。通过Context7 MCP检测依赖库并获取文档。具备网络调研工具(WebSearch、WebFetch) | sonnet | 是 | 是(完整工具集) |
| 执行协调器 | sonnet | 是 | 是(完整工具集) |
| TDD实现 | sonnet | 否 | 是(可自主认领) |
| 快速修复 | sonnet | 否 | 是(可自主认领) |
| 战略顾问 | opus | 否 | 是(可自主认领) |
| 代码库搜索 | sonnet | 否 | 是(可自主认领) |
| 深度规划审核 | opus | 否 | 是(可自主认领) |
| 知识整合 | haiku | 否 | 是(可自主认领) |
| 状态跟踪 | haiku | 否 | 是(可自主认领) |
| 安全分析(只读) | opus | 否 | 是(可自主认领) |
所有Agent均具备、、、以实现团队自主协作。仅团队负责人具备、和用于创建协作团队。
TaskListTaskGetTaskUpdateSendMessageTaskTeamCreateTeamDeleteAgent Teams Setup
Agent团队配置
Requires experimental feature flag in :
~/.claude/settings.jsonjson
{
"env": {
"CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
}
}需在中开启实验性功能标志:
~/.claude/settings.jsonjson
{
"env": {
"CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
}
}Skill Interoperability
技能互操作性
Maestro auto-detects installed skills and injects their guidance into worker prompts. This allows workers to follow project-specific conventions without manual configuration.
Discovery locations:
- Project:
.claude/skills/ - Global:
~/.claude/skills/
Graceful degradation: If no skills are found, workflows proceed normally without injection.
See docs/SKILL-INTEROP.md for full details.
Maestro会自动检测已安装的技能,并将其指导内容注入工作Agent的提示词中。这使得工作Agent无需手动配置即可遵循项目特定规范。
发现路径:
- 项目级:
.claude/skills/ - 全局级:
~/.claude/skills/
优雅降级: 若未找到任何技能,工作流将正常执行,不会注入额外内容。
详情请见docs/SKILL-INTEROP.md。
Quick Reference
速查指南
- Design:
/design add user authentication - Execution:
/work - Research: ,
@explore,@oracle/research - Implementation: ,
@tdd@spark - Analysis: ,
/analyze/security-review - Quality: ,
/ultraqa/review - Knowledge: ,
/note/learner - Setup:
/setup
- 规划:
/design add user authentication - 执行:
/work - 调研:,
@explore,@oracle/research - 实现:,
@tdd@spark - 分析:,
/analyze/security-review - 质量保障:,
/ultraqa/review - 知识管理:,
/note/learner - 初始化:
/setup