Explore skills

Blog / Basics

Claude Code Skills in Codex: What Works in Both

Claude Code and Codex both read SKILL.md, but folders, invocation and extra fields differ. What carries over, what is Claude-only, and how to keep one copy.

Claude Code Skills in Codex: What Works in Both

A skill with a name, a description and a plain markdown body follows the shared open standard and can serve both agents, but the folders, the way you call it and the extra frontmatter fields are different.

Table of contents

The short answer

Yes, with limits. Both Claude Code and Codex say they build on the open agent skills standard. Claude Code's docs state that its skills "follow the Agent Skills open standard, which works across multiple AI tools," and OpenAI's docs say "Skills build on the open agent skills standard" (Claude Code skills docs, Codex skills docs, both checked 2026-11-23). The shared core is a folder with a SKILL.md file that has name and description.

I build AI agents full-time, and the practical question is what breaks when you move a skill from one agent to the other. Three things differ: the folder each agent scans, how you invoke a skill by hand, and the optional fields each one adds. A plain instruction skill moves without edits if you put it where the other agent looks. A skill that leans on Claude Code frontmatter such as context: fork or allowed-tools will load in Codex but those fields are Claude Code features, so do not count on them there.

This article is built from both vendors' documentation and the Ragspaces catalog, so every rule below is what Anthropic or OpenAI documents for its own agent.

The shared standard

The standard is published at agentskills.io, and both products point to it. A skill is a directory with a SKILL.md file plus optional scripts and references. Codex's docs say: "The SKILL.md file must include name and description." Anthropic's Agent Skills overview lists the same two required fields and adds limits: name is at most 64 characters, using lowercase letters, numbers and hyphens, and description is non-empty with a 1,024 character maximum (Agent Skills overview).

Here is the smallest skill that fits both:

---
name: release-notes
description: Draft release notes from merged pull requests. Use when the user asks for a changelog or "what shipped this week".
---

# Release notes

1. Run `gh pr list --state merged --limit 50 --json title,number,labels`.
2. Group the pull requests by label.
3. Write one bullet per pull request, past tense.

Both agents load skills the same way in principle. Codex calls this progressive disclosure, which means it starts with the name and description and loads the rest when needed. Claude Code says "skill descriptions are loaded into context so Claude knows what's available, but full skill content only loads when invoked." The description is the matching signal in both, which is why a trigger-rich description helps on either side, a topic I cover in the post on how SKILL.md descriptions trigger.

Real skills written for both agents

The Ragspaces catalog is "an open catalog of 5,299 agent skills for Claude Code and Codex" (home page count on 2026-11-23). Skill pages show the description and README without an account. These pages were public on 2026-11-23:

I read their descriptions, not their behavior in each agent.

Where each agent looks

The folders are the most common reason a skill "does not work" after a move.

Claude Code reads personal skills from ~/.claude/skills/<skill-name>/SKILL.md, described as "all your projects on this machine," and project skills from .claude/skills/<skill-name>/SKILL.md, where the docs say to commit it so your team gets it. Plugins add <plugin>/skills/<skill-name>/SKILL.md. When names collide, the docs say "enterprise over personal, and personal over project."

Codex says it "reads skills from repository, user, admin, and system locations." For a repository it "scans .agents/skills in every directory from your current working directory." The user location is $HOME/.agents/skills and the admin location is /etc/codex/skills.

So a skill in ~/.claude/skills/ is invisible to Codex, and a skill in ~/.agents/skills/ is not in Claude Code's documented list. The Claude Code skills docs list .claude/skills locations only and do not mention .agents/skills.

Fact table

Claude Code Codex
Standard Agent Skills open standard (skills docs) Open agent skills standard (Codex docs)
Required fields name, description (overview) name, description (Codex docs)
User folder ~/.claude/skills/ (skills docs) $HOME/.agents/skills (Codex docs)
Repository folder .claude/skills/ (skills docs) .agents/skills, scanned from the working directory upward (Codex docs)
Other locations Plugin, enterprise (skills docs) Admin /etc/codex/skills, system (Codex docs)
Manual invoke /skill-name (skills docs) /skills or type $ to mention a skill (Codex docs)
Listing budget 1% of the context window, 1,536 characters per entry (skills docs) At most 2% of the context window, or 8,000 characters when unknown (Codex docs)
Stop automatic use disable-model-invocation: true (skills docs) allow_implicit_invocation in agents/openai.yaml, default true (Codex docs)
Extra fields context: fork, allowed-tools, hooks and more (skills docs) agents/openai.yaml (Codex docs)

