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

hub-run

하는 일

이 스킬은 여러 에이전트가 함께 작업하는 전체 과정을 한 번에 실행합니다. 여러 에이전트가 같은 작업을 시도하고 가장 좋은 결과를 자동으로 병합받고 싶은 사람에게 맞습니다.

사용하는 경우

  • ✓단계별로 직접 진행하지 않고 경쟁 전체를 한 번에 실행하고 싶을 때.
  • ✓여러 에이전트 작업을 수동 설정을 줄여 끝까지 마치고 싶을 때.
  • ✓측정 가능한 작업을 시작부터 병합까지 정해진 절차로 진행해야 할 때.

스킬 링크

https://github.com/alirezarezvani/claude-skills/blob/main/engineering/agenthub/skills/hub-run/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/hub-run/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“옵티마이저 템플릿을 써서 에이전트 세 개로 p50 지연 시간을 줄이고, 가장 빠른 결과를 병합해 주세요.”

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

작동 방식

에이전트가 세션을 초기화하고 기준선을 기록한 뒤 에이전트들을 실행하고, 결과를 평가해 우승한 결과를 병합합니다. 작업, 에이전트 수, 평가 명령, 측정 기준, 방향, 템플릿을 입력으로 받습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

/hub-run — One-Shot Lifecycle

Run the full AgentHub lifecycle in one command: initialize, capture baseline, spawn agents, evaluate results, and merge the winner.

Usage

/hub-run --task "Reduce p50 latency" --agents 3 \
  --eval "pytest bench.py --json" --metric p50_ms --direction lower \
  --template optimizer

/hub-run --task "Refactor auth module" --agents 2 --template refactorer

/hub-run --task "Cover untested utils" --agents 3 \
  --eval "pytest --cov=utils --cov-report=json" --metric coverage_pct --direction higher \
  --template test-writer

/hub-run --task "Write 3 email subject lines for spring sale campaign" --agents 3 --judge

Parameters

Parameter Required Description
--task Yes Task description for agents
--agents No Number of parallel agents (default: 3)
--eval No Eval command to measure results (skip for LLM judge mode)
--metric No Metric name to extract from eval output (required if --eval given)
--direction No lower or higher — which direction is better (required if --metric given)
--template No Agent template: optimizer, refactorer, test-writer, bug-fixer

What It Does

Execute these steps sequentially:

Step 1: Initialize

Run /hub-init with the provided arguments:

python {skill_path}/scripts/hub_init.py \
  --task "{task}" --agents {N} \
  [--eval "{eval_cmd}"] [--metric {metric}] [--direction {direction}]

Display the session ID to the user.

Step 2: Capture Baseline

If --eval was provided:

  1. Run the eval command in the current working directory
  2. Extract the metric value from stdout
  3. Display: Baseline captured: {metric} = {value}
  4. Append baseline: {value} to .agenthub/sessions/{session-id}/config.yaml

If no --eval was provided, skip this step.

Step 3: Spawn Agents

Run /agenthub:spawn with the session ID.

If --template was provided, use the template dispatch prompt from ../agenthub/references/agent-templates.md instead of the default dispatch prompt. Pass the eval command, metric, and baseline to the template variables.

Launch all agents in a single message with multiple Agent tool calls (true parallelism).

Step 4: Wait and Monitor

After spawning, inform the user that agents are running. When all agents complete (Agent tool returns results):

  1. Display a brief summary of each agent's work
  2. Proceed to evaluation

Step 5: Evaluate

Run /agenthub:eval with the session ID:

  • If --eval was provided: metric-based ranking with result_ranker.py
  • If no --eval: LLM judge mode (coordinator reads diffs and ranks)

If baseline was captured, pass --baseline {value} to result_ranker.py so deltas are shown.

Display the ranked results table.

Step 6: Confirm and Merge

Present the results to the user and ask for confirmation:

Agent-2 is the winner (128ms, -52ms from baseline).
Merge agent-2's branch? [Y/n]

If confirmed, run /agenthub:merge. If declined, inform the user they can:

  • /agenthub:merge --agent agent-{N} to pick a different winner
  • /agenthub:eval --judge to re-evaluate with LLM judge
  • Inspect branches manually

Critical Rules

  • Sequential execution — each step depends on the previous
  • Stop on failure — if any step fails, report the error and stop
  • User confirms merge — never auto-merge without asking
  • Template is optional — without --template, agents use the default dispatch prompt from /agenthub:spawn
자주 묻는 질문

어떤 템플릿이 있나요?

옵티마이저, 리팩터러, 테스트 작성기, 버그 수정기가 있으며 각각 고유한 작업 방식이 있습니다.

평가 명령이 꼭 필요한가요?

아니요. 없으면 AI 심사위원 모드로 결과를 비교합니다.

측정 작업에는 무엇을 입력해야 하나요?

측정 항목 이름과, 값이 낮을수록 좋은지 높을수록 좋은지를 알려 주어야 합니다.

상세 정보

작성자의 원본 설명

Use for /hub-run, or to run a whole AgentHub competition end to end: init, baseline, spawn, eval and merge.

repo: alirezarezvani/claude-skills

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