← Back to Skills Marketplace
bbj375767338-arch

Clawhub Publish Howto

by bbj375767338-arch · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
89
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install clawhub-publish-howto
Description
发布技能到 ClawHub 的完整流程与故障排查。当需要发布、更新、调试 OpenClaw skill 到 ClawHub 时使用。包含账号准备、认证配置、发布命令、常见错误排查。
README (SKILL.md)

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 \x3Cclh_token>

# 3. 验证
clawhub whoami

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

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

# 临时使用(单次)
GITHUB_TOKEN="ghp_your_token_here" clawhub publish \x3Cpath> --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 \x3Cclh_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 \x3Cslug>

# 网页验证
# https://clawhub.ai/skills/\x3Cslug>

关键经验总结

  1. 用自己的 GITHUB_TOKEN — 避免 clawhub 共享限流
  2. 账号需满 14 天 — 这是 GitHub 策略,无法绕过
  3. 错误信息可能不准确rate limit exceeded 也可能是账号年龄问题
  4. 用 GITHUB_TOKEN 前缀看真实错误 — 绕过 clawhub 的错误映射
  5. 发布前先 inspect — 确认 skill 名称未被占用
Usage Guidance
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.
Capability Analysis
Type: OpenClaw Skill Name: clawhub-publish-howto Version: 1.0.0 The skill bundle is a legitimate instructional guide and command reference for using the ClawHub CLI to publish and troubleshoot OpenClaw skills. The content in SKILL.md provides standard procedures for authentication, handling GitHub API rate limits, and verifying account requirements. No evidence of malicious intent, data exfiltration, or harmful prompt injection was found; all commands and URLs (e.g., api.github.com) are consistent with the stated purpose of skill management.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install clawhub-publish-howto
  3. After installation, invoke the skill by name or use /clawhub-publish-howto
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of clawhub-publish-howto: a complete guide for publishing skills to ClawHub with troubleshooting. - Provides step-by-step publishing instructions, from login to release commands. - Covers authentication via ClawHub token and environment variable for GitHub Token to avoid rate limits. - Documents common error messages and clear troubleshooting steps. - Lists required SKILL.md fields and verification methods post-publish. - Includes practical experience tips to prevent common issues.
Metadata
Slug clawhub-publish-howto
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Clawhub Publish Howto?

发布技能到 ClawHub 的完整流程与故障排查。当需要发布、更新、调试 OpenClaw skill 到 ClawHub 时使用。包含账号准备、认证配置、发布命令、常见错误排查。 It is an AI Agent Skill for Claude Code / OpenClaw, with 89 downloads so far.

How do I install Clawhub Publish Howto?

Run "/install clawhub-publish-howto" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Clawhub Publish Howto free?

Yes, Clawhub Publish Howto is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Clawhub Publish Howto support?

Clawhub Publish Howto is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Clawhub Publish Howto?

It is built and maintained by bbj375767338-arch (@bbj375767338-arch); the current version is v1.0.0.

💬 Comments