hub-init – skill Agent & Tự động hóa cho agent AI
Tạo phiên cộng tác AgentHub mới với nhiệm vụ, số lượng agent và tiêu chí đánh giá. Dùng khi người dùng chạy /hub:hub-init hoặc yêu cầu bắt đầu cuộc thi đa agent cho một nhiệm vụ.
Cài skill hub-init bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/hub-init-b0b65.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /hub-init – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/hub-init-b0b65.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $hub-init – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/hub-init-b0b65.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /hub-init – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/hub-init-b0b65.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /hub-init – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
/hub: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:hub-init # Interactive mode
/hub:hub-init --task "Optimize API" --agents 3 --eval "pytest bench.py" --metric p50_ms --direction lower
/hub: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 /hub:spawn to launch 3 agentsFor 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 /hub:spawn to launch 3 agentsBaseline 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:
/hub:spawnto launch agents - Or
/hub:spawn {session-id}if multiple sessions exist
Skill liên quan
- cc-skill-strategic-compact – Chuẩn bị một checkpoint đã được xác minh trước khi cô đọng cuộc hội thoại agent tại ranh…
- changelog-automation – Tự động tạo changelog từ commit, PR và release theo định dạng Keep a Changelog. Dùng khi…
- hub-status – Hiển thị trạng thái DAG, tiến độ agent và trạng thái branch của phiên AgentHub. Dùng khi…
- ci-cd-and-automation – Tự động hóa thiết lập CI/CD. Dùng khi thiết lập hoặc chỉnh sửa pipeline build và triển…
- cicd-automation-workflow-automate – Bạn là chuyên gia tự động hóa quy trình, chuyên tạo pipeline CI/CD hiệu quả, workflow…
- circleci-automation – Tự động hóa tác vụ CircleCI qua Rube MCP (Composio): kích hoạt pipeline, theo dõi…
- page-agent – Nhúng copilot GUI trong trang bằng ngôn ngữ tự nhiên vào các ứng dụng web.
- clarvia-aeo-check – Chấm điểm bất kỳ máy chủ MCP, API hoặc CLI nào về mức độ sẵn sàng cho agent bằng Clarvia…