Chuyển đến nội dung
Skillpedia
Agent11k · #11808

hive.worker-delegation

Skill này làm gì

Skill này giải thích cách AI có thể chia một công việc lớn cho nhiều worker chạy song song. Skill dành cho người chạy nhiều tác vụ agent cần theo dõi và hoàn thành công việc.

Khi nào nên dùng

  • ✓Khi một công việc lớn có thể chia thành nhiều phần tương tự chạy song song.
  • ✓Khi bạn muốn một bảng theo dõi cho thấy phần nào đã xong và phần nào còn lại.
  • ✓Khi một số phần của công việc song song bị lỗi và cần thử lại mà không lặp lại phần còn lại.

Liên kết skill

https://github.com/aden-hive/hive/blob/main/core/framework/skills/_default_skills/worker-delegation/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/aden-hive/hive/blob/main/core/framework/skills/_default_skills/worker-delegation/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ôi có 200 trang sản phẩm cần kiểm tra. Hãy chia việc này cho các worker song song và giữ một bảng ghi trang nào đã xong.”

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

Cách hoạt động

AI đặt mỗi đơn vị công việc vào một bảng, viết quy trình cho worker và một script điều khiển, rồi tiếp tục giao việc cho đến khi mọi dòng đều xong. Các dòng đã hoàn thành được bỏ qua khi chạy lại công việc.

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.

Operational Protocol: Worker Delegation

Applies when you're in COLONY mode and considering whether (and how) to fan out work to parallel workers via run_playbook. Read this before fan-out, not during.

Mental model: the tracker is the spine, the playbook is the controller

You don't coordinate workers by reading their reports and deciding what's next each turn. You model the goal as a tracker table where every unit of work is a row, and you write a playbook — a deterministic Python script — that drives that table to completion:

The playbook queries the rows that aren't done yet, dispatches one worker per undone row, and re-queries until none are left. Workers advance their own rows. Re-running the playbook resumes — done rows simply aren't in the work-list anymore.

This is a reconciliation loop. The tracker is the state; the playbook is the controller that converges it. Three artifacts, three jobs:

  • Tracker table — the durable work-list and its state. The row's status column is the progress.
  • Skill (write_skill) — the worker's operating procedure: schema, tool sequence, output format, quality bar. The risky part.
  • Playbook (run_playbook) — the deterministic orchestration: which rows are undone, who runs them, rate limits, retry/convergence policy. The cheap part.

The worker's task string carries only the per-row slice; everything reusable lives in the skill, everything deterministic lives in the playbook.

The decision: should you fan out at all?

Fan-out helps when:

  • The work has N independent units (rows, person on linkedin, files, accounts, segments) and each unit takes meaningful tool time (browser, API, file read, LLM call).
  • The units are disjoint — no two workers need to write the same row at the same time.
  • You can describe one unit's work in <100 words once shared playbook is in the skill.

Fan-out HURTS when:

  • N=1 or N=2 with cheap units. Spawning has overhead (fresh AgentLoop, separate conversation, no shared context). Below ~3 units of meaningful work, do it yourself.
  • The work is exploratory ("figure out X"). Workers are bad at open-ended scope. Decompose first, then fan out the bounded parts.

When the user explicitly asks for fan-out, do not reject the request from an untested architecture guess. If you are unsure whether a browser session, API cursor, login, or other shared resource can be used by workers, ask the user. Workers you spawn get their own separate Chrome tab groups within the SAME Chrome profile — their tabs won't interfere with yours or each other's, and they share cookies / logged-in sessions with you.

Pilot before fan-out (do the first one yourself)

You wrote the skill from your own walkthrough — but a walkthrough is not an execution. Selectors that worked when exploring can break under the exact tool sequence the skill prescribes; a page may paginate differently when fetched fresh; a field you eyeballed once might be intermittently null. Validate the skill yourself before paying N× to discover the bug.

The queen runs the pilot, not a worker. Pick ONE row from the tracker and execute the skill's protocol end-to-end with your own tools — the same hive-browser commands, tracker_*, web_scrape, etc. the workers would use. You see every tool result directly, with no [WORKER_REPORT] round-trip, and you can patch the skill mid-pilot as you discover gaps.

When to pilot (always, even when the user asks for "parallel"):

  • You just wrote the skill from your own walkthrough, or you're recycling a skill across a UI/API you haven't driven this session.
  • The work touches a UI surface that virtualizes, paginates, or has dynamic selectors (LinkedIn, Twitter, Notion, anything with virtual scroll or Shadow DOM).
  • The per-unit work spans more than 2–3 tool calls.

How to pilot:

  1. Pick ONE row — the most representative one, not the easiest.
  2. Execute the skill yourself: run each tool in the prescribed order, advance the row to "done."
  3. If you hit a snag — fix the skill in place before continuing. Capturing these patches is the whole point.
  4. If the row finishes cleanly: the skill is validated. Run the playbook for the rest.
  5. If you can't finish the row at all: the protocol is wrong (not one selector). Redesign before any worker touches it.

Skip the pilot only when the protocol is one you've already validated this session AND nothing about the target surface has changed.

The loop (always, in orde

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

Bảng theo dõi dùng để làm gì?

Nó liệt kê mọi đơn vị công việc và trạng thái của chúng, để bộ điều khiển biết còn gì phải làm.

Tôi có thể chạy lại một công việc đã dừng giữa chừng không?

Có. Chạy lại bộ điều khiển sẽ tiếp tục công việc, vì các dòng đã xong không còn nằm trong danh sách việc cần làm.

Một công việc như vậy gồm ba phần nào?

Một bảng theo dõi lưu trạng thái, một skill cung cấp quy trình cho worker, và một playbook điều khiển việc chạy.

Chi tiết

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

Concrete patterns for breaking colony work into parallel worker jobs via run_playbook — when fan-out helps, how to model the goal as a tracker table, write the worker skill, author the playbook, pilot, and let convergence retry/resume the gap.

repo: aden-hive/hive

Độ phổ biến

Sao GitHub
11k
Vị trí xếp hạng
#11808
Giấy phép
Apache-2.0
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ự