maestro-flow

作者 catlog22

Intent-driven workflow orchestration for multi-agent AI development — adaptive lifecycle engine, self-reinforcing knowledge graph, and visual dashboard for Claude Code, Gemini, Codex & more

527
Stars
65
Forks
TypeScript
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/catlog22/maestro-flow

快速入门

使用 maestro-flow 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

Maestro-Flow

意图驱动的多智能体工作流编排框架

说出你要做什么,Maestro 自动规划、调度、执行、验证。


npm version TypeScript Node.js MCP License: MIT

简体中文  |  English


大多数 AI 编程工具只能让一个 Agent 做一件事。 Maestro-Flow 让多个 Agent 协同完成从头脑风暴到部署上线的全流程 — 自适应决策引擎根据实际结果动态调整策略,知识图谱将每次执行的经验自动积累到下一次。


核心能力

自适应编排 — Ralph v2 引擎读取项目状态,将自然语言意图分类到 40+ 种命令链,在关键节点根据实际执行结果动态决策:继续、回退、还是插入修复循环。不写 YAML,不配置管线。

跨后端调度 — 同一工作流中混用 Claude、Codex、Gemini、Qwen、OpenCode,四种编排模式按需组合:Delegate(异步委派)、Team(角色协作)、Wave(依赖并行)、Swarm(蚁群探索)。

知识自增强 — Agent 执行中发现的模式、陷阱、决策,自动持久化为 Spec 和 Knowhow。Hook 系统将相关知识注入后续 Agent 的提示词 — 项目越用越聪明。

长周期自校正 — Odyssey 系列命令运行数小时级的自主循环,每个检查点自适应调整策略,直到满足验收标准。


安装

npm install -g maestro-flow
maestro install          # 交互式选择安装组件

需要 Node.js ≥ 18 和 Claude Code CLI。多 Agent 工作流可选装 Codex CLI、agy CLI。


快速上手

Ralph — 闭环策略层

主入口。说出目标,Ralph 自动判断开发阶段、构建命令链、在 decision 节点动态调整:

/maestro-ralph "实现 OAuth2 认证,支持 refresh token"

# Ralph 自动构建链:analyze → plan → execute → verify → review → test
# 遇到失败 → 自动插入 debug → fix → retry 循环
# 遇到新项目 → 自动前置 brainstorm → blueprint
maestro session status        # 查看当前会话进度
/maestro-ralph -c             # 从 decision 暂停点恢复
/maestro-ralph -y "..."       # 全自动,无需确认

核心管线

意图输入 → Ralph 分类(40+ 链类型)
              │
              ▼
brainstorm → blueprint(opt) → analyze → plan → execute → verify
                                                           ◆ decision
                                    review ── ◆ ── test ── ◆ ── milestone
                                                           ◆ → 下一里程碑

三种质量模式控制管线深度:

模式管线适用场景
fullverify → business-test → review → test-gen → test生产环境、安全关键
standardverify → review → test默认平衡
quickverify → CLI-review原型、热修

其他入口

/maestro "添加用户资料页"            # 意图到链规划,自动选链
/maestro-next "修复重定向 bug"       # 纯路由:分类意图 → companion / 单 Run / /maestro
/maestro-companion "修正 README 拼写"  # 轻量执行:最小 Run 生命周期

Odyssey — 长周期自主循环

适合大型调试、深度重构、UI 优化等需要持续迭代的场景:

统一入口 /maestro-odyssey <intent> --mode <name>,七种模式:

模式循环模式
--mode debug考古分析 → 诊断 → 修复 → 确认 → 泛化 → 知识沉淀
--mode planex需求解析 → 计划 → 执行 → 严格验证 → 修复循环
--mode improve多维审计 → 深度诊断 → 定向修复 → 验证 → 泛化
--mode review多维审查 → 定向修复 → 测试 → 泛化 → 知识沉淀
--mode security分层安全审计(OWASP + 依赖 + 密钥 + STRIDE),只读
--mode defensive业务锚点 → 反向切片 → 8 类防御节点扫描 → 正向传播 → 风险评分,只读
--mode ui视觉巡检 → 多维审计 → 发散探索 → 修复 → 验证

Odyssey 持续运行直到验收标准达成,中间自适应调整策略,发现的知识自动持久化。


