360 Secure SkillHub
360 安全技能中心

skill-merge-and-republish

用于合并职责重叠的本地 Skill:完整读取双方内容,选出要保留的规范 Skill,合并必须保留的独有指令,删除冗余 Skill 目录,本地提交后检查 ClawHub 远端版本、递增补丁版本并通过发布流程重新发布,最后验证远端状态并更新本地登记表。

g-hanasq
g-hanasq
热度 82.85
最近更新 2026-05-18 12:20:58
分类:开发依赖:读写文件 / 第三方 API应用场景:工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add skill-merge-and-republish
Metadata
name
skill-merge-and-republish
description
Merge overlapping local skills into one canonical skill and republish the canonical skill to ClawHub. Use when two local skills have overlapping responsibilities, when a temporary helper skill should be folded back into a stronger existing skill, or when the user asks to merge duplicated skills and update ClawHub after the merge.

Skill Merge and Republish

Use this skill when multiple local skills overlap enough that keeping both would create confusion, drift, or duplicated maintenance.

Goal

Turn:

  • duplicated or overlapping skills

into:

  • one canonical skill with merged guidance
  • one local source of truth
  • one updated ClawHub release

When to use

Use when:

  • two skills solve substantially the same workflow
  • one newer helper skill should be absorbed into an older canonical skill
  • a temporary skill exists only to extend a stronger publish/install/review flow
  • the user explicitly says “merge these skills” or “merge this into that and update ClawHub”

Workflow

  1. Read both skills fully.
  2. Identify:
    • canonical skill to keep
    • absorbed skill to retire
    • unique instructions that must be preserved
  3. Merge the absorbed logic into the canonical SKILL.md.
  4. Remove the redundant local skill folder.
  5. Commit locally.
  6. Inspect the canonical remote skill on ClawHub.
  7. Bump patch version.
  8. Publish the updated canonical skill via clawhub-publish-flow.
  9. Verify remote status.
  10. Update local registry sheet if it references both skills.

Canonical choice rules

Prefer keeping the skill that already has:

  • clearer name
  • better installed history
  • existing ClawHub presence
  • broader but still coherent scope

Safety rules

  • Do not merge unrelated skills just because they look adjacent.
  • Do not preserve duplicated wording if it reduces clarity.
  • Do not keep both skills unless their trigger boundaries are truly distinct.
  • Always update the registry after merge if the registry exists.

Output

Report:

  • kept skill
  • retired skill
  • what logic was merged
  • local commit
  • remote version bump
  • ClawHub publish result
skill-merge-and-republish_360安全技能中心