sync-codex-parity
Keep Kuraka's Codex integration behaviorally aligned after changes to Claude-source agents, skills, commands, rules, model routing, mount logic, or export logic. Use when adapting new Kuraka framework
Files3
View on GitHubSKILL.mdskills/sync-codex-parity/SKILL.md
GitHubSync Codex Parity
Work from the Kuraka vault. If this skill is loaded from a consumer project,
locate the vault through KURAKA_VAULT before changing anything. Treat
agents/, skills/, commands/, rules/, MODEL-ROUTING.yaml, and
kuraka-artifacts/ as source material; do not fork or edit them merely to
satisfy a Codex limitation.
Read references/parity-contract.md before editing. Use
$KURAKA_VAULT/CODEX-KURAKA-PARITY-ANALYSIS.md for the complete rationale and
current gaps when it is available.
Workflow
- Inspect
git status --shortand the source diff. Preserve unrelated worktree changes and identify whether the change affects agents, skills, commands, rules, routing, artifacts, or lifecycle scripts. - Trace the source through
kuraka-mount.pyandkuraka-export.py. Change the target-specific Codex transformation, not the Claude or Antigravity branch. - Map the changed feature to a native Codex surface. Render agents as TOML with
developer_instructions; keep reusable workflows and user commands asSKILL.mddirectories; useAGENTS.mdfor project instructions. Codex entrypoints are$nameor/skills, not project-defined/namealiases. Do not copy Claude-only metadata or command syntax as if Codex understood it. - Preserve orchestration semantics explicitly. Describe phase gates, required artifacts, handoffs, validation, escalation, and model intent in generated Codex instructions. Do not rely on filename copying to retain this behavior.
- Test a fresh temporary mount. Confirm expected Codex files exist, frontmatter and TOML parse, and the installed Codex CLI discovers at least one new skill or agent. Run the structural test harness where available.
- Compare fresh Claude and Antigravity mounts before and after the change. Their generated trees must be unchanged unless the user explicitly requested a cross-platform source change.
Required Checks
Run the relevant commands after implementation:
python3 -m py_compile kuraka-mount.py kuraka-export.py
python3 kuraka-apply-models.py --check
python3 kuraka-mount.py --help
bash validate-kuraka.sh <claude-fixture>
cd <fixture> && python3 -m pytest tests/kuraka/ -v
For Codex, mount into an empty fixture and inspect the generated tree. Use
codex debug prompt-input '<probe>' when available to verify runtime discovery;
do not assume a path is supported without checking the installed CLI.
Guardrails
- Keep Claude Code and Antigravity branches byte-stable for Codex-only work.
- Never overwrite target-project overrides, user
AGENTS.md, credentials, or project configuration. - Keep Codex backup/restore isolated from the Claude override store until a generated-destination manifest can identify Codex overrides safely.
- Keep model routing centralized in
MODEL-ROUTING.yaml. Codex agents inherit the active session model by default; route only their reasoning effort. Add a per-agentmodeloverride only after validating it in the target Codex integration. - Prefer deterministic transforms and structural tests over undocumented manual repair steps.
- Record an unresolved platform capability as a gap in the analysis instead of silently dropping workflow behavior.