delegating-work
Skill này làm gì
Skill này hướng dẫn agent quyết định, trước khi bắt đầu một tác vụ nhiều bước, công việc nên do luồng chính hay một agent phụ rẻ hơn thực hiện. Nó bao gồm lập trình, kiểm thử trình duyệt, theo dõi pull request và vòng lặp test. Skill dành cho người chạy agent và muốn kiểm soát chi phí.
Khi nào nên dùng
- ✓Khi bạn sắp tự viết code hoặc thực hiện thay đổi nhiều file.
- ✓Khi một tác vụ liên quan đến kiểm thử trình duyệt, theo dõi CI hoặc các vòng test và sửa lặp lại.
- ✓Khi một lần sửa nhỏ đơn lẻ không có phần độc lập nào để tách ra.
Liên kết skill
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/delegating-work/SKILL.mdSao 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
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Trước khi bắt đầu, hãy quyết định phần nào của bản sửa này nên giao cho một agent phụ rẻ hơn và phần nào bạn nên tự xem xét.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent kiểm tra tác vụ trước khi bắt đầu. Nó giao việc triển khai, công việc trình duyệt và các vòng lặp lặp lại cho một agent phụ, còn việc xem xét và quyết định thì giữ ở luồng chính.
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.
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.
Câu hỏi thường gặp
Điều này có áp dụng cho mọi thay đổi nhỏ không?
Không. Skill nói nên bỏ qua việc giao việc khi chỉ là một lần sửa nhỏ, vì thiết lập tốn kém hơn công việc.
Luồng chính làm gì?
Nó xem xét kết quả và đưa ra quyết định, thay vì tự tạo ra mọi phần việc.
Vì sao giao công việc trình duyệt?
Skill nói kiểm tra trình duyệt có thể do một agent phụ chạy và báo cáo lại, giúp luồng chính tập trung hơn.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 7.6k
- Vị trí xếp hạng
- #13155
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
design-exploration
7.6kGiúp agent của bạn khám phá nhiều hướng thiết kế giao diện song song, để bạn chọn một hướng rồi tinh chỉnh thiết kế đã chọn.
visual-edit
7.6kGiúp agent của bạn mở một ứng dụng cục bộ đang chạy trong trình chỉnh sửa trực quan, để bạn xem và sửa các màn hình thật cùng nhau.
turn-into-app
7.6kBiến quy trình, bảng tính hoặc dự án thành ứng dụng trực quan có màn hình đầy đủ dữ liệu, với agent làm việc phía sau các điều khiển.
visual-plan
7.6kBiến một kế hoạch viết bằng văn bản thuần thành kế hoạch trực quan tương tác, có sơ đồ, bản đồ file, đoạn code và các câu hỏi còn mở.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.