English: A workflow guide for packaging and publishing OpenClaw skills to ClawHub registry. 中文: 打包并发布 OpenClaw 技能到 ClawHub 注册表的工作流程指南。
npx clawhub@latest CLI toolnpx clawhub@latest CLI 工具bash
# Login to ClawHub
npx clawhub@latest login --token YOUR_API_TOKEN --no-browser
# Publish skill
npx clawhub@latest publish /path/to/skill-folder --version 1.0.0
bash
# 登录 ClawHub
npx clawhub@latest login --token YOUR_API_TOKEN --no-browser
# 发布技能
npx clawhub@latest publish /path/to/skill-folder --version 1.0.0
English: Ensure the skill folder contains required files:
SKILL.md - Main skill documentation (required)_meta.json - Metadata with version infoscripts/ - Python/shell scriptsreferences/ - Config files, sample data中文: 确保技能文件夹包含必要文件:
SKILL.md - 主技能文档(必需)_meta.json - 包含版本信息的元数据scripts/ - Python/shell 脚本references/ - 配置文件、示例数据File Structure / 文件结构:
text
skill-name/
├── SKILL.md # Required / 必需
├── _meta.json # Metadata / 元数据
├── scripts/
│ └── main.py # Scripts / 脚本
└── references/
└── config.json # Configs / 配置
English: Update _meta.json with new version:
json
{
"ownerId": "YOUR_OWNER_ID",
"slug": "skill-name",
"version": "1.0.1",
"publishedAt": 1700000000000
}
中文: 更新 _meta.json 版本号:
json
{
"ownerId": "YOUR_OWNER_ID",
"slug": "skill-name",
"version": "1.0.1",
"publishedAt": 1700000000000
}
English: ⚠️ IMPORTANT: Before publishing, remove or replace:
AA:BB:CC:DD:EE:FF192.168.1.100YOUR_API_KEY or sk-xxx...YOUR_PASSWORDexample-pc, my-device+1-555-123-4567user@example.com中文: ⚠️ 重要:发布前必须移除或替换:
AA:BB:CC:DD:EE:FF192.168.1.100YOUR_API_KEY 或 sk-xxx...YOUR_PASSWORDexample-pc、 my-device+1-555-123-4567user@example.comEnglish: Update SKILL.md with:
中文: 更新 SKILL.md:
English:
bash
npx clawhub@latest login --token YOUR_API_TOKEN --no-browser
中文:
bash
npx clawhub@latest login --token YOUR_API_TOKEN --no-browser
English:
bash
npx clawhub@latest publish /path/to/skill-folder \
--version 1.0.1 \
--changelog "Added new feature. Fixed bug."
中文:
bash
npx clawhub@latest publish /path/to/skill-folder \
--version 1.0.1 \
--changelog "添加新功能。修复问题。"
English:
中文:
bash
npx clawhub@latest login --token YOUR_API_TOKEN --no-browser
bash
npx clawhub@latest publish <path> [options]
OptionDescription说明--version <ver>Version (semver)版本号(语义化版本)--slug <slug>Skill slug技能标识符--changelog <text>Changelog text更新日志--tags <tags>Comma-separated tags逗号分隔的标签
bash
npx clawhub@latest whoami
bash
npx clawhub@latest search <query>
bash
npx clawhub@latest install <slug>
User / 用户: "Upload my skill to clawhub, version 1.0.1"
Agent actions / Agent 操作:
_meta.json version / 更新版本号bash
npx clawhub@latest login --token YOUR_API_TOKEN --no-browser
1.0.0, 1.0.1, 2.0.0 / 使用格式: 1.0.0、 1.0.1、 2.0.0Before publishing, verify / 发布前验证:
text
skill-name/
├── SKILL.md # Main documentation / 主文档
├── _meta.json # Metadata / 元数据
├── scripts/
│ └── main.py # Main script / 主脚本
└── references/
├── config.json # Config template / 配置模板
└── README.md # Reference docs / 参考文档
markdown
---
name: skill-name
description: Brief description of what this skill does.
---
# Skill Name / 技能名称
**English**: Description in English.
**中文**: 中文描述。
## Quick Start / 快速开始
## Usage / 使用方法
## Configuration / 配置
## Troubleshooting / 故障排除
json
{
"ownerId": "YOUR_OWNER_ID",
"slug": "skill-name",
"version": "1.0.0",
"publishedAt": 1700000000000
}