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★ 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/skillsand.codex/skills. - Treat visible
claude/skillsandcodex/skillsas 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/skillsdirectly through~/.gemini/config/skills.json(botfiles-skills, with explicit exclusions inantigravity/skills.json), so updatingcodex/skillsupdates 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/skillsor.claude/skills) - skills only in the active Codex skill root (
codex/skillsor.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:
--allfor 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 upstreamtracked_drifted- overlapping curated skills safe to update from upstreamprotected_drifted- overlapping skills intentionally protected from overwritelocal_only- local skills with no upstream curated counterpartupstream_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/skillsafter 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.mdare treat
Установить sync-agent-skills в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic