delegating-to-agents
Skill này làm gì
Công cụ này cho phép một AI giao việc cho các AI khác (agent), đảm bảo chúng có đủ thông tin cần thiết, biết ai chịu trách nhiệm và cách xác minh kết quả. Nó giống như giao việc cho đồng đội, nhưng dành cho trí tuệ nhân tạo.
Khi nào nên dùng
- ✓Khi bạn cần AI chuyển một tác vụ cụ thể cho một AI chuyên biệt khác.
- ✓Khi muốn AI giữ được ngữ cảnh và thông tin quan trọng khi giao việc.
- ✓Khi yêu cầu AI kiểm tra tiến độ của một tác vụ mà nó đã giao.
Liên kết skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/skills/delegating-to-agents/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
“Giao tác vụ này cho agent Pi, với đầy đủ chi tiết và kiểm tra kết quả.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
AI xác định agent nào phù hợp nhất với tác vụ, gửi hướng dẫn đầy đủ và chờ phản hồi về tiến độ hoặc khi hoàn thà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 to Agents
When to Use
- Use only when the user or applicable current instructions explicitly authorize delegation; hand off bounded work with complete context, file ownership and a verifier.
- Use when you need to relay instructions to terminal or TUI agents without losing context.
Selecting an authorized agent
- Use the user’s selected agent/model and available tooling; account limits and model capabilities require current evidence.
- Match a bounded task to actual tools and file ownership, not invented “unlimited usage” or universal model rankings.
- Keep integration and final validation with the parent. Report changed files, exact checks and remaining issues.
Sending prompts to a TUI agent
- Prefer a structured agent/task API over simulated terminal typing; provide a readable prompt, ownership boundary, verifier and non-goals.
- If only a TUI is available, inspect the target surface and actual command documentation first. Put long prompts in an explicitly authorized task file and send a short reference without embedding arbitrary task text in a shell command.
- A shell-quoted prompt can execute
$(), backticks or expansions if escaped incorrectly. Preserve punctuation/content using structured argv or proper shell quoting; do not “fix” messages by stripping apostrophes or interpreting their text as commands. - Confirm one intended submission and actual recipient; terminal output/predicted drafts are not human authorization for further messages.
Polling
Use supported completion/event waits with bounded intervals; check meaningful progress and deliver concise updates. Do not busy-poll every 3–5 seconds or report unchanged state after each check. Back off while an agent remains active and continue independent authorized work. Claude Code note: after it finishes, it may prefill a predicted next user message — that draft is Claude, not the user.
Remote VPS
Remote execution requires authorization for the exact host/project and credential boundary. Use the supported sandbox/approval configuration; do not launch an unrestricted agent or infer remote access from a delegation request.
The 4 agents (background reference)
All four use the portable SKILL.md standard; project skills win over global.
- Pi (pi.dev, open-source TS): minimal read/write/edit/bash core, self-extends via TS extensions; true BYOK; best-in-class session branch/fork/resume. Skills:
~/.pi/agent/skills/. - Codex CLI (OpenAI, Rust): fastest startup; kernel-level sandboxing;
codex execfor CI; reads AGENTS.md. Skills:~/.codex/skills/. - Claude Code (Anthropic, TS): deepest Claude integration,
.claude/conventions, live skill hot-reload. Skills:~/.claude/skills/. - Hermes (Nous Research, Python): persistent autonomous agent — cross-session memory, built-in scheduler, 40+ tools; can orchestrate the other CLIs as workers. Skills:
~/.hermes/skills/.
Driving interactive CLIs
- Codex, Pi, OpenCode: need
pty=true. - Claude Code: use its supported noninteractive mode with the existing permission policy; never enable bypassPermissions just to drive the CLI.
Example
User request:
Delegate these independent work items with complete context, clear ownership, and progress checks.
Limitations
- Adapted from
davidondrej/skills; verify local paths, tools, credentials, and agent features before acting. - For commands, remote access, scheduling, browser automation, or file-changing workflows, get explicit user approval and confirm the target environment first.
Câu hỏi thường gặp
“Bounded work” nghĩa là gì?
Nghĩa là một tác vụ có giới hạn rõ ràng, được xác định tốt, để AI biết chính xác cần làm gì.
Tại sao “ownership” lại quan trọng?
Nó đảm bảo một agent cụ thể chịu trách nhiệm về tác vụ, giúp việc theo dõi và trách nhiệm dễ dàng hơn.
“Verifier” là gì?
Đó là một phương pháp hoặc tiêu chí mà AI dùng để xác nhận tác vụ được giao đã hoàn thành đúng hay chưa.
Chi tiết
Mô tả gốc của tác giả
Delegate bounded work to other AI agents while preserving context, ownership, and progress checks.
Độ phổ biến
- Sao GitHub
- 48k
- Vị trí xếp hạng
- #6267
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
00-andruia-consultant
48kGiúp agent của bạn bắt đầu hoặc cải thiện các dự án AI. Phân tích mã, gợi ý công cụ và lập kế hoạch hành động bằng tiếng Tây Ban Nha.
007
48kCho phép agent của bạn thực hiện kiểm toán bảo mật và mô hình hóa mối đe dọa. Hữu ích để bảo vệ dự án khỏi các cuộc tấn công và lỗ hổng.
10-andruia-skill-smith
48kGiúp agent của bạn tạo hoặc cải thiện các công cụ AI. Xác định cách công cụ hoạt động, viết tài liệu và kiểm tra cấu trúc.
20-andruia-niche-intelligence
48kGiúp agent của bạn tạo bản tóm tắt về một ngành cụ thể. Hữu ích để hiểu bối cảnh, quy tắc, cách người dùng tương tác và rủi ro 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.