Codex Skills Explained: Locations and AGENTS.md Differences

Where Codex finds skill folders, how to create, install, enable and disable one, how the $ and implicit invocation work, and how skills differ from AGENTS.md. Checked against OpenAI docs on 2026-11-23.

Updated · Markdown version

Short answer

Last checked 2026-11-23: OpenAI's documentation says a Codex skill is a folder containing a SKILL.md file with a required name and description. Codex finds repo skills in .agents/skills (from your working directory up to the repo root), personal skills in $HOME/.agents/skills, machine-wide skills in /etc/codex/skills, and bundled skills such as skill-creator and skill-installer. You call one with $skill-name or /skills, or Codex picks it when the task matches the description. A skill differs from AGENTS.md because AGENTS.md is read at the start of every run, while a skill's body loads only when it is used.

What a Codex skill is

As of 2026-11-23, OpenAI's "Build skills" page describes a skill as a directory that packages instructions, and optionally scripts, references and assets, so Codex can follow a workflow the same way each time. The page says skills build on the open agent skills standard, and the standard's own specification (agentskills.io) defines the shared format. The layout is:

my-skill/
  SKILL.md          # required: instructions + metadata
  scripts/          # optional: executable code
  references/       # optional: documentation
  assets/           # optional: templates, resources
  agents/
    openai.yaml     # optional: appearance, invocation policy, dependencies

The OpenAI page lists only name and description as frontmatter fields. The open specification also defines optional license, compatibility, metadata and an experimental allowed-tools, with limits of 64 characters for name (lowercase letters, numbers and single hyphens, matching the folder name) and 1,024 characters for description. The OpenAI page does not say Codex reads those extra fields, so treat them as portable metadata rather than Codex behavior.

How loading works

Codex uses progressive disclosure, per OpenAI's page:

  1. At startup it loads each skill's name, description and (in Codex) file path.
  2. When it decides a skill fits, it reads the full SKILL.md.
  3. Files in scripts/, references/ and assets/ are read only when the instructions point to them.

The initial list has a budget: 2% of the context window, or 8,000 characters when the window size is unknown. Codex shortens descriptions first. With a large skill set it may leave some skills out and show a warning. Setting skills.max_context_tokens changes the budget, up to 10,000 tokens, and applies only to the initial list, not to reading a chosen skill.

The practical rule that follows: write the description as a router. Front-load the use case and the words a person would type, and say when the skill should not trigger.

Where Codex looks for skills

ScopeLocationUse
Repo$CWD/.agents/skillsSkills for one folder, such as a single service
Repo$CWD/../.agents/skillsA shared parent folder inside a Git repo
Repo$REPO_ROOT/.agents/skillsSkills for the whole repo
User$HOME/.agents/skillsPersonal skills across repos
Admin/etc/codex/skillsMachine or container wide skills
SystemBundled with Codexskill-creator and skill-installer, on by default

Two skills with the same name are not merged, and both can appear in selectors. Symlinked skill folders are supported, and Codex follows the link target.

The .agents/skills versus .codex/skills confusion

Many older tutorials say skills go in ~/.codex/skills. OpenAI's current build-skills page lists .agents/skills paths and does not mention .codex/skills as a skill location; the only .codex path on that page is the project's .codex/config.toml. Cursor's documentation, by contrast, lists .codex/skills/ as a compatibility folder it reads. On the machine used for this check (codex-cli 0.161.0), ~/.codex/skills existed with only a .system folder inside, holding imagegen, openai-docs, review-agent, skill-creator and skill-installer. That shows CODEX_HOME is where bundled skills sit, not where you should put your own. For your own skills, follow the documented .agents/skills paths, and if a skill from an older tutorial does not appear, move it there.

Create a skill, step by step

You can write the folder by hand or let Codex scaffold it.

  1. Pick the scope. For a team workflow, use $REPO_ROOT/.agents/skills; for a personal one, $HOME/.agents/skills.
  2. Create the folder and file:
