sync-skills-manager

📁 oldwinter/skills 📅 4 days ago
10
总安装量
5
周安装量
#30031
全站排名
安装命令
npx skills add https://github.com/oldwinter/skills --skill sync-skills-manager

Agent 安装分布

opencode 5
claude-code 5
github-copilot 5
codex 5
kimi-cli 5
gemini-cli 5

Skill 文档

Sync Skills Manager

Manage synchronization between repository skills and local/system skill directories.

Scripts

sync-skills.sh (legacy 2-way)

Sync between ~/.agents/skills and ./system-skills categories.

Command Description
./sync-skills.sh diff Preview system-only skills
./sync-skills.sh pull Sync ~/.agents/skills -> repo (add new skills)
./sync-skills.sh push Sync repo -> ~/.agents/skills (no add-skill)
./sync-skills.sh dedupe Remove duplicate entries from ~/.gemini/skills
./sync-skills.sh status Show sync status

sync-skills-3way.sh (recommended)

Incremental 3-way sync across:

  • ~/.codex/skills (including .system)
  • ~/.agents/skills
  • ~/.agent/skills
  • repository skills tree

Key behavior:

  • Incremental only (rsync --update), never deletes files.
  • New skills missing in repo are added to system-skills/tools-skills/.
  • For duplicate skill names in repo, the newest SKILL.md copy is treated as canonical for repo -> local sync.
Command Description
./sync-skills-3way.sh sync Run 3-way incremental sync (default)
./sync-skills-3way.sh status Show counts and name-level diffs
./sync-skills-3way.sh help Show usage

Usage

Daily 3-way sync

./sync-skills-3way.sh sync

Quick status check

./sync-skills-3way.sh status

Configuration

sync-skills.sh uses sync-config.json:

{
  "system_skills_path": "~/.agents/skills",
  "repo_skills_path": "./system-skills",
  "exclude_patterns": ["sync-skills-manager"],
  "sync_mode": "incremental",
  "default_command": "diff"
}