delegate
Skill này làm gì
Skill này giải thích khi nào nên giao các phần của một công việc lớn cho sub-agent chạy cùng lúc. Skill dành cho người chạy các tác vụ nhiều bước về lập trình, nghiên cứu hoặc kiểm tra cùng AI.
Khi nào nên dùng
- ✓Khi một tác vụ lớn có thể chia thành các phần độc lập chạy cùng lúc.
- ✓Khi bạn muốn một trợ lý chỉ đọc xem xét một tập tệp có giới hạn.
- ✓Khi một thay đổi cơ học hoặc việc chạy kiểm tra có thể giao với ranh giới rõ ràng.
Liên kết skill
https://github.com/codewhale-hq/Codewhale/blob/main/crates/skills/assets/skills/delegate/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
“Chia việc di chuyển này thành nhiều phần, nhờ các trợ lý quét tệp, còn bạn lo phần thiết kế.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
AI cha giữ quyết định và phần kiểm tra cuối, sau đó giao cho mỗi trợ lý một kết quả rõ ràng cùng tiêu chí nghiệm thu, và chạy các trợ lý độc lập cùng lú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.
Delegate
Use sub-agents when they can do focused work in parallel while the parent keeps architectural judgment, integration, and final verification.
Keep vs Delegate
Keep in the parent:
- Understanding the user's actual request and constraints
- Architecture, security, product, and release-risk decisions
- Cross-module integration
- Final review, test interpretation, and user-facing summary
Delegate to sub-agents:
- Read-only exploration over a bounded file set
- Mechanical edits with a clear file ownership boundary
- Focused test or lint runs
- Boilerplate generation from an explicit spec
- Independent checks that can run while parent work continues
Do not delegate tiny one-step tasks, ambiguous product decisions, destructive operations without a clear acceptance criterion, or final verification.
Launch Focused Work
Use agent for a focused child run. Launch independent children together so they can run in parallel.
Give each child a concrete outcome and acceptance criteria. Let it continue until the work is complete or it needs input. Do not invent time, turn or token budgets, or tell it to stop early because a percentage of a budget has elapsed. The runtime carries any limits explicitly configured by the owner.
Prefer provider-neutral model_strength over hardcoded model ids. Children inherit the active model by default (model_strength: "same"), including type: "explore", so pass model_strength: "faster" explicitly to get the cheaper same-family sibling for read-only exploration:
{
"name": "config_audit",
"prompt": "Inspect crates/tui/src/config.rs and crates/tui/src/settings.rs for duplicate model-default logic. Return file/line findings only; do not edit files.",
"type": "explore",
"model_strength": "faster",
"cwd": "."
}
For code changes, give the child a precise write boundary and tell it not to revert unrelated edits. Keep implementation children capable with model_strength: "same":
{
"name": "docs_patch",
"prompt": "Update only docs/configuration.md to document the new [statusline] keys. Match the surrounding style. Do not edit other files.",
"type": "implement",
"model_strength": "same",
"cwd": "."
}
Use fork_context: true only when the child genuinely needs the current conversation prefix. Leave it omitted for fresh, narrower context.
Route the Work
Choose the route per child from agent(action:"roster") (no provider request), not from memory. It lists each role's resolved route and the models you may pick.
thinkingoverrides a saved tier on any role. Dial:off low medium high xhigh max ultra, plusinherit(role default, then session effort) andauto.modelandmodel_strengthapply to unpinned routes only. A pinned profile refuses a conflicting model; to choose a model, start an unpinned role such asgeneral.model_strength: "faster"is the same-family faster sibling,"same"the session model.- Read the receipt, not your request:
child_routeshows the provider, model and route source, andrequested_reasoningvseffective_reasoningshows what the route actually ran. - Route by stakes. Mechanical work: the cheapest sufficient route with
thinking: "off"or"low". Implementation: a capable route atmediumor above. Review and verification: a strong route athigh, on a different route than the author when independence matters.
Evaluate and Verify
Sub-agent outputs are self-reports. Re-check material claims before relying on them:
- Read changed files directly.
- Run the relevant tests locally.
- Inspect unexpected diffs before committing.
- Verify externally visible or destructive claims against source data.
Prompt Shape
A good delegation prompt includes:
- The exact task
- Files or modules owned by the child
- Files or behavior the child must not touch
- Expected output format
- Acceptance criteria
Weak prompt:
Fix the settings bug.
Strong prompt:
Own only crates/tui/src/settings.rs and its tests. Preserve existing config key names. Verify with the existing checks that provider-specific API key changes do not restart provider onboarding. Return the changed paths and test command output.
Câu hỏi thường gặp
Điều gì ở lại với AI chính?
Hiểu yêu cầu của bạn, các quyết định kiến trúc và bảo mật, tích hợp giữa các module và kiểm tra cuối vẫn thuộc về AI cha.
Điều gì không nên giao?
Các việc nhỏ chỉ một bước, quyết định sản phẩm chưa rõ ràng, thao tác phá hủy không có tiêu chí rõ ràng, và kiểm chứng cuối cùng.
Tôi có kiểm soát mô hình của trợ lý được không?
Có. Skill ưu tiên thiết lập mức độ mạnh của mô hình không phụ thuộc nhà cung cấp, và các trợ lý mặc định kế thừa mô hình đang dùng.
Chi tiết
Mô tả gốc của tác giả
Strategic delegation for multi-step coding, research, or verification work. Use when a task can be split into parent reasoning plus focused sub-agent execution through the agent tool.
repo: codewhale-hq/Codewhale
Độ phổ biến
- Sao GitHub
- 41k
- Vị trí xếp hạng
- #6523
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
best-of-n
41kGiúp agent của bạn đưa ra nhiều câu trả lời độc lập cho một vấn đề khó, chấm chúng theo cùng một tiêu chí, và chỉ áp dụng phương án vượt qua kiểm tra.
dataviz
41kGiúp agent của bạn chọn biểu đồ hoặc bảng điều khiển phù hợp với dữ liệu, có nhãn rõ ràng, ghi chú nguồn và kiểm tra trục cùng giá trị bị thiếu.
debug
41kGiúp agent của bạn tìm nguyên nhân thật của một lỗi bằng cách tái hiện, thu hẹp phạm vi, và chỉ sửa khi bạn đồng ý, thay vì đoán mò.
dependency-update
41kGiúp agent của bạn cập nhật một nhóm phần mềm phụ thuộc đã nêu, đọc ghi chú phát hành, sửa thay đổi gây lỗi và chạy các bước kiểm tra của dự án.
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.