Clawhub Publish Howto

v1.0.0

发布技能到 ClawHub 的完整流程与故障排查。当需要发布、更新、调试 OpenClaw skill 到 ClawHub 时使用。包含账号准备、认证配置、发布命令、常见错误排查。

0· 86·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for bbj375767338-arch/clawhub-publish-howto.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Clawhub Publish Howto" (bbj375767338-arch/clawhub-publish-howto) from ClawHub.
Skill page: https://clawhub.ai/bbj375767338-arch/clawhub-publish-howto
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install clawhub-publish-howto

ClawHub CLI

Package manager switcher

npx clawhub@latest install clawhub-publish-howto
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
The name/description (ClawHub publish how-to) matches the content: CLI commands, troubleshooting, and GitHub token guidance are appropriate for publishing to ClawHub. No unrelated services or credentials are requested.
Instruction Scope
SKILL.md stays on-topic: it lists clawhub login/publish commands, rate-limit diagnostics, and required SKILL.md fields. It does recommend persisting a GITHUB_TOKEN into ~/.bashrc and uses curl/jq in examples (these binaries are not declared in the metadata). Persisting a token in shell rc files and running commands with tokens on the command line have security implications and should be done cautiously.
Install Mechanism
No install spec and no code files — instruction-only. Nothing will be written to disk by the skill itself. This is the lowest-risk install model.
Credentials
The manifest lists no required env vars but the instructions instruct users to set GITHUB_TOKEN when needed. Asking the user for a GitHub personal access token is proportionate to the publishing task, but the guide's example of storing the token in ~/.bashrc and using it directly on the command line increases the risk of accidental exposure (shell history, backups, shared machines). The guide does not mention using least-privilege scopes for the token or safer storage options.
Persistence & Privilege
always is false and there is no install step that would persist or elevate the skill. The skill does not request system-wide changes or access to other skills' configurations.
Assessment
This is a straightforward publishing how‑to and is internally consistent. Before using it: (1) Treat GITHUB_TOKEN as a secret — prefer temporary environment variables or a secrets manager over appending tokens to ~/.bashrc; avoid placing tokens in command history. (2) Create a GitHub personal access token with the narrowest scopes needed (least privilege) and revoke it if compromised. (3) Verify the authenticity of the clawhub CLI you install (download from an official source) before running login/publish commands. (4) Ensure jq/curl are installed if you plan to run the examples. (5) If you are on a shared or CI environment, store tokens in CI secrets or OS credential stores rather than plaintext files.

Like a lobster shell, security has layers — review code before you run it.

clawhubvk97a07aartjrj2xw6v560vnm5d85bz2tlatestvk97a07aartjrj2xw6v560vnm5d85bz2topenclawvk97a07aartjrj2xw6v560vnm5d85bz2tpublishvk97a07aartjrj2xw6v560vnm5d85bz2tskillvk97a07aartjrj2xw6v560vnm5d85bz2t
86downloads
0stars
1versions
Updated 6d ago
v1.0.0
MIT-0

ClawHub 发布技能

发布前检查清单

检查项命令
登录状态clawhub whoami
GitHub Token 限额curl -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/rate_limit
账号年龄GitHub 账号需满 14 天才能发布

认证方式(推荐)

方法一:Token 登录(服务器/无头环境推荐)

# 1. 获取 clawhub token
clawhub login

# 2. 使用 token 登录(无浏览器)
clawhub login --token <clh_token>

# 3. 验证
clawhub whoami

方法二:环境变量配置 GitHub Token(解决限流)

clawhub 后台使用共享的 GitHub App 配额(180次/小时),容易触发限流。 配置自己的 GitHub Token 可以突破共享限额:

# 临时使用(单次)
GITHUB_TOKEN="ghp_your_token_here" clawhub publish <path> --version 1.0.0 --tags "..."

# 永久配置(加到 ~/.bashrc 或环境变量)
echo 'export GITHUB_TOKEN="ghp_your_token_here"' >> ~/.bashrc
source ~/.bashrc

验证 Token 有效:

curl -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/rate_limit
# 限额应为 5000(不是 60)

发布命令

# 标准发布
clawhub publish /path/to/skill --version 1.0.0 --tags "tag1,tag2,tag3"

# 带名称
clawhub publish /path/to/skill --name "Skill Name" --version 1.0.0 --tags "..."

# 带变更日志
clawhub publish /path/to/skill --version 1.0.0 --changelog "Initial release"

常见错误排查

1. GitHub API rate limit exceeded

原因: clawhub 共享的 GitHub App 配额耗尽

解决: 使用自己的 GITHUB_TOKEN

GITHUB_TOKEN="ghp_your_token" clawhub publish ...

2. GitHub account must be at least 14 days old

原因: GitHub 账号年龄不足 14 天

解决: 等待账号满 14 天(无法绕过)

# 查看账号创建日期
curl -H "Authorization: token $GITHUB_TOKEN" \
  https://api.github.com/user | jq '.created_at'

3. Error: Not logged in

原因: 未登录或登录已过期

解决:

clawhub login --token <clh_token>
clawhub whoami

4. rate limit exceededremaining: 179/180

原因: 账号年龄不足时,clawhub 错误地显示为限流(而非账号年龄错误)

特征: 每次都是 179/180,reset 40-55 秒,间隔短且稳定

解决:GITHUB_TOKEN 看真实错误:

GITHUB_TOKEN="ghp_your_token" clawhub publish ...
# 会显示真正的错误:账号年龄不足

5. Skill.md required

原因: SKILL.md 文件不存在

解决: 确保 skill 目录中有 SKILL.mdskills.md

6. --version must be valid semver

原因: 版本号格式错误

解决: 使用标准 semver:1.0.00.1.02.3.4-beta

SKILL.md 必填字段

---
name: skill-slug          # 唯一标识(英文、连字符)
description: 描述         # 一句话说明
version: 1.0.0          # 语义化版本
tags: [tag1, tag2]       # 标签
license: MIT             # 许可证
---

发布后验证

# CLI 验证
clawhub inspect <slug>

# 网页验证
# https://clawhub.ai/skills/<slug>

关键经验总结

  1. 用自己的 GITHUB_TOKEN — 避免 clawhub 共享限流
  2. 账号需满 14 天 — 这是 GitHub 策略,无法绕过
  3. 错误信息可能不准确rate limit exceeded 也可能是账号年龄问题
  4. 用 GITHUB_TOKEN 前缀看真实错误 — 绕过 clawhub 的错误映射
  5. 发布前先 inspect — 确认 skill 名称未被占用

Comments

Loading comments...