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가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
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.
댓글
- …
이 저장소의 다른 스킬
codegraph
29k에이전트가 색인된 코드베이스를 호출 그래프, 의존성, 죽은 코드, 핫스팟, 의미 검색으로 분석하도록 돕습니다.
qwen-code-claw
29k에이전트가 코드베이스 이해, 버그 수정, 리팩터링, 새 프로젝트 생성 같은 코딩 작업을 Qwen Code에 맡기도록 돕습니다.
structured-debugging
29k에이전트가 어려운 버그를 디버깅하는 단계별 방법을 가르칩니다. 가설을 세우고, 대상 확인을 추가하고, 시험해서 실제 원인을 찾은 뒤 고칩니다.
tmux-real-user-testing
29k에이전트가 tmux 안에서 실제 사용자처럼 터미널 앱을 테스트하고, 각 동작마다 화면 캡처가 담긴 읽기 쉬운 로그를 저장하도록 돕습니다.
비슷한 스킬
add-model-provider
394k에이전트가 안전한 설정 명령으로 새 AI 모델 제공자를 OpenClaw에 연결하고, API 키를 평문으로 두지 않으며, 실시간 테스트를 실행하도록 돕습니다.
acp-router
394k에이전트가 OpenClaw를 통해 Claude Code나 Cursor 같은 코딩 도우미에 작업을 전달해, 작업이 그 도구에서 실행되도록 돕습니다.
browser-automation
394k에이전트가 로그인, 탭, 페이지 응답이 멈췄을 때의 복구를 포함해 웹 페이지를 단계별로 조작하도록 가르칩니다.