跳到正文
Skillpedia
智能体7.6k · #13155

delegating-work

它能做什么

这项技能指导智能体在开始多步骤任务之前,判断由主线程还是更便宜的子智能体来完成工作。它涵盖编码、浏览器测试、拉取请求跟进和测试循环。适合运行智能体并希望控制成本的人。

适用场景

  • ✓当你即将自己编写代码或进行多文件修改的时候。
  • ✓当任务涉及浏览器测试、CI 轮询或反复的测试和修复运行的时候。
  • ✓当一个小的单次编辑没有可以独立拆分出去的部分的时候。

技能链接

https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/delegating-work/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/delegating-work/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“开始之前,请决定这次修复的哪些部分交给更便宜的辅助智能体,哪些由我自己审阅。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体在开始前检查任务。它把实现、浏览器工作和重复的循环交给子智能体,并将审阅和决策保留在主线程中。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Delegating Work

Activation guard

Use this at the moment you're about to start a multi-step task yourself — before the first line of code, the first browser action, the first CI poll, or the first test run. It applies whenever the main thread is about to do work, not just when the user says "parallelize this."

Skip it for a genuinely single small edit with nothing independent to split off — spawning overhead would exceed the work itself.

Do NOT do this on the main thread

Each of these is a real temptation, not a hypothetical — they're the single most-repeated correction the user gives, most recently today (2026-07-31):

  • Writing the implementation yourself because the change "looks quick." Spawn a coding subagent even for a small fix; the main thread reviews the diff, it doesn't produce it. "Hmm why are you coding on the main thread? You're supposed to spawn cheaper models like sonnet to write the code."
  • Driving the browser yourself for a UI check or E2E pass. Spawn a subagent to run Playwright / Chrome DevTools MCP and report back. "use cheaper sub agents for testing ... don't use fable (you) for browser automation bro"
  • Babysitting a PR yourself (polling CI, pushing fixups). Spawn a subagent to watch and fix. "please use a cheaper model to do the babysitting - like sonnet. not you"
  • Running the test/fix retry loop yourself. Spawn a subagent to run tests, read failures, patch, and re-run until green. "i prefer to use terra sub agents for testing/fixing and not use you, the main thread, for these things like i see you doing rn"
  • Doing a mechanical multi-file sweep yourself (renames, lint fixes, the same small edit repeated across files). Split by file set, one subagent per slice.
  • Skipping delegation "just this once" because the task feels urgent. Cost is the reason to delegate, not an excuse to skip it. "this run is getting really expensive ... fable model is now per-token pricing so this is costing me thousands"

Decision table

Kind of work Tier
Planning, architecture, ambiguity calls Main thread
Synthesis / final review of subagent output Main thread
Talking to the user Main thread
Writing an implementation slice Cheap subagent
Browser automation / E2E verification Cheap subagent
PR babysitting (CI polling + fixups) Cheap subagent
Test-fix-retry loops Cheap subagent
Mechanical sweeps (rename, lint, repeated edit) Cheap subagent(s), one per disjoint file set
Research / repo scans / docs extraction Cheap subagent

Default to the cheapest tier that can do the work reliably — Haiku for bulk/mechanical work, Sonnet for anything needing real coding judgment. Reserve the expensive/frontier model for the main-thread row above. This is a standing instruction: don't ask the user for permission to parallelize.

What the main thread keeps

Planning, prioritization, ambiguity resolution, integrating what subagents return, final review before the user sees it, and all direct conversation with the user. Everything else in this table is a delegation candidate by default, not an exception.

Parallel edits are the intended pattern, not a risk

Parallel subagents editing disjoint files is normal and expected here. Assign non-overlapping file sets before you fan out, and have each subagent re-read existing changes before editing. Use the shared checkout's normal read-before-edit discipline.

Related skills

This skill is the decision point; it doesn't replace the workflows that follow it:

  • efficient-frontier — the orchestration workflow once you've decided to delegate: handoff packets, fan-out limits, the review loop.
  • efficient-fable — the same workflow, plus Fable's per-token pricing as a reason it matters even more.
  • delegate-to-agent — the briefing contract (objective / context / output / boundaries) and fan-out discipline (cap ~3, default to one) for spawning a sub-agent from the main thread.
常见问题

这适用于每一个小改动吗?

不适用。技能说明,对于确实只是一次小编辑的情况,应跳过委派,因为设置成本会超过工作本身。

主线程做什么?

它负责审阅结果并做决策,而不是产出每一项工作。

为什么要委派浏览器工作?

技能说明,浏览器检查可以由子智能体运行并回报结果,使主线程保持专注。

详情

作者的原始描述

Which tier — main thread vs. a cheaper subagent — owns a piece of work, decided at the moment you're about to start it. Use before writing an implementation yourself, driving a browser, babysitting a PR, running a test/fix loop, or doing a mechanical multi-file sweep on the main thread.

repo: BuilderIO/agent-native

热度

GitHub 星标
7.6k
排名
#13155
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能