AgentSkillsCN

skills-cloner

每当有技能被创建、更新或删除时,可通过克隆变动的技能文件夹,将 .github/skills 中的技能同步至 .agents/skills 和 .claude/skills。用户可以通过说“同步技能”“克隆技能”或“对齐技能”来手动触发此技能的运行。

SKILL.md
--- frontmatter
name: skills-cloner
description: Sync skills from .github/skills into .agents/skills and .claude/skills whenever a skill is created, updated, or deleted by cloning changed skill folders. User can request to manually run this skill by saying "Sync skills". or "Clone skills". or "align skills".

Skills Cloner

  • After any skill create, update, or delete, run ./scripts/clone-skills.js to sync .agents/skills and .claude/skills.
  • Compare skill folder contents and rewrite only changed skills.
  • Remove skill folders from .agents/skills and .claude/skills that no longer exist in .github/skills.
  • Optionally pass one or more skill names to limit syncing.

Usage

The script is executable and can be run directly (no need to prefix with node).

  • ./scripts/clone-skills.js
  • ./scripts/clone-skills.js skill-name another-skill