Every cell in this table is a quote or a close paraphrase from the linked page. If you rely on one for an automated setup, open the page and confirm, because both vendors change these docs.

How you call a skill

In Claude Code, a skill named release-notes becomes /release-notes. A plugin skill is /plugin-name:skill-name. Claude can also invoke it on its own when the description matches the request, unless you disable that.

In Codex, you "run /skills or type $ to mention a skill." Codex can match on the description too, an implicit match, and it has a $skill-installer for installing curated skills.

The practical effect is in your muscle memory and in any instruction text. If your README tells a teammate to type /release-notes, that is wrong for a Codex user, who would type $ and pick the skill. Write skill instructions so they do not depend on the invocation syntax. Say "when asked for release notes, do this," not "when the user types /release-notes."

Context budgets

Both agents cap how much of your context window the skill list can use, and the numbers differ.

Claude Code's listing "always contains every skill name," but descriptions may be dropped when the listing overflows. The docs say the budget "scales at 1% of the model's context window," that descriptions are dropped starting with the skills you invoke least, and that each entry's combined description and when_to_use text is truncated at 1,536 characters. You can raise it with skillListingBudgetFraction, for example 0.02.

Codex says that by default its list "uses at most 2% of the model's context window," or 8,000 characters when the window is unknown.

Neither page tells me how many skills fit in either budget, because that depends on description length and your model. What follows from the docs is a habit that works in both: put the key use case first in the description, keep it short, and do not install hundreds of skills you never use. The first part matters because Claude Code truncates long entries and puts "the key use case first" in its own advice.

Turning off automatic use

A skill that deploys to production should not start because a description matched. Each agent has a switch.

In Claude Code, add this to the frontmatter:

disable-model-invocation: true

The docs say this will "prevent Claude from automatically loading this skill" and recommend it for workflows you want to trigger manually with /name.

In Codex, the setting lives outside SKILL.md, in agents/openai.yaml, under the key allow_implicit_invocation, which defaults to true. Setting it to false turns off implicit matching. The exact file layout for openai.yaml is in the Codex docs, and I only confirmed the key name and default there.

If you ship one skill folder to both agents, include both settings: disable-model-invocation: true in the frontmatter for Claude Code and allow_implicit_invocation: false in agents/openai.yaml for Codex. Each one is documented only by its own agent, so treat them as two independent switches and set both.

Claude Code extras that do not carry over

Claude Code extends the standard with extra frontmatter. The skills docs list fields such as context: fork, agent, allowed-tools, model, effort, when_to_use, user-invocable and hooks. They are documented as Claude Code features, and I found no statement in OpenAI's docs that Codex reads them.

What each one does in Claude Code, from the docs:

  • context: fork runs the skill in a new subagent that gets the skill content as its prompt and does not see your conversation history.
  • disable-model-invocation: true stops Claude loading the skill automatically.
  • user-invocable: false hides it from the / menu, though Claude can still invoke it.
  • when_to_use adds trigger phrases or example requests to the listing entry.

What this means for a shared skill: the body and the name and description are the portable part. Anything a skill needs from context: fork or a hook is Claude-only behavior. A skill that does not need those will behave as plain instructions in both agents. A skill that depends on them may still load in Codex as text, but the behavior the field provides is not documented there.

I covered how a forked skill compares to a subagent in the post on skills vs subagents vs slash commands.

Keeping one copy for both

If you maintain skills for both agents, you have three ordinary options. None needs a tool.

  1. Copy the folder to both locations: ~/.claude/skills/<name>/ and ~/.agents/skills/<name>/. Simple, and it drifts the moment you edit one copy.
  2. Keep the source in one place and symlink the other. This works on macOS and Linux and is fussier on Windows.
  3. Keep the skill in a repository and commit it to .claude/skills/ for Claude Code and .agents/skills/ for Codex in the same project.

