← 返回 Skills 市场
hanxueyuan

Clawhub Publish Best Practices

作者 hanxueyuan · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ 安全检测通过
107
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install clawhub-publish-best-practices
功能描述
ClawHub Skills 发布最佳实践和经验教训
使用说明 (SKILL.md)

ClawHub Skills 发布最佳实践

创建时间: 2026-04-09
维护者: 韩雪原
用途: 记录 ClawHub Skills 发布的正确流程、常见错误和经验教训


⚠️ 重要规则(血泪教训)

1. 只发布名单内的技能

错误做法 ❌:

# 盲目执行 sync,会扫描所有本地技能
clawhub sync

正确做法 ✅:

# 1. 先查看发布名单
cat PUBLISHED_SKILLS_MAINTENANCE.md

# 2. 确认待发布技能
# 3. 检查 slug 可用性
# 4. 只处理名单内的技能

教训

  • clawhub sync 会扫描所有本地技能,包括:
    • 本地使用的技能(如 self-improving-agent)
    • slug 被占用的技能(如 mcdonalds、netflix)
    • 测试技能(如 test-slug-check)
  • 这会导致尝试发布不应该发布的技能

2. 不删除本地技能

错误做法 ❌:

# 遇到冲突就删除本地文件
rm -rf skills/mcdonalds
rm -rf skills/self-improving-agent  # 大错特错!

正确做法 ✅:

# 遇到冲突直接跳过,保留本地文件
# 即使是 slug 被占用的技能也保留

教训

  • 绝对不能删除本地使用的技能(如 self-improving-agent)
  • slug 被占用的技能可以删除(因为无法发布)
  • 但要先确认不是本地正在使用的

3. 遇到 slug 冲突直接跳过

错误做法 ❌:

# 尝试用奇怪的名字发布
mcdonalds-conflict-backup  # 没有意义

正确做法 ✅:

# slug 被占用就直接放弃
# 记录到维护文件中,避免下次再试

已被占用的 slug 示例

  • mcdonalds → /kongdeyu/mcdonalds
  • netflix → /duanc-chao/netflix
  • booking → /ivangdavila/booking

4. 发布后及时更新追踪文件

错误做法 ❌:

  • 发布后不记录技能 ID
  • 追踪文件与实际状态不一致
  • 不知道哪些技能已经发布过了

正确做法 ✅:

# PUBLISHED_SKILLS_MAINTENANCE.md

| # | 技能名称 | 版本 | 技能 ID | 发布时间 |
|---|----------|------|---------|----------|
| 33 | starbucks | 0.1.2 | k971dyfnnw58b012r0p908g9sh84fnjg | 06:55 |

教训

  • 每次发布后立即更新追踪文件
  • 记录技能 ID、版本、发布时间
  • 避免重复发布或遗漏

📋 正确的发布流程

步骤 1:查看发布名单

cat /workspace/projects/workspace/skills/PUBLISHED_SKILLS_MAINTENANCE.md

确认:

  • 哪些技能已经发布(有技能 ID)
  • 哪些技能待发布(标记为待发布)
  • 哪些 slug 被占用(放弃)

步骤 2:检查限流状态

# 查看当前限流状态
# 规则:5 个新技能/小时
  • 如果限流中 → 等待刷新
  • 如果有名额 → 继续

步骤 3:准备待发布技能

# 确认技能目录存在
ls -la /workspace/projects/lisah-workspace/workspace/skills/kfc/
ls -la /workspace/projects/lisah-workspace/workspace/skills/pizza-hut/

# 检查 SKILL.md 格式
head -10 skills/kfc/SKILL.md

确保:

  • 技能目录存在
  • SKILL.md 格式正确(name、version、tags)
  • 没有 .clawhub/origin.json(表示未发布过)

步骤 4:执行发布

方法 A:使用 sync(会扫描所有技能)

cd /workspace/projects/lisah-workspace/workspace
clawhub sync

方法 B:手动发布单个技能(推荐)

cd /workspace/projects/lisah-workspace/workspace/skills/kfc
clawhub publish .

步骤 5:记录结果

成功发布

# 更新追踪文件
# 记录技能 ID、版本、时间

遇到冲突

# 记录到"已被占用的 Slug"列表
# 保留本地文件(如果是本地使用的技能)
# 或删除本地文件(如果确定无法发布)

限流触发

# 停止发布
# 记录下次可发布时间(1 小时后)

🔒 限流规则

类型 限制 说明
新技能 5 个/小时 首次发布的技能
更新技能 无限制 已发布技能的版本更新

注意事项

  • 限流按小时计算,整点刷新
  • 更新技能不占用新技能名额
  • 遇到限流立即停止,等待刷新

📊 维护文件清单

文件 用途 位置
PUBLISHED_SKILLS_MAINTENANCE.md 已发布技能完整清单 /workspace/projects/workspace/skills/
PUBLISHED_SKILLS_TRACKING.md 发布进度追踪 /workspace/projects/lisah-workspace/workspace/skills/
PUBLISH_LOG_2026-04.md 发布日志 /workspace/projects/workspace/skills/

🚫 常见错误汇总

错误 1:盲目执行 sync

  • 现象:尝试发布 self-improving-agent 等本地技能
  • 原因:sync 会扫描所有本地技能
  • 解决:先查看名单,只处理名单内的技能

错误 2:删除本地技能

  • 现象:删除了 self-improving-agent
  • 原因:脚本自动删除冲突技能
  • 解决:修改脚本,不自动删除;或手动确认后再删除

错误 3:发布无意义的名字

  • 现象:发布 mcdonalds-conflict-backup
  • 原因:slug 被占用后尝试变通
  • 解决:直接放弃,不要发布奇怪的名字

错误 4:不更新追踪文件

  • 现象:不知道 kfc 和 pizza-hut 是否已发布
  • 原因:发布后没有记录技能 ID
  • 解决:发布后立即更新追踪文件

✅ 检查清单

发布前:

  • 查看 PUBLISHED_SKILLS_MAINTENANCE.md
  • 确认技能在待发布名单中
  • 检查限流状态(有可用名额)
  • 确认技能目录和 SKILL.md 存在

发布后:

  • 记录技能 ID
  • 更新追踪文件
  • 标记为已发布
  • 提交 git 变更

遇到冲突:

  • 记录到"已被占用的 Slug"列表
  • 确认是否删除本地文件
  • 更新维护文件

📝 经验教训总结(2026-04-09 更新)

核心原则

  1. 严格按照名单发布 - 不要盲目执行 sync
  2. 保护本地技能 - 绝对不删除本地使用的技能
  3. 冲突直接跳过 - slug 被占用就放弃,不要尝试变通
  4. 及时更新记录 - 发布后立即记录技能 ID
  5. 限流时停止 - 遇到限流立即停止,等待刷新

新增经验(2026-04-09)

6. 批量检查 slug 可用性

方法

# 批量检查多个 slug
for slug in apple microsoft amazon; do 
  result=$(clawhub search "$slug" 2>&1 | grep "^$slug ")
  if [ -n "$result" ]; then 
    echo "$slug: OCCUPIED"
  else 
    echo "$slug: AVAILABLE ✅"
  fi
done

教训

  • TOP 34 高价值品牌中,约 90% 已被占用
  • 发布前必须先检查,避免创建无用的 SKILL.md
  • 记录检查结果到维护名单

7. 24 小时限流规则

规则

  • 5 个新技能/小时
  • 20 个新技能/24 小时(重要!)

教训

  • 发布前检查 24 小时配额
  • 接近 20 个时停止,等待次日刷新
  • 更新技能不占用新技能名额

8. 维护完整名单

必须维护的文件

  • CLAWHUB_SKILLS_MASTER_LIST.md - 完整状态清单
  • PUBLISHED_SKILLS_MAINTENANCE.md - 已发布技能详情
  • PUBLISH_STATUS_SUMMARY.md - 发布进度汇总

