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, dependenciesThe 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:
- At startup it loads each skill's name, description and (in Codex) file path.
- When it decides a skill fits, it reads the full
SKILL.md. - Files in
scripts/,references/andassets/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
| Scope | Location | Use |
|---|---|---|
| Repo | $CWD/.agents/skills | Skills for one folder, such as a single service |
| Repo | $CWD/../.agents/skills | A shared parent folder inside a Git repo |
| Repo | $REPO_ROOT/.agents/skills | Skills for the whole repo |
| User | $HOME/.agents/skills | Personal skills across repos |
| Admin | /etc/codex/skills | Machine or container wide skills |
| System | Bundled with Codex | skill-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.
- Pick the scope. For a team workflow, use
$REPO_ROOT/.agents/skills; for a personal one,$HOME/.agents/skills. - Create the folder and file:
mkdir -p .agents/skills/release-notes- 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.- Start Codex in the repo and type
$to see the skill in the mention list, or run/skills. - 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 linearThe 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
/skillsor 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 istrue, and explicit$skillstill works):
policy:
allow_implicit_invocation: false- Disable a skill without deleting it in
~/.codex/config.toml. Each entry uses exactly one selector: an absolutepathmatches one file, anamematches 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 = falseagents/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
| Skills | AGENTS.md | |
|---|---|---|
| Loads | Name and description at start; body when used | Once per run, whole chain |
| Lives in | .agents/skills/<name>/SKILL.md | ~/.codex for global; each directory from project root down |
| Size control | Initial list budget (2% of context) | project_doc_max_bytes, 32 KiB default |
| Override | Same-name skills both appear | AGENTS.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
- A new skill does not appear. Cause: wrong folder, or missing
nameordescription. Fix: confirm the path is one of the documented.agents/skillslocations, check both fields, then restart Codex as the docs advise. - The skill is in `~/.codex/skills` and ignored. Cause: the current docs do not list that path. Fix: move it to
$HOME/.agents/skillsor the repo's.agents/skills. - The skill never runs on its own. Cause: a vague description, or
allow_implicit_invocation: false. Fix: rewrite the description with the trigger words, checkagents/openai.yaml, and test with$skill-nameto separate a content problem from a matching problem. - A warning says skills were omitted. Cause: the initial list exceeded its budget. Fix: shorten descriptions, remove unused skills with
[[skills.config]], or raiseskills.max_context_tokens(maximum 10,000). - Two skills share a name. Cause: they are not merged, so both show. Fix: rename one, or disable one by
path. - 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. - Late AGENTS.md rules vanish. Cause: the 32 KiB combined limit. Fix: raise
project_doc_max_bytesor 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.
| Skill | Platform Score and state | Efficacy verdict | Install verified | Tutorial video |
|---|---|---|---|---|
| skill-authoring-and-evals | 62, rated | LIFT_UNCONFIRMED (measured, 2026-11-22): +14.3 points, 95% CI includes zero on 5 tasks | Claude Code 2.1.330, 2026-11-23 | yes |
| skill-safety-audit | 57, provisional | LIFT (single-run, 2026-11-21) | Claude Code 2.1.330, 2026-11-23 | yes |
| agent-instruction-files | 46, provisional | No verdict recorded | Claude Code 2.1.330, 2026-11-23 | yes |
| skill-installer (openai) | 33, provisional | No verdict recorded | not recorded | no |
| skill-creator (openai) | 31, provisional | No verdict recorded | not recorded | no |
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
- Codex AGENTS.md setup: file locations and layering for the standing-instructions side.
- Install Codex CLI and Sign In if you have not installed Codex yet.
- What Is OpenAI Codex? Surfaces and Their Uses for the CLI, IDE, cloud and app.
- Codex vs Claude Code: Config Files and Sandbox to compare extension models.
- Browse Agent workflow skills and the Codex tool page.
Related skills in this catalog
Platform Score is our assessment under a published method. It is not a safety guarantee.
Related guides
Sources
- https://learn.chatgpt.com/docs/build-skills (accessed 2026-11-23)
- https://learn.chatgpt.com/docs/agent-configuration/agents-md (accessed 2026-11-23)
- https://agentskills.io/specification (accessed 2026-11-23)
- https://github.com/openai/skills (accessed 2026-11-23)
- https://cursor.com/docs/context/skills (accessed 2026-11-23)
This page is not offered to search engines yet: The content file does not mark this page indexable yet.