文档

入门

指南说明
01快速开始安装、第一个工作流、核心概念
02安装指南组件选择、工作空间配置
03Ralph 引擎自适应决策、quality 模式、session 管理
04命令大全64 个命令的用法、流程图、管线衔接

日常使用

指南说明
CLI 命令参考35+ 终端命令速查
知识管理知识图谱、Spec、Knowhow、Wiki 全景
Spec 系统项目规则的编写、加载与自动注入
质量管线verify → review → test 三级管线
Hook 机制17 个 Hook 的触发时机与上下文预算控制
进阶 & 设计文档(点击展开)
指南说明
工作流结构四层命令拓扑、六条规范路径
多 Agent 协调Delegate / Team / Wave / Swarm 详解
Delegate 异步执行跨 CLI 委派、消息注入、链式调用
Overlay 扩展不改源码给命令加行为
Worktree 并行开发里程碑级分支隔离
跨项目共享多项目 link/unlink 知识库
MCP 工具9 个 MCP 端点工具参考
团队协作2–8 人 Collab 模式
搜索系统BM25F 全文搜索与 KG 集成
知识系统架构Run ledger、知识协调、检索多样性与安全剪枝
学习工具复盘、跟读、拆解、探究四件套
MaestroGraph 设计统一知识图谱引擎架构
领域知识设计语义词汇表与概念关系网络

项目规模

333 个 TypeScript 源文件 / ~80k 行代码 / 64 斜杠命令 / 45 技能包 / 23 Agent 定义 / 35+ CLI 命令 / 92 模板

技术栈  Commander.js · MCP SDK · better-sqlite3 · web-tree-sitter · React 19 · Zustand · Tailwind CSS 4 · Hono · Vite 6

目录结构
maestro/
├── src/                     # 核心 CLI(Commander.js + MCP SDK)
│   ├── commands/            # 35+ CLI 命令
│   ├── mcp/                 # MCP 服务器(stdio)
│   ├── graph/               # 知识图谱(SQLite + tree-sitter)
│   └── core/                # 工具注册、扩展加载
├── dashboard/               # Web 仪表盘(React 19)
├── .claude/
│   ├── commands/            # 64 斜杠命令
│   ├── agents/              # 23 Agent 定义
│   └── skills/              # 45 技能包
├── workflows/               # 115 工作流定义
└── templates/               # 92 JSON 模板

与同类工具对比
SuperpowersOpenSpecTrellisMaestro-Flow
定位Agent 技能框架规格驱动开发多平台 Agent 治具意图驱动编排
架构.md,无运行时CLI + GitCLI + .trellis/CLI + MCP + SQLite
路由手动选技能手动命令序列固定阶段AI 分类 40+ 链
多 Agent子 Agent 调度单 AgentChannel 模式4 模式 × 5 后端
知识仅 GitGit 归档文件日志SQLite KG + 自动注入
长时工作上下文窗口手动 continue日志恢复有状态 Odyssey 循环
自校正review-fix 循环手动重验手动Decision 节点自动重试

各有所长:Superpowers 的 prompt 工程方法论最成熟;OpenSpec 的需求规格化最严谨;Trellis 的多平台统一做得最好;Maestro-Flow 聚焦全生命周期编排、跨后端调度和知识自增强。


致谢


@catlog22 — 创建者 & 维护者

加入微信群交流:

微信群



Linux DO:学AI,上L站!


MIT License

常见问题

What is maestro-flow?

maestro-flow is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by catlog22. Intent-driven workflow orchestration for multi-agent AI development — adaptive lifecycle engine, self-reinforcing knowledge graph, and visual dashboard for Claude Code, Gemini, Codex & more. It has 527 GitHub stars.

Is maestro-flow safe to use?

maestro-flow returned warnings in SkillsLLM's automated security scan. It has no critical vulnerabilities, but review the flagged issues in the Security Report section before adding it to your workflow.

How do I install maestro-flow?

Clone the repository with "git clone https://github.com/catlog22/maestro-flow" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is maestro-flow written in?

maestro-flow is primarily written in TypeScript. It is open-source under catlog22 on GitHub, so you can review or fork the full source.

Are there alternatives to maestro-flow?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh maestro-flow against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情