mkdir -p .agents/skills/release-notes
  1. Write .agents/skills/release-notes/SKILL.md:
---
name: release-notes
description: Draft release notes from merged pull requests since the last tag. Use when asked for release notes or a changelog entry. Do not use for commit message help.
---

1. Run `git describe --tags --abbrev=0` to find the last tag.
2. List merged PRs since that tag and group them by label.
3. Skip dependency bumps. Write one line per change.
  1. Start Codex in the repo and type $ to see the skill in the mention list, or run /skills.
  2. Test explicitly first: $release-notes. Then test a plain request such as "write the changelog for this sprint" to see whether implicit matching fires.

To let Codex scaffold instead, run $skill-creator inside Codex. OpenAI's page says it asks what the skill does, when it should trigger, and whether it should be instruction-only or include scripts, with instruction-only as the default. The page says Codex detects new or changed skills automatically, and that a restart helps if a change does not show up.

What you should see: the skill listed under its name when you type $. This step comes from the documentation; no model call was made to test it for this guide.

Install a skill someone else wrote

Skills ship in two ways in OpenAI's docs. The bundled skill-installer installs curated skills by name:

$skill-installer linear

The openai/skills repository README describes folders .system (installed automatically), .curated (installed by name, the default for $skill-installer) and .experimental (name the folder). It shows $skill-installer gh-address-comments and a form that takes a GitHub tree URL. As of 2026-11-23 that repository is marked deprecated and points to github.com/openai/plugins for current examples. After installing, restart Codex so it picks the skill up.

For distribution, OpenAI's page recommends plugins: skills are the authoring format, and a plugin can bundle two or more skills or ship them alongside a connector. Plugin-bundled skills also work in ChatGPT on web and mobile, while standalone skills work in the ChatGPT desktop app, Codex CLI and the IDE extension.

Before you install a third-party skill, read it. A skill is instructions plus possible scripts that Codex may run under your approvals, so see Check a Claude Skill From GitHub Before Installing It, whose checklist applies to any SKILL.md folder.

Invoke, enable and disable

  • Explicit: in Codex CLI or the IDE extension, run /skills or type $ and pick the skill.
  • Implicit: Codex may pick a skill when the task matches its description.
  • Turn off implicit matching for one skill in agents/openai.yaml (the default is true, and explicit $skill still works):
policy:
  allow_implicit_invocation: false
  • Disable a skill without deleting it in ~/.codex/config.toml. Each entry uses exactly one selector: an absolute path matches one file, a name matches every skill with that name. When several entries match, the last wins:
[[skills.config]]
path = "/path/to/skill/SKILL.md"
enabled = false
  • Turn off all bundled system skills for a project, in that project's trusted .codex/config.toml:
[skills.bundled]
enabled = false

agents/openai.yaml can also hold desktop-app display fields (interface) and tool dependencies, such as an MCP server a skill needs.

How skills differ from AGENTS.md

SkillsAGENTS.md
LoadsName and description at start; body when usedOnce per run, whole chain
Lives in.agents/skills/<name>/SKILL.md~/.codex for global; each directory from project root down
Size controlInitial list budget (2% of context)project_doc_max_bytes, 32 KiB default
OverrideSame-name skills both appearAGENTS.override.md wins in that directory

OpenAI's AGENTS.md page says Codex reads at most one file per directory (override first, then AGENTS.md, then configured fallback names), concatenates from root to the current directory, and stops once the combined size reaches the limit. Decision rule: put a fact in AGENTS.md when every task needs it, and a multi-step procedure in a skill when only some tasks do. For the AGENTS.md side, see Codex AGENTS.md setup: file locations and layering, and for how the two files relate across tools see CLAUDE.md vs AGENTS.md: Which Agents Read Which File.

