Agent skill

Migrate To Codex

by Haohao-end in Haohao-end/openagent

Migrate supported instruction files, skills, agents, and MCP config into Codex project and global files.

Apache-2.0Auto-check passedAgent Workflows

Install Migrate To Codex

skills CLI
$ npx skills add Haohao-end/openagent --skill migrate-to-codex -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Haohao-end/openagent migrate-to-codex --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Haohao-end/openagent.git skills-src && mkdir -p .claude/skills && cp -r skills-src/api/internal/core/skills/catalog/migrate-to-codex .claude/skills/migrate-to-codex && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
migrate-to-codex
GitHub stars
791
Used in
1 other repo
Token cost
~2k tokens
SKILL.md length
943 words
Files
20 (incl. scripts)
Skills in repo
6
Repo updated
First seen
Licence
Apache-2.0

At a glance

Migrate supported instruction files, skills, agents, and MCP config into Codex project and global files.

  • Works in 10 steps: Start by using Codex's built-in… → Read references/differences.md (and… → Scan and inspect before writing → …
  • Tasks that involve MCP servers
  • SKILL.md covers Autonomy, Migration Order, Self-Healing Loop and Commands
  • Runs Python scripts from its folder; calls codex

What it does

Migrate To Codex is an agent skill from Haohao-end/openagent. Migrate supported instruction files, skills, agents, and MCP config into Codex project and global files.

Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 23 other files, including scripts (for example `agents/openai.yaml`, `manifest.yaml` and `scripts/cli.py`).

It sits in Agent Workflows, covering MCP servers. It works with Model Context Protocol. The repository describes itself as: What if OpenAI Deep Research and Dify were one platform? OpenAgent — harness architecture for rapidly building vertical AI agents, with deep reasoning loops, visual workflows… The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve MCP servers

Example prompts

  • “/migrate-to-codex”

Requirements

  • Python 3

Workflow steps

10 steps, taken from the first numbered list in SKILL.md.

  1. Start by using Codex's built-in TODO/task list tool. Do not create MIGRATION_TODOS.md or any TODO file unless the user explicitly asks…
  2. Read references/differences.md (and refresh Codex docs if its Docs last checked date is old).
  3. Scan and inspect before writing
  4. Convert surfaces in the same order the CLI uses
  5. Dry-run, then write the selected target. Use --replace only when orphan generated skills or agents should be deleted.
  6. Inspect the terminal output and .codex/migrate-to-codex-report.txt after real runs.
  7. Review generated artifacts in this order: AGENTS.md, .agents/skills/, .codex/config.toml, .codex/hooks.json, .codex/agents/, then…
  8. Run --validate-target against each target after edits.
  9. Re-run checks and --dry-run after edits.
  10. Return the final migration report as one markdown table per scope that has rows. The tables cover only the non-native follow-up migration…

What it can do on your machine

Read from SKILL.md and the folder at commit 4013ab2. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 13 files in scripts/ (Python, from the files we listed), which the agent can run.

    Shell commands in SKILL.md call:

    • codex

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Migrate To Codex loads about 2k tokens when it runs. Until then it costs about 30 tokens; SKILL.md has 943 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~30
When it runs · the whole SKILL.md, loaded when a task matches
~2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from Haohao-end/openagent at commit 4013ab2, republished under its Apache-2.0 licence (© Haohao-end). 943 words, ~1,982 tokens.

