migrate-to-codex
できること
このスキルは、指示ファイル、スキル、エージェント、MCP設定を含む既存のClaude Code環境をCodexへ移します。Claude CodeからCodexに乗り換える人や、両方を使う人向けです。
使う場面
- ✓Claude Codeの指示やスキルを、Codexへ持ち込みたいとき。
- ✓Claude CodeにあるMCPサーバーの設定を、Codexでも使いたいとき。
- ✓Codexへ移行した後に、正しく移ったものを確認したいとき。
スキルのリンク
https://github.com/openai/skills/blob/main/skills/.curated/migrate-to-codex/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“このプロジェクトのClaude Codeの指示、スキル、MCP設定をCodexへ移行してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは移行ツールを実行し、その報告を読み、移行されたCodexのファイルを修正して再確認します。元のClaude Codeのファイルには手を加えません。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Migrate to Codex
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:
Start by using Codex's built-in TODO/task list tool. Do not create
MIGRATION_TODOS.mdor any TODO file unless the user explicitly asks. The TODO list input has aplanarray whose items each havestepandstatus; use statusespending,in_progress, andcompleted. Make the TODOs specific to the selected artifacts. Before finishing, update the TODO list so every finished step is markedcompletedand no step remainsin_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.tomlMCP servers - Inspect
.claude/settings.jsonhooks →.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
- Inspect
Read
references/differences.md(and refresh Codex docs if itsDocs last checkeddate is old).Scan and inspect before writing:
--scan-onlylists active and inactive source surfaces.--planprints staged Codex artifact paths and report rows.--doctorsummarizes readiness, manual-review work, and validation risks.
Convert surfaces in the same order the CLI uses:
- instructions:
CLAUDE.md/AGENTS.mdtoAGENTS.md - plugins: report Claude plugin trees and marketplaces as manual migration work
- hooks: rewrite supported Claude hooks into
.codex/hooks.jsonand enable[features].codex_hooks = true - skills and commands: write Codex skills under
.agents/skills/ - config: write
.codex/config.tomlfrom Claude model/sandbox settings and MCP servers, includingpersonality = "friendly"when config is generated - subagents: write Codex custom agents under
.codex/agents/
- instructions:
Dry-run, then write the selected target. Use
--replaceonly when orphan generated skills or agents should be deleted.Inspect the terminal output and
.codex/migrate-to-codex-report.txtafter real runs.Review generated artifacts in this order:
AGENTS.md,.agents/skills/,.codex/config.toml,.codex/hooks.json,.codex/agents/, then report-only plugin items.Run
--validate-targetagainst each target after edits.Re-run checks and
--dry-runafter edits.Return the final migration report as one markdown table per scope that has rows. The tables cover only the non-native follow-up migration work you performed, such as skills created from slash commands, subagents, MCP servers, hooks, unsupported/local plugin notes, and manual-review caveats. Include programmatic native import rows for config, instructions, skills, or supported plugins only if you personally migrated them in this follow-up run.
If only one scope has rows, render only the table with no heading. If multiple scopes have rows, render one heading before each table. Use
**User Config**for user-scope rows. For project-scope rows, use the actual project folder name as the heading, for example**northstar-support-portal**; do not useCurrent Projectas the heading. Do not add prose before or after the table output.Use exactly these columns:
northstar-support-portal
Status Item Notes AddedSlash commandpr-reviewConverted into a Codex skill AddedSubagentrelease-leadAdded as a Codex subagent Check before usingHookPreToolUseConverte
よくある質問
Claude Codeのファイルは変更されますか?
いいえ。このスキルは、移行元のClaude Codeのファイルを編集しないと明記しています。
既存のCodexの設定は消えますか?
いいえ。notifyやprojectsの設定など、無関係な既存の項目はCodexの設定ファイルに残します。
Codexのファイルはどこに置かれますか?
プロジェクトのAGENTS.mdとCodexのフォルダに置かれます。個人用の設定の場合は、グローバルのCodexフォルダに置かれます。
詳細
作者による元の説明
Migrate supported instruction files, skills, agents, and MCP config into Codex project and global files.
repo: openai/skills
人気
- GitHubのスター
- 28k
- ランキング
- #9857
- ライセンス
- —
- 更新日
- 2026/10/28
コメント
- …
このリポジトリの他のスキル
aspnet-core
28kASP.NET Coreのウェブアプリを作る、レビューする、更新する作業を支援します。適切なアプリの種類を選び、現在の.NETの公式ガイダンスに従います。
chatgpt-apps
28kMCPサーバーとウィジェットのUIを組み合わせたChatGPTアプリを作る手助けをします。ツール設計、UIリソース、メタデータ、ローカルの設定を扱います。
cli-creator
28kAPIのドキュメント、仕様、既存のスクリプトを、どのフォルダからでも実行でき、安定したJSONを返す再利用可能なコマンドラインツールにする手助けをします。
define-goal
28k曖昧な意図を、成功の基準、範囲、停止条件を含む明確で測定可能な目標に変える手助けをします。作業を始める前に行います。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。