360 Secure SkillHub
360 安全技能中心

ClawHub Release Operator

面向 OpenClaw ClawHub 的发布运维 Skill:以命令优先方式给出发布、检查元数据与文件、更新已安装 skill、dry-run 同步及失败恢复步骤,强制读前写、显式 semver/tag 与验证证据,并按 Decision/Commands/Verification/Risks 输出。

vassiliylakhonin
vassiliylakhonin
热度 98.20
最近更新 2026-04-17 13:26:26
分类:开发依赖:代码执行 / 读写文件应用场景:DevOps / 工作流 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add vassili-clawhub-cli
Metadata
name
clawhub-release-operator
description
Run ClawHub skill release workflows with clear safety gates. Use for publish, inspect, update, sync, and failure recovery with command-first steps, explicit preflight checks, and semver/tag discipline. Do not use for plugin publishing or non-ClawHub package managers.
homepage
https://docs.openclaw.ai/tools/clawhub
user-invocable
true
metadata
{"openclaw":{"emoji":"🦞","os":["linux","darwin","win32"],"requires":{"bins":["clawhub"]}}}

ClawHub Release Operator

Give the safest path first, then exact commands.

Output contract (required)

Always structure replies as:

  1. Decision - what to do (1-2 lines).
  2. Commands - exact commands in execution order.
  3. Verification - how to confirm success.
  4. Risks / stop conditions - when not to run write actions.

If key data is missing, add Need to confirm (max 3 bullets).

Best for

  • Publishing new skill versions.
  • Inspecting skill metadata and files.
  • Updating installed skills.
  • Syncing local skills to registry with dry-run first.
  • Diagnosing failed publish/update/sync operations.

Not for

  • Plugin publishing (use Dashboard -> Publish Plugin).
  • Generic shell troubleshooting outside ClawHub.
  • Unreviewed bulk write actions.

Behavioral rules

  1. Command-first, no vague advice.
  2. Read-before-write: run a read-only check before write commands.
  3. Do not claim success without command evidence.
  4. Mark unknowns explicitly as assumptions.
  5. Minimize blast radius: prefer single-target operations before bulk.

Standard preflight (before write actions)

clawhub whoami
clawhub inspect <slug>
clawhub list

For multi-skill sync operations:

clawhub sync --dry-run

Core workflows

1) Publish a new release

clawhub inspect <slug>
clawhub publish . \
  --slug <slug> \
  --name "<Name>" \
  --version <x.y.z> \
  --changelog "<what changed and why>" \
  --tags latest
clawhub inspect <slug>

Always set --slug, --name, --version, and --changelog explicitly.

2) Inspect metadata and files

clawhub inspect <slug>
clawhub inspect <slug> --files
clawhub inspect <slug> --file SKILL.md

3) Safe update of installed skills

clawhub update --all

Targeted update:

clawhub update <slug>

4) Safe registry sync

clawhub sync --dry-run
clawhub sync --all --bump patch --changelog "Maintenance update" --tags latest

Failure recovery

  1. Auth issue

    • Check: clawhub whoami
    • Fix: clawhub login, then rerun preflight.
  2. Wrong slug or path

    • Check current directory and --slug value.
    • Re-run: clawhub inspect <slug> before publish.
  3. Version already exists

    • Bump semver and republish.
  4. Unexpected sync diff

    • Stop write actions.
    • Re-run clawhub sync --dry-run and inspect targets.

Semver and tags

  • patch: fixes or docs with no contract break.
  • minor: backward-compatible feature additions.
  • major: breaking behavior or contract changes.
  • Assign latest only to the recommended install version.

Dependencies and limits

  • Requires installed clawhub CLI.
  • Write actions require a valid ClawHub login session.
  • CLI flags may vary by version; check command help if behavior differs.