agent-delegation
Fungsinya
Skill ini adalah referensi untuk menulis prompt yang baik saat satu agent AI menyerahkan pekerjaan kepada agent lain. Ditujukan untuk orang yang membangun atau menjalankan pengaturan multi-agent dan ingin pekerjaan yang didelegasikan berguna.
Kapan dipakai
- ✓Saat Anda akan meminta subagent melakukan riset atau menulis kode untuk Anda.
- ✓Ketika tugas yang didelegasikan kembali dangkal atau umum dan Anda ingin prompt yang lebih baik.
- ✓Saat Anda perlu memutuskan detail apa yang dibutuhkan subagent agar bisa bekerja sendiri.
Link skill
https://github.com/QwenLM/qwen-code/blob/main/packages/core/src/skills/bundled/agent-delegation/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
“Sebelum Anda menyerahkan riset ini kepada agent pembantu, bantu saya menulis brief yang jelas tentang apa yang saya butuhkan kembali.”
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill menjelaskan isi brief yang baik, seperti tujuan, apa yang sudah disingkirkan, dan keluaran yang diharapkan. Ia juga memperingatkan terhadap prompt yang samar yang mengembalikan pemikiran kepada pembantu.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Delegation prompt reference
Everything below is about writing the prompt. Whether to delegate at all, how a background agent reports back, and the rules for running agents concurrently stay in the Agent tool's description — this reference does not repeat them.
Writing the prompt
Brief the agent like a smart colleague: make the delegated task, boundaries, and expected output explicit. Regular subagents have not seen this conversation; forks inherit all or the selected recent window.
- Explain what you're trying to accomplish and why.
- Describe what you've already learned or ruled out.
- Give enough context about the surrounding problem that the agent can make judgment calls rather than just following a narrow instruction.
- If you need a short response, say so explicitly.
- For lookups, provide the exact target. For investigations, provide the actual question rather than an over-prescribed sequence of steps.
- Provide clear, detailed prompts so the agent can work autonomously and return exactly the information you need.
- Clearly tell the agent whether you expect it to write code or just to do research (search, file reads, web fetches, etc.), since it is not aware of the user's intent.
Terse command-style prompts produce shallow, generic work.
Never delegate understanding. Do not write prompts like "based on your findings, fix the bug" or "based on the research, implement it." Those phrases push synthesis onto the agent instead of doing it yourself. Write prompts that prove you understood the task: include relevant file paths, constraints, what specifically needs to be learned or changed, and what is out of scope.
A custom subagent's own definition outranks your prompt. When subagent_type names a subagent someone defined, that definition already fixes its scope, its tools and its output contract; your prompt adds task context, not a new contract. Asking one confined to a single file to search the repository does not widen it — the dispatch simply cannot succeed. If the contract is too narrow for what you need, the definition is what has to change, not the prompt.
Writing a fork prompt
With the default full history, the prompt is a directive — what to do, not what the situation is. When fork_turns limits history, include any older context the fork still needs. Be specific about scope: what's in, what's out, what another agent is handling.
Worked example
<example_agent_descriptions> "test-runner": use this agent after you are done writing code to run tests </example_agent_descriptions> <example> user: "Please write a function that checks if a number is prime" assistant: I'm going to use the Write tool to write the following code: <code> function isPrime(n) { if (n <= 1) return false for (let i = 2; i * i <= n; i++) { if (n % i === 0) return false } return true } </code> <commentary> Since a significant piece of code was written and the task was completed, now use the test-runner agent to run the tests </commentary> assistant: Uses the agent tool to launch the test-runner agent </example>Pertanyaan umum
Apa yang selalu harus ada dalam prompt delegasi?
Tujuan dan alasannya, apa yang sudah diketahui, batas tugas, serta keluaran yang Anda harapkan.
Apakah saya sebaiknya menyerahkan seluruh masalah?
Tidak. Skill ini memperingatkan terhadap mendelegasikan pemahaman, misalnya meminta pembantu memperbaiki bug berdasarkan temuan yang belum diberikan kepadanya.
Apakah ia memutuskan kapan mendelegasikan?
Tidak. Skill ini membahas cara menulis prompt, sedangkan aturan peluncuran subagent dijelaskan di tempat lain.
Detail
Deskripsi asli dari pembuat
Reference for briefing a subagent or a fork — what to put in the prompt, what not to delegate, and a worked example. Load before writing a delegation prompt; the Agent tool's own description carries the launch rules and the background-agent rules.
repo: QwenLM/qwen-code
Popularitas
- Bintang GitHub
- 29k
- Peringkat
- #9774
- Lisensi
- Apache-2.0
- Diperbarui
- 2/11/2026
Komentar
- …
Skill lain dari repositori ini
codegraph
29kMembantu agent Anda menganalisis kodebase yang sudah diindeks melalui grafik pemanggilan, dependensi, kode mati, titik panas, dan pencarian semantik.
qwen-code-claw
29kMembantu agent Anda menyerahkan tugas coding ke Qwen Code, seperti memahami codebase, memperbaiki bug, merapikan kode, atau membuat proyek baru.
structured-debugging
29kMengajari agent Anda men-debug bug sulit secara bertahap: menyusun hipotesis, menguji, dan menemukan penyebab asli sebelum memperbaiki.
tmux-real-user-testing
29kMembantu agent Anda menguji aplikasi terminal seperti pengguna sungguhan di dalam tmux, dengan log yang mudah dibaca dan cuplikan layar tiap aksi.
Skill serupa
add-model-provider
394kMemungkinkan agent Anda menghubungkan penyedia model AI baru ke OpenClaw dengan perintah pengaturan yang aman, menjaga kunci API tetap di luar teks biasa, dan menjalankan uji langsung.
acp-router
394kMembantu agent Anda mengirim tugas ke asisten pemrograman seperti Claude Code atau Cursor lewat OpenClaw, sehingga pekerjaan dijalankan di alat tersebut.
browser-automation
394kMengajari agent Anda mengendalikan halaman web langkah demi langkah, termasuk login, tab, dan pemulihan saat halaman berhenti merespons.