← Back to Skills Marketplace
perrykono-debug

Agent发布技能

by perrykono-debug · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
45
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install agent-publish
Description
Agent 发布/更新到 ClawHub + GitHub 的标准技能。 当 agent 的核心文件(SOUL.md/AGENTS.md/IDENTITY.md/TOOLS.md)发生变更时,自动询问是否发布更新。 触发场景:agent 内容更新完成时、用户要求发布/推送/更新到 ClawHub/GitHub、用...
README (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

Usage Guidance
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install agent-publish
  3. After installation, invoke the skill by name or use /agent-publish
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
初始版本:Agent发布到ClawHub+GitHub的标准技能,自动检测变更并询问发布
Metadata
Slug agent-publish
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Agent发布技能?

Agent 发布/更新到 ClawHub + GitHub 的标准技能。 当 agent 的核心文件(SOUL.md/AGENTS.md/IDENTITY.md/TOOLS.md)发生变更时,自动询问是否发布更新。 触发场景:agent 内容更新完成时、用户要求发布/推送/更新到 ClawHub/GitHub、用... It is an AI Agent Skill for Claude Code / OpenClaw, with 45 downloads so far.

How do I install Agent发布技能?

Run "/install agent-publish" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Agent发布技能 free?

Yes, Agent发布技能 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Agent发布技能 support?

Agent发布技能 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Agent发布技能?

It is built and maintained by perrykono-debug (@perrykono-debug); the current version is v1.0.0.

💬 Comments