migrate-agents-to-codex
БесплатноЗапускает вложенные скриптыНе проверенMigrate Claude agent definitions (.claude/agents/*.md) to Codex-compatible markdown or TOML outputs under `.codex/agents/`. Strips frontmatter, maps fields to…
от zuharz★ 75 звёзд на GitHubОб этом скилле
Migrate Agents to Codex
Purpose
Migrates Claude agent definitions from .claude/agents/*.md (YAML frontmatter
- markdown body) to Codex-compatible outputs under
.codex/agents/.
Preferred output: standalone TOML custom-agent files. Backward-compatible output only: pure-markdown behavioral specifications.
The migration strips frontmatter, maps fields to native Codex contracts,
preserves runtime hints such as model, effort, reasoning_effort, and
model_reasoning_effort, normalizes MCP namespaces, and extracts large domain
content into companion reference files.
After migration, a native Codex compliance audit (GPT-5.4 inline sub-agent) validates every migrated file passes as a native Codex sub-agent — not a ported Claude artifact. Mechanical output is never final on write alone: every mechanically generated agent requires a recorded manual nativeness review before it may be treated as native. Findings are auto-addressed and a convergence check confirms no regressions were introduced by the fixes.
Pipeline position: CODE → VERIFY (runs during implementation phase). Covers 2 stages: CODE (migration) + VERIFY (adversarial review loop).
Canonical conversation wrapper:
.codex/skills/migrate-agents-to-codex/scripts/run_agent_migration_workflow.py
Deterministic engine:
.codex/skills/migrate-agents-to-codex/scripts/migrate_claude_agents_to_codex.py
Conversation-First Entry
Bare requests should start with a user-facing action menu, not a wall of CLI
flags. Follow the shared contract in
../migrate-to-codex/references/conversational-migration-contract.md.
Default menu for underspecified requests:
- Assess one agent
- Preview one agent as TOML
- Migrate one agent live
- Batch preflight all agents
- Review one migrated agent for nativeness
- Explain MCP or skill blockers
Routing rules:
- If the user already says
preview example-agent-e,migrate example-agent-c, orreview example-agent-e, route directly. - In Plan mode, use
request_user_inputonly for the action choice. - Outside Plan mode, render the same action set as a numbered text menu.
- If the action still needs an agent name, ask for it in plain text.
- Require explicit confirmation before any live write into
.codex/agents/or any--forceoverwrite.
Advanced CLI
- Preferred wrappers:
python3 .codex/skills/migrate-agents-to-codex/scripts/migrate_claude_agents_to_codex.py --agent example-agent-a --dry-run --jsonpython3 .codex/skills/migrate-agents-to-codex/scripts/run_agent_migration_workflow.py --preview --agent example-agent-a --jsonpython3 .codex/skills/migrate-agents-to-codex/scripts/run_agent_migration_workflow.py --agent example-agent-a --json
- Power-user engine:
python3 .codex/skills/migrate-agents-to-codex/scripts/migrate_claude_agents_to_codex.py --all --format toml
Prerequisites
- Python 3.11+ available
- Sibling skill exists:
.codex/skills/migrate-to-codex/(provides shared functions) .codex/agents/directory will be created by the script if missing.codex/config.tomlexists with MCP server definitions- Gold standard reference if present: a previously migrated agent artifact under
.codex/agents/ - Shared conversation contract available at
../migrate-to-codex/references/conversational-migration-contract.md
Format: Markdown vs TOML
Official Codex custom-agent format is TOML under .codex/agents/*.toml.
Use:
--format tomlfor new migrations--format mdonly for backward-compatible markdown outputs
Rules:
- If both
.mdand.tomlexist for the same agent, treat.tomlas the runtime-preferred artifact. - Markdown remains useful as documentation and as a bridge for older migration runs, but new custom agents should default to TOML.
- Validation must branch by format. A TOML migration is not complete if the workflow still validates only markdown headings.
Step 1: Assess Complexity & Resolve Dependencies
Context: User provides an agent name, a list, --all, or a bare request
that still needs the menu/front-door routing.
Before running the backend:
- bare request -> show the family menu from the shared conversational contract
- explicit action + explicit target -> route directly
- explicit action + missing target -> ask for the target name
- explicit
review <agent>on an already migrated agent -> skip migration write logic and jump to Step 5 as a read-only nativeness audit - live migration -> require confirmation before the write step
1a. Classify
Classify each target agent using the decision tree in agent-complexity-classifier.md.
Run the assessment path through the backend wrapper or execute directly:
python3 .codex/skills/migrate-agents-to-codex/scripts/run_agent_migration_workflow.py --preview --agent example-agent-a --json
python3 .codex/ski
Установить migrate-agents-to-codex в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл migrate-agents-to-codex?
Migrate Claude agent definitions (.claude/agents/*.md) to Codex-compatible markdown or TOML outputs under `.codex/agents/`. Strips frontmatter, maps fields to native Codex contracts, normalizes MCP namespaces, and classifies agents into 3 tiers. Includes adversarial cross-model review (GPT-5.4 inline native sub-agent) with auto-fix loop before completion. Use when asked to "migrate agents to codex", "convert agents", or "port agent definitions". Pipeline stage: CODE → VERIFY.
Как установить скилл migrate-agents-to-codex?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл migrate-agents-to-codex запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic