Saltar al contenido
Skillpedia
Agentes29 mil · #9774

agent-delegation

Qué hace

Es una referencia para escribir buenos prompts cuando un agente de IA pasa trabajo a otro. Es para personas que construyen o usan configuraciones multiagente y quieren que el trabajo delegado sea útil.

Cuándo usarla

  • ✓Cuando vas a pedir a un subagente que investigue o escriba código para ti.
  • ✓Cuando un trabajo delegado volvió superficial o genérico y quieres un prompt mejor.
  • ✓Cuando necesitas decidir qué detalles necesita un subagente para trabajar por su cuenta.

Link de la skill

https://github.com/QwenLM/qwen-code/blob/main/packages/core/src/skills/bundled/agent-delegation/SKILL.md

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/QwenLM/qwen-code/blob/main/packages/core/src/skills/bundled/agent-delegation/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Antes de pasar esta investigación a un agente auxiliar, ayúdame a escribir un encargo claro que explique qué necesito de vuelta.”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

La skill explica qué debe incluir un buen encargo, como el objetivo, lo que ya se descartó y el resultado esperado. También advierte contra los prompts vagos que devuelven el razonamiento al auxiliar.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de 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>
Preguntas frecuentes

¿Qué debe incluir siempre un prompt de delegación?

El objetivo y por qué importa, lo que ya se sabe, los límites de la tarea y el resultado que esperas.

¿Debo delegar el problema entero?

No. La skill advierte contra delegar la comprensión, como pedir a un auxiliar que arregle un error sin darle los hallazgos.

¿Decide cuándo delegar?

No. Cubre cómo escribir el prompt, mientras que las reglas para lanzar subagentes se describen en otro lugar.

Detalles

Descripción original del autor

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

Popularidad

Estrellas en GitHub
29 mil
Posición en el ranking
#9774
Licencia
Apache-2.0
Actualizada
2/11/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas