GuidesRunning & maintaining

Codex skills: where Codex finds them and how to add one

Where Codex looks for SKILL.md skills, the six built in, $skill-creator and $skill-installer, how Codex picks one, and sharing with Claude Code.

November 22, 2026The Everpod team
The short answer

A Codex skill is a folder with a SKILL.md in it: YAML frontmatter with a name and a description, then instructions, plus any scripts or reference files beside it. Codex finds them in .agents/skills/ from your working folder up to the repository root, in ~/.agents/skills/ for you, in /etc/codex/skills/ machine-wide, and among the skills bundled with Codex. Type $ and a skill’s name, or run /skills, to use one by hand; otherwise Codex picks one when your request matches its description. To make one, ask $skill-creator; to add a published one, $skill-installer <name>. The format is the open Agent Skills standard, so the same folder works in Claude Code, which looks in .claude/skills/ instead.

Where Codex looks

From OpenAI’s skills documentation, as of November 2026 (Codex 0.171):

ScopeFolderFor
Repository
.agents/skills/ in the folder you start Codex in, each parent, and the repository roota module’s skills, or the whole repository’s
User
~/.agents/skills/your own skills in every repository
Admin
/etc/codex/skills/everyone on the machine, and scripts
System
bundled with CodexOpenAI’s built-ins, on by default

Each skill is its own folder, .agents/skills/<name>/SKILL.md. A symlinked folder works; Codex follows the link. Two skills with the same name are not merged, and both can show up. If a new skill doesn’t appear, restart Codex.

One trap: Codex’s own tools write somewhere else. The built-in creator and installer both put skills in $CODEX_HOME/skills, which is ~/.codex/skills/ unless you have set CODEX_HOME. Codex reads that folder too, but no other agent does, so a skill you want to share belongs in ~/.agents/skills/ or the repository’s .agents/skills/. The bundled skills live in ~/.codex/skills/.system/, and Codex rewrites that folder whenever its contents differ from the copy built into the binary, so an edit there does not last.

The skills that come with Codex

The docs name two system skills; the source at rust-v0.171.0 bundles six:

To turn all of them off for one project, put this in that project’s .codex/config.toml, which Codex reads only once the project is trusted:

[skills.bundled]
enabled = false
Copied

Making one

The quickest way is to ask for it in a session: $skill-creator followed by what the skill should do. It writes the folder in ~/.codex/skills/ unless you name another place, so tell it .agents/skills/ if the skill belongs to a repository. By hand, the smallest skill is one file:

.agents/skills/db-migration/SKILL.md

---
name: db-migration
description: Writes and checks a database migration for this repository. Use when asked to add, change or drop a table or column. Not for seed data.
---

1. Create the migration with `npm run migrate:new -- <name>`.
2. Write both the up and the down step.
3. Run `npm run migrate:test` and fix anything it reports before finishing.
Copied

The commands in the body are your repository’s, not Codex’s; the skill is whatever procedure you would otherwise paste in. The description does most of the work, because it is what Codex reads when deciding (next section): say what the skill does, when to use it and when not to, with the words a request would contain near the start. Folder layout, name rules and length limits are the shared standard, covered in what Agent Skills are.

Codex-only settings go in an optional agents/openai.yaml inside the skill folder, which other agents ignore. The useful parts:

interface:
  display_name: "DB migration"
  short_description: "Write and test a migration"

policy:
  allow_implicit_invocation: false

dependencies:
  tools:
    - type: "mcp"
      value: "openaiDeveloperDocs"
      description: "OpenAI Docs MCP server"
      transport: "streamable_http"
      url: "https://developers.openai.com/mcp"
Copied

interface sets how the skill looks in the ChatGPT desktop app. allow_implicit_invocation: false stops Codex choosing the skill on its own, while $db-migration still runs it: use it for anything with side effects you want to start yourself. dependencies.tools names MCP servers the skill needs (the example is OpenAI’s own, from its docs). When you use a skill whose server is not configured, Codex asks Install MCP servers? with Install (adds them to your global config and starts a sign-in where the server supports OAuth) or Continue anyway. With approvals set to never, it skips the question and installs nothing. The servers it adds are ordinary entries you manage as in adding MCP servers to Codex.

Installing other people’s skills

$skill-installer linear
$skill-installer install the create-plan skill from the .experimental folder
$skill-installer install https://github.com/openai/skills/tree/main/skills/.experimental/create-plan
Copied

By name, the installer takes from the .curated folder of openai/skills, which held 39 skills on 22 November 2026 (Linear, Sentry, Figma, Notion, Playwright, several deploy targets and others); any GitHub URL to a skill folder works too, and a private repository works through your existing git credentials or a GITHUB_TOKEN. Its instructions say a new skill is there on the next turn; OpenAI’s docs and the repository say to restart Codex. Each skill carries its own licence in a LICENSE.txt.

That repository now opens with “This repository is deprecated” and points to openai/plugins for current examples. The installer still reads from it at 0.171, and the docs keep it for local setup and experiments, preferring plugins for skills you distribute. A skill runs with your access, so read its SKILL.md and its scripts before you install it.

How Codex decides to use one

At the start of a session Codex gives the model a catalogue of the available skills: each one’s name and description, not the body. The catalogue’s budget is 2% of the model’s context window (8,000 characters when the window is unknown). With many skills installed, Codex shortens descriptions first, then may leave skills out of the list and show a warning, so a skill that never fires may simply not be in the list. Raise the budget, up to 10,000 tokens, in ~/.codex/config.toml:

[skills]
max_context_tokens = 10000
Copied

From there, two routes. Implicitly, the model matches your request against the descriptions and, when one fits, opens that SKILL.md with a shell command such as cat and follows it, reading the files beside it only when the body points to them; Codex counts a skill as used when the model reads its file or runs a script from its scripts/ folder. Explicitly, you type $ and the name anywhere in your message, or pick from /skills, and Codex loads that skill for the turn. A mention is the dollar sign plus letters, digits, hyphens, underscores and colons (plugin skills are $plugin:skill), and common environment variables such as $HOME and $PATH are not taken as mentions. Where two skills share a name, the parser also accepts a link to the exact file:

[$db-migration](/home/you/project/.agents/skills/db-migration/SKILL.md)
Copied

To switch a skill off without deleting it, add an entry to ~/.codex/config.toml with either a path (the absolute path to one SKILL.md) or a name (every skill with that name); if several entries match, the last one wins:

[[skills.config]]
name = "imagegen"
enabled = false
Copied

Restart Codex after changing these settings. Where they sit among Codex’s other settings and how project files layer over yours is in the config.toml guide.

Skills, AGENTS.md, MCP and plugins

Skills are not only for the CLI: the docs say standalone skills work in the ChatGPT desktop app, the Codex CLI and the IDE extension.

The same skill in Claude Code and other agents

The SKILL.md format is shared, so one folder serves Codex, Claude Code, OpenCode and others. The folders are not: Claude Code reads only .claude/skills/ and ~/.claude/skills/, not .agents/skills/ and not ~/.codex/skills/. Keep the skill in .agents/skills/ and link it for Claude Code:

mkdir -p .claude/skills
ln -s ../../.agents/skills/db-migration .claude/skills/db-migration
Copied

Write the shared file to the standard alone (name, description, plain steps). Codex ignores Claude Code’s extra frontmatter, such as allowed-tools and disable-model-invocation, and Claude Code ignores agents/openai.yaml, so a setting meant for both has to be made in each agent’s own way. The side-by-side test of one skill in both agents is in Claude Code skills, and OpenCode, which also reads Claude Code’s folders, is in OpenCode skills.

Run Codex on an always-on developer pod.

A developer pod is a permanent cloud computer (VPS), set up and secured for you, with your pick of Claude Code, Codex, OpenCode, Pi, Hermes and OpenClaw installed. Run more agents at once than your laptop can hold, and keep them working when it’s closed. From $24 a month, built in about ten minutes.