Chuyển đến nội dung
Skillpedia
Agent29k · #9531

hub-init

Skill này làm gì

Skill này thiết lập một phiên mới, trong đó nhiều agent sẽ cùng thử một nhiệm vụ. Skill dành cho những ai muốn bắt đầu một cuộc thi agent song song với luật rõ ràng.

Khi nào nên dùng

  • ✓Khi bạn muốn bắt đầu một cuộc thi mới giữa nhiều agent.
  • ✓Khi bạn có một nhiệm vụ và muốn quyết định bao nhiêu agent nên thử.
  • ✓Khi bạn muốn định cách chấm kết quả trước khi các agent bắt đầu.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/alirezarezvani/claude-skills/blob/main/engineering/agenthub/skills/hub-init/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Khởi tạo một phiên AgentHub để tái cấu trúc module auth của chúng tôi với hai agent, không dùng chỉ số, để một giám khảo LLM chọn người thắng.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent tạo các thư mục của phiên, sinh một ID phiên và lưu nhiệm vụ, số lượng agent và cài đặt đánh giá. Nếu bạn không đưa thông tin, agent sẽ hỏi từng mục một.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

/hub-init — Create New Session

Initialize an AgentHub collaboration session. Creates the .agenthub/ directory structure, generates a session ID, and configures evaluation criteria.

Usage

/hub-init                                                    # Interactive mode
/hub-init --task "Optimize API" --agents 3 --eval "pytest bench.py" --metric p50_ms --direction lower
/hub-init --task "Refactor auth" --agents 2                  # No eval (LLM judge mode)

What It Does

If arguments provided

Pass them to the init script:

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

If no arguments (interactive mode)

Collect each parameter:

  1. Task — What should the agents do? (required)
  2. Agent count — How many parallel agents? (default: 3)
  3. Eval command — Command to measure results (optional — skip for LLM judge mode)
  4. Metric name — What metric to extract from eval output (required if eval command given)
  5. Direction — Is lower or higher better? (required if metric given)
  6. Base branch — Branch to fork from (default: current branch)

Output

AgentHub session initialized
  Session ID: 20260317-143022
  Task: Optimize API response time below 100ms
  Agents: 3
  Eval: pytest bench.py --json
  Metric: p50_ms (lower is better)
  Base branch: dev
  State: init

Next step: Run /agenthub:spawn to launch 3 agents

For content or research tasks (no eval command → LLM judge mode):

AgentHub session initialized
  Session ID: 20260317-151200
  Task: Draft 3 competing taglines for product launch
  Agents: 3
  Eval: LLM judge (no eval command)
  Base branch: dev
  State: init

Next step: Run /agenthub:spawn to launch 3 agents

Baseline Capture

If --eval was provided, capture a baseline measurement after session creation:

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

This baseline is used by result_ranker.py --baseline during evaluation to show deltas. If the eval command fails at this stage, warn the user but continue — baseline is optional.

After Init

Tell the user:

  • Session created with ID {session-id}
  • Baseline metric (if captured)
  • Next step: /agenthub:spawn to launch agents
  • Or /agenthub:spawn {session-id} if multiple sessions exist
Câu hỏi thường gặp

Nếu tôi không có lệnh đánh giá thì sao?

Bạn có thể bỏ qua, và phiên sẽ dùng chế độ giám khảo LLM để chọn người thắng.

Số agent mặc định là bao nhiêu?

Ba, trừ khi bạn chọn một số khác.

Nó dùng nhánh gốc nào?

Nhánh hiện tại, trừ khi bạn chọn nhánh khác.

Chi tiết

Mô tả gốc của tác giả

Use for /hub-init, or to start an AgentHub competition: task, agent count and evaluation criteria.

repo: alirezarezvani/claude-skills

Độ phổ biến

Sao GitHub
29k
Vị trí xếp hạng
#9531
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự