Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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:

  1. Assess one agent
  2. Preview one agent as TOML
  3. Migrate one agent live
  4. Batch preflight all agents
  5. Review one migrated agent for nativeness
  6. Explain MCP or skill blockers

Routing rules:

  • If the user already says preview example-agent-e, migrate example-agent-c, or review example-agent-e, route directly.
  • In Plan mode, use request_user_input only 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 --force overwrite.

Advanced CLI

  • Preferred wrappers:
    • python3 .codex/skills/migrate-agents-to-codex/scripts/migrate_claude_agents_to_codex.py --agent example-agent-a --dry-run --json
    • python3 .codex/skills/migrate-agents-to-codex/scripts/run_agent_migration_workflow.py --preview --agent example-agent-a --json
    • python3 .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.toml exists 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 toml for new migrations
  • --format md only for backward-compatible markdown outputs

Rules:

  • If both .md and .toml exist for the same agent, treat .toml as 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
Полный SKILL.md на GitHub

Установить migrate-agents-to-codex в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/agent-complexity-classifier.mdreferences/agent-field-mapping.mdreferences/architectural-patterns.mdreferences/codebase-verification-prompt.mdreferences/codex-agent-template.mdreferences/legacy-subagent-roi.mdreferences/primitive-mapping.mdreferences/subagent-migration-guide.mdscripts/migrate_claude_agents_to_codex.pyscripts/run_agent_migration_workflow.py

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить migrate-agents-to-codex с