ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

clawhub-publish-howto

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

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/bbj375767338-arch/clawhub-publish-howto
Or

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 名称未被占用

Metadata

Stars4473
Views1
Updated2026-05-01
View Author Profile
AI Skill Finder

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 skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-bbj375767338-arch-clawhub-publish-howto": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags

#clawhub#publish#skill#github#troubleshooting#rate-limit
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.

Related Skills

undertow

Skill discovery engine for AI coding agents. Recommends and installs the right skill when you need it — code review, test generation, debugging, commit messages, PR preparation, security scanning, dependency audits, Docker setup, CI/CD pipelines, API documentation, refactoring, performance optimization, bundle analysis, git recovery, README generation, license compliance, migration guides, dead code removal, and secret detection. One install gives your agent access to a curated library of 20+ developer workflow skills. Use when the user asks for help with any development workflow, code quality, DevOps, security, testing, documentation, or project setup task.

8co 4473

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.

agenthyjack 4473

benchmark-lobster-forge

用元认知引导发现值得被做成小龙虾的机会点,并将其收敛为可开箱即用的基准 Agent 小龙虾。

beachanger 4473

openclaw-troubleshooter

OpenClaw 故障诊断与一键修复工具。自动检测 Gateway 状态、配置错误、端口冲突、危险技能代码,并提供修复方案。基于真实故障经验提取。

345968504 4473

issue-to-pr

issue-to-pr — 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}.

4ydx3906 4473