openserv-multi-agent-workflows
Skill này làm gì
Skill này chỉ cách nối nhiều agent OpenServ thành một quy trình, ví dụ agent nghiên cứu giao việc cho agent viết bài. Nó dành cho người xây các quy trình nhiều bước gồm nhiều agent.
Khi nào nên dùng
- ✓Khi một việc cần nhiều agent chuyên biệt làm lần lượt, ví dụ nghiên cứu rồi viết.
- ✓Khi bạn muốn tìm agent trên marketplace và kết hợp chúng lại.
- ✓Khi bạn cần một quy trình có trigger, task và edge nối chúng với nhau.
Liên kết skill
https://github.com/internet-court/internet-court-skill/blob/main/vendored/openserv/openserv-multi-agent-workflows/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể thiết lập một quy trình trong đó một agent nghiên cứu chủ đề và agent thứ hai viết bài blog từ kết quả nghiên cứu không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent tạo quy trình gồm trigger và task, rồi thêm edge giữa chúng để các bước chạy đúng thứ tự. Chỉ khai báo phụ thuộc giữa các task thì chưa đủ, nên cần có edge để nối luồng.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Multi-Agent Workflows on OpenServ
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.)
Quick Start
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 schema
Recommended pattern using workflows.sync():
- Authenticate with
client.authenticate() - Find agents with
client.agents.listMarketplace() - Create workflow with
client.workflows.create()including:- Triggers
- Tasks
- Edges (⚠️ CRITICAL - connects triggers and tasks together)
⚠️ 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.
Workflow Name & Goal
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.
Core Concepts
Workflows
A workflow (workspace) is a container that holds multiple agents and their tasks.
Task Dependencies
- Each task is assigned to a specific agent
- Tasks can depend on other tasks:
dependencies: [taskId1, taskId2] - A task only starts when all dependencies are
done - Output from dependencies is passed to dependent tasks
Workflow Graph
- Nodes: Triggers and tasks
- Edges: Connections between nodes
- When Task A completes, its output flows to dependent tasks via edges
Agent Discovery
// 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.
Edge Design Best Practices
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.
Bad Pattern - Everything Connected to Everything
┌──────────────────────────────────┐
│ ┌─────────┐ │
│ ┌─────┤ Agent A ├─────┐ │
│ │ └────┬────┘ │ │
│ │ │ │ │
Trigger ─┼─────┼──────────┼──────────┼──────┤
│ │ │ │ │
│ │ ┌────┴────┐ │ │
│ └─────┤ Agent B ├─────┘ │
│ └─────────┘ │
└──────────────────────────────────┘
(Spaghetti - avoid this!)
This creates:
- Unclear execution order
- Difficult debugging
- Agents receiving redundant/conflicting inputs
- Hard to understand what depends on what
Good Patterns
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.
Câu hỏi thường gặp
Vì sao cần edge?
Skill nói rằng phụ thuộc giữa các task không tự nối được trigger và task, nên phải định nghĩa workflow edge.
Làm sao để tìm agent để dùng?
Skill chỉ cách liệt kê agent trên marketplace.
Có ví dụ đi kèm không?
Có. Skill có các ví dụ quy trình đầy đủ, như quy trình viết blog và quy trình tạo nội dung.
Chi tiết
Mô tả gốc của tác giả
Multi-agent workflow examples to work together on the OpenServ Platform. Covers agent discovery, multi-agent workspaces, task dependencies, and workflow orchestration using the Platform Client. Read reference.md for the full API reference. Read openserv-agent-sdk and openserv-client for building and running agents.
Độ phổ biến
- Sao GitHub
- 7.0k
- Vị trí xếp hạng
- #13671
- Giấy phép
- —
- Cập nhật
- 26/10/2026
Bình luận
- …
Thêm skill từ kho mã này
internet-court
7.0kGiúp agent của bạn thanh toán, thuê hoặc giao dịch an toàn với một agent AI khác hoặc dịch vụ trả phí, và chỉ đến hướng dẫn chuyên sâu phù hợp.
genlayer-erc7710-connector
7.0kGiúp agent của bạn kết nối kết quả đánh giá AI với hệ thống quyền hạn, để một đánh giá xấu có thể hạn chế hoặc hủy quyền của agent.
genlayer-intelligent-contracts
7.0kGiúp agent của bạn xác định quy tắc, bằng chứng và đầu ra của một AI judge kiểm tra xem agent khác có làm đúng nhiệm vụ được ủy quyền hay không.
x402-erc7710
7.0kGiúp agent của bạn trả tiền cho dịch vụ web theo từng yêu cầu, và thiết lập chi tiêu định kỳ nằm trong ngân sách quyền hạn.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.