Install
openclaw skills install agent-publishAgent 发布/更新到 ClawHub + GitHub 的标准技能。 当 agent 的核心文件(SOUL.md/AGENTS.md/IDENTITY.md/TOOLS.md)发生变更时,自动询问是否发布更新。 触发场景:agent 内容更新完成时、用户要求发布/推送/更新到 ClawHub/GitHub、用户说"发布"、"推送"、"publish"、"push"。 必须在所有 agent workspace 中作为基础技能加载。
openclaw skills install agent-publish定位:Agent 发布基础设施,一键发布到 ClawHub + GitHub。 版本:1.0.0
当检测到以下核心文件变更时,主动询问用户是否发布:
SOUL.mdAGENTS.mdIDENTITY.mdTOOLS.mdSKILL.md(如有)询问格式:
检测到 [文件名] 已更新。是否发布到 ClawHub + GitHub?
1. 是,立即发布
2. 仅发布到 ClawHub
3. 仅推送到 GitHub
4. 稍后再说
将 agent workspace 核心文件打包到 ~/.qclaw/skills/<agent-id>/ 目录:
~/.qclaw/skills/<agent-id>/
├── SKILL.md # skill 入口(从 SOUL.md 提取核心架构)
├── _meta.json # 版本信息
└── references/
├── soul.md # SOUL.md 完整版
├── agents.md # AGENTS.md
├── identity.md # IDENTITY.md
└── tools.md # TOOLS.md
SKILL.md 生成规则:
_meta.json 格式:
{
"version": "<semver>",
"updatedAt": "<YYYY-MM-DD>",
"changelog": "<变更说明>",
"author": "<clawhub-username>"
}
1.0.0clawhub skill publish "<skill-dir>" \
--slug <agent-id> \
--name "<中文名>" \
--version <semver> \
--changelog "<变更说明>" \
--tags latest
前提:已登录 clawhub whoami
# 如果 repo 不存在
gh repo create <github-user>/<agent-id> \
--public \
--description "<描述>" \
--source <skill-dir> \
--push
# 如果 repo 已存在
cd <skill-dir>
git add -A
git commit -m "v<semver>: <变更说明>"
git push origin master
前提:已登录 gh auth status
发布前检查以下工具是否就绪:
clawhub whoami — 确认 ClawHub 登录gh auth status — 确认 GitHub 登录git --version — 确认 git 可用如果未登录:
clawhub logingh auth login --hostname github.com --git-protocol https --web发布前确认:
| Agent ID | ClawHub Slug | GitHub Repo | 最新版本 |
|---|---|---|---|
| vc-analyst | vc-analyst | perrykono-debug/vc-analyst | 1.0.0 |
clawhub whoami,重新登录gh auth status,重新授权gh repo create 创建版本:1.0.0 | 创建日期:2026-06-06 | 作者:perrykono-debug