下面是一个最简单的 SKILL.md 示例:
---name: my-skilldescription: Does a thing with an API.---# My Skill## Rules- Always confirm with the user before making destructive changes.- Use the credentials from environment variable MY_API_KEY.## UsageWhen the user asks to "do the thing", call the API endpoint athttps://api.example.com/action with the provided payload.写好后,执行发布命令:
clawhub publish ~/.openclaw/skills/my-skill \ --slug my-skill \ --name "My Skill" \ --version 1.0.0 \ --tags latest发布需要一个至少注册满一周的 GitHub 账号。--slug 是 Skill 在 ClawHub 上的唯一标识符,在整个注册表中必须唯一。