agent-patterns-catalog
AI Agent 架构模式目录。提供 ReAct、Multi-Agent Conversation、Multi-Agent Workflow、 RAG Agent、Tool-Use Agent、Autonomous Agent 六种核心模式的参考架构、组件拓扑、 数据流、设计决策和框架无关的最佳实践。供 agent-dev-workshop Phase 2 调用。
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 1.6k
- Forks
- 491
01 前言 Front Matter
- name
- agent-patterns-catalog
- origin
- ECC
- description
- AI Agent 架构模式目录。提供 ReAct、Multi-Agent Conversation、Multi-Agent Workflow、 RAG Agent、Tool-Use Agent、Autonomous Agent 六种核心模式的参考架构、组件拓扑、 数据流、设计决策和框架无关的最佳实践。供 agent-dev-workshop Phase 2 调用。
02 资源文件 6
- 参考文档references/autonomous-agent.md4.7 KB
- 参考文档references/multi-agent-conversation.md3.4 KB
- 参考文档references/multi-agent-workflow.md3.8 KB
- 参考文档references/rag-agent.md4.4 KB
- 参考文档references/react-agent.md2.4 KB
- 参考文档references/tool-use-agent.md4.3 KB
03 SKILL.md 正文
Agent Patterns Catalog
AI Agent 架构模式目录,为 Agent 设计提供框架无关的参考架构。
何时激活
agent-dev-workshopPhase 2 自动调用- 用户询问 Agent 架构模式选择
- 需要对比不同 Agent 架构方案时
模式索引
| 模式 | 核心思想 | 适用场景 | Reference |
|---|---|---|---|
| ReAct Agent | 思考→行动→观察循环 | 通用任务、搜索+操作 | references/react-agent.md |
| Multi-Agent Conversation | 多角色自由对话 | 辩论、评审、头脑风暴 | references/multi-agent-conversation.md |
| Multi-Agent Workflow | DAG/Pipeline 编排 | 阶段式处理、内容生产 | references/multi-agent-workflow.md |
| RAG Agent | 检索增强生成 | 知识问答、文档分析 | references/rag-agent.md |
| Tool-Use Agent | 工具调用链 | API 集成、数据处理 | references/tool-use-agent.md |
| Autonomous Agent | 自主规划+执行+反思 | 开放式任务、自主研究 | references/autonomous-agent.md |
模式选择决策树
Q1: Agent 需要自主分解复杂任务吗?
├─ Yes → Autonomous Agent
└─ No → Q2
Q2: 涉及多个不同角色协作吗?
├─ Yes → Q3
└─ No → Q4
Q3: 角色之间需要自由对话还是固定流程?
├─ 自由对话 → Multi-Agent Conversation
└─ 固定流程 → Multi-Agent Workflow
Q4: 核心能力是知识检索吗?
├─ Yes → RAG Agent
└─ No → Q5
Q5: 需要推理+多步操作还是简单工具调用?
├─ 推理+多步 → ReAct Agent
└─ 简单调用 → Tool-Use Agent
混合模式
真实项目中常出现混合模式,常见组合:
| 组合 | 场景 | 设计要点 |
|---|---|---|
| RAG + ReAct | 基于知识库的推理和操作 | 检索作为一种 Tool 嵌入 ReAct 循环 |
| RAG + Tool-Use | 知识问答 + 数据操作 | 检索和工具并列 |
| Workflow + ReAct | 流水线中某阶段需要推理 | 流水线节点内部嵌入 ReAct loop |
| Autonomous + Tool-Use | 自主规划 + 工具执行 | Plan 产出的子任务由 Tool Agent 执行 |
使用方式
# 在 agent-dev-workshop Phase 2 中
1. 根据 Phase 1 确认的 Agent 类型,读取对应 reference 文件
2. 从 reference 中提取参考架构图
3. 根据实际 spec 调整组件拓扑
4. 记录设计决策
04 同仓库更多 Skills
worktable-review-with-annotations
Create, inspect, reply to, update, or resolve situated Worktable annotations. Use when feedback belongs to a Doc section, block, text range, or HTML Doc, or when the user asks to address existing review feedback and coordinate a requested artifact edit.
worktable-find-and-synthesize-context
Find, assess, and synthesize context from Worktable Docs and Records. Use when the user asks what a workspace contains, wants workspace-backed research, needs current facts reconciled across artifacts, or requests a cited synthesis without changing workspace state.
worktable-create-or-update-docs
Create, edit, rename, or maintain narrative Worktable Docs. Use for plans, decisions, briefs, notes, research syntheses, and other durable prose when the user requests a new artifact or a safe update to an existing one.
worktable-create-or-manage-records
Organize repeated structured information as durable Worktable Records. Use for research datasets, inventories, directories, pipelines, trackers, and other collections whose items need identity, fields, filtering, links, validation, or individual updates.
worktable-create-or-manage-interactive-html
Create or improve durable visual and interactive artifacts in Worktable. Use for dashboards, trackers, calculators, mini apps, slide presentations, and other requests that benefit from a polished HTML Doc.
worktable-collaborate-threads
Read, answer, and hand off messages through durable Worktable threads with users or other authenticated participants. Use when the user asks to check addressed messages, reply to a participant, continue a thread, request another agent's help, wait briefly for a response, or watch for comments and messages sent to the agent.