migrate-to-codex
Migrate Claude-era skills into native Codex skill artifacts with a preservation-first workflow. Also migrate project-local Claude slash commands and command…
от zuharz★ 75 звёзд на GitHub
Установить migrate-to-codex в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Migrate to Codex
Preserve the source workflow first. The goal is not to transliterate Claude primitives. The goal is to produce the Codex skill artifact that best preserves the source skill's behavior.
Conversation-First Entry
Bare or vague requests should not dump raw script flags immediately. Resolve the
request through the shared contract in
references/conversational-migration-contract.md.
Default menu for underspecified requests:
- Assess one skill
- Preview one skill
- Migrate one skill live
- Batch assess pending skills
- Review one migrated skill for nativeness
- Explain blockers and statuses
Routing rules:
- If the user already says
assess <skill>,preview <skill>, ormigrate <skill>, orreview <skill>, route directly. - In Plan mode, use
request_user_inputfor the action choice only. - Outside Plan mode, render the same choices as a numbered text menu.
- If the action needs a skill name and the user did not provide one, ask for it in plain text.
- Require explicit confirmation before any live write into
.codex/skills/.
Advanced CLI
- Preferred wrappers:
python3 .codex/skills/migrate-to-codex/scripts/migration_doctor.py --skill example-skill --jsonpython3 .codex/skills/migrate-to-codex/scripts/run_migration_workflow.py --preview --skill example-url-validator --jsonpython3 .codex/skills/migrate-to-codex/scripts/run_migration_workflow.py --skill example-url-validator --json
- Power-user engine:
python3 .codex/skills/migrate-to-codex/scripts/migrate_claude_workflows_to_codex.py --analysis-only --json --skill example-skillpython3 .codex/skills/migrate-to-codex/scripts/migrate_claude_workflows_to_codex.py --skill example-url-validatorpython3 .codex/skills/migrate-to-codex/scripts/migrate_claude_workflows_to_codex.py --allpython3 .codex/skills/migrate-to-codex/scripts/migrate_claude_workflows_to_codex.py --all --dry-run --jsonpython3 .codex/skills/migrate-to-codex/scripts/migrate_claude_workflows_to_codex.py --analysis-only --json
Explicit Non-Goals
- Do not attempt to preserve inline Claude
Agent()/Task()semantics mechanically in this skill. - Do not migrate agents here. Route agent dependencies to
migrate-agents-to-codexat.codex/skills/migrate-agents-to-codex/SKILL.md. - Do not treat legacy
.codex/agents/*.mdimports as resolved runtime dependencies. Only.codex/agents/*.tomlcounts. - Do not treat command-derived skills or generated hook config as native/trusted output. They are compatibility artifacts that require manual review.
Sandbox Policy
Recommended mode: workspace-write
Rationale: this workflow creates skill files, updates repo-local documentation, and runs validation scripts. Infrastructure or deployment access is not needed.
Runtime Contract
- Codex callable MCP namespaces use underscore-normalized server names.
- Hard MUST / NEVER / ONLY constraints survive verbatim.
- Preserve the source workflow's control shape unless Codex lacks a required primitive.
- Preserve direct execution when Codex supports it. Only redesign into manager-to-subagent when the source truly depends on task/team semantics.
- Do not invent
spawn_agent,wait_agent,update_plan, or approval requirements unless the source workflow genuinely needs them. - User interaction is mode-dependent:
request_user_inputexists only in Plan mode; outside Plan mode rely on normal user messages or approval workflow. - File edits use
apply_patchwhen the workflow actually edits files. - Explicitly named Claude agents that exist under
.claude/agents/*.mdare hard runtime dependencies. Never substitute, downgrade, drop, or neutralize them during skill migration. If.codex/agents/<name>.tomlis missing, stop and route tomigrate-agents-to-codex. - Claude skill references are context-sensitive. Only operational uses are hard migration dependencies. Related-skills tables, troubleshooting notes, provenance/history, and redirected-skill markers are not blockers by themselves.
- For ambiguous skill mentions, the Python migrator extracts structured candidates and returns
MANUAL_REVIEW_REQUIRED. The interactive Codex skill then owns the read-only mini-auditor pass. If the auditor still cannot classify a mention confidently, keep the skill in manual-review state rather than auto-blocking or auto-migrating.
Reference Map
| Reference | Load when |
|---|---|
references/primitive-mapping.md |
You need authoritative primitive translation rules or sandbox inference |
references/embedded-agent-taxonomy.md |
The source skill embeds Claude Agent(...) or Task(...) sub-agent sites and you must distinguish inline slices from named agent dependencies |
references/complexity-classifier.md |
You need to decide Tier 1 vs Tier 2 vs Tier 3 |
references/codex-skill-template.md |
You are |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/architectural-patterns.md
- references/codex-skill-template.md
- references/complexity-classifier.md
- references/conversational-migration-contract.md
- references/embedded-agent-taxonomy.md
- references/primitive-mapping.md
- scripts/migrate_claude_workflows_to_codex.py
- scripts/migration_doctor.py
- scripts/run_migration_workflow.py
- scripts/validate_codex_workflow_names.py
FAQ
Что делает скилл migrate-to-codex?
Migrate Claude-era skills into native Codex skill artifacts with a preservation-first workflow. Also migrate project-local Claude slash commands and command hooks in batch mode as review-required Codex artifacts. Classify migration risk, preserve control shape, validate runtime-coupling leaks, and require a Codex nativeness audit before calling the result native. Use for "migrate skill to codex", "convert skill to codex", "port skills", or "codex compatibility". This skill does not migrate agents.
Как установить скилл migrate-to-codex?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл migrate-to-codex запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…