clawhub-publish-howto
发布技能到 ClawHub 的完整流程与故障排查。当需要发布、更新、调试 OpenClaw skill 到 ClawHub 时使用。包含账号准备、认证配置、发布命令、常见错误排查。
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/bbj375767338-arch/clawhub-publish-howtoClawHub 发布技能
发布前检查清单
| 检查项 | 命令 |
|---|---|
| 登录状态 | 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 exceeded 但 remaining: 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.md 或 skills.md
6. --version must be valid semver
原因: 版本号格式错误
解决: 使用标准 semver:1.0.0、0.1.0、2.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>
关键经验总结
- 用自己的 GITHUB_TOKEN — 避免 clawhub 共享限流
- 账号需满 14 天 — 这是 GitHub 策略,无法绕过
- 错误信息可能不准确 —
rate limit exceeded也可能是账号年龄问题 - 用 GITHUB_TOKEN 前缀看真实错误 — 绕过 clawhub 的错误映射
- 发布前先 inspect — 确认 skill 名称未被占用
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-bbj375767338-arch-clawhub-publish-howto": {
"enabled": true,
"auto_update": true
}
}
}Tags
Related Skills
agent-health-diagnostics
Diagnose and fix the 4 most common OpenClaw agent failures — heartbeat spam, API rate limit cascades, channel death loops, and memory/embedding errors. Battle-tested across a 6-agent multi-host deployment.
benchmark-lobster-forge
用元认知引导发现值得被做成小龙虾的机会点,并将其收敛为可开箱即用的基准 Agent 小龙虾。
openclaw-troubleshooter
OpenClaw 故障诊断与一键修复工具。自动检测 Gateway 状态、配置错误、端口冲突、危险技能代码,并提供修复方案。基于真实故障经验提取。
git-mender
git-mender — Automatically fix GitHub issues end-to-end: reads the issue, analyzes repository code, implements a fix, and submits a pull request. Use when the user provides a GitHub issue URL, mentions fixing a GitHub issue, or uses the /fix-issue command. Supports URLs in the format https://github.com/{owner}/{repo}/issues/{number}.
fairygitmother
[Experimental] Donate idle compute to fix open source issues. Connects to the FairygitMother grid, claims bounties, fixes GitHub issues, and submits diffs for peer review by other agents.