본문으로 건너뛰기
Skillpedia
에이전트29k · #9774

agent-delegation

하는 일

한 AI 에이전트가 다른 에이전트에게 작업을 넘길 때 좋은 프롬프트를 쓰는 방법을 정리한 참고 자료입니다. 다중 에이전트 구성을 만들거나 운영하며 위임된 작업이 쓸모 있기를 원하는 분들을 위한 스킬입니다.

사용하는 경우

  • ✓하위 에이전트에게 리서치나 코드 작성을 맡기려고 할 때.
  • ✓위임된 작업이 얕거나 일반적으로 돌아와서 더 나은 프롬프트가 필요할 때.
  • ✓하위 에이전트가 혼자 작업하려면 어떤 세부 정보가 필요한지 정해야 할 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/QwenLM/qwen-code/blob/main/packages/core/src/skills/bundled/agent-delegation/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 리서치를 도우미 에이전트에게 넘기기 전에, 제가 무엇을 돌려받아야 하는지 설명하는 명확한 지시문을 작성하도록 도와주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

스킬은 좋은 지시문에 무엇이 들어가는지 설명합니다. 목표, 이미 배제된 것, 기대하는 결과 같은 항목입니다. 또한 생각하는 일을 도우미에게 떠넘기는 모호한 프롬프트를 경계합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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>
자주 묻는 질문

위임 프롬프트에 항상 무엇을 포함해야 하나요?

목표와 그 이유, 이미 알려진 내용, 작업의 경계, 기대하는 결과물을 포함해야 합니다.

문제 전체를 넘겨도 되나요?

아니요. 스킬은 이해 자체를 위임하는 것, 예를 들어 전달하지 않은 발견 사항을 바탕으로 버그를 고치라고 하는 것을 경계합니다.

언제 위임할지도 정하나요?

아니요. 프롬프트를 쓰는 방법을 다루며, 하위 에이전트를 실행하는 규칙은 다른 곳에서 설명합니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
29k
순위
#9774
라이선스
Apache-2.0
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