hive.worker-delegation
它能做什么
这个技能说明 AI 如何把一项大任务拆分给多个并行工作者。适合运行大量智能体任务、需要对工作进行跟踪并完成的人。
适用场景
- ✓当一项大任务可以拆分成许多可并行运行的相似部分的时候。
- ✓当你需要一张跟踪表,显示哪些部分已完成、哪些尚未完成时。
- ✓当并行任务的部分环节失败,需要重试而不重复其余部分的时候。
技能链接
https://github.com/aden-hive/hive/blob/main/core/framework/skills/_default_skills/worker-delegation/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我有 200 个产品页面需要检查。请把它拆分给并行工作者,并保留一张表格,记录哪些页面已完成。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会把每个工作单元放入一张表格,编写工作者流程和控制器脚本,并持续分派工作,直到每一行都完成。重新运行任务时,已完成的行会被跳过。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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:
- Pick ONE row — the most representative one, not the easiest.
- Execute the skill yourself: run each tool in the prescribed order, advance the row to "done."
- If you hit a snag — fix the skill in place before continuing. Capturing these patches is the whole point.
- If the row finishes cleanly: the skill is validated. Run the playbook for the rest.
- 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
常见问题
跟踪表是做什么用的?
它列出每个工作单元及其状态,让控制器知道还剩下什么需要完成。
中途停止的任务可以重新运行吗?
可以。重新运行控制器即可继续任务,因为已完成的行不再在工作列表中。
这类任务的三个组成部分是什么?
跟踪表保存状态,技能为工作者提供操作流程,而剧本则控制运行过程。
详情
作者的原始描述
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
热度
- GitHub 星标
- 11k
- 排名
- #11808
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
browser-edge-cases
11k帮你的智能体修复在 LinkedIn、X 或脚本繁重的页面等复杂网站上失败的浏览器自动化任务。
hive.browser-automation
11k教你的智能体使用 hive-browser 工具控制你自己的 Chrome 浏览器,通过截图和点击完成操作。
hive.colony-progress-tracker
11k帮你的智能体认领任务,并把它的步骤和检查记录在共享数据库中,让工作在进行中就被跟踪。
hive.context-preservation
11k帮你的智能体在较早的细节从记忆中被移除之前,把长篇工具结果中的关键事实保存到笔记里。