Xpersona
C

ClawHub 发布助手

CLAWHUB · Unverified

将本地技能发布到 ClawHub 技能市场。自动检查技能目录结构、生成版本号、 构建 changelog,执行发布命令并验证结果。 **触发场景**:用户说"发布技能"、"发布到 ClawHub"、"上传技能"等。 Skill: ClawHub 发布助手 Owner: fslong520 Summary: 将本地技能发布到 ClawHub 技能市场。自动检查技能目录结构、生成版本号、 构建 changelog,执行发布命令并验证结果。 **触发场景**:用户说"发布技能"、"发布到 ClawHub"、"上传技能"等。 Tags: clawhub:2.1.0, latest:2.1.0, management:2.1.0, publish:2.1.0, skill:2.1.0, tool:2.1.0 Version history: v2.1.0 | 2026-04-23T05:22:42.763Z | user 修复更新技能流程:区分新技能和更新技能,自动读取SKILL.md参数,自动从历史版本递增 v2.0.0 | 2026-04-13T09:14:03.803Z | user 重构:强制发布前 Slug 推荐机制,多方案供选;强化纯净命

62
Rank
84
Safety
1.0k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s179dxbepyx3dhgg6vsaj80yt583nxj7:chpublish
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-fslong520-chpublish/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

13,036 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: chpublish
description: |
  将本地技能发布到 ClawHub 技能市场。自动检查技能目录结构、生成版本号、
  构建 changelog,执行发布命令并验证结果。

  **触发场景**:用户说"发布技能"、"发布到 ClawHub"、"上传技能"等。

allowed-tools:
  - Read
  - Write
  - ExecuteShellCommand
  - AskUserQuestion

metadata:
  trigger: 发布技能、发布到ClawHub、上传技能、publish、clawhub发布
  source: 基于 clawhub CLI 官方文档
---

# ClawHub 技能发布

> 一键发布技能到 ClawHub 技能市场。

## Summary

检查登录→确认技能目录→检测发布历史→推荐Slug→确认参数→执行发布→验证结果。

## Keywords

发布技能、ClawHub、publish、技能市场、上传、版本管理

## Strategy

1. **检查登录**:`clawhub whoami`,未登录则`clawhub login`
2. **确认目录**:检查SKILL.md存在,读取 frontmatter 获取预设 slug/name
3. **检测历史**:`clawhub inspect <slug>`判断是否已发布
4. **分支处理**:
   - **新技能**:推荐Slug(若SKILL.md未定义)→ 确认参数 → 首次发布
   - **更新技能**:提取历史版本/name/tags → 自动递增版本 → 保持一致性更新
5. **执行发布**:`clawhub publish <path> --slug --name --version --changelog --tags`
6. **验证结果**:检查输出是否成功

## AVOID

- AVOID Slug包含连字符-或下划线_,必须是纯小写字母+数字紧密相连
- AVOID 更新已发布技能时更改tags,必须与历史版本保持tags和name一致
- AVOID tags使用中文,只能用英文逗号分隔
- AVOID 未检测发布历史就发布,必须先`clawhub inspect`判断是否已存在
- AVOID 未等待用户确认Slug就发布,必须提供3个方案让用户选择

---

## 触发场景

当用户说:
- "发布 XX 技能到 ClawHub"
- "把 XX 发布上去"
- "上传技能"
- "技能发布"

立即调用本技能。

---

## 发布流程

### Step 1: 检查登录状态

```bash
clawhub whoami
```

**结果**:
- ✅ 显示用户名 → 已登录,继续
- ❌ 未登录 → 执行 `clawhub login`,等待用户浏览器登录

---

### Step 2: 确认技能目录 & 检测发布历史

#### 2.1 检查目录
检查技能文件夹是否存在:
```
/home/fslong/.copaw/workspaces/default/active_skills/<技能名>/SKILL.md
```

**必须存在**:
- `SKILL.md` - 技能描述文件

#### 2.2 检测是否已发布(强制!)
在确定参数前,必须检查该技能是否已在 ClawHub 存在:

```bash
clawhub inspect <候选slug>
```
*(若 slug 不确定,可先用 `clawhub list` 模糊查找)*

**结果判断**:
- ✅ **已发布**:输出现有版本详情。
  - **铁律**:更新时必须与历史版本保持 `--tags` 和 `--name` 完全一致!
  - **动作**:从输出中提取原有 `tags`,作为本次发布的 `--tags` 参数。仅更新 `--version` 和 `--changelog`。
