openai/skills

migrate-to-codex

保留来源配置,逐项核对迁移后的Codex行为

  • SKILL.md 已保存
  • 中文用法已整理
  • 安装与运行未实测
先判断是否解决你的问题

migrate-to-codex 是什么?

把受支持的Claude Code指令、命令、Skills、代理、hooks与MCP配置迁移到Codex对应文件,并通过扫描、计划、dry-run、真实迁移和目标校验区分能自动转换与需要人工处理的内容。

中文说明由本站依据来源整理;英文原文保留在页面下方。

适合用在

  • 要把受支持的项目说明文件、Agent Skill、Agent 配置或 MCP 配置迁移到 Codex 对应文件与目录。

这些情况不适合

  • 把任意应用数据或不受支持的配置格式整体转换成 Codex 配置;来源只承诺迁移其列明的文件类型。
按客户端选择安装入口

怎么接入你的 Agent?

  1. 定位完整 Skill 目录

    打开本项目来源,核对 SKILL.md 及其引用的脚本和资料。

  2. 交给你正在用的 Agent

    在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。

  3. 确认识别,再做具体任务

    让 Agent 回报安装目录和识别到的名称 migrate-to-codex,然后按本页使用示例提供材料。

展开并复制给 Codex 的安装指令
发送给 Codex

安装并检查 migrate-to-codex

请在 Codex 的当前工作环境中安装并检查 migrate-to-codex 这个 Skill。

项目身份:openai/skills / migrate-to-codex
来源:https://github.com/openai/skills/blob/49f948faa9258a0c61caceaf225e179651397431/skills/.curated/migrate-to-codex/SKILL.md
已定位的源文件:skills/.curated/migrate-to-codex/SKILL.md

1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。
准备输入,再按步骤执行

装好以后,具体怎么用?

准备哪些材料

  • 明确选择用户级还是项目级源与目标目录,提供可读取的配置;先了解两客户端当前行为差异。

会得到什么

  • 所选Codex配置工件、迁移报告和无法等价转换项目的明确说明。

实际使用顺序

  1. 先读differences,再运行scan-only、plan和doctor,识别活动配置与需人工迁移的插件等项目。
  2. dry-run检查目标路径后迁移所选范围;源Claude文件不改,Codex已有无关配置保留,replace仅用于确实要清理的生成孤儿项。
  3. 逐项检查AGENTS、Skills、config、hooks和agents,修复能在目标端处理的问题;validate-target和再次dry-run后报告Added、Check before using、Not Added。
使用示例

从一个具体任务开始

本站根据源文件编写的使用示例,未在本站实际运行。示例中的文件由你提供。

安装并识别 Skill 后发送

复制一个具体任务

教学示例:用 migrate-to-codex 只扫描当前项目的.claude目录与.mcp.json,输出计划和doctor结果。目标暂定本项目.codex,不处理用户级配置。这次不真实迁移、不使用replace,不改源Claude文件;列出哪些hooks或插件不能等价转换。
预期结果

预期获得目标路径、兼容性和待人工处理项的只读计划;本站未运行迁移。

使用前先看这些限制

使用条件与边界

  • 名称相同不等于两客户端能力与语义等价;报告中的Check before using需要按实际差异复核。
  • 真实迁移会创建、更新,特定参数还可能删除生成的目标工件,需先选清目标范围。
针对这个 Skill 的疑问

常见问题

迁移会覆盖原来的Claude配置吗?

来源禁止修改源Claude文件;目标Codex配置会在选定范围内生成或修正,同时要求保留无关现有配置。

插件和hooks能全部自动搬过去吗?

不能保证。来源明确保留插件人工迁移及不支持hook等报告项,不能把报告存在当成已等价启用。

需要核对时再展开原文

来源原文与资料状态

源文件
已保存 SKILL.md,抓取于 2026-11-16T12:36:35.145Z
中文使用说明
已针对下方源文件版本整理用途、用法和常见问题
安装与任务测试
本站未执行安装或任务测试
来源复核
本页中文用法已对照保存版本的完整 SKILL.md 阅读整理
展开 SKILL.md 原文、章节与历史收录资料

skills/.curated/migrate-to-codex/SKILL.md · 抓取时间 2026-11-16T12:36:35.145Z

以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。

抓取成功不代表已完成安装或任务测试。

来源 description(原文)

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

查看源文件章节 / Source sections
  • 原文:Migrate to Codex
  • 原文:Autonomy
  • 原文:Migration Order
  • 原文:Self-Healing Loop
  • 原文:Commands
原文: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.

本段为节选,完整内容见源文件。

原文: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`.

文件 SHA256:145b7fe48360642cb7a42bad3a817f10833fa8a387ffcb4c2df8a47c01a832e2

仓库许可证记录:未提供;not-established,查看来源。

SKILL.md原文description · 2026-11-16T12:36:35.145Z

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

查看历史简介来源

历史收录数据

来源仓库openai/skills
Skill源路径skills/.curated/migrate-to-codex/SKILL.md

安装前请让使用的Agent先读取这个SKILL.md及其所在目录,确认依赖和所需权限。此页不生成未经来源验证的安装命令。

返回 Skills 目录,按任务继续筛选 · MCP与Skills教程与资源