← 返回 Skills 市场
bbj375767338-arch

Clawhub Publish Howto

作者 bbj375767338-arch · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
89
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install clawhub-publish-howto
功能描述
发布技能到 ClawHub 的完整流程与故障排查。当需要发布、更新、调试 OpenClaw skill 到 ClawHub 时使用。包含账号准备、认证配置、发布命令、常见错误排查。
使用说明 (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 名称未被占用
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install clawhub-publish-howto
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /clawhub-publish-howto 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
Slug clawhub-publish-howto
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Clawhub Publish Howto 是什么?

发布技能到 ClawHub 的完整流程与故障排查。当需要发布、更新、调试 OpenClaw skill 到 ClawHub 时使用。包含账号准备、认证配置、发布命令、常见错误排查。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 89 次。

如何安装 Clawhub Publish Howto?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install clawhub-publish-howto」即可一键安装,无需额外配置。

Clawhub Publish Howto 是免费的吗?

是的,Clawhub Publish Howto 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Clawhub Publish Howto 支持哪些平台?

Clawhub Publish Howto 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Clawhub Publish Howto?

由 bbj375767338-arch(@bbj375767338-arch)开发并维护,当前版本 v1.0.0。

💬 留言讨论