- ❌ **未发布**:报错 `Skill not found` 或无输出。
  - **动作**:按新技能流程,自行拟定 slug、name、tags。

**⚠️ 核心警告**:
- **绝不要随意更改已发布技能的 tags!** 这会导致 ClawHub 搜索索引混乱或技能关联丢失。
- 更新发布的唯一变量应是:`version`(递增)和 `changelog`(本次改动)。

---

### Step 3: 确定发布参数

**⚠️ 关键区分:新技能 vs 更新技能**

根据 Step 2.2 的检测结果,走不同流程:

---

#### 3A. 新技能发布流程(Skill not found)

**3A.1 读取 SKILL.md 获取预设参数**
先读取技能目录下的 SKILL.md,检查是否已定义:
- `name` - 技能名称(如有则直接使用)
- `metadata.slug` 或 frontmatter 中的 slug(如有则直接使用,跳过推荐步骤)

**3A.2 Slug 推荐(仅当 SKILL.md 未定义 slug 时)**
向用户展示 3 个不同维度的 Slug 推荐方案,等待用户选择。
**推荐维度示例**:
1.  **全拼音方案**(适合中文技能):`mochi`, `banti`
2.  **英文意译方案**(适合通用技能):`inkpot`, `ojimport`
3.  **功能描述方案**(混合或直白):`problemporter`, `dailyreport`

**⚠️ 推荐铁律**:
- **禁止符号**:推荐的 Slug 中绝对不能包含 `-` 或 `_`。
- **纯小写**:所有字母必须小写。
- **等待确认**:列出方案后,询问用户确认。

**3A.3 确定其他参数**
| 参数 | 来源 | 示例 |
|------|------|------|
| `--slug` | SKILL.md 或用户确认 | `ojimport` |
| `--name` | SKILL.md 或技能目录名 | `搬题姬` |
| `--version` | 首次发布默认 `1.0.0` | `1.0.0` |
| `--changelog` | 询问用户或自动生成 | `首次发布` |
| `--tags` | SKILL.md 或询问用户 | `oj,algorithm` |

---

#### 3B. 更新技能发布流程(已存在)

**⚠️ 铁律:更新时必须保持 slug、name、tags 与历史一致!**

**3B.1 从 SKILL.md 读取 slug**
```bash
# 读取 SKILL.md frontmatter 中的 slug
```

**3B.2 从 clawhub inspect 输出提取历史信息**
- **Latest 版本号**:如 `Latest: 1.7.0` → 新版本应为 `1.7.1` 或更高

_meta.json

{
  "ownerId": "kn71rk0chjcdy7ffgfc08hh9gd83ehq8",
  "slug": "chpublish",
  "version": "2.1.0",
  "publishedAt": 1776921762763
}

skill-card.md

## Description:

ClawHub 发布助手 helps developers publish local skills to the ClawHub marketplace by checking the skill directory, preparing release parameters, running the ClawHub CLI publish command, and verifying the result.

This skill is ready for commercial/non-commercial use.

## Publisher:

[fslong520](https://clawhub.ai/user/fslong520)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and skill maintainers use this skill to publish new or updated local skills to ClawHub while checking login state, release history, slug, version, changelog, tags, and publish results.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill may run ClawHub CLI commands that publish or update content under the user's account.

Mitigation: Use it only for intentional ClawHub releases and verify the target directory, slug, version, changelog, tags, and displayed command arguments before publishing.

Risk: Shell-built publish commands can be exposed to command injection if untrusted skill metadata or changelog text is used as command input.

Mitigation: Avoid untrusted metadata or changelog text unless the workflow is changed to pass command arguments safely without shell interpolation.

Risk: Broad activation language can trigger publishing behavior when the user did not intend an account-changing action.

Mitigation: Invoke the skill only for explicit publishing requests and require confirmation of release parameters before running publish commands.

## Reference(s):


## Skill Output:

**Output Type(s):** [Text, Markdown, Shell commands, Configuration, Guidance]

**Output Format:** [Markdown guidance with inline shell commands and release parameter values]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May propose and execute ClawHub CLI commands after gathering and confirming release parameters.]

## Skill Version(s):

2.1.0 (source: server release evidence, released 2026-04-23)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to ClawHub 发布助手 and adjacent AI workflows.