Skip to content
Back to skills

Clawhub Push Skill

ASecurity

一键推送 skill 到 ClawHub registry,自动处理 acceptLicenseTerms 和文件格式问题

  • 33 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 5, 2026
toolsbashapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add dvcrn/openclaw-skills-marketplace --skill clawhub-push-skill --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Clawhub Push Skill?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Clawhub Push Skill
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dvcrn-clawhub-push-skill/badge)](https://www.skillsdirectory.com/skills/dvcrn-clawhub-push-skill)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ClawHub Push Skill
description: "一键推送 skill 到 ClawHub registry,自动处理 acceptLicenseTerms 和文件格式问题"
---

# ClawHub Push Skill

自动修复 ClawHub CLI 的 `acceptLicenseTerms` bug,一键推送 skill 到 ClawHub registry。

## 功能

- ✅ 自动获取正确的 token 路径(支持新版 `~/.config/clawhub/token.json`)
- ✅ 自动修复 `acceptLicenseTerms` 参数问题
- ✅ 自动处理 `tags` 数组格式
- ✅ 支持单个文件上传(不打包)
- ✅ 支持批量推送整个目录

## 使用方法

### 推送单个 skill

```bash
# 使用默认配置推送
clawhub-push /path/to/skill

# 或指定 slug 和版本
clawhub-push /path/to/skill --slug my-skill --version 1.0.0
```

### 批量推送

```bash
# 推送 skills 目录下所有变更
clawhub-push-batch ~/.openclaw/workspace/skills
```

## 技术细节

### 修复的问题

1. **Token 路径问题**:新版 ClawHub 将 token 存储在 `~/.config/clawhub/token.json`,旧版在 `~/.clawhub/token`

2. **acceptLicenseTerms 问题**:CLI 的 FormData 中缺少该字段,需要在 payload JSON 中添加 `acceptLicenseTerms: true`

3. **Tags 格式问题**:`tags` 必须是数组 `["latest"]` 而不是字符串

4. **文件上传方式**:必须用 `-F "files=@文件名"` 分别上传每个文件,不能用 tar.gz 打包

### API 端点

- Registry: `https://clawhub.ai`
- Publish API: `POST /api/v1/skills`
- Payload 格式:
  ```json
  {
    "slug": "skill-slug",
    "version": "1.0.0",
    "displayName": "Skill Name",
    "tags": ["latest"],
    "acceptLicenseTerms": true
  }
  ```

## Changelog

### 1.0.0
- Initial release
- 修复 acceptLicenseTerms bug
- 支持单个和批量推送
- 自动检测 token 位置

Files in this skill

  • README.md1.5 KB
  • SKILL.md1.7 KB
  • batch.js1.9 KB
  • package-lock.json1.1 KB
  • package.json484 B
  • push.js5.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.