The drift problem is the real cost. Skills change often, because the first description is rarely the best one. A copy you forgot to update is a stale skill in one agent.

Ragspaces, a catalog and sync layer for skills, has an installer that is built around this two-folder situation. It needs Node.js, links your computer, uploads the skills in both ~/.claude/skills and ~/.agents/skills, starts a watcher and adds Ragspaces as an MCP server so shared skills appear as tools (how it works). A hook uploads a skill when your agent saves it, and a watcher on another computer pulls changes down "within a minute." Deleted skills go to ~/.claude/ragspaces-trash, never erased.

If you work in one repository with a small team, committing the folders is simpler and needs no account. Plain git is a perfectly good sync layer.

Pick Claude Code or Codex if

I am not going to rank the two agents, because that depends on your work. If you are still choosing between them, a roundup of Claude Code, Codex CLI and Gemini CLI on the same tasks compares them outside of skills. For skills specifically:

Pick Claude Code for skills if:

  • You want isolation (context: fork), tool restrictions or hooks tied to a skill.
  • You want /name typed invocation and plugin packaging with marketplaces.
  • Your team already commits .claude/skills/ to repositories.

Pick Codex for skills if:

  • Your repositories use .agents/skills and AGENTS.md.
  • You want the $ mention flow and the $skill-installer for curated skills.
  • You want a larger documented listing budget (2% against 1%).

Use both if you switch between them. Write the portable core once, keep the Claude-only fields minimal, and test the skill in each agent before you trust it.

Frequently asked questions

Can I use a Claude Code skill in Codex?

Often yes, if it is a plain SKILL.md with name and description. Both agents follow the open agent skills standard. Put the folder where Codex looks, ~/.agents/skills or a repository's .agents/skills, because Codex does not read ~/.claude/skills according to its docs.

Where does Codex store skills?

Codex reads repository, user, admin and system locations. It scans .agents/skills from your working directory, uses $HOME/.agents/skills for personal skills and /etc/codex/skills for admin skills.

Do Claude Code frontmatter fields work in Codex?

The Claude Code docs describe context: fork, allowed-tools, hooks and similar fields as Claude Code extensions. OpenAI's docs list agents/openai.yaml for Codex settings, and I found no statement that Codex reads the Claude fields.

How do I invoke a skill in Codex?

Run /skills or type $ to mention a skill. Codex can also pick one from its description. In Claude Code you type /skill-name instead.

How do I stop Codex from using a skill automatically?

Set allow_implicit_invocation to false in the skill's agents/openai.yaml. The default is true. In Claude Code the equivalent frontmatter key is disable-model-invocation: true.

Is the skill listing budget the same in both?

No. Claude Code uses about 1% of the context window with a 1,536 character cap per entry. Codex uses at most 2% of the window, or 8,000 characters when the window size is unknown.

Key takeaways

  • Both agents build on the open agent skills standard, with name and description required.
  • Claude Code reads ~/.claude/skills and .claude/skills, and Codex reads ~/.agents/skills and .agents/skills.
  • You invoke with /name in Claude Code and with /skills or $ in Codex.
  • Listing budgets differ, 1% in Claude Code and 2% in Codex.
  • Fields like context: fork and allowed-tools are Claude Code extensions, so keep a shared skill's core plain.

The bottom line

A plain instruction skill is portable, and the work is in the folder, the invocation and the optional fields. Write the body so it does not depend on either agent's syntax, put it in both locations, and treat Claude-only fields as a bonus, not a requirement.

If you want to read skills built for both agents, browse the Ragspaces catalog. Skill pages show the description, README and reviews with no account.

Related articles

About this research

Dmitry Makarenko co-founded Zipy as VP R&D, leading 50+ engineers across five countries, and now builds AI agents full-time. (LinkedIn)

This article is based on the Claude Code skills documentation, Anthropic's Agent Skills documentation, OpenAI's Codex skills documentation and the Ragspaces catalog pages, all read on 2026-11-23. Content reviewed and updated: 2026-11-26

Keep reading