← 返回 Skills 市场
openlang-cn

Clawhub Cli

作者 openlang · GitHub ↗ · v1.0.2 · MIT-0
linuxdarwinwin32 ✓ 安全检测通过
1071
总下载
4
收藏
10
当前安装
3
版本数
在 OpenClaw 中安装
/install clawhub-cli
功能描述
Use the ClawHub CLI to search, install, update, and publish agent skills from clawhub.ai. Use when you need to fetch new skills on the fly, sync installed sk...
使用说明 (SKILL.md)

ClawHub CLI Skill (Agent Playbook)

You are an execution assistant for managing agent skills using the ClawHub CLI (search, install, list, update, publish, sync).

Your goal is to produce the smallest set of correct commands that achieve the user's intent, while avoiding destructive actions and avoiding publishing secrets.

Use This Skill When

Use this skill if the user asks to:

  • discover skills on ClawHub (search by keywords)
  • install skills into a workspace
  • list what is installed (as recorded by the CLI; may be lockfile-backed depending on setup)
  • update skills (all or a single one, latest or a pinned version)
  • publish one local skill folder
  • sync many local skill folders in bulk

Guardrails (Must Follow)

  • Do not invent CLI flags or subcommands. If you are unsure, instruct to run clawhub --help or clawhub \x3Ccommand> --help first, then adapt.
  • Never publish secrets. Before publish/sync, remind the user to exclude .env, tokens, credentials, private keys, and proprietary data.
  • Prefer dry-run when available. For bulk operations, suggest --dry-run if the CLI supports it for that command.
  • Keep versions valid. Use SemVer like 0.1.0, 1.2.3. If bumping, use the smallest bump that matches the change.

Preconditions / Preflight

  1. Ensure the CLI is installed (global):
npm i -g clawhub

Alternative:

pnpm add -g clawhub
  1. Ensure the user is logged in:
clawhub login

or:

clawhub login --token \x3Capi-token>
  1. If anything fails, ask for the exact CLI error output and rerun with a corrected command.

Quick Decision Guide

  • If the user describes a capability but not a slug → search
  • If the user provides a slug and wants it locally → install
  • If the user wants to see what is installed → list
  • If the user wants "latest everything" → update --all
  • If the user wants to ship a local folder to ClawHub → publish (single skill) or sync (many skills)

Common Workflows (Command Patterns)

Search for skills

Use when the user is exploring / unsure of the exact slug.

clawhub search "your query"

Offer 2-5 candidate queries based on the user's words (domain + action + platform).

Install a skill

Install by slug into the current workspace (destination/path may vary by CLI version; check clawhub install --help).

clawhub install \x3Cskill-slug>

Example:

clawhub install postgres-backup-tools

If a specific version is required, add --version \x3Csemver>.

List installed skills

clawhub list

Use this to confirm the lockfile state after install/update.

Update installed skills

Update all:

clawhub update --all

Update one:

clawhub update \x3Cskill-slug>

If the user needs a specific version, add --version \x3Csemver>.

Publish a single local skill folder

Use when the user has exactly one folder to publish and it contains a SKILL.md.

clawhub publish ./skills/my-skill \
  --slug my-skill \
  --name "My Skill" \
  --version 0.1.0 \
  --tags latest

Before providing the final publish command, make sure the user has:

  • path: the local folder path
  • slug: lowercase, hyphenated, unique
  • name: human-friendly display name
  • version: SemVer
  • tags: e.g. latest, beta, internal (use only what the user intends)

Sync many skills at once

Use when the user has a directory containing many skill subfolders.

clawhub sync --all

Common options (only if supported by the CLI in this environment):

  • --tags latest
  • --changelog "Update skills"
  • --bump patch|minor|major
  • --dry-run

Verification & Troubleshooting Playbook

After install/update:

  • Run clawhub list and confirm the expected slug(s) and version(s).

After publish/sync:

  • Verify locally with clawhub list (if it records published state)
  • Verify on the website by searching by slug or display name

If any errors occur (examples: slug already exists, version conflict, not logged in):

  • explain the likely cause in one sentence
  • propose a corrected command (new slug, bump version, or re-login)

Local References

Use these documents when you need more detail:

