migrate-to-codex
What it does
This skill moves an existing Claude Code setup into Codex, including instruction files, skills, agents and MCP settings. It is for people switching from Claude Code to Codex or using both.
When to use it
- ✓When you want to bring your Claude Code instructions and skills into Codex.
- ✓When you have MCP server settings in Claude Code that you want to use in Codex.
- ✓When you want to check what migrated correctly after moving to Codex.
Skill link
https://github.com/openai/skills/blob/main/skills/.curated/migrate-to-codex/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Please move my Claude Code instructions, skills and MCP settings into Codex for this project.”
5 new skills a week. 1 minute to read.
How it works
The agent runs the migration tool, reads its report, fixes the migrated Codex files and checks them again, leaving the original Claude Code files untouched.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Migrate to Codex
Autonomy
Keep going until the selected migration is completely done: run the migrator, inspect the report, fix migrated Codex instructions/skills/agents/MCP config, and re-run checks without stopping to ask for confirmation of the next step. If the user has selected a target, do not ask before creating, editing, replacing, or deleting generated Codex artifacts in that target (AGENTS.md, .codex/, .agents/, or ~/.codex/). Preserve unrelated existing Codex config entries in .codex/config.toml or ~/.codex/config.toml, such as notify, projects, marketplaces, or unrelated MCP servers; do not ask about them unless they fail validation or directly conflict with the migration. Do not edit source Claude Code files (.claude/, ~/.claude/, .mcp.json, or .claude.json), unrelated project code, secrets, or another repository.
Migration Order
Run the migration in this order for each selected global or project source:
Start by using Codex's built-in TODO/task list tool. Do not create
MIGRATION_TODOS.mdor any TODO file unless the user explicitly asks. The TODO list input has aplanarray whose items each havestepandstatus; use statusespending,in_progress, andcompleted. Make the TODOs specific to the selected artifacts. Before finishing, update the TODO list so every finished step is markedcompletedand no step remainsin_progress. Use literal source → Codex target labels, for example:- Inspect
.claude/commands→ Codex skills/prompts - Inspect
.claude/agents→.codex/agents - Inspect
.mcp.json→.codex/config.tomlMCP servers - Inspect
.claude/settings.jsonhooks →.codex/hooks.json - Migrate safe selected artifacts → Codex files
- Validate generated
.codex/config.toml - Validate generated
.codex/agents - Report migrated artifacts and manual-review items
- Inspect
Read
references/differences.md(and refresh Codex docs if itsDocs last checkeddate is old).Scan and inspect before writing:
--scan-onlylists active and inactive source surfaces.--planprints staged Codex artifact paths and report rows.--doctorsummarizes readiness, manual-review work, and validation risks.
Convert surfaces in the same order the CLI uses:
- instructions:
CLAUDE.md/AGENTS.mdtoAGENTS.md - plugins: report Claude plugin trees and marketplaces as manual migration work
- hooks: rewrite supported Claude hooks into
.codex/hooks.jsonand enable[features].codex_hooks = true - skills and commands: write Codex skills under
.agents/skills/ - config: write
.codex/config.tomlfrom Claude model/sandbox settings and MCP servers, includingpersonality = "friendly"when config is generated - subagents: write Codex custom agents under
.codex/agents/
- instructions:
Dry-run, then write the selected target. Use
--replaceonly when orphan generated skills or agents should be deleted.Inspect the terminal output and
.codex/migrate-to-codex-report.txtafter real runs.Review generated artifacts in this order:
AGENTS.md,.agents/skills/,.codex/config.toml,.codex/hooks.json,.codex/agents/, then report-only plugin items.Run
--validate-targetagainst each target after edits.Re-run checks and
--dry-runafter edits.Return the final migration report as one markdown table per scope that has rows. The tables cover only the non-native follow-up migration work you performed, such as skills created from slash commands, subagents, MCP servers, hooks, unsupported/local plugin notes, and manual-review caveats. Include programmatic native import rows for config, instructions, skills, or supported plugins only if you personally migrated them in this follow-up run.
If only one scope has rows, render only the table with no heading. If multiple scopes have rows, render one heading before each table. Use
**User Config**for user-scope rows. For project-scope rows, use the actual project folder name as the heading, for example**northstar-support-portal**; do not useCurrent Projectas the heading. Do not add prose before or after the table output.Use exactly these columns:
northstar-support-portal
Status Item Notes AddedSlash commandpr-reviewConverted into a Codex skill AddedSubagentrelease-leadAdded as a Codex subagent Check before usingHookPreToolUseConverte
FAQ
Will it change my Claude Code files?
No. The skill says it does not edit source Claude Code files.
Will it erase my existing Codex settings?
No. It keeps unrelated existing entries in the Codex config file, such as notify or projects settings.
Where do the Codex files go?
They go into the project's AGENTS.md and Codex folders, or into the global Codex folder for personal setup.
Details
Original description by the author
Migrate supported instruction files, skills, agents, and MCP config into Codex project and global files.
repo: openai/skills
Popularity
- GitHub stars
- 28k
- Ranking position
- #9857
- License
- —
- Updated
- 10/28/2026
Comments
- …
More skills from this repository
aspnet-core
28kHelps your agent build, review or upgrade ASP.NET Core web apps, choosing the right app type and following current Microsoft guidance for .NET.
chatgpt-apps
28kHelps your agent build a ChatGPT app that pairs an MCP server with a widget UI, covering tool design, UI resources, metadata and local setup.
cli-creator
28kHelps your agent turn API docs, a spec or existing scripts into a reusable command-line tool that runs from any folder and returns stable JSON.
define-goal
28kHelps your agent turn a vague intention into a clear, measurable goal with success criteria, scope and a stop condition before work begins.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.