Download SKILL.mdSave it as .claude/skills/migrate-to-codex/SKILL.md (or your agent's skills folder). This skill also uses 19 other files; get the full folder from GitHub.
name
migrate-to-codex
description
Migrate supported instruction files, skills, agents, and MCP config into Codex project and global files.

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:

  1. Start by using Codex's built-in TODO/task list tool. Do not create MIGRATION_TODOS.md or any TODO file unless the user explicitly asks. The TODO list input has a plan array whose items each have step and status; use statuses pending, in_progress, and completed. Make the TODOs specific to the selected artifacts. Before finishing, update the TODO list so every finished step is marked completed and no step remains in_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.toml MCP servers
    • Inspect .claude/settings.json hooks → .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
  2. Read references/differences.md (and refresh Codex docs if its Docs last checked date is old).

  3. Scan and inspect before writing:

    • --scan-only lists active and inactive source surfaces.
    • --plan prints staged Codex artifact paths and report rows.
    • --doctor summarizes readiness, manual-review work, and validation risks.
  4. Convert surfaces in the same order the CLI uses:

    • instructions: CLAUDE.md / AGENTS.md to AGENTS.md
    • plugins: report Claude plugin trees and marketplaces as manual migration work
    • hooks: rewrite supported Claude hooks into .codex/hooks.json and enable [features].codex_hooks = true
    • skills and commands: write Codex skills under .agents/skills/
    • config: write .codex/config.toml from Claude model/sandbox settings and MCP servers, including personality = "friendly" when config is generated
    • subagents: write Codex custom agents under .codex/agents/
  5. Dry-run, then write the selected target. Use --replace only when orphan generated skills or agents should be deleted.

  6. Inspect the terminal output and .codex/migrate-to-codex-report.txt after real runs.

  7. Review generated artifacts in this order: AGENTS.md, .agents/skills/, .codex/config.toml, .codex/hooks.json, .codex/agents/, then report-only plugin items.

  8. Run --validate-target against each target after edits.

  9. Re-run checks and --dry-run after edits.

  10. 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 use Current Project as the heading. Do not add prose before or after the table output.

    Use exactly these columns:

    northstar-support-portal

    StatusItemNotes
    AddedSlash command pr-reviewConverted into a Codex skill
    AddedSubagent release-leadAdded as a Codex subagent
    Check before usingHook PreToolUseConverted, but some Claude hook behavior differs in Codex
    Not AddedHook NotificationCodex does not have an equivalent notification hook
    Not AddedPlugin team-macrosPlugin needs manual setup

    Status must be Added, Check before using, or Not Added. Use Added when a Codex-facing artifact was created or changed and needs no special review. Use Check before using when a Codex-facing artifact was created or changed but the migration changed semantics, inferred behavior, preserved tool rules as guidance, or dropped unsupported behavior. Use Not Added when a source artifact was detected but no Codex-facing artifact was created. Item combines the artifact type and concrete item name in one cell. Artifact type must be singular: Skill, Slash command, Subagent, MCP, Hook, or Plugin. Wrap the artifact type in inline code; write the item name as plain text after it. Notes is always required; never leave it empty. Keep notes short, plain, and literal. Avoid internal implementation terms such as runtime expansion. Prefer phrases like Converted into a Codex skill, Added as a Codex subagent, Added to Codex config, Converted into a Codex hook, Converted, but some Claude hook behavior differs in Codex, Codex does not have an equivalent notification hook, Plugin needs manual setup, or Plugin marketplace needs manual setup.

Show full SKILL.md (159 more words)Show less

Self-Healing Loop

Keep looping until the selected migration is complete:

  1. Run --plan or --doctor.
  2. Run the migration with --dry-run.
  3. Run the migration for real.
  4. Fix every generated ## MANUAL MIGRATION REQUIRED block and every manual_fix_required or skipped report row that can be resolved inside Codex artifacts.
  5. Run --validate-target.
  6. Re-run the migrator and validator until the report and validator have no actionable generated-artifact fixes left.

Do not edit source Claude Code files, unrelated project code, secrets, or another repository during this loop. If a report row requires source-provider changes or product judgment, leave the generated Codex artifact with clear manual guidance instead of changing the source.

Commands

Choose the migrator command.

bash
MIGRATE_TO_CODEX='python3 .codex/skills/migrate-to-codex/scripts/migrate-to-codex.py'

Inspect the migration before writing.

bash
$MIGRATE_TO_CODEX --source ~/.claude/ --scan-only
$MIGRATE_TO_CODEX --source ~/.claude/ --target ~/.codex/ --plan
$MIGRATE_TO_CODEX --source ~/.claude/ --target ~/.codex/ --doctor

Dry-run, then run without --dry-run, for global and project.

bash
$MIGRATE_TO_CODEX --source ~/.claude/ --target ~/.codex/ --dry-run
$MIGRATE_TO_CODEX --source ~/.claude/ --target ~/.codex/
$MIGRATE_TO_CODEX --source ./.claude/ --target ./.codex/ --dry-run
$MIGRATE_TO_CODEX --source ./.claude/ --target ./.codex/

Run the post-migration validator against each target after edits.

bash
$MIGRATE_TO_CODEX --validate-target ~/.codex/
$MIGRATE_TO_CODEX --validate-target ./.codex/

Run $MIGRATE_TO_CODEX --help for flags (--scan-only, --plan, --doctor, --validate-target, defaults, and so on). Deep tables and more links are in references/differences.md.

© Haohao-end, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 19 other files (scripts) in api/internal/core/skills/catalog/migrate-to-codex of Haohao-end/openagent.

  • SKILL.md
  • LICENSE.txt
  • agents/openai.yaml
  • manifest.yaml
  • scripts/cli.py
  • scripts/migrate-to-codex.py
  • scripts/migrate/__init__.py
  • scripts/migrate/agents.py
  • scripts/migrate/codex_config.py
  • scripts/migrate/common.py
  • scripts/migrate/hooks.py
  • scripts/migrate/instructions.py
  • scripts/migrate/mcps.py
  • scripts/migrate/plugins.py
  • scripts/migrate/settings.py
  • scripts/migrate/skills.py
  • scripts/utils/__init__.py
  • … and 3 more

Open the folder on GitHubat commit 4013ab2

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in Haohao-end/openagent, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Migrate To Codex next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Migrate To Codex compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Migrate To Codex this skillHaohao-end/openagent7911 repos~2kAutomated safety check: PassApache-2.0
Workflow Schema Tuningbreaking-brake/cc-wf-studio5.4k—~1.3kAutomated safety check: PassCustom licence
Documentation Serverandrea9293/mcp-documentation-server343—~2.3kAutomated safety check: PassMIT
Clawmemyoloshii/ClawMem210—~7.5kAutomated safety check: PassMIT
AI Bomcdxgen/cdxgen1.1k—~2.5kAutomated safety check: PassApache-2.0
ComfyComfy-Org/comfy-skills222—~1.4kAutomated safety check: PassMIT

Similar skills

  • Workflow Schema Tuning

    breaking-brake/cc-wf-studio

    Guides edits to cc-wf-studio's workflow schema so AI agents generate better workflows, treating schema text as prompt engineering rather than validation.

    5.4k GitHub stars~1.3k tokensUpdated 3 days ago
    Agent WorkflowsAuto-check passed
  • Documentation Server

    andrea9293/mcp-documentation-server

    A skill your agent uses when you need to store, retrieve, search, or manage documents in a local knowledge base with semantic search and hybrid (vector + full-text) retrieval.

    343 GitHub stars~2.3k tokensUpdated 1 mo ago
    Agent WorkflowsAuto-check passed
  • Clawmem

    yoloshii/ClawMem

    ClawMem operational reference for agents at query time — the 3-rule escalation gate, MCP tool routing, the 4 query-optimization levers, pipeline behavior (query vs intentsearch), composite scoring…

    210 GitHub stars~7.5k tokensUpdated 4 days ago
    Agent WorkflowsAuto-check passed
  • AI Bom

    cdxgen/cdxgen

    Generates AI-BOM, MCP inventory, AI skill inventory, and AI authorship provenance documents with cdxgen, cataloging models, inference services, Hugging Face purls, MCP servers and their…

    1.1k GitHub stars~2.5k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Comfy

    Comfy-Org/comfy-skills

    Generate images, video, audio, and 3D with Comfy Cloud — search hundreds of models and workflow templates, run custom ComfyUI workflows, and manage generation jobs through the hosted Comfy Cloud MCP…

    222 GitHub stars~1.4k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Harness Optimizer

    A-EVO-Lab/a-evolve

    Optimize an AI agent's harness for MCP-Atlas benchmark. An agent skill from A-EVO-Lab/a-evolve.

    809 GitHub stars~982 tokensUpdated 1 mo ago
    Agent WorkflowsAuto-check passed

More from Haohao-end/openagent

  • Chatgpt Apps

    Haohao-end/openagent

    Build, scaffold, refactor, and troubleshoot ChatGPT Apps SDK applications that combine an MCP server and widget UI.

    791 GitHub starsUsed in 1 repo~4.9k tokens
    Auto-check passed
  • Openai Docs

    Haohao-end/openagent

    A skill your agent uses when the user asks how to build with OpenAI products or APIs and needs up-to-date official documentation with citations, help choosing the latest model for a use case, or…

    791 GitHub stars~1.7k tokensUpdated 2 mo ago
    Auto-check passed
  • Playwright Interactive

    Haohao-end/openagent

    Persistent browser and Electron interaction through jsrepl for fast iterative UI debugging.

    791 GitHub starsUsed in 1 repo~7.9k tokens
    Auto-check passed
  • Creative

    Haohao-end/openagent

    A skill your agent uses when the user wants a less default, more original solution for code, design, writing, naming, architecture, debugging, or strategy, especially when progress is stuck.

    791 GitHub stars~230 tokensUpdated 2 mo ago
    Auto-check passed
  • Frontend Design

    Haohao-end/openagent

    A skill your agent uses when the user wants a distinctive, production-ready frontend interface with clear visual direction, strong hierarchy, and polished interaction details.

    791 GitHub stars~270 tokensUpdated 2 mo ago
    Auto-check passed

Questions about Migrate To Codex

What does Migrate To Codex do?

Migrate supported instruction files, skills, agents, and MCP config into Codex project and global files. Migrate To Codex is an agent skill from Haohao-end/openagent. Migrate supported instruction files, skills, agents, and MCP config into Codex project and global files.

When should I use Migrate To Codex?

Migrate To Codex fits situations like: tasks that involve MCP servers.

How do I install Migrate To Codex in Claude Code?

Run `npx skills add Haohao-end/openagent --skill migrate-to-codex -a claude-code`. Or copy the skill folder (api/internal/core/skills/catalog/migrate-to-codex in Haohao-end/openagent) into .claude/skills/migrate-to-codex in your project. Claude Code loads it when a task matches its description.

How do I install Migrate To Codex in Codex?

Run `npx skills add Haohao-end/openagent --skill migrate-to-codex -a codex`. Or copy the skill folder (api/internal/core/skills/catalog/migrate-to-codex in Haohao-end/openagent) into .agents/skills/migrate-to-codex in your project. Codex loads it when a task matches its description.

Can I use Migrate To Codex in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Haohao-end/openagent --skill migrate-to-codex -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/migrate-to-codex, .gemini/skills/migrate-to-codex, .github/skills/migrate-to-codex and .opencode/skills/migrate-to-codex in your project.

What does Migrate To Codex need to run?

Going by SKILL.md and its folder, Migrate To Codex needs Python for the scripts in its folder and the command-line tools its instructions call (codex). Our summary lists: Python 3.

Does Migrate To Codex access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Migrate To Codex safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Migrate To Codex use?

Migrate To Codex is published under the Apache-2.0 licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Migrate To Codex use?

About 2k tokens (SKILL.md is roughly 7.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Migrate To Codex?

Skills that share tags, products or a category with Migrate To Codex: Workflow Schema Tuning (breaking-brake/cc-wf-studio, 5.4k stars), Documentation Server (andrea9293/mcp-documentation-server, 343 stars), Clawmem (yoloshii/ClawMem, 210 stars) and AI Bom (cdxgen/cdxgen, 1.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Migrate To Codex?

Haohao-end (a GitHub user) maintains it in Haohao-end/openagent, which has 791 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on July 17, 2026.

Source: Haohao-end/openagent on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.