hive-cli: Installing, Configuring, and Driving Hive CLI Workflows in OpenClaw

Introduction

Hive delegates folder-based coding agent workflows to command-line management: initializing projects, pushing tasks, checking status, and managing daemons. If one relies solely on the model to improvise hive subcommands in OpenClaw, it is easy to miss version validation, daemon installation, and confirmation steps for destructive operations.

The hive-cli Skill introduced below writes the above process into fixed guidelines that Agents can follow: first detecting whether Hive CLI is already installed on the local machine, then guiding the installation according to the platform, and finally executing init, doctor, and daily workflow commands under user confirmation.

What is this

hive-cli is a community Skill hosted on SkillHub at coordinate @user_15292d5a/yjkj-hive-cli, categorized as it-ops-security, with current release version 1.0.0, and tag requires_api_key=false (installing and using the Skill itself does not require an extra API Key).

Official description: Install, set up, or drive any Hive CLI workflow from OpenClaw.
In other words: complete Hive CLI installation and project initialization within the OpenClaw scenario, and drive, review, and manage Hive tasks via hive (or alias hv).

Skill content is based on the generic SKILL.md format; metadata points to the upstream Hive repository github.com/ivankuznetsov/hive. The Skill card notes the license as MIT-0, original ClawHub publisher ivankuznetsov, and this entry is maintained by community user user_15292d5a on SkillHub.

Core Capabilities

The following capabilities are derived from SKILL.md inside the Skill package and are targeted at Agent execution rather than a standalone desktop application:

  1. CLI Detection: Before starting the workflow, detect if hive or hv outputs a version number matching X.Y.Z to avoid confusion with commands like Apache Hive.
  2. Guided Installation: When not installed, explain that the CLI installation, version validation, and per-user daemon service installation will be performed, and optionally execute hive init for the current project; user explicit confirmation is required before executing the installation command.
  3. Multi-platform Installation Paths: Choose paths based on the host, such as Homebrew (macOS arm64), Arch (install hive-bin via yay / paru), Ubuntu 22.04+, and glibc Linux (via upstream install.sh).
  4. Workflow Driving: Map user /hive type instructions to CLI parameters; when installed and without parameters, execute --help to summarize available workflows; prioritize using --json on commands supporting JSON and summarize task slug, stage, marker, and next commands.
  5. Security Boundaries: For management destructive verbs like drop, uninstall, update, and high-risk nested operations like daemon stop, markers clear, approve --force, require explaining the impact and obtaining confirmation first; daemon startup prefers hive daemon start --detach, while foreground/streaming commands require additional confirmation.

OpenClaw metadata declares Homebrew installation items for macOS (formula ivankuznetsov/hive/hive).

Installation and Activation

Install SkillHub CLI (if not already installed)

command -v skillhub && skillhub --version

If not installed, refer to the official SkillHub documentation skillhub.cn/install/skillhub.md:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

Install hive-cli into the current Agent’s skills directory

SkillHub requires using --dir to point to the skills directory recognized by the current Agent; otherwise, defaulting to ./skills/ may fail to load.

skillhub install yjkj-hive-cli --namespace user_15292d5a --dir <your skills directory>

You can also use the full coordinate:

skillhub install @user_15292d5a/yjkj-hive-cli --dir <your skills directory>

Common directories (excerpted from SkillHub installation docs):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ in project
  • OpenClaw: install to the configured skills directory in OpenClaw

After installation, restart or refresh the skills list according to the instructions for the used Agent. SkillHub page address: https://www.skillhub.cn/skills/user_15292d5a/yjkj-hive-cli.

Install Hive CLI on the host machine (guided by Skill, not included in the Skill package)

The Skill guides the Agent to install the Hive binary on the host machine after user confirmation. The following is an example snippet.

Version Detection (Skill requires execution before running the workflow):

if hive --version 2>/dev/null | grep -qE '^[0-9]+\.[0-9]+\.[0-9]+$'; then
  hive_cmd=hive
elif hv --version 2>/dev/null | grep -qE '^[0-9]+\.[0-9]+\.[0-9]+$'; then
  hive_cmd=hv
else
  hive_cmd=
fi

Ubuntu 22.04+ / glibc Linux x86_64 or aarch64 (Skill embedded example, script version tag is v0.2.0):

tmpdir="$(mktemp -d)"
trap 'rm -rf "$tmpdir"' EXIT
curl -fsSL https://raw.githubusercontent.com/ivankuznetsov/hive/v0.2.0/install.sh -o "$tmpdir/hive-install.sh"
bash "$tmpdir/hive-install.sh"

After successful installation verification, the Skill requires executing "${hive_cmd}" daemon install once and asks whether to run `”${hive_cmd}” init . –json

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye