Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

sync-agent-skills

БесплатноЗапускает вложенные скриптыНе проверен

Compare, audit drift, and sync skills across coding-agent skill trees (botfiles-style visible `claude/skills` and `codex/skills` loaded by Codex and…

ma08от ma08★ 31 звезда на GitHub

Об этом скилле

Sync Agent Skills

Compare skill directories across Claude, Codex, and Antigravity (which loads botfiles/codex/skills through antigravity/skills.json), and compare local canonical skills against upstream skill repositories. Use dry-run first, then apply only the changes you intend.

Script

Use:

python ~/pro/botfiles/codex/skills/sync-agent-skills/scripts/sync_skills.py ...

For upstream curated sync:

python ~/pro/botfiles/codex/skills/sync-agent-skills/scripts/sync_upstream_skills.py ...

The script auto-discovers repo root from the current directory. It supports both the botfiles/global visible layout (claude/skills, codex/skills) and the normal hidden project-local layout (.claude/skills, .codex/skills). If needed, pass an explicit root:

python scripts/sync_skills.py --repo-root ~/pro/botfiles ...

The upstream sync script uses upstream_sync_policy.json in this skill directory by default. Pass --policy for other upstreams, such as the Oracle skill.

Layout Convention

  • For ordinary project-local skills, prefer .claude/skills and .codex/skills.
  • Treat visible claude/skills and codex/skills as the botfiles/global exception unless a repo clearly documents a different convention.
  • Botfiles uses visible skill directories because user-level global skill paths are symlinked there for source control and easier inspection. Antigravity loads codex/skills directly through ~/.gemini/config/skills.json (botfiles-skills, with explicit exclusions in antigravity/skills.json), so updating codex/skills updates Codex and Antigravity together.

Workflow A: Claude <-> Codex

1. Check drift first

python scripts/sync_skills.py status

This reports:

  • skills only in the active Claude skill root (claude/skills or .claude/skills)
  • skills only in the active Codex skill root (codex/skills or .codex/skills)
  • skills in both but different
  • skills in both and identical

2. Choose direction and scope

Decide sync direction explicitly:

  • --from-side claude --to-side codex
  • --from-side codex --to-side claude

Decide scope:

  • --all for all source-side skills
  • --skills <name...> for individual skill(s) or subset

3. Dry-run sync (default)

python scripts/sync_skills.py sync --from-side claude --to-side codex --all
python scripts/sync_skills.py sync --from-side claude --to-side codex --skills start-new-task get-task-details

Without --apply, script prints plan only (create, replace, unchanged) and makes no changes.

4. Apply sync

python scripts/sync_skills.py sync --from-side claude --to-side codex --all --apply
python scripts/sync_skills.py sync --from-side claude --to-side codex --skills start-new-task --apply

Optional pruning when syncing all:

python scripts/sync_skills.py sync --from-side claude --to-side codex --all --delete-target-extras --apply

This removes target-side skills absent from source.

Workflow B: OpenAI Curated -> Codex -> Claude

1. Check upstream drift first

python scripts/sync_upstream_skills.py --repo-root ~/pro/botfiles status

This reports:

  • tracked_identical - overlapping curated skills that already match upstream
  • tracked_drifted - overlapping curated skills safe to update from upstream
  • protected_drifted - overlapping skills intentionally protected from overwrite
  • local_only - local skills with no upstream curated counterpart
  • upstream_only - curated skills available upstream but not yet vendored locally

2. Dry-run the default tracked sync

python scripts/sync_upstream_skills.py --repo-root ~/pro/botfiles sync

Default sync scope is update existing only: it considers overlapping curated skills except those protected by policy.

3. Apply the tracked sync

python scripts/sync_upstream_skills.py --repo-root ~/pro/botfiles sync --apply

By default this:

  • updates changed overlapping curated skills in codex/skills
  • keeps protected drifted skills untouched
  • mirrors the changed skill names into claude/skills after the Codex apply

4. Add a missing curated skill explicitly

python scripts/sync_upstream_skills.py --repo-root ~/pro/botfiles sync --skills screenshot --apply

Use --skills <name...> when you want to vendor a curated skill that currently appears under upstream_only.

5. Force a protected skill only when intentional

python scripts/sync_upstream_skills.py --repo-root ~/pro/botfiles sync --skills transcribe --force-protected --apply

Without --force-protected, a protected drifted skill is reported as skip-protected and is not overwritten.

Behavior Notes

  • Sync copies full skill directories from source to target
  • Existing target skill directories are replaced when content differs
  • Hidden directories inside the skills root (for example .system) are ignored
  • Only directories containing SKILL.md are treat
Полный SKILL.md на GitHub

Установить sync-agent-skills в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

agents/openai.yamlscripts/skill_sync_common.pyscripts/sync_skills.pyscripts/sync_upstream_skills.pyupstream_oracle_policy.jsonupstream_sync_policy.json

FAQ

Что делает скилл sync-agent-skills?

Compare, audit drift, and sync skills across coding-agent skill trees (botfiles-style visible `claude/skills` and `codex/skills` loaded by Codex and Antigravity via `antigravity/skills.json`, or hidden project-local `.claude/skills`, `.codex/skills`, and `.agents/skills`), and sync local canonical skills against upstream skill repositories such as OpenAI curated skills or the Oracle skill with protected local forks. Use when the user asks to keep skills aligned across Claude, Codex, and Antigravity, compare local skills to upstream, sync all or selected skills, or identify where drift exists.

Как установить скилл sync-agent-skills?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл sync-agent-skills запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить sync-agent-skills с