Matt Pocock's reference for writing documents agents read, such as skills, AGENTS.md and CLAUDE.md: context pointers, the two loads, information hierarchy, completion criteria, leading words and pruning.
Migrate to Codex Skill
OpenAI's curated skill that moves a Claude Code setup to Codex: CLAUDE.md, skills, slash commands, subagents, hooks and MCP servers, converted with a bundled migrator, validated and reported item by item.
Install
Other ways to install
About
- Converts CLAUDE.md, skills, slash commands, subagents, hooks and MCP config to Codex files
- Scan, plan and doctor modes before anything is written
- Dry run, real run and --validate-target in a self-healing loop
- Never edits the source Claude Code files or secrets
- Preserves unrelated entries in an existing .codex/config.toml
- Final report table per scope: Added, Check before using, Not Added
- Works for a single project or the global ~/.claude to ~/.codex setup
Migrate to Codex is a curated skill in OpenAI's openai/skills repository for people switching a project, or their whole user configuration, from Claude Code to Codex. It wraps a bundled Python migrator and tells the agent how to run it end to end without stopping for confirmation at each step, while never editing the source Claude Code files (.claude/, ~/.claude/, .mcp.json, .claude.json), unrelated code or secrets.
The conversion follows a fixed order: instructions (CLAUDE.md or AGENTS.md into AGENTS.md), plugins (reported as manual work), hooks (rewritten into .codex/hooks.json with the codex_hooks feature enabled), skills and slash commands (written as Codex skills under .agents/skills/), config (model, sandbox settings and MCP servers into .codex/config.toml) and subagents (custom agents under .codex/agents/). Before writing, the migrator can --scan-only, --plan and --doctor; it then dry-runs, writes, and validates the target with --validate-target, and the skill loops until no fixable MANUAL MIGRATION REQUIRED block or report row is left. Existing, unrelated Codex config entries are preserved.
The agent tracks the work in Codex's built-in TODO tool and finishes with a fixed-format table per scope: each item marked Added, Check before using (converted, but behaviour differs, such as some hooks) or Not Added (no Codex equivalent, or a plugin that needs manual setup). A reference file compares the two tools and records when the Codex docs were last checked. The skill is written for Codex itself, and it is useful mainly to teams with an existing Claude Code setup.
SKILL.md
The instructions your agent loads, as published by OpenAI.
Related Skills
See all Migrate to Codex alternativesSkill: Big Arrow on the Screen
by Franz Enzenhofer
macOS CLI plus agent skill that lets Claude Code or Codex draw a big click-through arrow and sign on your screen to show you exactly what to click.
Skill: Self-Learning
by kulaxyz
A meta-skill that spots the moment your agent has just earned a hard-won golden path and writes it down as a reusable skill, so the next session starts already knowing the route.
Skill: Oil UI
by oil-oil
Interface-design skill that explores several distinct visual directions side by side, then refines the chosen one against real screenshots.