What goes wrong and how to fix it

  1. A new skill does not appear. Cause: wrong folder, or missing name or description. Fix: confirm the path is one of the documented .agents/skills locations, check both fields, then restart Codex as the docs advise.
  2. The skill is in `~/.codex/skills` and ignored. Cause: the current docs do not list that path. Fix: move it to $HOME/.agents/skills or the repo's .agents/skills.
  3. The skill never runs on its own. Cause: a vague description, or allow_implicit_invocation: false. Fix: rewrite the description with the trigger words, check agents/openai.yaml, and test with $skill-name to separate a content problem from a matching problem.
  4. A warning says skills were omitted. Cause: the initial list exceeded its budget. Fix: shorten descriptions, remove unused skills with [[skills.config]], or raise skills.max_context_tokens (maximum 10,000).
  5. Two skills share a name. Cause: they are not merged, so both show. Fix: rename one, or disable one by path.
  6. A skill stays enabled after you disabled it. Cause: several [[skills.config]] entries match and the last one wins. Fix: look at the last matching entry.
  7. Late AGENTS.md rules vanish. Cause: the 32 KiB combined limit. Fix: raise project_doc_max_bytes or split rules into nested directories.

What our catalogue shows

None of the catalogue's skills has been install-verified on Codex; every recorded verification is on Claude Code. The table lists the closest skills for writing, vetting and installing skills.

SkillPlatform Score and stateEfficacy verdictInstall verifiedTutorial video
skill-authoring-and-evals62, ratedLIFT_UNCONFIRMED (measured, 2026-11-22): +14.3 points, 95% CI includes zero on 5 tasksClaude Code 2.1.330, 2026-11-23yes
skill-safety-audit57, provisionalLIFT (single-run, 2026-11-21)Claude Code 2.1.330, 2026-11-23yes
agent-instruction-files46, provisionalNo verdict recordedClaude Code 2.1.330, 2026-11-23yes
skill-installer (openai)33, provisionalNo verdict recordednot recordedno
skill-creator (openai)31, provisionalNo verdict recordednot recordedno

Read the first row carefully: the catalogue records that the baseline was preferred in one of the five tasks, and credit is capped until a larger task set confirms the result. See the Platform Score methodology for how these numbers are built.

FAQ

Does Codex support skills?

Yes. OpenAI's build-skills page documents skills for Codex CLI, the IDE extension and the desktop app, and Codex ships skill-creator and skill-installer as bundled system skills.

Where do I put Codex skills?

Put repo skills in .agents/skills at the repo root (or a subfolder for narrower scope), and personal skills in $HOME/.agents/skills. Admins can place machine-wide skills in /etc/codex/skills. Older guides that say ~/.codex/skills predate the current docs.

How do I call a skill in Codex?

Type $ and select it, run /skills, or write $skill-name in the prompt. Codex can also select a skill by itself when your task matches its description, unless the skill sets allow_implicit_invocation: false.

How do I create a Codex skill?

Make a folder with a SKILL.md that has name and description frontmatter, or run $skill-creator and answer its questions. Test with an explicit $ call first, then with a plain request.

Can I disable a skill without deleting it?

Yes. Add a [[skills.config]] entry with the skill's absolute path (or its name) and enabled = false to ~/.codex/config.toml. Bundled system skills can be turned off per project with [skills.bundled].

Do Claude Code skills work in Codex?

Both follow the open agent skills format, so the folder shape is the same. OpenAI's page does not promise that every Claude Code frontmatter field behaves the same in Codex, so copy the folder to .agents/skills and test it.

Is a skill the same as a plugin?

No. OpenAI's page calls skills the authoring format and plugins the distribution format; a plugin can bundle several skills and connector configuration.

Next steps

Platform Score is our assessment under a published method. It is not a safety guarantee.

Next steps

  1. Install Codex CLI and Sign In Read next.
  2. CLAUDE.md vs AGENTS.md: Which Agents Read Which File Read next.
  3. Codex compatibility Install evidence per tool.
  4. All guides by topic Browse everything.

Sources

This page is not offered to search engines yet: The content file does not mark this page indexable yet.