Document Use when What you get
reference/CLI-COMMANDS.md You need a command cheat sheet Common commands + safe patterns
reference/PUBLISHING-CHECKLIST.md You’re about to publish/sync Pre-publish checklist (no secrets, slug/version/tags)
reference/SECURITY.md You’re publishing or handling tokens Safety rules + what must never be published
reference/TROUBLESHOOTING.md A command fails Common errors + corrective actions
reference/SEMVER-GUIDE.md You need to pick the next version Patch/minor/major guidance
reference/SKILL-STRUCTURE.md You’re packaging/refactoring a skill folder Recommended folder layout + conventions
reference/WINDOWS-USAGE.md You’re on Windows and cannot use scripts Direct clawhub command snippets + Git Bash/WSL notes
安全使用建议
This package appears coherent and focused on managing ClawHub skills. Before using it: 1) Verify the authenticity of the `clawhub` npm package (check the package owner, homepage, and repository) before running `npm i -g clawhub` or installing globally. 2) When publishing or syncing, carefully review the folder contents and remove any `.env`, private keys, cloud credentials, or proprietary files — the skill's docs explicitly call this out. 3) Prefer using a token with minimal required scope for CLI login (not a broad admin key) and consider testing publish/sync with `--dry-run` or in a throwaway workspace first. 4) If you cannot verify the CLI package, run the provided scripts in an isolated environment (container or VM) to limit potential impact.
功能分析
Type: OpenClaw Skill Name: clawhub-cli Version: 1.0.2 The clawhub-cli skill bundle provides a legitimate interface for managing agent skills via the ClawHub CLI. The package includes well-structured bash scripts (e.g., scripts/linux/publish-skill.sh) that follow safety best practices, such as using arrays for command arguments to prevent shell injection. The instructions in SKILL.md and reference/SECURITY.md explicitly include guardrails to prevent the accidental publication of secrets or credentials, and no evidence of malicious intent, data exfiltration, or prompt injection was found.
能力评估
Purpose & Capability
Name/description (ClawHub CLI manager) align with the shipped docs and scripts. All files (SKILL.md, reference docs, and shell helpers) are focused on searching, installing, updating, publishing, and syncing skills via the `clawhub` CLI. There are no declared env vars, unrelated binaries, or config paths requested that would be out-of-scope.
Instruction Scope
SKILL.md gives concrete command patterns and guardrails. The instructions only direct the agent to run `clawhub` commands, prompt for login (interactive or token), and to inspect local skill folders before publishing. The shipped scripts run the `clawhub` CLI and check `--help` for supported flags; they do not read or exfiltrate arbitrary files or environment variables. The package also explicitly warns not to publish secrets, which matches the publish/sync functionality.
Install Mechanism
This is an instruction-only skill (no platform install spec). The playbook advises installing `clawhub` via `npm i -g clawhub` (or pnpm), which is reasonable given the CLI-based design, but it does require installing a global npm package in the environment. There is no bundled binary download or obscure URL; the install step relies on a public package ecosystem. Users should verify the `clawhub` package source and trustworthiness before installing globally.
Credentials
The skill declares no required environment variables or credentials. It sensibly instructs the user to login to the CLI (interactive or `--token <api-token>`), which is proportional and expected for a publish/sync tool. The docs repeatedly emphasize not to publish `.env` or other secrets. There are no unexpected credential requests or environment access attempts in the scripts or docs.
Persistence & Privilege
always is false and the skill does not request permanent system presence or modify other skills' configurations. The provided scripts are local helpers that invoke the `clawhub` CLI; they do not alter agent config or attempt privileged persistence.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install clawhub-cli
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /clawhub-cli 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
- Added a metadata field to SKILL.md with Openclaw-specific information (emoji, required bins, supported OS). - No changes to functionality, commands, or workflows. - No file changes beyond the updated SKILL.md metadata.
v1.0.1
- Added extensive documentation and playbooks for ClawHub CLI workflows, including agent decision guides and safe command templates. - Introduced guardrails to avoid unsafe publishing and enforce best practices (e.g., never publish secrets, use dry-run for bulk operations). - Added reference materials covering CLI commands, publishing, security, troubleshooting, SemVer, skill structure, and platform-specific usage. - Included scripts for Linux and documentation references for Windows and MacOS support. - Improved guidance on verification and error handling after each command.
v1.0.0
Initial release of clawhub-cli skill. - Guides users on using the ClawHub CLI to search, install, update, publish, and sync agent skills from clawhub.ai. - Details prerequisites, including global CLI installation and login. - Provides example commands for all major workflows (search, install, list, update, publish, sync). - Includes troubleshooting and verification steps for common usage scenarios.
元数据
Slug clawhub-cli
版本 1.0.2
许可证 MIT-0
累计安装 11
当前安装数 10
历史版本数 3
常见问题

Clawhub Cli 是什么?

Use the ClawHub CLI to search, install, update, and publish agent skills from clawhub.ai. Use when you need to fetch new skills on the fly, sync installed sk... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1071 次。

如何安装 Clawhub Cli?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install clawhub-cli」即可一键安装,无需额外配置。

Clawhub Cli 是免费的吗?

是的,Clawhub Cli 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Clawhub Cli 支持哪些平台?

Clawhub Cli 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux, darwin, win32)。

谁开发了 Clawhub Cli?

由 openlang(@openlang-cn)开发并维护,当前版本 v1.0.2。

💬 留言讨论