One skills folder for every AI agent on your machine.
You run Claude Code, Codex, Comate, Cursor, Gemini CLI, Trae, Windsurf⦠and each one reads its own skills directory. One skill = a dozen copies. Sooner or later: version drift, gigabytes of duplication, and no idea which copy is real.
skill-unify makes ~/.agents/skills the single source of truth (SSOT) and replaces every copy with a symlink.
Measured on a real machine with 11 platform directories: 337 MB β 106 MB, hundreds of duplicates collapsed into one entity each.
- Read-only by default β nothing touches disk until you pass
--yes - Backups before deletes β
pruneonly removes entities whose hash matches the SSOT exactly, and backs up first - Plan before act β every write command has a dry-run:
plan/scan/doctor - Never wanders β refuses to touch anything outside platform skills directories
# 1. Survey: platform table, skill counts, sizes, redundancy estimate
python3 scripts/skill-unify scan
# 2. Inventory: what's installed, what each skill does
python3 scripts/skill-unify list --sort=size
# 3. Plan, approve, execute
python3 scripts/skill-unify plan
python3 scripts/skill-unify sync --yesFull cleanup when platforms already hold their own copies:
python3 scripts/skill-unify adopt --yes # fold platform-unique skills into the SSOT
python3 scripts/skill-unify prune --yes # delete duplicates, rebuild links (backed up)
python3 scripts/skill-unify doctor # final health checkgit clone https://github.com/IQQcode/skill-unify.git ~/.agents/skills/skill-unifyThen let it onboard every future skill for you β install lands in the SSOT and syncs to all platforms in one step:
python3 ~/.agents/skills/skill-unify/scripts/skill-unify install <dir | zip | git-url> --yesMonorepo friendly: install https://github.com/some/awesome-skills#the-skill-you-want --yes.
| Command | What it does | Writes disk |
|---|---|---|
scan |
Survey all platforms: counts, sizes, redundancy, illegal entries | no |
list |
Inventory installed skills (--sort=name|size|copies, --md, --tsv) |
no |
plan |
Preview exactly what sync will do |
no |
sync |
Create/repair symlinks per skill | --yes |
adopt |
Fold platform-unique skill entities into the SSOT | --yes |
prune |
Delete duplicate entities already covered by the SSOT (backs up first) | --yes |
doctor |
Broken links, junk entries, stray root files, name conflicts, missing frontmatter | no |
install |
Install a new skill into the SSOT + sync to all platforms | --yes |
Common flags: --root (SSOT path) Β· --config Β· --platform / --skill (scope) Β· --save-root (persist the SSOT choice).
Not an invented convention: OpenCode lists it as a global discovery location, Cline's global path is exactly it, and Windsurf is converging toward .agents/skills. Choosing it means those platforms read the SSOT natively β zero links needed for them.
- Zero dependencies β pure Python 3.8+ standard library. No pip, no venv, no lockfile.
- 41 platforms registered β with per-platform filtering (
--platform) and a config file for custom allow/skip lists. - Agent-native β ships as a skill itself: the
SKILL.mddrives a 4-step interaction contract (show status quo β show inventory β confirm SSOT path β execute & report) so the agent never deletes or decides without you.
python3 -m unittest discover -s tests