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

spawn

하는 일

이 스킬은 이미 설정된 세션에서 병렬 에이전트를 시작합니다. 같은 작업에 대해 에이전트마다 다른 전략을 시도하게 하고 싶은 사람에게 맞습니다.

사용하는 경우

  • ✓세션 설정이 끝나 에이전트들이 작업을 시작할 준비가 되었을 때.
  • ✓같은 작업에서 에이전트마다 다른 전략을 시도하게 하고 싶을 때.
  • ✓에이전트가 옵티마이저, 리팩터러, 테스트 작성기, 버그 수정기 패턴을 따르게 하고 싶을 때.

스킬 링크

https://github.com/alirezarezvani/claude-skills/blob/main/engineering/agenthub/skills/spawn/SKILL.md

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

사용 방법

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

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

Use this skill to help me: https://github.com/alirezarezvani/claude-skills/blob/main/engineering/agenthub/skills/spawn/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에서 그대로 가져왔습니다.

/agenthub:spawn — Launch Parallel Agents

Spawn N subagents that work on the same task in parallel, each in an isolated git worktree.

Usage

/agenthub:spawn                                    # Spawn agents for the latest session
/agenthub:spawn 20260317-143022                    # Spawn agents for a specific session
/agenthub:spawn --template optimizer               # Use optimizer template for dispatch prompts
/agenthub:spawn --template refactorer              # Use refactorer template

Templates

When --template <name> is provided, use the dispatch prompt from ../agenthub/references/agent-templates.md instead of the default prompt below. Available templates:

Template Pattern Use Case
optimizer Edit → eval → keep/discard → repeat x10 Performance, latency, size reduction
refactorer Restructure → test → iterate until green Code quality, tech debt
test-writer Write tests → measure coverage → repeat Test coverage gaps
bug-fixer Reproduce → diagnose → fix → verify Bug fix with competing approaches

When using a template, replace all {variables} with values from the session config. Assign each agent a different strategy appropriate to the template and task — diverse strategies maximize the value of parallel exploration.

What It Does

  1. Load session config from .agenthub/sessions/{session-id}/config.yaml
  2. For each agent 1..N:
    • Write task assignment to .agenthub/board/dispatch/
    • Build agent prompt with task, constraints, and board write instructions
  3. Launch ALL agents in a single message with multiple Agent tool calls:
Agent(
  prompt: "You are agent-{i} in hub session {session-id}.

Your task: {task}

Read your full assignment at .agenthub/board/dispatch/{seq}-agent-{i}.md

Instructions:
1. Work in your worktree — make changes, run tests, iterate
2. Commit all changes with descriptive messages
3. Write your result summary to .agenthub/board/results/agent-{i}-result.md
   Include: approach taken, files changed, metric if available, confidence level
4. Exit when done

Constraints:
- Do NOT read or modify other agents' work
- Do NOT access .agenthub/board/results/ for other agents
- Commit early and often with descriptive messages
- If you hit a dead end, commit what you have and explain in your result",
  isolation: "worktree"
)
  1. Update session state to running via:
python {skill_path}/scripts/session_manager.py --update {session-id} --state running

Critical Rules

  • All agents in ONE message — spawn all Agent tool calls simultaneously for true parallelism
  • isolation: "worktree" is mandatory — each agent needs its own filesystem
  • Never modify session config after spawn — agents rely on stable configuration
  • Each agent gets a unique board post — dispatch posts are numbered sequentially

After Spawn

Tell the user:

  • {N} agents launched in parallel
  • Each working in an isolated worktree
  • Monitor with /hub-status
  • Evaluate when done with /agenthub:eval
자주 묻는 질문

왜 에이전트마다 다른 전략을 주나요?

전략이 다양하면 더 많은 방법을 병렬로 살펴볼 수 있어서, 마지막 비교가 더 쓸모 있어집니다.

에이전트는 어디에서 작업하나요?

각 에이전트는 자기만의 독립된 git 워크트리에서 작업합니다.

어떤 템플릿을 쓸 수 있나요?

옵티마이저, 리팩터러, 테스트 작성기, 버그 수정기를 쓸 수 있습니다.

상세 정보

작성자의 원본 설명

Use to launch the competing agents for an initialized AgentHub session in isolated worktrees.

repo: alirezarezvani/claude-skills

인기도

GitHub 스타
29k
순위
#9535
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