home / skills / openclaw / openclaw / clawhub
This skill helps you discover, install, update, and publish agent skills using the ClawHub CLI, keeping skills current.
npx playbooks add skill openclaw/openclaw --skill clawhubReview the files below or copy the command above to add this skill to your agents.
---
name: clawhub
description: Use the ClawHub CLI to search, install, update, and publish agent skills from clawhub.com. Use when you need to fetch new skills on the fly, sync installed skills to latest or a specific version, or publish new/updated skill folders with the npm-installed clawhub CLI.
metadata:
{
"openclaw":
{
"requires": { "bins": ["clawhub"] },
"install":
[
{
"id": "node",
"kind": "node",
"package": "clawhub",
"bins": ["clawhub"],
"label": "Install ClawHub CLI (npm)",
},
],
},
}
---
# ClawHub CLI
Install
```bash
npm i -g clawhub
```
Auth (publish)
```bash
clawhub login
clawhub whoami
```
Search
```bash
clawhub search "postgres backups"
```
Install
```bash
clawhub install my-skill
clawhub install my-skill --version 1.2.3
```
Update (hash-based match + upgrade)
```bash
clawhub update my-skill
clawhub update my-skill --version 1.2.3
clawhub update --all
clawhub update my-skill --force
clawhub update --all --no-input --force
```
List
```bash
clawhub list
```
Publish
```bash
clawhub publish ./my-skill --slug my-skill --name "My Skill" --version 1.2.0 --changelog "Fixes + docs"
```
Notes
- Default registry: https://clawhub.com (override with CLAWHUB_REGISTRY or --registry)
- Default workdir: cwd (falls back to OpenClaw workspace); install dir: ./skills (override with --workdir / --dir / CLAWHUB_WORKDIR)
- Update command hashes local files, resolves matching version, and upgrades to latest unless --version is set
This skill integrates the ClawHub CLI to search, install, update, and publish agent skills from clawhub.com. It lets you fetch new skills on the fly, keep installed skills synced to specific or latest versions, and publish skill folders using the npm-installed clawhub tool. The workflow is cross-platform and designed for local workdirs or OpenClaw workspaces.
The skill wraps the clawhub CLI to perform registry operations: search queries the remote index, install pulls a skill into a local skills directory, update compares local file hashes and upgrades to a matching or newer version, and publish pushes a local skill folder with metadata. Environment variables and CLI flags let you override the registry URL, workdir, and install directory. Authentication is handled by clawhub login for publishing actions.
How do I change the registry or workdir?
Set environment variables CLAWHUB_REGISTRY or CLAWHUB_WORKDIR, or pass --registry and --workdir/--dir flags to the CLI.
What does the update command do with local changes?
Update hashes local files to find a matching remote version and will upgrade to latest unless you specify --version. Use --force to override matches.