← 返回 Skills 市场
perrykono-debug

Agent发布技能

作者 perrykono-debug · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
45
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install agent-publish
功能描述
Agent 发布/更新到 ClawHub + GitHub 的标准技能。 当 agent 的核心文件(SOUL.md/AGENTS.md/IDENTITY.md/TOOLS.md)发生变更时,自动询问是否发布更新。 触发场景:agent 内容更新完成时、用户要求发布/推送/更新到 ClawHub/GitHub、用...
使用说明 (SKILL.md)

Agent Publish Skill

定位:Agent 发布基础设施,一键发布到 ClawHub + GitHub。 版本:1.0.0


自动触发规则

当检测到以下核心文件变更时,主动询问用户是否发布

  • SOUL.md
  • AGENTS.md
  • IDENTITY.md
  • TOOLS.md
  • SKILL.md(如有)

询问格式

检测到 [文件名] 已更新。是否发布到 ClawHub + GitHub?

1. 是,立即发布
2. 仅发布到 ClawHub
3. 仅推送到 GitHub
4. 稍后再说

发布流程

Step 1: 准备 Skill 包

将 agent workspace 核心文件打包到 ~/.qclaw/skills/\x3Cagent-id>/ 目录:

~/.qclaw/skills/\x3Cagent-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 生成规则

  1. frontmatter 包含 name、description
  2. 主体内容从 SOUL.md 提取架构总览 + 核心逻辑
  3. description 要包含关键词,方便搜索

_meta.json 格式

{
  "version": "\x3Csemver>",
  "updatedAt": "\x3CYYYY-MM-DD>",
  "changelog": "\x3C变更说明>",
  "author": "\x3Cclawhub-username>"
}

Step 2: 版本号管理

  • 首次发布:1.0.0
  • 架构变更(新增/删除分析层、决策引擎):主版本号 +1(2.0.0)
  • 功能增强(新增分析维度、优化输出格式):次版本号 +1(1.1.0)
  • Bug 修复(修正措辞、补充细节):修订号 +1(1.0.1)
  • 变更说明从本次对话中提取

Step 3: 发布到 ClawHub

clawhub skill publish "\x3Cskill-dir>" \
  --slug \x3Cagent-id> \
  --name "\x3C中文名>" \
  --version \x3Csemver> \
  --changelog "\x3C变更说明>" \
  --tags latest

前提:已登录 clawhub whoami

Step 4: 推送到 GitHub

# 如果 repo 不存在
gh repo create \x3Cgithub-user>/\x3Cagent-id> \
  --public \
  --description "\x3C描述>" \
  --source \x3Cskill-dir> \
  --push

# 如果 repo 已存在
cd \x3Cskill-dir>
git add -A
git commit -m "v\x3Csemver>: \x3C变更说明>"
git push origin master

前提:已登录 gh auth status


首次设置检查

发布前检查以下工具是否就绪:

  1. clawhub whoami — 确认 ClawHub 登录
  2. gh auth status — 确认 GitHub 登录
  3. git --version — 确认 git 可用

如果未登录

  • ClawHub:clawhub login
  • GitHub:gh auth login --hostname github.com --git-protocol https --web

发布确认清单

发布前确认:

  • 核心文件已更新到 skill 包目录
  • SKILL.md 的 frontmatter 正确
  • _meta.json 版本号正确递增
  • changelog 已填写
  • ClawHub 已登录
  • GitHub 已登录

现有 Agent 注册表

Agent ID ClawHub Slug GitHub Repo 最新版本
vc-analyst vc-analyst perrykono-debug/vc-analyst 1.0.0

错误处理

  • ClawHub 发布失败:检查 clawhub whoami,重新登录
  • GitHub push 失败:检查 gh auth status,重新授权
  • Repo 不存在:用 gh repo create 创建
  • 版本号冲突:ClawHub 不允许同版本覆盖,需递增版本号

版本:1.0.0 | 创建日期:2026-06-06 | 作者:perrykono-debug

安全使用建议
Install only in workspaces where you intentionally want release automation. Before using it, confirm that any publish, push, packaging, or GitHub/ClawHub action requires an explicit user command and final confirmation, and avoid loading it globally across unrelated projects.
能力评估
Purpose & Capability
Packaging and publishing agents or skills to ClawHub/GitHub is coherent with the apparent purpose, and there is no artifact-backed evidence of deception, exfiltration, or destructive behavior.
Instruction Scope
The reported SKILL.md instructions use broad trigger terms such as publish/push and Chinese equivalents, and also suggest proactive publish prompts after core-file changes; that is under-scoped for an external publication workflow.
Install Mechanism
The reported instruction that the skill must be loaded in all agent workspaces is overbroad and removes normal per-workspace user choice for a publishing capability.
Credentials
Publishing workflows can expose or mutate project content on external services; the supplied artifact context does not show enough scoping, containment, or confirmation language to make that authority proportionate across unrelated workspaces.
Persistence & Privilege
Mandatory broad loading creates persistent agent-behavior influence, although there is no evidence of background workers, privilege escalation, or hidden persistence.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install agent-publish
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /agent-publish 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
初始版本:Agent发布到ClawHub+GitHub的标准技能,自动检测变更并询问发布
元数据
Slug agent-publish
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Agent发布技能 是什么?

Agent 发布/更新到 ClawHub + GitHub 的标准技能。 当 agent 的核心文件(SOUL.md/AGENTS.md/IDENTITY.md/TOOLS.md)发生变更时,自动询问是否发布更新。 触发场景:agent 内容更新完成时、用户要求发布/推送/更新到 ClawHub/GitHub、用... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 45 次。

如何安装 Agent发布技能?

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

Agent发布技能 是免费的吗?

是的,Agent发布技能 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Agent发布技能 支持哪些平台?

Agent发布技能 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Agent发布技能?

由 perrykono-debug(@perrykono-debug)开发并维护,当前版本 v1.0.0。

💬 留言讨论