Hub Init skill for Claude

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

Hub Init SKILL.md

The full skill file from alirezarezvani/claude-skills (MIT).

/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

How to install Hub Init

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit alirezarezvani/claude-skills/engineering/agenthub/skills/hub-init#main ~/.claude/skills/hub-init

Codex

npx degit alirezarezvani/claude-skills/engineering/agenthub/skills/hub-init#main ~/.codex/skills/hub-init

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the Hub Init skill do?

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

+How do I install Hub Init in Claude Code?

Copy the skill folder into ~/.claude/skills/hub-init, for example with "npx degit alirezarezvani/claude-skills/engineering/agenthub/skills/hub-init#main ~/.claude/skills/hub-init". Claude Code loads it automatically and uses it when a task matches.

+Does Hub Init work with ChatGPT or Codex?

Yes. Hub Init uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/hub-init. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Hub Init free?

Hub Init is published on GitHub by alirezarezvani under the MIT license, which allows free use.

Related productivity skills

  1. Handoff

    Compact the current conversation into a handoff document for another agent to pick up.

    mattpocock/skills★ 327k
  2. Notebooklm

    Use for anything in Google NotebookLM: querying notebooks, adding sources, generating Audio or Video Overviews, reports, flashcards or…

    alirezarezvani/claude-skills★ 30k
  3. Teach

    Teach the user a new skill or concept, within this workspace.

    mattpocock/skills★ 327k
  4. Inbox Setup

    Use when setting up email triage for the first time, before inbox-triage, or when priorities change.

    alirezarezvani/claude-skills★ 30k
  5. Inbox Triage

    Use when the user wants their inbox processed ('triage my inbox', 'check my email').

    alirezarezvani/claude-skills★ 30k
  6. Knowledge Ops

    Use when writing, checking or cleaning up SOPs and runbooks. Generates them with sop_generator.py, checks 5W2H completeness and links with…

    alirezarezvani/claude-skills★ 30k
  7. Meeting Analyzer

    Use when the user shares meeting transcripts (.vtt, .srt, .txt, Otter, Granola, Zoom) or asks how they come across in meetings.

    alirezarezvani/claude-skills★ 30k
  8. Meetings

    Use when someone wants to decide whether a meeting is worth calling, price a meeting in dollars, build a timeboxed agenda with desired…

    alirezarezvani/claude-skills★ 30k
  9. Reflect

    Use when the user says 'step back', 'zoom out', 'are we on track' or 'sanity check this', or work has gone deep into details without a…

    alirezarezvani/claude-skills★ 30k

See all productivity skills →

More skills from alirezarezvani

  1. Hub Run

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

    alirezarezvani/claude-skills★ 30k
  2. Hub Status

    Use for /hub-status, or to check AgentHub agent progress, branches and DAG state.

    alirezarezvani/claude-skills★ 30k
  3. Human Gate

    Use before shipping anything that needs human sign-off (a plan, spec, report, page, migration or irreversible action).

    alirezarezvani/claude-skills★ 30k

All skills by alirezarezvani →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.