Chuyển đến nội dung
Skillpedia
Agent7.0k · #13671

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.md

Sao 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

Hãy dùng skill này để giúp tôi: https://github.com/internet-court/internet-court-skill/blob/main/vendored/openserv/openserv-multi-agent-workflows/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

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, monitoring
  • troubleshooting.md - Common issues and solutions
  • examples/ - 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():

  1. Authenticate with client.authenticate()
  2. Find agents with client.agents.listMarketplace()
  3. 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.

repo: internet-court/internet-court-skill

Độ 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

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự