[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FJ4WS3V5EHMH6Q2JDN6W4Q":3,"skill-same:01M6FJ4WS3V5EHMH6Q2JDN6W4Q":61},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":29,"linkOnly":30,"markdownContent":31,"markdownBody":32,"frontMatter":33,"refName":34,"commitSha":35,"skillDirectory":36,"forksCount":37,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":40,"install":41,"resources":54},"01M6FJ4WS3V5EHMH6Q2JDN6W4Q","ln-013-config-syncer",null,"Use when installing or verifying this marketplace in Claude and Codex, aligning selected plugins, MCP settings, and Codex execution defaults.","boisenoise\u002Fskills-collections","boisenoise","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F193180?v=4","01M6CDBDQK6BDN55ZMA6B6PKBM","01M6CDBDVSJ3JPTBYN26FZ7TZK",13,"MIT","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Flevn-ln-013-config-syncer\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28],"config","ln 013 config syncer","ln","MCP","codex","plugins","marketplace","execution","settings","use","when","2026-11-10 10:12:30",false,"---\nname: ln-013-config-syncer\ndescription: \"Use when installing or verifying this marketplace in Claude and Codex, aligning selected plugins, MCP settings, and Codex execution defaults.\"\nlicense: MIT\n---\n\n> **Paths:** File paths (`shared\u002F`, `references\u002F`) are relative to skills repo root. Locate this SKILL.md directory and go up one level for repo root.\n\n# Marketplace and Config Aligner\n\n**Type:** L3 Worker\n**Category:** 0XX Shared\n\nInstalls or verifies this repository's marketplace and selected plugins for Claude Code and Codex CLI without making either agent the source of truth for the other. `agile-workflow` is the default development plugin; optional plugins are installed only when explicitly requested or selected. MCP and Codex policy settings are aligned non-destructively after marketplace health is known.\n\n## MANDATORY READ\n\n**MANDATORY READ:** Load `shared\u002Freferences\u002Fcoordinator_summary_contract.md`, `shared\u002Freferences\u002Fenvironment_worker_runtime_contract.md`, and `shared\u002Freferences\u002Fworker_runtime_contract.md`\n**MANDATORY READ:** Load `shared\u002Freferences\u002Fagent_skill_roots_contract.md`\n\n---\n\n## Input \u002F Output\n\n| Direction | Content |\n|-----------|---------|\n| **Input** | OS info, `disabled` flags per agent, `targets` (`claude` \u002F `codex` \u002F `both` \u002F `all`), `plugins` (`agile-workflow` default, explicit list, or `all`), `dry_run` flag, optional `auto_install_providers` flag, optional `runId`, optional `summaryArtifactPath` |\n| **Output** | Structured summary envelope with `payload.status` = `completed` \u002F `skipped` \u002F `error`, plus per-target alignment outcomes in `changes` \u002F `detail` |\n\nIf `summaryArtifactPath` is provided, write the same summary JSON there. If not provided, return the summary inline and remain fully standalone. If `runId` is not provided, generate a standalone `run_id` before emitting the summary envelope.\n\n`dry_run=true` is detection-only: do not register marketplaces, install plugins, edit MCP\u002FCodex config, write `.bak` files, or auto-install providers. Return planned actions and drift details in the summary.\n\n## Runtime\n\nRuntime family: `environment-worker-runtime`\n\nPhase profile:\n1. `PHASE_0_CONFIG`\n2. `PHASE_1_DISCOVER_STATE`\n3. `PHASE_2_VERIFY_MARKETPLACE_INSTALLS`\n4. `PHASE_3_ALIGN_MCP_SETTINGS`\n5. `PHASE_4_ALIGN_CODEX_POLICY`\n5a. `PHASE_4A_MCP_PROVIDER_CHECK`\n6. `PHASE_5_WRITE_SUMMARY`\n7. `PHASE_6_SELF_CHECK`\n\nRuntime rules:\n- emit `summary_kind=env-marketplace-align`\n- standalone runs generate their own `run_id` and write the default worker-family artifact path\n- managed runs require both `runId` and `summaryArtifactPath` and must write the summary to the exact provided path\n- always write the validated summary artifact before terminal outcome\n\n## Output Contract\n\nAlways build a structured `env-marketplace-align` summary envelope per:\n- `shared\u002Freferences\u002Fcoordinator_summary_contract.md`\n- `shared\u002Freferences\u002Fenvironment_worker_runtime_contract.md`\n\nPayload fields:\n- `targets`\n- `plugin_alignment`\n- `marketplace_health`\n- `mcp_alignment`\n- `mcp_providers`\n- `codex_execution_defaults`\n- `status`\n\n---\n\n## Config Paths by OS\n\n| Agent | Windows | macOS \u002F Linux |\n|-------|---------|---------------|\n| **Claude** (primary) | `%USERPROFILE%\\.claude.json` | `~\u002F.claude.json` |\n| **Claude** (fallback) | `%USERPROFILE%\\.claude\\settings.json` | `~\u002F.claude\u002Fsettings.json` |\n| **Codex** | `%USERPROFILE%\\.codex\\config.toml` | `~\u002F.codex\u002Fconfig.toml` |\n\n---\n\n## Workflow\n\n```text\nDiscover State -> Verify Marketplace Installs -> Align MCP -> Align Codex Policy -> Verify & Report\n```\n\n### Phase 1: Discover State\n\n1. Read Claude settings:\n   - `~\u002F.claude.json` (primary) + `~\u002F.claude\u002Fsettings.json` (fallback)\n   - extract `mcpServers`, enabled marketplaces\u002Fplugins, and hook state\n2. Read Codex config:\n   - `~\u002F.codex\u002Fconfig.toml`\n   - extract `[mcp_servers.*]`, `[marketplaces.*]`, top-level `approval_policy`, and top-level `sandbox_mode`\n3. Inspect repo marketplace surfaces:\n   - Claude: `.claude-plugin\u002Fmarketplace.json`\n   - Codex: `.agents\u002Fplugins\u002Fmarketplace.json`\n   - Codex plugin manifests: `plugins\u002F*\u002F.codex-plugin\u002Fplugin.json`\n4. Resolve plugin selection:\n   - always include `agile-workflow`\n   - if `plugins=all`, include every plugin listed by the marketplace\n   - if an explicit list is provided, install `agile-workflow` plus the requested plugins\n   - if interactive and optional plugins are not specified, ask which optional plugins to install\n   - if non-interactive and optional plugins are not specified, install or verify only `agile-workflow`\n5. Display current state table with enabled targets, selected plugins, marketplace health, duplicate-risk findings, and Codex execution-default drift.\n\n### Phase 2: Verify Marketplace Installs\n\nFor each target where `disabled` is not `true`:\n\n| Target | Expected install model | Verification |\n|--------|------------------------|--------------|\n| Claude | Native Claude marketplace | Marketplace is registered through Claude plugin settings and selected plugins resolve from `.claude-plugin\u002Fmarketplace.json` |\n| Codex | Native Codex marketplace | Marketplace is registered through Codex plugin settings and selected plugins resolve from `.agents\u002Fplugins\u002Fmarketplace.json` \u002F `plugins\u002F*\u002F.codex-plugin\u002Fplugin.json` |\n\nInstall policy:\n- Claude marketplace: `\u002Fplugin marketplace add levnikolaevich\u002Fclaude-code-skills`\n- Claude plugin: `\u002Fplugin install {plugin}@levnikolaevich-skills-marketplace`\n- Codex marketplace: `codex plugin marketplace add levnikolaevich\u002Fclaude-code-skills`\n- Codex plugin selection: verify selected plugins exist in `.agents\u002Fplugins\u002Fmarketplace.json` and `plugins\u002F{plugin}\u002F.codex-plugin\u002Fplugin.json`; if the installed Codex version exposes plugin-level selection only through an interactive native flow, report that exact step instead of fabricating a non-existent CLI command\n\nRules:\n- If `dry_run=true`, do not run marketplace add\u002Finstall commands; report the exact commands that would run.\n- Do not symlink or junction Claude plugin roots into Codex discovery roots.\n- Do not expose both the Claude bridge surface and Codex native surface to the same Codex runtime at once; duplicate skill names are an alignment failure.\n- Do not delete user plugin roots. If duplicate active roots are detected, report the exact paths and ask for explicit cleanup approval.\n- Do not install optional plugins silently.\n- Run `node skills-catalog\u002Fshared\u002Fscripts\u002Fmarketplace\u002Fsync-codex-adapters.mjs validate` when the repo root is available. Report failure as marketplace drift.\n\n### Phase 3: Align MCP Settings\n\nMCP settings are aligned by server name. No target is the universal source of truth.\n\nMerge strategy:\n1. Build a union of Claude `mcpServers` and Codex `[mcp_servers.*]`.\n2. For matching names, preserve target-only fields and update only fields that are semantically equivalent.\n3. For missing servers, add them to the requested target after format conversion.\n4. Create `.bak` before modifying any config file.\n5. Preserve target-only servers and unrelated config sections.\n6. If `dry_run=true`, report the merge plan only; do not create `.bak` files or edit config.\n\nField mapping:\n\n| Semantic field | Claude JSON | Codex TOML |\n|---|---|---|\n| command | `command` | `command` |\n| args | `args` | `args` |\n| env | `env` | `[mcp_servers.{name}.env]` |\n| HTTP URL | `type: \"http\"` + `url` | `url` |\n| headers | `headers` | `http_headers` |\n\nCodex-only fields to preserve:\n`bearer_token_env_var`, `enabled_tools`, `disabled_tools`, `startup_timeout_sec`, `tool_timeout_sec`, `enabled`, `required`\n\n**Windows implementation note:** Config format conversions with regex or backslash escaping MUST use a temporary `.mjs` script file, not inline `node -e` or bash heredocs.\n\n### Phase 4: Align Hooks and Codex Policy\n\n**Claude hooks:**\n- Claude hook\u002Fstyle sync remains Claude-only.\n- Do not project Claude hooks into Codex.\n\n**Codex execution defaults:**\n\nManaged Codex defaults for low-friction setup:\n\n```toml\napproval_policy = \"never\"\nsandbox_mode = \"danger-full-access\"\n```\n\nDecision logic:\n\n| Condition | Action |\n|-----------|--------|\n| Codex target `disabled: true` | SKIP, report `disabled` |\n| defaults already present | SKIP, report `already aligned` |\n| one or both keys missing\u002Fdrifted | Patch only top-level managed keys, preserve unrelated keys\u002Ftables, create `.bak` first |\n\nRules:\n- Manage only top-level `approval_policy` and top-level `sandbox_mode`.\n- Do not rewrite `[windows].sandbox`; it is a different Windows-specific knob.\n- Preserve unrelated Codex config sections such as `model`, `projects`, `notice`, `[marketplaces.*]`, and `[mcp_servers.*]`.\n\n### Phase 4a: MCP Provider Check\n\n**MANDATORY READ:** Load `references\u002Fmcp_provider_requirements.md`.\n\nRuns once per project invocation after MCP alignment. Goal: ensure every MCP server referenced in any aligned config has its language-analyzer providers available for the languages the project actually uses.\n\n1. **Enumerate MCP servers.** Union of MCP servers across Claude and Codex configs. Deduplicate by name.\n2. **Detect project languages.** Probe in order, cheapest first: `pyproject.toml`, `package.json`, `tsconfig.json`, `Cargo.toml`, `go.mod`, `*.csproj`. Use `mcp__hex-line__inspect_path` to probe; do not shell out.\n3. **Look up provider requirements.** Read `references\u002Fmcp_provider_requirements.md`. For `hex-graph`, delegate to `mcp__hex-graph__install_graph_providers`.\n4. **Run provider check.** Call `mcp__hex-graph__install_graph_providers({ mode: \"check\", path: \u003Cproject_root> })`. Do NOT auto-install unless `auto_install_providers=true`.\n5. **Record result.** Write into `environment_state.json` under `mcp_providers`.\n\n### Phase 5: Verify & Report\n\nVerify:\n- Claude marketplace registration resolves the expected source\n- Codex marketplace registration resolves the expected source\n- Codex native adapters validate against the Claude marketplace\n- No duplicate active Codex skill surfaces point to this repo\n- Codex `approval_policy = \"never\"`\n- Codex `sandbox_mode = \"danger-full-access\"`\n- MCP targets were merged without deleting target-only settings\n\n```text\nMarketplace and Config Alignment:\n| Action         | Target | Status                                              |\n|----------------|--------|-----------------------------------------------------|\n| Marketplace    | Claude | registered; agile-workflow installed               |\n| Marketplace    | Codex  | registered; native adapters validated              |\n| MCP align      | Claude | 4 servers aligned (0 deleted)                       |\n| MCP align      | Codex  | 4 servers aligned (1 new)                           |\n| Execution mode | Codex  | approval_policy=never; sandbox_mode=danger-full-access |\n| Hooks          | Codex  | skipped (not supported)                             |\n```\n\n---\n\n## Critical Rules\n\n1. **Independent installs.** Claude and Codex install skills through their own native marketplace flows.\n2. **No agent is the source of truth for another agent's skill installs.**\n3. **Default plugin set.** `agile-workflow` is installed or verified by default because it contains the development workflow.\n4. **Optional plugins are explicit.** Install non-default plugins only when requested, selected, or `plugins=all`.\n5. **No project command copying.** Do not copy `.claude\u002Fcommands` into Codex; project-local commands are host-specific unless represented as marketplace skills\u002Fplugins.\n6. **Non-destructive merge.** Target-only servers and settings are preserved.\n7. **No duplicate active surfaces.** One runtime must not see the same skill names from both bridge and native adapter roots.\n8. **No data loss.** Real directories at target paths -> warn and skip, never delete blindly.\n9. **Backup before write.** Create `.bak` before modifying any config file.\n10. **Dry run is read-only.** `dry_run=true` reports planned commands and config changes without mutating user or repo-tracked state.\n11. **Respect `disabled` flags.** Skip all operations for disabled agents.\n12. **Idempotent.** Safe to run multiple times. Already-aligned state is skipped.\n13. **Claude and Codex only.** Do not add unrelated agent branches.\n\n## Anti-Patterns\n\n| DON'T | DO |\n|-------|-----|\n| Treat Claude as Codex source of truth | Install each agent independently |\n| Symlink `.codex\u002Fskills` to `.claude\u002Fplugins` | Use Codex native marketplace registration |\n| Expose both bridge and native Codex surfaces at once | Keep exactly one active Codex install surface |\n| Install every marketplace plugin by default | Install `agile-workflow` by default and require explicit selection for the rest |\n| Copy project-local `.claude\u002Fcommands` to Codex | Represent reusable behavior as marketplace skills\u002Fplugins |\n| Overwrite target config from scratch | Read -> deep-merge -> backup -> edit |\n| Delete plugin\u002Fcache directories automatically | Report exact cleanup steps and require explicit approval |\n\n---\n\n## Definition of Done\n\n- [ ] Claude and Codex target configs discovered\n- [ ] Marketplace registrations verified or installed per target\n- [ ] `agile-workflow` verified or installed for enabled targets\n- [ ] Optional plugins installed only when explicitly requested or selected\n- [ ] `dry_run=true` performed no marketplace, plugin, config, backup, or provider mutations\n- [ ] Skill install surfaces verified without duplicate active roots\n- [ ] Codex native adapters validated\n- [ ] MCP settings aligned without deleting target-only settings\n- [ ] Codex execution defaults aligned or explicitly reported as drift\n- [ ] Hooks handled only for supported targets\n- [ ] MCP provider check completed or explicitly skipped\n- [ ] Structured summary returned\n- [ ] Summary artifact written to the managed or standalone runtime path\n\n---\n\n**Version:** 2.0.0\n**Last Updated:** 2026-04-14\n","> **Paths:** File paths (`shared\u002F`, `references\u002F`) are relative to skills repo root. Locate this SKILL.md directory and go up one level for repo root.\n\n# Marketplace and Config Aligner\n\n**Type:** L3 Worker\n**Category:** 0XX Shared\n\nInstalls or verifies this repository's marketplace and selected plugins for Claude Code and Codex CLI without making either agent the source of truth for the other. `agile-workflow` is the default development plugin; optional plugins are installed only when explicitly requested or selected. MCP and Codex policy settings are aligned non-destructively after marketplace health is known.\n\n## MANDATORY READ\n\n**MANDATORY READ:** Load `shared\u002Freferences\u002Fcoordinator_summary_contract.md`, `shared\u002Freferences\u002Fenvironment_worker_runtime_contract.md`, and `shared\u002Freferences\u002Fworker_runtime_contract.md`\n**MANDATORY READ:** Load `shared\u002Freferences\u002Fagent_skill_roots_contract.md`\n\n---\n\n## Input \u002F Output\n\n| Direction | Content |\n|-----------|---------|\n| **Input** | OS info, `disabled` flags per agent, `targets` (`claude` \u002F `codex` \u002F `both` \u002F `all`), `plugins` (`agile-workflow` default, explicit list, or `all`), `dry_run` flag, optional `auto_install_providers` flag, optional `runId`, optional `summaryArtifactPath` |\n| **Output** | Structured summary envelope with `payload.status` = `completed` \u002F `skipped` \u002F `error`, plus per-target alignment outcomes in `changes` \u002F `detail` |\n\nIf `summaryArtifactPath` is provided, write the same summary JSON there. If not provided, return the summary inline and remain fully standalone. If `runId` is not provided, generate a standalone `run_id` before emitting the summary envelope.\n\n`dry_run=true` is detection-only: do not register marketplaces, install plugins, edit MCP\u002FCodex config, write `.bak` files, or auto-install providers. Return planned actions and drift details in the summary.\n\n## Runtime\n\nRuntime family: `environment-worker-runtime`\n\nPhase profile:\n1. `PHASE_0_CONFIG`\n2. `PHASE_1_DISCOVER_STATE`\n3. `PHASE_2_VERIFY_MARKETPLACE_INSTALLS`\n4. `PHASE_3_ALIGN_MCP_SETTINGS`\n5. `PHASE_4_ALIGN_CODEX_POLICY`\n5a. `PHASE_4A_MCP_PROVIDER_CHECK`\n6. `PHASE_5_WRITE_SUMMARY`\n7. `PHASE_6_SELF_CHECK`\n\nRuntime rules:\n- emit `summary_kind=env-marketplace-align`\n- standalone runs generate their own `run_id` and write the default worker-family artifact path\n- managed runs require both `runId` and `summaryArtifactPath` and must write the summary to the exact provided path\n- always write the validated summary artifact before terminal outcome\n\n## Output Contract\n\nAlways build a structured `env-marketplace-align` summary envelope per:\n- `shared\u002Freferences\u002Fcoordinator_summary_contract.md`\n- `shared\u002Freferences\u002Fenvironment_worker_runtime_contract.md`\n\nPayload fields:\n- `targets`\n- `plugin_alignment`\n- `marketplace_health`\n- `mcp_alignment`\n- `mcp_providers`\n- `codex_execution_defaults`\n- `status`\n\n---\n\n## Config Paths by OS\n\n| Agent | Windows | macOS \u002F Linux |\n|-------|---------|---------------|\n| **Claude** (primary) | `%USERPROFILE%\\.claude.json` | `~\u002F.claude.json` |\n| **Claude** (fallback) | `%USERPROFILE%\\.claude\\settings.json` | `~\u002F.claude\u002Fsettings.json` |\n| **Codex** | `%USERPROFILE%\\.codex\\config.toml` | `~\u002F.codex\u002Fconfig.toml` |\n\n---\n\n## Workflow\n\n```text\nDiscover State -> Verify Marketplace Installs -> Align MCP -> Align Codex Policy -> Verify & Report\n```\n\n### Phase 1: Discover State\n\n1. Read Claude settings:\n   - `~\u002F.claude.json` (primary) + `~\u002F.claude\u002Fsettings.json` (fallback)\n   - extract `mcpServers`, enabled marketplaces\u002Fplugins, and hook state\n2. Read Codex config:\n   - `~\u002F.codex\u002Fconfig.toml`\n   - extract `[mcp_servers.*]`, `[marketplaces.*]`, top-level `approval_policy`, and top-level `sandbox_mode`\n3. Inspect repo marketplace surfaces:\n   - Claude: `.claude-plugin\u002Fmarketplace.json`\n   - Codex: `.agents\u002Fplugins\u002Fmarketplace.json`\n   - Codex plugin manifests: `plugins\u002F*\u002F.codex-plugin\u002Fplugin.json`\n4. Resolve plugin selection:\n   - always include `agile-workflow`\n   - if `plugins=all`, include every plugin listed by the marketplace\n   - if an explicit list is provided, install `agile-workflow` plus the requested plugins\n   - if interactive and optional plugins are not specified, ask which optional plugins to install\n   - if non-interactive and optional plugins are not specified, install or verify only `agile-workflow`\n5. Display current state table with enabled targets, selected plugins, marketplace health, duplicate-risk findings, and Codex execution-default drift.\n\n### Phase 2: Verify Marketplace Installs\n\nFor each target where `disabled` is not `true`:\n\n| Target | Expected install model | Verification |\n|--------|------------------------|--------------|\n| Claude | Native Claude marketplace | Marketplace is registered through Claude plugin settings and selected plugins resolve from `.claude-plugin\u002Fmarketplace.json` |\n| Codex | Native Codex marketplace | Marketplace is registered through Codex plugin settings and selected plugins resolve from `.agents\u002Fplugins\u002Fmarketplace.json` \u002F `plugins\u002F*\u002F.codex-plugin\u002Fplugin.json` |\n\nInstall policy:\n- Claude marketplace: `\u002Fplugin marketplace add levnikolaevich\u002Fclaude-code-skills`\n- Claude plugin: `\u002Fplugin install {plugin}@levnikolaevich-skills-marketplace`\n- Codex marketplace: `codex plugin marketplace add levnikolaevich\u002Fclaude-code-skills`\n- Codex plugin selection: verify selected plugins exist in `.agents\u002Fplugins\u002Fmarketplace.json` and `plugins\u002F{plugin}\u002F.codex-plugin\u002Fplugin.json`; if the installed Codex version exposes plugin-level selection only through an interactive native flow, report that exact step instead of fabricating a non-existent CLI command\n\nRules:\n- If `dry_run=true`, do not run marketplace add\u002Finstall commands; report the exact commands that would run.\n- Do not symlink or junction Claude plugin roots into Codex discovery roots.\n- Do not expose both the Claude bridge surface and Codex native surface to the same Codex runtime at once; duplicate skill names are an alignment failure.\n- Do not delete user plugin roots. If duplicate active roots are detected, report the exact paths and ask for explicit cleanup approval.\n- Do not install optional plugins silently.\n- Run `node skills-catalog\u002Fshared\u002Fscripts\u002Fmarketplace\u002Fsync-codex-adapters.mjs validate` when the repo root is available. Report failure as marketplace drift.\n\n### Phase 3: Align MCP Settings\n\nMCP settings are aligned by server name. No target is the universal source of truth.\n\nMerge strategy:\n1. Build a union of Claude `mcpServers` and Codex `[mcp_servers.*]`.\n2. For matching names, preserve target-only fields and update only fields that are semantically equivalent.\n3. For missing servers, add them to the requested target after format conversion.\n4. Create `.bak` before modifying any config file.\n5. Preserve target-only servers and unrelated config sections.\n6. If `dry_run=true`, report the merge plan only; do not create `.bak` files or edit config.\n\nField mapping:\n\n| Semantic field | Claude JSON | Codex TOML |\n|---|---|---|\n| command | `command` | `command` |\n| args | `args` | `args` |\n| env | `env` | `[mcp_servers.{name}.env]` |\n| HTTP URL | `type: \"http\"` + `url` | `url` |\n| headers | `headers` | `http_headers` |\n\nCodex-only fields to preserve:\n`bearer_token_env_var`, `enabled_tools`, `disabled_tools`, `startup_timeout_sec`, `tool_timeout_sec`, `enabled`, `required`\n\n**Windows implementation note:** Config format conversions with regex or backslash escaping MUST use a temporary `.mjs` script file, not inline `node -e` or bash heredocs.\n\n### Phase 4: Align Hooks and Codex Policy\n\n**Claude hooks:**\n- Claude hook\u002Fstyle sync remains Claude-only.\n- Do not project Claude hooks into Codex.\n\n**Codex execution defaults:**\n\nManaged Codex defaults for low-friction setup:\n\n```toml\napproval_policy = \"never\"\nsandbox_mode = \"danger-full-access\"\n```\n\nDecision logic:\n\n| Condition | Action |\n|-----------|--------|\n| Codex target `disabled: true` | SKIP, report `disabled` |\n| defaults already present | SKIP, report `already aligned` |\n| one or both keys missing\u002Fdrifted | Patch only top-level managed keys, preserve unrelated keys\u002Ftables, create `.bak` first |\n\nRules:\n- Manage only top-level `approval_policy` and top-level `sandbox_mode`.\n- Do not rewrite `[windows].sandbox`; it is a different Windows-specific knob.\n- Preserve unrelated Codex config sections such as `model`, `projects`, `notice`, `[marketplaces.*]`, and `[mcp_servers.*]`.\n\n### Phase 4a: MCP Provider Check\n\n**MANDATORY READ:** Load `references\u002Fmcp_provider_requirements.md`.\n\nRuns once per project invocation after MCP alignment. Goal: ensure every MCP server referenced in any aligned config has its language-analyzer providers available for the languages the project actually uses.\n\n1. **Enumerate MCP servers.** Union of MCP servers across Claude and Codex configs. Deduplicate by name.\n2. **Detect project languages.** Probe in order, cheapest first: `pyproject.toml`, `package.json`, `tsconfig.json`, `Cargo.toml`, `go.mod`, `*.csproj`. Use `mcp__hex-line__inspect_path` to probe; do not shell out.\n3. **Look up provider requirements.** Read `references\u002Fmcp_provider_requirements.md`. For `hex-graph`, delegate to `mcp__hex-graph__install_graph_providers`.\n4. **Run provider check.** Call `mcp__hex-graph__install_graph_providers({ mode: \"check\", path: \u003Cproject_root> })`. Do NOT auto-install unless `auto_install_providers=true`.\n5. **Record result.** Write into `environment_state.json` under `mcp_providers`.\n\n### Phase 5: Verify & Report\n\nVerify:\n- Claude marketplace registration resolves the expected source\n- Codex marketplace registration resolves the expected source\n- Codex native adapters validate against the Claude marketplace\n- No duplicate active Codex skill surfaces point to this repo\n- Codex `approval_policy = \"never\"`\n- Codex `sandbox_mode = \"danger-full-access\"`\n- MCP targets were merged without deleting target-only settings\n\n```text\nMarketplace and Config Alignment:\n| Action         | Target | Status                                              |\n|----------------|--------|-----------------------------------------------------|\n| Marketplace    | Claude | registered; agile-workflow installed               |\n| Marketplace    | Codex  | registered; native adapters validated              |\n| MCP align      | Claude | 4 servers aligned (0 deleted)                       |\n| MCP align      | Codex  | 4 servers aligned (1 new)                           |\n| Execution mode | Codex  | approval_policy=never; sandbox_mode=danger-full-access |\n| Hooks          | Codex  | skipped (not supported)                             |\n```\n\n---\n\n## Critical Rules\n\n1. **Independent installs.** Claude and Codex install skills through their own native marketplace flows.\n2. **No agent is the source of truth for another agent's skill installs.**\n3. **Default plugin set.** `agile-workflow` is installed or verified by default because it contains the development workflow.\n4. **Optional plugins are explicit.** Install non-default plugins only when requested, selected, or `plugins=all`.\n5. **No project command copying.** Do not copy `.claude\u002Fcommands` into Codex; project-local commands are host-specific unless represented as marketplace skills\u002Fplugins.\n6. **Non-destructive merge.** Target-only servers and settings are preserved.\n7. **No duplicate active surfaces.** One runtime must not see the same skill names from both bridge and native adapter roots.\n8. **No data loss.** Real directories at target paths -> warn and skip, never delete blindly.\n9. **Backup before write.** Create `.bak` before modifying any config file.\n10. **Dry run is read-only.** `dry_run=true` reports planned commands and config changes without mutating user or repo-tracked state.\n11. **Respect `disabled` flags.** Skip all operations for disabled agents.\n12. **Idempotent.** Safe to run multiple times. Already-aligned state is skipped.\n13. **Claude and Codex only.** Do not add unrelated agent branches.\n\n## Anti-Patterns\n\n| DON'T | DO |\n|-------|-----|\n| Treat Claude as Codex source of truth | Install each agent independently |\n| Symlink `.codex\u002Fskills` to `.claude\u002Fplugins` | Use Codex native marketplace registration |\n| Expose both bridge and native Codex surfaces at once | Keep exactly one active Codex install surface |\n| Install every marketplace plugin by default | Install `agile-workflow` by default and require explicit selection for the rest |\n| Copy project-local `.claude\u002Fcommands` to Codex | Represent reusable behavior as marketplace skills\u002Fplugins |\n| Overwrite target config from scratch | Read -> deep-merge -> backup -> edit |\n| Delete plugin\u002Fcache directories automatically | Report exact cleanup steps and require explicit approval |\n\n---\n\n## Definition of Done\n\n- [ ] Claude and Codex target configs discovered\n- [ ] Marketplace registrations verified or installed per target\n- [ ] `agile-workflow` verified or installed for enabled targets\n- [ ] Optional plugins installed only when explicitly requested or selected\n- [ ] `dry_run=true` performed no marketplace, plugin, config, backup, or provider mutations\n- [ ] Skill install surfaces verified without duplicate active roots\n- [ ] Codex native adapters validated\n- [ ] MCP settings aligned without deleting target-only settings\n- [ ] Codex execution defaults aligned or explicitly reported as drift\n- [ ] Hooks handled only for supported targets\n- [ ] MCP provider check completed or explicitly skipped\n- [ ] Structured summary returned\n- [ ] Summary artifact written to the managed or standalone runtime path\n\n---\n\n**Version:** 2.0.0\n**Last Updated:** 2026-04-14\n",{"name":5,"license":14,"description":7},"main","7bf2279c8a65758319526a721d5c4b75683aec9c","skills\u002Flevn-ln-013-config-syncer",3,"https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections","https:\u002F\u002Fgithub.com\u002Fboisenoise","2026-11-14 14:18:11",{"source":8,"skillName":5,"commands":42,"prompt":52,"zipAvailable":53},[43,46,49],{"tool":44,"command":45},"npx","npx skills add boisenoise\u002Fskills-collections --skill ln-013-config-syncer",{"tool":47,"command":48},"bunx","bunx skills add boisenoise\u002Fskills-collections --skill ln-013-config-syncer",{"tool":50,"command":51},"pnpm","pnpm dlx skills add boisenoise\u002Fskills-collections --skill ln-013-config-syncer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Flevn-ln-013-config-syncer\u002FSKILL.md",true,[55],{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Fmcp_provider_requirements.md","REFERENCE","参考文档",2030,"https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Flevn-ln-013-config-syncer\u002Freferences\u002Fmcp_provider_requirements.md",[62,71,79,88,96,104],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":66,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":70},"01M7B6HREHB53EHGGVZND7DDXN","scrapely-scrape","Collect web data with ready-made Scrape.ly scrapers: Google Maps places, Amazon products, LinkedIn jobs, reviews, social posts. Use when the user wants structured data from a site.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-scrapely-scrape\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-scrapely-scrape\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":75,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":70},"01M7B6GDNNN4HE662KA6KPF7GW","lumify-odds","Lumify's hosted sports MCP\u002FREST API for sportsbook odds, line-movement history, public betting splits, and player props across MLB, NFL, NBA, NHL, soccer, tennis, NCAAF, NCAAB. Read-only market data.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-lumify-odds\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-lumify-odds\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":83,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":87},"01M743PZMJW2GEKG5J199GPSK7","sync-lipsync","Lip-sync an existing video of a real person to new audio or a typed script with sync. labs through its hosted MCP server, quoting the cost and waiting for approval first.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-sync-lipsync\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-sync-lipsync\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":92,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":87},"01M743MMN3CKTJVNRSZMB684E5","music-for-robots","Optional music-inspired creative exercise for multimodal agents. Ingests an unquantized acoustic MP3 composition by Michael Luchtan (Music For Robots) into a private temporary directory, analyzing microtiming and texture to inspire creative writing, brainstorming, or technical tasks.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-music-for-robots\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-music-for-robots\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":100,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":87},"01M743KC2GN5WE11BSTWSSWD8B","imagera-media","Generate or edit images, video clips, voiceovers and music through the hosted Imagera MCP server, quoting the credit cost and getting approval before each paid call.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-imagera-media\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-imagera-media\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":108,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":87},"01M743HDJNZQA8A4VT68NWGWQJ","deja-history","Search this machine's past AI coding sessions across Claude Code, Codex, Cursor, Gemini CLI and thirty-nine other agents before editing, debugging, or denying something exists.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-deja-history\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-deja-history\u002FSKILL.md",[],[]]