Chuyển đến nội dung
Skillpedia
Agent48k · #5259

multi-agent-task-orchestrator

Skill này làm gì

Hệ thống này tổ chức công việc của nhiều trí tuệ nhân tạo (agent). Nó giao việc cho đúng agent, ngăn họ làm trùng việc và kiểm tra kết quả có tốt không trước khi coi công việc là hoàn thành.

Khi nào nên dùng

  • ✓Khi bạn có từ 3 agent AI trở lên cần phối hợp làm một việc phức tạp.
  • ✓Khi các agent bắt đầu làm trùng việc hoặc gây cản trở lẫn nhau.
  • ✓Khi bạn cần biết chính xác ai đã làm gì và khi nào.

Liên kết skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/multi-agent-task-orchestrator/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/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/multi-agent-task-orchestrator/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

“Tổ chức đội AI để tạo hướng dẫn sử dụng ứng dụng mới của chúng tôi.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Đầu tiên, hệ thống xác định mỗi agent có thể và không thể làm gì. Sau đó, nó kiểm tra xem công việc đã có agent khác làm chưa. Cuối cùng, nó gửi việc đến agent phù hợp nhất và xác minh chất lượng kết quả.

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 Task Orchestrator

Overview

A production-tested pattern for coordinating multiple AI agents through a single orchestrator. Instead of letting agents work independently (and conflict), one orchestrator decomposes tasks, routes them to specialists, prevents duplicate work, and verifies results before marking anything done. Battle-tested across 10,000+ tasks over 6 months.

When to Use This Skill

  • Use when you have 3+ specialized agents that need to coordinate on complex tasks
  • Use when agents are doing duplicate or conflicting work
  • Use when you need audit trails showing who did what and when
  • Use when agent output quality is inconsistent and needs verification gates

How It Works

Step 1: Define the Orchestrator Identity

The orchestrator must know what it IS and what it IS NOT. This prevents it from doing work instead of delegating:

You are the Task Orchestrator. You NEVER do specialized work yourself.
You decompose tasks, delegate to the right agent, prevent conflicts,
and verify quality before marking anything done.

WHAT YOU ARE NOT:
- NOT a code writer — delegate to code agents
- NOT a researcher — delegate to research agents
- NOT a tester — delegate to test agents

This "NOT-block" pattern reduces task drift by ~35% in production.

Step 2: Build a Task Registry

Before assigning work, check if anyone is already doing this task:

import sqlite3
from difflib import SequenceMatcher

def check_duplicate(description, threshold=0.55):
    conn = sqlite3.connect("task_registry.db")
    c = conn.cursor()
    c.execute("SELECT id, description, agent, status FROM tasks WHERE status IN ('pending', 'in_progress')")
    for row in c.fetchall():
        ratio = SequenceMatcher(None, description.lower(), row[1].lower()).ratio()
        if ratio >= threshold:
            return {"id": row[0], "description": row[1], "agent": row[2]}
    return None

Step 3: Route Tasks to Specialists

Use keyword scoring to match tasks to the best agent:

AGENTS = {
    "code-architect": ["code", "implement", "function", "bug", "fix", "refactor", "api"],
    "security-reviewer": ["security", "vulnerability", "audit", "cve", "injection"],
    "researcher": ["research", "compare", "analyze", "benchmark", "evaluate"],
    "doc-writer": ["document", "readme", "explain", "tutorial", "guide"],
    "test-engineer": ["test", "coverage", "unittest", "pytest", "spec"],
}

def route_task(description):
    scores = {}
    for agent, keywords in AGENTS.items():
        scores[agent] = sum(1 for kw in keywords if kw in description.lower())
    return max(scores, key=scores.get) if max(scores.values()) > 0 else "code-architect"

Step 4: Enforce Quality Gates

Agent output is a CLAIM. Test output is EVIDENCE.

After agent reports completion:
1. Were files actually modified? (git diff --stat)
2. Do tests pass? (npm test / pytest)
3. Were secrets introduced? (grep for API keys, tokens)
4. Did the build succeed? (npm run build)
5. Were only intended files touched? (scope check)

Mark done ONLY after ALL checks pass.

Step 5: Run 30-Minute Heartbeats

Every 30 minutes, ask:
1. "What have I DELEGATED in the last 30 minutes?"
2. If nothing → open the task backlog and assign the next task
3. Check for idle agents (no message in >30min on assigned task)
4. Relance idle agents or reassign their tasks

Examples

Example 1: Delegating a Code Task

[ORCHESTRATOR -> code-architect] TASK: Add rate limiting to /api/users
SCOPE: src/middleware/rate-limit.ts only
VERIFICATION: npm test -- --grep "rate-limit"
DEADLINE: 30 minutes

Example 2: Handling a Duplicate

User asks: "Fix the login bug"
Registry check: Task #47 "Fix authentication bug" is IN_PROGRESS by security-reviewer
Decision: SKIP — similar task already assigned (78% match)
Action: Notify user of existing task, wait for completion

Best Practices

  • Always define NOT-blocks for every agent (what they must refuse to do)
  • Use SQLite for the task registry (lightweight, no server needed)
  • Set similarity threshold at 55% for anti-duplication (lower = too many false positives)
  • Require evidence-based quality gates (not just agent claims)
  • Log every delegation with: task ID, agent, scope, deadline, verification command

Common Pitfalls

  • Problem: Orchestrator starts doing work instead of delegating Solution: Add explicit NOT-blocks and role boundaries

…

Câu hỏi thường gặp

Điều gì xảy ra nếu một agent không phản hồi?

Hệ thống kiểm tra mỗi 30 phút xem có agent nào nhàn rỗi không và nếu có, nó sẽ giao lại việc hoặc yêu cầu agent tiếp tục.

Làm sao để đảm bảo công việc có chất lượng?

Nó kiểm tra xem các file có được chỉnh sửa không, các bài kiểm thử có đạt không, có bí mật (như mật khẩu) bị đưa vào không và việc build dự án có thành công không.

“NOT-block” là gì?

Đây là một chỉ dẫn cho agent biết những việc nó KHÔNG BAO GIỜ được làm, để nó chỉ tập trung vào việc giao việc và kiểm tra, không tự làm công việc chuyên môn.

Chi tiết

Mô tả gốc của tác giả

Route tasks to specialized AI agents with anti-duplication, quality gates, and 30-minute heartbeat monitoring

repo: sickn33/agentic-awesome-skills

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#5259
Giấy phép
MIT
Cập nhật
15/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ự