360 Secure SkillHub
360 安全技能中心

auto-publish-created-skills

该 Skill 面向已由助手创建、经本地审阅与提交的技能目录,自动完成发布流程:确认用户已授权发布、检查 ClawHub 登录、查看远端 slug、按远端是否存在选择初始版本或递增补丁版本,调用发布脚本上传后用远端检查验证,并按需更新登记表。发布前保留人工审阅与提交的前置条件,避免上传未完成草稿。

g-hanasq
g-hanasq
热度 80.44
最近更新 2026-05-11 17:31:30
分类:开发依赖:代码执行 / 读写文件 / 第三方 API应用场景:DevOps / 自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add auto-publish-created-skills
Metadata
name
auto-publish-created-skills
description
Automatically publish newly created local skills to ClawHub after the skill has been reviewed and committed, when the user has explicitly requested ongoing ClawHub publication for assistant-created skills. Use after creating a new skill under workspace/skills and after local commit succeeds. Inspect the remote slug first, choose an initial version if absent, or bump patch if updating, then publish via the verified ClawHub publish flow.

Auto Publish Created Skills

Use this skill when a new local skill has just been created by the assistant and the user wants assistant-created skills uploaded to ClawHub.

Preconditions

Only publish if all are true:

  • the user explicitly asked for assistant-created skills to be published to ClawHub
  • the skill directory contains a valid SKILL.md
  • the skill has already been locally reviewed/committed
  • local ClawHub session is authenticated

Workflow

  1. Identify the new skill folder under workspace/skills/<slug>.
  2. Check ClawHub login with clawhub whoami.
  3. Inspect remote state with clawhub inspect <slug>.
  4. Versioning:
    • if skill does not exist remotely: publish 0.1.0
    • if skill exists remotely: bump patch version
  5. Publish with skills/clawhub-publish-flow/scripts/publish_to_clawhub.js.
  6. Verify with clawhub inspect <slug>.
  7. Add or update the registry sheet if needed.

Changelog pattern

Use short, operational changelogs such as:

  • Initial release
  • Add runtime notes
  • Refine trigger description
  • Document proven workflow

Safety rule

Do not publish vague drafts or half-finished skills just because they were created. Publishing still requires the skill to be coherent and committed.

Output

Report:

  • skill
  • version
  • publish result
  • final URL if available
  • whether verification succeeded