agent-delegation
Was er macht
Dieser Skill ist eine Anleitung für gute Prompts, wenn ein KI-Agent Arbeit an einen anderen übergibt. Er richtet sich an Menschen, die Multi-Agenten-Setups bauen oder betreiben und wollen, dass die delegierte Arbeit nützlich ist.
Wann du ihn nutzt
- ✓Wenn du einen Subagenten bitten willst, für dich zu recherchieren oder Code zu schreiben.
- ✓Wenn eine delegierte Aufgabe oberflächlich oder allgemein zurückkam und du einen besseren Prompt willst.
- ✓Wenn du entscheiden musst, welche Details ein Subagent braucht, um selbstständig zu arbeiten.
Link zum Skill
https://github.com/QwenLM/qwen-code/blob/main/packages/core/src/skills/bundled/agent-delegation/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Bevor du diese Recherche an einen Hilfsagenten gibst, hilf mir, ein klares Briefing zu schreiben, das erklärt, was ich zurückbekommen will.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Skill erklärt, was ein gutes Briefing enthält, etwa das Ziel, was bereits bekannt ist, die Grenzen der Aufgabe und das erwartete Ergebnis. Er warnt auch vor vagen Prompts, die das Denken zurück auf den Helfer verlagern.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von 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>Häufige Fragen
Was muss ein Delegations-Prompt immer enthalten?
Das Ziel und warum es wichtig ist, was bereits bekannt ist, die Grenzen der Aufgabe und das erwartete Ergebnis.
Soll ich das ganze Problem übergeben?
Nein. Der Skill warnt davor, das Verständnis zu delegieren, etwa einen Helfer den Fehler auf Basis von Erkenntnissen beheben zu lassen, die er nie bekommen hat.
Entscheidet er, wann delegiert wird?
Nein. Er behandelt, wie der Prompt geschrieben wird. Die Startregeln für Subagenten stehen an anderer Stelle.
Details
Originalbeschreibung des Autors
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
Beliebtheit
- GitHub-Sterne
- 29k
- Platz im Ranking
- #9774
- Lizenz
- Apache-2.0
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
codegraph
29kHilft deinem Agenten, eine indizierte Codebasis über ihren Aufrufgraphen, Abhängigkeiten, toten Code, Hotspots und semantische Suche zu analysieren.
qwen-code-claw
29kHilft deinem Agenten, Programmieraufgaben an Qwen Code zu übergeben, etwa Code verstehen, Fehler beheben, umbauen oder ein neues Projekt erzeugen.
structured-debugging
29kBringt deinem Agenten bei, schwierige Fehler Schritt für Schritt zu finden: erst eine Hypothese, dann gezielte Prüfung, dann die Reparatur.
tmux-real-user-testing
29kHilft deinem Agenten, eine Terminal-App in tmux wie ein echter Nutzer zu testen, mit lesbarem Protokoll und Bildschirmfotos.
Ähnliche Skills
add-model-provider
394kLässt deinen Agenten einen neuen KI-Modellanbieter mit sicheren Befehlen an OpenClaw anbinden, API-Schlüssel nicht im Klartext speichern und einen Live-Test starten.
acp-router
394kHilft deinem Agenten, eine Aufgabe über OpenClaw an einen Coding-Assistenten wie Claude Code oder Cursor zu senden, damit die Arbeit in diesem Tool läuft.
browser-automation
394kBringt deinem Agenten bei, Webseiten Schritt für Schritt zu steuern, einschließlich Anmeldungen, Tabs und Wiederherstellung, wenn eine Seite nicht mehr reagiert.