每次发布后必须更新

  1. 记录技能 ID 和发布时间
  2. 验证技能(clawhub search \x3Cslug>
  3. 更新验证状态
  4. 如遇冲突,记录占用者

9. 识别已被占用的 slug

常见占用者

  • /kongdeyu/* - mcdonalds 等
  • /duanc-chao/* - netflix 等
  • /ivangdavila/* - booking, expedia, amazon 等
  • /agenticio/* - instagram 等
  • /pskoett/* - self-improving-agent 等

策略

  • 发现占用立即放弃
  • 记录到维护名单
  • 不要尝试变通名字

技能用途: 提供 ClawHub Skills 发布的最佳实践、正确流程和常见错误避免指南,帮助开发者高效、安全地发布技能。


版本历史:

  • 1.0.1 (2026-04-09 09:55) - 更新:批量检查 slug、24 小时限流、维护名单规范
  • 1.0.0 (2026-04-09) - 初始版本,记录发布经验和教训
安全使用建议
This skill is a documentation/checklist and is internally consistent with that purpose. Before using it: (1) confirm you trust any agent or user who will run the shell commands because they read and act on files under /workspace/...; (2) avoid running 'clawhub sync' unless you intentionally want a scan of all local skills (the doc warns this can attempt to publish local/private skills); (3) ensure the environment won't execute destructive commands (e.g., rm -rf) automatically; and (4) keep the tracking files (PUBLISHED_SKILLS_MAINTENANCE.md, etc.) in a secure workspace so publishing metadata isn't exposed. If you want extra safety, run the checklist steps manually rather than letting an agent invoke them autonomously.
功能分析
Type: OpenClaw Skill Name: clawhub-publish-best-practices Version: 1.0.1 The skill bundle consists of documentation and operational guidelines for publishing skills to the ClawHub platform. The SKILL.md file provides best practices, rate-limiting rules, and troubleshooting steps for managing skill deployments within a specific workspace environment. There is no evidence of malicious intent, data exfiltration, or harmful execution; the provided bash commands are standard administrative tasks (e.g., ls, cat, clawhub CLI) intended to prevent common user errors during the publishing process.
能力评估
Purpose & Capability
The name and description match the SKILL.md contents: a step-by-step best-practices guide for publishing ClawHub skills. It declares no binaries, env vars, or installs — which is appropriate for a documentation/checklist skill.
Instruction Scope
The instructions are operational publishing steps (view tracking files, check slugs, use 'clawhub publish' or 'clawhub sync', check rate limits, update logs). They reference workspace paths and common shell commands (cat, ls, head, simple for-loop with grep). Nothing in the document instructs reading unrelated secrets or transmitting data to external endpoints; the scope stays within publishing workflow. Note: it includes a 'clawhub sync' option which the document itself warns can scan all local skills — that is expected but worth being cautious about in practice.
Install Mechanism
No install spec and no code files. This is the lowest-risk form: purely instructional text with no downloads or archive extraction.
Credentials
No environment variables, credentials, or config paths are requested, which aligns with a documentation-only skill. The instructions do reference local workspace paths (e.g., /workspace/projects/...), so running the described commands will read local files — expected for a publish checklist but users should be aware that following the steps requires filesystem access in the workspace.
Persistence & Privilege
The skill is not always-on, does not request persistent installation or elevated privileges, and does not modify other skills' configuration. Autonomous model invocation is allowed by platform default but that is not unusual for an instruction-only skill.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install clawhub-publish-best-practices
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /clawhub-publish-best-practices 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- 新增批量检查 slug 可用性的方法和教训,支持一次性检查多个 slug 是否已占用 - 补充 24 小时限流规则,明确每 24 小时只能发布 20 个新技能 - 规范维护完整的技能名单,并要求发布后及时记录和验证状态 - 增加已被占用 slug 的识别方法和常见占用者列表 - 经验教训章节补充了新发现的问题和最佳实践
v1.0.0
Initial release of best practices for ClawHub Skills publishing. - Provides a comprehensive guide documenting correct publishing procedures, frequent mistakes, and practical lessons learned. - Includes detailed, step-by-step publishing workflows and a checklist for before and after each release. - Outlines critical rules such as only publishing approved skills, never deleting local skills in use, and properly handling slug conflicts. - Adds instructions for maintaining accurate tracking and logs after every publish. - Documents rate-limiting policies and how to safely manage publish quotas. - Summarizes common errors and how to avoid them for safer, more efficient publishing.
元数据
Slug clawhub-publish-best-practices
版本 1.0.1
许可证 MIT-0
累计安装 1
当前安装数 0
历史版本数 2
常见问题

Clawhub Publish Best Practices 是什么?

ClawHub Skills 发布最佳实践和经验教训. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 107 次。

如何安装 Clawhub Publish Best Practices?

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

Clawhub Publish Best Practices 是免费的吗?

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

Clawhub Publish Best Practices 支持哪些平台?

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

谁开发了 Clawhub Publish Best Practices?

由 hanxueyuan(@hanxueyuan)开发并维护,当前版本 v1.0.1。

💬 留言讨论