agent-orchestration by yonatangross/orchestkit
npx skills add https://github.com/yonatangross/orchestkit --skill agent-orchestration构建和协调 AI 智能体的综合模式——从单智能体推理循环到多智能体系统及框架选择。每个类别在 rules/ 目录下都有独立的规则文件,可按需加载。
| 类别 | 规则数量 | 影响程度 | 使用场景 |
|---|---|---|---|
| 智能体循环 | 2 | 高 | ReAct 推理、计划与执行、自我修正 |
| 多智能体协调 | 3 | 关键 | 监督者路由、智能体辩论、结果合成 |
| 替代框架 | 3 | 高 | CrewAI 团队、AutoGen 小组、框架比较 |
| 多场景 | 2 | 中 | 并行场景编排、难度路由 |
总计:4 个类别,共 10 条规则
# ReAct 智能体循环
async def react_loop(question: str, tools: dict, max_steps: int = 10) -> str:
history = REACT_PROMPT.format(tools=list(tools.keys()), question=question)
for step in range(max_steps):
response = await llm.chat([{"role": "user", "content": history}])
if "Final Answer:" in response.content:
return response.content.split("Final Answer:")[-1].strip()
if "Action:" in response.content:
action = parse_action(response.content)
result = await tools[action.name](*action.args)
history += f"\nObservation: {result}\n"
return "Max steps reached without answer"
# 监督者模式,支持扇出/扇入
async def multi_agent_analysis(content: str) -> dict:
agents = [("security", security_agent), ("perf", perf_agent)]
tasks = [agent(content) for _, agent in agents]
results = await asyncio.gather(*tasks, return_exceptions=True)
return await synthesize_findings(results)
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
用于自主 LLM 推理的模式:ReAct(推理 + 行动)、带重新规划的计划与执行、自我修正循环以及滑动窗口内存管理。
关键决策: 最大步骤数 5-15,temperature 0.3-0.7,内存窗口 10-20 条消息。
扇出/扇入并行、带依赖顺序的监督者路由、冲突解决(基于置信度或 LLM 仲裁)、结果合成,以及 CC Agent Teams(用于 CC 2.1.33+ 版本中支持对等消息传递的网状拓扑)。
关键决策: 3-8 个专家智能体,并行化独立智能体,简单工作使用 Task 工具(星形拓扑),跨领域关注点使用 Agent Teams(网状拓扑)。
CrewAI 分层团队与 Flows(1.8+)、OpenAI Agents SDK 交接与防护栏(0.12+)、Microsoft Agent Framework(AutoGen + SK 合并)、用于长周期编码的 GPT-5.2-Codex,以及用于开源灵活性的 AG2。
关键决策: 根据团队专业知识和用例匹配合适的框架。状态机用 LangGraph,基于角色的团队用 CrewAI,交接工作流用 OpenAI SDK,企业合规用 MS Agent。
通过渐进式难度缩放(1x/3x/8x)、里程碑同步和跨场景结果聚合,在 3 个并行场景(简单/中等/复杂)中编排单个技能。
关键决策: 带检查点的自由运行,始终 3 个场景,1x/3x/8x 指数级缩放,30s/90s/300s 时间预算。
| 决策点 | 建议 |
|---|---|
| 单智能体 vs 多智能体 | 专注任务用单智能体,可分解工作用多智能体 |
| 最大循环步数 | 5-15(防止无限循环) |
| 智能体数量 | 每个工作流 3-8 个专家智能体 |
| 框架选择 | 根据团队专业知识和用例匹配 |
| 拓扑结构 | 简单任务用 Task 工具(星形);复杂任务用 Agent Teams(网状) |
| 场景数量 | 始终为 3:简单、中等、复杂 |
ork:langgraph - LangGraph 工作流模式(监督者、路由、状态)function-calling - 工具定义与执行ork:task-dependency-patterns - 使用 Agent Teams 工作流进行任务管理关键词: react, reason, act, observe, loop, agent 解决的问题:
关键词: plan, execute, replan, multi-step, autonomous 解决的问题:
关键词: supervisor, route, coordinate, fan-out, fan-in, parallel 解决的问题:
关键词: debate, conflict, resolution, arbitration, consensus 解决的问题:
关键词: synthesize, combine, aggregate, merge, summary 解决的问题:
关键词: crewai, crew, hierarchical, delegation, role-based, flows 解决的问题:
关键词: autogen, microsoft, agent framework, teams, enterprise, a2a 解决的问题:
关键词: choose, compare, framework, decision, which, crewai, autogen, openai 解决的问题:
关键词: scenario, parallel, fan-out, difficulty, progressive, demo 解决的问题:
关键词: route, synchronize, milestone, checkpoint, scaling 解决的问题:
每周安装量
144
代码仓库
GitHub 星标数
132
首次出现
2026 年 2 月 14 日
安全审计
安装于
codex138
gemini-cli137
opencode136
github-copilot135
cursor133
kimi-cli129
Comprehensive patterns for building and coordinating AI agents -- from single-agent reasoning loops to multi-agent systems and framework selection. Each category has individual rule files in rules/ loaded on-demand.
| Category | Rules | Impact | When to Use |
|---|---|---|---|
| Agent Loops | 2 | HIGH | ReAct reasoning, plan-and-execute, self-correction |
| Multi-Agent Coordination | 3 | CRITICAL | Supervisor routing, agent debate, result synthesis |
| Alternative Frameworks | 3 | HIGH | CrewAI crews, AutoGen teams, framework comparison |
| Multi-Scenario | 2 | MEDIUM | Parallel scenario orchestration, difficulty routing |
Total: 10 rules across 4 categories
# ReAct agent loop
async def react_loop(question: str, tools: dict, max_steps: int = 10) -> str:
history = REACT_PROMPT.format(tools=list(tools.keys()), question=question)
for step in range(max_steps):
response = await llm.chat([{"role": "user", "content": history}])
if "Final Answer:" in response.content:
return response.content.split("Final Answer:")[-1].strip()
if "Action:" in response.content:
action = parse_action(response.content)
result = await tools[action.name](*action.args)
history += f"\nObservation: {result}\n"
return "Max steps reached without answer"
# Supervisor with fan-out/fan-in
async def multi_agent_analysis(content: str) -> dict:
agents = [("security", security_agent), ("perf", perf_agent)]
tasks = [agent(content) for _, agent in agents]
results = await asyncio.gather(*tasks, return_exceptions=True)
return await synthesize_findings(results)
Patterns for autonomous LLM reasoning: ReAct (Reasoning + Acting), Plan-and-Execute with replanning, self-correction loops, and sliding-window memory management.
Key decisions: Max steps 5-15, temperature 0.3-0.7, memory window 10-20 messages.
Fan-out/fan-in parallelism, supervisor routing with dependency ordering, conflict resolution (confidence-based or LLM arbitration), result synthesis, and CC Agent Teams (mesh topology for peer messaging in CC 2.1.33+).
Key decisions: 3-8 specialists, parallelize independent agents, use Task tool (star) for simple work, Agent Teams (mesh) for cross-cutting concerns.
CrewAI hierarchical crews with Flows (1.8+), OpenAI Agents SDK handoffs and guardrails (0.12+), Microsoft Agent Framework (AutoGen + SK merger), GPT-5.2-Codex for long-horizon coding, and AG2 for open-source flexibility.
Key decisions: Match framework to team expertise + use case. LangGraph for state machines, CrewAI for role-based teams, OpenAI SDK for handoff workflows, MS Agent for enterprise compliance.
Orchestrate a single skill across 3 parallel scenarios (simple/medium/complex) with progressive difficulty scaling (1x/3x/8x), milestone synchronization, and cross-scenario result aggregation.
Key decisions: Free-running with checkpoints, always 3 scenarios, 1x/3x/8x exponential scaling, 30s/90s/300s time budgets.
| Decision | Recommendation |
|---|---|
| Single vs multi-agent | Single for focused tasks, multi for decomposable work |
| Max loop steps | 5-15 (prevent infinite loops) |
| Agent count | 3-8 specialists per workflow |
| Framework | Match to team expertise + use case |
| Topology | Task tool (star) for simple; Agent Teams (mesh) for complex |
| Scenario count | Always 3: simple, medium, complex |
ork:langgraph - LangGraph workflow patterns (supervisor, routing, state)function-calling - Tool definitions and executionork:task-dependency-patterns - Task management with Agent Teams workflowKeywords: react, reason, act, observe, loop, agent Solves:
Keywords: plan, execute, replan, multi-step, autonomous Solves:
Keywords: supervisor, route, coordinate, fan-out, fan-in, parallel Solves:
Keywords: debate, conflict, resolution, arbitration, consensus Solves:
Keywords: synthesize, combine, aggregate, merge, summary Solves:
Keywords: crewai, crew, hierarchical, delegation, role-based, flows Solves:
Keywords: autogen, microsoft, agent framework, teams, enterprise, a2a Solves:
Keywords: choose, compare, framework, decision, which, crewai, autogen, openai Solves:
Keywords: scenario, parallel, fan-out, difficulty, progressive, demo Solves:
Keywords: route, synchronize, milestone, checkpoint, scaling Solves:
Weekly Installs
144
Repository
GitHub Stars
132
First Seen
Feb 14, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
codex138
gemini-cli137
opencode136
github-copilot135
cursor133
kimi-cli129
AI Elements:基于shadcn/ui的AI原生应用组件库,快速构建对话界面
66,200 周安装
OpenRouter 热门编程模型排行榜 - 获取AI编码模型趋势、定价与性能数据
137 周安装
SecondMe PRD助手:AI对话式产品需求定义工具,智能引导开发者明确应用功能与设计
121 周安装
NumPy最佳实践指南:数组编程、性能优化与高效数值计算
160 周安装
Kotlin 开发最佳实践指南:代码规范、函数设计与测试策略
99 周安装
Next.js React Redux TypeScript 开发规范与最佳实践指南 - 构建可维护应用
161 周安装
免费天气查询技能:基于Open-Meteo和Nominatim API的天气预报与穿衣建议
123 周安装