Config Manager Sync
Use this skill when the user asks to sync Codex and Claude configuration with AI Config Sync Manager.
Behavior
- If the user passes
-h/--help(or asks for usage/help), run... sync --helpand print the CLI output as-is — do not run a dry-run or apply. - Resolve the bundled CLI from the Codex plugin root:
"$HOME/.agents/plugins/ai-config-sync-manager/bin/ai-config-sync". The launcher resolves the runtime viaAI_CONFIG_SYNC_ROOT(dev override) → PATHai-config-sync→npm execfallback. - Always export
AI_CONFIG_SYNC_HOST=codexbefore invoking the CLI from this skill so the default sync direction iscodex -> claude. - Default to dry-run:
AI_CONFIG_SYNC_HOST=codex "$HOME/.agents/plugins/ai-config-sync-manager/bin/ai-config-sync" sync --dry-run. - Default sync scope is global and project when
--scopeis omitted. - Use
--scope global,--scope project, or--scope allto narrow or make the sync scope explicit. - For explicit direction, pass the requested hosts, for example
AI_CONFIG_SYNC_HOST=codex "$HOME/.agents/plugins/ai-config-sync-manager/bin/ai-config-sync" sync --from claude --to codex --dry-run. Explicit--from/--tooverrides the env-based default. - For partial sync, pass selectors with
--include area[,area:item]and--exclude area[,area:item]. Include is applied first, exclude is applied last. Item selectors are supported for itemized areas such asskills,permissions, andhooks. - Text sync for
instructionsandskillsusesrules/terminology-map.jsonfor layered terms/model names andrules/host-target-templates.jsonfor generic host surfaces. Product/workflow-specific vocabularies should be supplied through project-level overrides underrules/. - Manual-risk entries are still sync plan candidates. Treat
partialandmanualentries as higher-risk entries that must be clearly shown in the dry-run. - If the bundled CLI is unavailable, report that the user must
npm install -g ai-config-sync-manager(or runnpm linkfrom the repo) and re-runconnect.
Confirmation Flow
- Always run a dry-run first and show the plan to the user.
- Ask the user in chat whether to apply. Wait for an explicit yes.
- On confirmation, re-run the same arguments with
--apply.
Example apply call after the user confirms:
AI_CONFIG_SYNC_HOST=codex "$HOME/.agents/plugins/ai-config-sync-manager/bin/ai-config-sync" sync $ARGS --apply
Safety
- Require backups before any real write — the CLI prints
Backup root: ...on apply. - Confirm the backup location to the user before applying changes.
- Treat
partialandmanualentries as higher-risk; call them out explicitly in the dry-run summary. - Apply may run selected file, skill, and settings item merge operations even when they are marked
manual. - Do not bypass CLI safeguards from this skill.