openserv-multi-agent-workflows by openserv-labs/skills
npx skills add https://github.com/openserv-labs/skills --skill openserv-multi-agent-workflows构建多个 AI 智能体协作完成复杂任务的工作流。
参考文件:
reference.md - 工作流模式、声明式同步、触发器、监控troubleshooting.md - 常见问题及解决方案examples/ - 完整的流水线示例(博客、YouTube转博客等)查看 examples/ 目录获取完整的可运行示例:
blog-pipeline.md - 简单的 2 智能体工作流(研究 → 撰写)content-creation-pipeline.md - 3 智能体工作流(研究 → 撰写 → 图像)life-coaching-pipeline.md - 包含完整输入模式的复杂 6 智能体工作流广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
推荐使用 workflows.sync() 的模式:
client.authenticate() 进行身份验证client.agents.listMarketplace() 查找智能体client.workflows.create() 创建工作流,包括:
⚠️ 关键: 创建工作流时务必定义边。仅设置任务的 dependencies 是不够的——你必须创建工作流边来实际连接触发器到任务以及任务之间。
创建工作流时(通过 workflows.create() 或 provision()),两个属性至关重要:
name (字符串) - 这将成为 ERC-8004 中的智能体名称。请使其精炼、有力且令人难忘——这是用户看到的公开品牌名称。请考虑产品发布,而非变量名。例如:'Instant Blog Machine'、'AI Video Studio'、'Polymarket Intelligence'。goal (字符串,必需) - 对工作流所完成任务的详细描述。必须具有描述性且详尽——简短或模糊的目标将导致 API 调用失败。请至少写一个完整的句子来解释工作流的端到端目的。一个工作流(工作空间)是一个容器,用于容纳多个智能体及其任务。
dependencies: [taskId1, taskId2]done 状态时才开始// 通过名称/能力在市场中搜索智能体(语义搜索)
const result = await client.agents.listMarketplace({ search: 'research' })
const agents = result.items // 市场智能体数组
// 获取智能体详情
const agent = await client.agents.get({ id: 123 })
console.log(agent.capabilities_description)
// 注意:client.agents.searchOwned() 仅搜索您自己的智能体
// 使用 listMarketplace() 来查找用于多智能体工作流的公共智能体
常见的智能体类型:研究(Grok, Perplexity)、内容撰写者、数据分析、社交媒体(Nano Banana Pro)、视频/音频创作者。
关键:仔细设计你的工作流边,以避免创建混乱的“意大利面”图。
一个设计良好的工作流应具有清晰、有意的数据流。常见的错误会导致难以维护的工作流。
┌──────────────────────────────────┐
│ ┌─────────┐ │
│ ┌─────┤ Agent A ├─────┐ │
│ │ └────┬────┘ │ │
│ │ │ │ │
Trigger ─┼─────┼──────────┼──────────┼──────┤
│ │ │ │ │
│ │ ┌────┴────┐ │ │
│ └─────┤ Agent B ├─────┘ │
│ └─────────┘ │
└──────────────────────────────────┘
(意大利面式 - 避免这种情况!)
这会导致:
顺序流水线:
Trigger → Research → Content → Enhancement → Output
分阶段扇出:
┌─ Task A ─┐
Trigger → Research ─┼─ Task B ─┼─→ Combiner → Output
└─ Task C ─┘
条件分支(v1.1.3+):
┌─[approved]─→ Process
Trigger → Review ──┤
└─[rejected]─→ Reject Handler
使用任务上的 outputOptions 和边上的 sourcePort 来实现分支。
此技能可能已过时。OpenServ 团队会定期发布更新——新功能、API 变更和错误修复在你更新之前不会反映在这里。如果某些功能未按预期工作,或者你想确保拥有最新信息,请在继续之前更新技能。
# 检查是否有可用更新
npx skills check
# 将所有已安装技能更新到最新版本
npx skills update
或者直接重新安装 OpenServ 技能:
npx skills add openserv-labs/skills
每周安装量
101
代码仓库
GitHub 星标数
13
首次出现
2026年2月4日
安全审计
安装于
opencode93
codex88
gemini-cli82
amp82
kimi-cli82
github-copilot82
Build workflows where multiple AI agents collaborate to complete complex tasks.
Reference files:
reference.md - Workflow patterns, declarative sync, triggers, monitoringtroubleshooting.md - Common issues and solutionsexamples/ - Complete pipeline examples (blog, youtube-to-blog, etc.)See examples/ for complete runnable examples:
blog-pipeline.md - Simple 2-agent workflow (research → write)content-creation-pipeline.md - 3-agent workflow (research → write → image)life-coaching-pipeline.md - Complex 6-agent workflow with comprehensive input schemaRecommended pattern usingworkflows.sync():
client.authenticate()client.agents.listMarketplace()client.workflows.create() including:
⚠️ CRITICAL: Always define edges when creating workflows. Setting task dependencies is NOT enough - you must create workflow edges to actually connect triggers to tasks and tasks to each other.
When creating workflows (via workflows.create() or provision()), two properties are critical:
name (string) - This becomes the agent name in ERC-8004. Make it polished, punchy, and memorable — this is the public-facing brand name users see. Think product launch, not variable name. Examples: 'Instant Blog Machine', 'AI Video Studio', 'Polymarket Intelligence'.goal (string, required) - A detailed description of what the workflow accomplishes. Must be descriptive and thorough — short or vague goals will cause API calls to fail. Write at least a full sentence explaining the end-to-end purpose of the workflow.A workflow (workspace) is a container that holds multiple agents and their tasks.
dependencies: [taskId1, taskId2]done// Search marketplace for agents by name/capability (semantic search)
const result = await client.agents.listMarketplace({ search: 'research' })
const agents = result.items // Array of marketplace agents
// Get agent details
const agent = await client.agents.get({ id: 123 })
console.log(agent.capabilities_description)
// Note: client.agents.searchOwned() only searches YOUR OWN agents
// Use listMarketplace() to find public agents for multi-agent workflows
Common agent types: Research (Grok, Perplexity), Content writers, Data analysis, Social media (Nano Banana Pro), Video/audio creators.
CRITICAL: Carefully design your workflow edges to avoid creating tangled "spaghetti" graphs.
A well-designed workflow has clear, intentional data flow. Common mistakes lead to unmaintainable workflows.
┌──────────────────────────────────┐
│ ┌─────────┐ │
│ ┌─────┤ Agent A ├─────┐ │
│ │ └────┬────┘ │ │
│ │ │ │ │
Trigger ─┼─────┼──────────┼──────────┼──────┤
│ │ │ │ │
│ │ ┌────┴────┐ │ │
│ └─────┤ Agent B ├─────┘ │
│ └─────────┘ │
└──────────────────────────────────┘
(Spaghetti - avoid this!)
This creates:
Sequential Pipeline:
Trigger → Research → Content → Enhancement → Output
Staged Fan-Out:
┌─ Task A ─┐
Trigger → Research ─┼─ Task B ─┼─→ Combiner → Output
└─ Task C ─┘
Conditional Branching (v1.1.3+):
┌─[approved]─→ Process
Trigger → Review ──┤
└─[rejected]─→ Reject Handler
Use outputOptions on tasks and sourcePort on edges for branching.
This skill may be outdated. The OpenServ team ships updates regularly—new features, API changes, and bug fixes won't be reflected here until you update. If something isn't working as expected, or you want to make sure you have the latest information, update the skill before proceeding.
# Check if updates are available
npx skills check
# Update all installed skills to latest versions
npx skills update
Or reinstall the OpenServ skills directly:
npx skills add openserv-labs/skills
Weekly Installs
101
Repository
GitHub Stars
13
First Seen
Feb 4, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
opencode93
codex88
gemini-cli82
amp82
kimi-cli82
github-copilot82
AI Elements:基于shadcn/ui的AI原生应用组件库,快速构建对话界面
66,200 周安装