migrate-agents-to-codex

Migrate Claude agent definitions to Codex TOML or markdown formats.

64|6|Updated Apr 15, 2026
One-click install
npx skills add https://github.com/zuharz/ccode-to-codex --skill migrate-agents-to-codex
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: migrate-agents-to-codex
Source: https://github.com/zuharz/ccode-to-codex/tree/main/.codex/skills/migrate-agents-to-codex
Command: npx skills add https://github.com/zuharz/ccode-to-codex --skill migrate-agents-to-codex

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires PyYAML, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Migrating Claude agent definitions to the Codex ecosystem requires manual field mapping, MCP namespace normalization, and compliance auditing that is error-prone and time-consuming when done by hand.

Core Features & Use Cases

  • Automated Migration: Converts .claude/agents/*.md files into native Codex TOML or backward-compatible markdown outputs under .codex/agents/.
  • Tier-Based Classification: Routes agents through Mechanical, Assisted, or Hand-Authored migration paths based on complexity signals like hooks, MCP tool count, and body length.
  • Adversarial Compliance Audit: Spawns an inline GPT-5.4 sub-agent to review migrated artifacts for nativeness, with an auto-fix loop and convergence check before completion.

Quick Start

Use the migrate-agents-to-codex skill to convert your Claude agent definitions into Codex-compatible TOML files under the .codex/agents directory.

Frequently Asked Questions about migrate-agents-to-codex

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate Claude agent definitions to Codex format?

Migrate Claude agent definitions to Codex format by converting YAML frontmatter and markdown bodies into native Codex custom-agent TOML or backward-compatible markdown files, applying field mapping and MCP namespace normalization automatically.

What is MCP namespace normalization when converting agents to Codex?

MCP namespace normalization standardizes MCP server references in Claude agent definitions so they validate correctly against project-level .codex/config.toml MCP server definitions during the Codex migration process.

How does tier-based classification work for Claude to Codex agent migration?

Tier-based classification routes Claude agents through Mechanical, Assisted, or Hand-Authored migration paths based on complexity signals like hooks, MCP tool count, and body length to determine the required conversion effort.

Does the Codex migration process validate agent definitions against project config?

Yes, the Codex migration process validates migrated agent definitions against project-level .codex/config.toml MCP server definitions to ensure runtime hints, skill dependencies, and delegation behavior are preserved correctly.

Can I preserve skill dependencies and runtime hints when moving agents to Codex?

Yes, migrating agents to Codex preserves runtime hints, skill dependencies, and delegation behavior by mapping YAML frontmatter fields directly into the native Codex TOML structure during conversion.

What are the limitations of automated Claude to Codex agent migration?

Automated Claude to Codex agent migration may require manual intervention for Hand-Authored tier agents with high complexity, using an adversarial compliance audit and auto-fix loop to converge on native Codex artifact quality.