Chuyển đến nội dung
Skillpedia
Agent81k · #1539

swarm-orchestration

Skill này làm gì

Skill này hướng dẫn agent chia công việc lớn thành các phần và giao cho các agent chuyên gia theo cấu trúc phân cấp. Phù hợp với lập trình viên thực hiện thay đổi chạm đến nhiều file hoặc module cùng lúc.

Khi nào nên dùng

  • ✓Khi một thay đổi cần cập nhật ba file trở lên.
  • ✓Khi một tính năng chạm đến nhiều module và cần được phối hợp.
  • ✓Khi một thay đổi cần cập nhật mã và kiểm thử cùng lúc.

Liên kết skill

https://github.com/ruvnet/ruflo/blob/main/.agents/skills/swarm-orchestration/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/ruvnet/ruflo/blob/main/.agents/skills/swarm-orchestration/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

“Điều phối một thay đổi trên module xác thực, các kiểm thử của nó và schema cơ sở dữ liệu, dùng các agent chuyên gia.”

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

Cách hoạt động

Agent khởi động một nhóm phân cấp, chuyển tác vụ đến đúng chuyên gia, theo dõi tiến độ của họ và gộp 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.

Swarm Orchestration Skill

Purpose

Multi-agent swarm coordination for complex tasks. Uses hierarchical topology with specialized agents to break down and execute complex work across multiple files and modules.

When to Trigger

  • 3+ files need changes
  • new feature implementation
  • cross-module refactoring
  • API changes with tests
  • security-related changes
  • performance optimization across codebase
  • database schema changes

When to Skip

  • single file edits
  • simple bug fixes (1-2 lines)
  • documentation updates
  • configuration changes
  • quick exploration

Commands

Initialize Swarm

Start a new swarm with hierarchical topology (anti-drift)

npx @claude-flow/cli swarm init --topology hierarchical --max-agents 8 --strategy specialized

Example:

npx @claude-flow/cli swarm init --topology hierarchical --max-agents 6 --strategy specialized

Route Task

Route a task to the appropriate agents based on task type

npx @claude-flow/cli hooks route --task "[task description]"

Example:

npx @claude-flow/cli hooks route --task "implement OAuth2 authentication flow"

Spawn Agent

Spawn a specific agent type

npx @claude-flow/cli agent spawn --type [type] --name [name]

Example:

npx @claude-flow/cli agent spawn --type coder --name impl-auth

Monitor Status

Check the current swarm status

npx @claude-flow/cli swarm status --verbose

Orchestrate Task

Orchestrate a task across multiple agents

npx @claude-flow/cli task orchestrate --task "[task]" --strategy adaptive

Example:

npx @claude-flow/cli task orchestrate --task "refactor auth module" --strategy parallel --max-agents 4

List Agents

List all active agents

npx @claude-flow/cli agent list --filter active

Scripts

Script Path Description
swarm-start .agents/scripts/swarm-start.sh Initialize swarm with default settings
swarm-monitor .agents/scripts/swarm-monitor.sh Real-time swarm monitoring dashboard

References

Document Path Description
Agent Types docs/agents.md Complete list of agent types and capabilities
Topology Guide docs/topology.md Swarm topology configuration guide

Best Practices

  1. Check memory for existing patterns before starting
  2. Use hierarchical topology for coordination
  3. Store successful patterns after completion
  4. Document any new learnings
Câu hỏi thường gặp

Khi nào tôi nên bỏ qua nó?

Skill khuyên bỏ qua với các chỉnh sửa một file, sửa lỗi nhỏ và cập nhật tài liệu.

Nó dùng cấu trúc nào?

Nó dùng cấu trúc phân cấp với các agent chuyên biệt, mà skill nói là giúp tránh việc lệch hướng.

Tôi có thể chọn số agent chạy không?

Có. Skill đặt số agent tối đa khi nhóm được khởi động.

Chi tiết

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

Multi-agent swarm coordination for complex tasks. Uses hierarchical topology with specialized agents to break down and execute complex work across multiple files and modules. Use when: 3+ files need changes, new feature implementation, cross-module refactoring, API changes with tests, security-related changes, performance optimization across codebase, database schema changes. Skip when: single file edits, simple bug fixes (1-2 lines), documentation updates, configuration changes, quick exploration.

repo: ruvnet/ruflo

Độ phổ biến

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