Overview
Move a folder of Claude Code skills into a repository's .agents/skills directory and have Codex check each SKILL.md, flag parts tied to Claude Code, and propose fixes you review.
Problem or Objective
More in Coding and Code Review
AI Agents and Models
Tools and Integrations
- Tools
- Codex · Claude Code
- Prerequisites
- A ChatGPT plan that includes Codex, a Git repository, and an existing folder of skills with SKILL.md files.
How It Works
Create a branch in the repository where you want the skills, and copy each skill folder, with its SKILL.md and any scripts or reference files, into .agents/skills at the repository root. Open Codex in that repository and ask it to audit every skill: confirm the SKILL.md has a name and description, list references that only make sense in Claude Code, such as its slash commands, hooks, tool names or paths under .claude, and sort the skills into works as is, needs edits and cannot move. Ask it to propose edits for the middle group one skill at a time. Review each diff, then try a handful of the edited skills on real tasks in Codex and note any that still misbehave before merging the branch.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up Codex CLI.
- Connect the toolsConnect the tools this workflow relies on: Codex, Claude Code.
- Check the prerequisitesA ChatGPT plan that includes Codex, a Git repository, and an existing folder of skills with SKILL.md files.
- Gather your detailsCollect what the prompt asks for: Agent the skills came from, Where the skills now live, Migration branch, Skills to fix in this round.
- Run the starter promptPaste the starter prompt below into Codex CLI and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at developers.openai.com before you rely on it.
Practical Starter Prompt: Audit migrated skills for Codex
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
I copied my skills from [Agent the skills came from] into [Where the skills now live] on the branch [Migration branch]. For every skill folder, check that SKILL.md has a name and description, list anything that only works in the original agent (slash commands, hooks, tool names, paths), and sort the skills into works as is, needs edits, and cannot move. Then propose edits for the skills in [Skills to fix in this round] one at a time, and wait for my approval of each diff before applying it. Do not run any skill script.Approve each diff before Codex applies it, read any scripts yourself, and test several migrated skills before merging the branch.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. OpenAI's skills page says a Codex skill is a directory with a SKILL.md that must include a name and description, that skills build on the open agent skills standard, and that Codex scans .agents/skills up to the repository root. The Claude Code overview says skills package repeatable workflows. No cited page compares the two formats in detail, so how many skills move unchanged is unknown.
Limitations and Considerations
Skills that call scripts can run code, so read every script before enabling it in a new agent. Keep the original library untouched until the migrated skills are tested, and work on a branch so you can roll back. If two skills share the same name, Codex does not merge them and both can appear in selectors, so rename duplicates. Check how many skills you load, since Codex limits how much of the initial skills list it reads. Results depend on your setup and were not independently reproduced by Top 200 Repos.
GitHub Repositories
AI Agent Repository
Source code of the agent that does the work.
Related Videos
About openai/codex
Meet the New Codex CLI (opens in a new tab)
Published by the project’s official channel.
Watch on YouTube (opens in a new tab)Independent creators. Listing a video implies no endorsement, sponsorship or partnership.
Sources
- Build skills | ChatGPT Learn (opens in a new tab)
Project documentation · developers.openai.com · Undated · Source checked 26 Nov 2026, 23:47 UTC
What this source supports
- A skill packages instructions, resources, and optional scripts so either product can follow a workflow reliably. Skills build on the open agent skills standard.
- A skill is a directory with a SKILL.md file plus optional scripts and references. The SKILL.md file must include name and description.
- For repositories, Codex scans .agents/skills in every directory from your current working directory up to the repository root. If two skills share the same name, Codex doesn't merge them; both can appear in skill selectors.
- Overview - Claude Code Docs (opens in a new tab)
Project documentation · code.claude.com · Undated · Source checked 25 Nov 2026, 11:57 UTC
What this source supports
- Create skills to package repeatable workflows your team can share, like /review-pr or /deploy-staging.
