The agent converts Claude Code skills to Codex-compatible format, validates cross-platform compatibility, and builds skill registry manifests. It generates agents/openai.yaml configurations from SKILL.md frontmatter, runs up to 21 compatibility checks across both platforms, and produces skills-index.json for discovery systems.
agents/openai.yaml and copying scripts/references/assets.skills-index.json manifest for registries, discovery, and version pinning.scripts/, references/, assets/ tree.agents/openai.yaml.skills-index.json for a skill library.Before converting or building, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
codex_skill_converter.py vs cross_platform_validator.py vs skills_index_builder.py).--strict and the pass/fail gate).Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
# 1. Convert a skill. Without --output-dir it writes agents/openai.yaml into the source skill.
python scripts/codex_skill_converter.py ../code-tour/SKILL.md --output-dir /tmp/code-tour-codex
# 2. Validate both sides: Claude frontmatter, openai.yaml structure, encoding, naming, size
python scripts/cross_platform_validator.py /tmp/code-tour-codex # 21/21, exit 0
python scripts/cross_platform_validator.py ../code-tour # no openai.yaml yet, exit 1
# 3. Build a skills-index.json for a directory of skills
python scripts/skills_index_builder.py .. --output /tmp/skills-index.json --format human
| Tool | Purpose | Key flags |
|---|---|---|
codex_skill_converter.py | Generate agents/openai.yaml from SKILL.md frontmatter and copy scripts/references/assets | --output-dir DIR, --json |
cross_platform_validator.py | Up to 21 checks (13 without agents/openai.yaml) across Claude Code, Codex and shared rules | --strict (warnings fail), --json |
skills_index_builder.py | Scan skill folders into a skills-index.json manifest | --output FILE, `--format json\ |
The generated agents/openai.yaml leaves model unset so the skill inherits the user's Codex CLI
default; pin a model only when the skill truly needs one, using an id from OpenAI's current list.
Codex CLI flags and config file names have changed between releases, so confirm commands fromreferences/codex-cli-guide.md with codex --help on the installed version.
Exit codes. 0 converted / compatible / index written; 1 conversion failed or the skill is
not compatible (with --strict, warnings count); 2 the SKILL.md or directory does not exist.
Done when: the validator passes on the converted skill, a Codex session picks the skill up and
runs one of its scripts, and the Claude Code copy still passes its own lint.
Mistake: Keeping a Claude copy and a Codex copy of the same skill and editing them separately.
Why it happens: Converting once feels simpler than wiring a sync.
Instead: Keep one scripts/, references/ and assets/ tree and regenerate agents/openai.yaml from SKILL.md in CI or a hook.
Mistake: Hard-coding a model name in every openai.yaml.
Why it happens: Templates often ship with one filled in.
Instead: Omit model and inherit the CLI default; pinned ids go stale and break when a model is retired.
Mistake: Shipping the generated openai.yaml without reading it.
Why it happens: The converter prints "Conversion complete".
Instead: Read the instructions and tool list it extracted, then run the validator and one real Codex invocation.
scripts/codex_skill_converter.py, scripts/cross_platform_validator.py, scripts/skills_index_builder.py — the three CLIs above.assets/openai-yaml-template.yaml — annotated agents/openai.yaml template.references/ — workflows, configuration and distribution, Codex CLI guide, cross-platform authoring, best practices.Load the reference that matches the task — keep this file lean and pull detail on demand:
agents/openai.yaml structure, discovery/locations, invocation patterns, cross-platform patterns, frontmatter compatibility, install/versioning, and sync/CI/CD/GitHub distribution. Read when configuring openai.yaml or distributing a library.This skill covers:
agents/openai.yamlskills-index.json) for discovery and distributionThis skill does NOT cover:
.cursorrules, .windsurfrules)