# Codex Skills Explained: Locations and AGENTS.md Differences

> Canonical: https://skillalmanac.com/learn/codex-skills-explained | Updated: 2026-11-23 | Index status: not offered to search engines

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.

## Facts

- 2026-11-23: OpenAI's build-skills page says a Codex skill is a directory with a SKILL.md; name and description are required, and scripts/, references/, assets/ and agents/openai.yaml are optional (https://learn.chatgpt.com/docs/build-skills)
- 2026-11-23: Codex scans .agents/skills from the current directory up to the repo root, plus $HOME/.agents/skills, /etc/codex/skills and bundled system skills; the page does not list .codex/skills (https://learn.chatgpt.com/docs/build-skills)
- 2026-11-23: The initial skill list is capped at 2% of the context window, or 8,000 characters when the window is unknown; skills.max_context_tokens can raise the budget up to 10,000 tokens (https://learn.chatgpt.com/docs/build-skills)
- 2026-11-23: allow_implicit_invocation defaults to true; set to false in agents/openai.yaml, Codex stops matching the skill from prompts but explicit $skill-name still works (https://learn.chatgpt.com/docs/build-skills)
- 2026-11-23: On a machine running codex-cli 0.161.0, ~/.codex/skills/.system contained imagegen, openai-docs, review-agent, skill-creator and skill-installer (checked locally)
- 2026-11-23: Codex builds its AGENTS.md chain once per run and stops adding files at project_doc_max_bytes, default 32 KiB (https://learn.chatgpt.com/docs/agent-configuration/agents-md)

## 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

| 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.

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
   ```

3. 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.
   ```

4. Start Codex in the repo and type `$` to see the skill in the mention list, or run `/skills`.
5. 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](/learn/check-a-claude-skill-from-github-before-installing), 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

| | 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](/learn/codex-agents-md-setup), and for how the two files relate across tools see [CLAUDE.md vs AGENTS.md: Which Agents Read Which File](/learn/agents-md-vs-claude-md).

## 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.

| Skill | Platform Score and state | Efficacy verdict | Install verified | Tutorial video |
|---|---|---|---|---|
| [skill-authoring-and-evals](/skills/skill-almanac/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](/skills/skill-almanac/skill-safety-audit) | 57, provisional | LIFT (single-run, 2026-11-21) | Claude Code 2.1.330, 2026-11-23 | yes |
| [agent-instruction-files](/skills/skill-almanac/agent-instruction-files) | 46, provisional | No verdict recorded | Claude Code 2.1.330, 2026-11-23 | yes |
| [skill-installer (openai)](/skills/openai/skill-installer) | 33, provisional | No verdict recorded | not recorded | no |
| [skill-creator (openai)](/skills/openai/skill-creator) | 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](/methodology/platform-score) 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](/learn/codex-agents-md-setup) for the standing-instructions side.
- [Install Codex CLI and Sign In](/learn/install-codex-cli) if you have not installed Codex yet.
- [What Is OpenAI Codex? Surfaces and Their Uses](/learn/what-is-openai-codex) for the CLI, IDE, cloud and app.
- [Codex vs Claude Code: Config Files and Sandbox](/learn/codex-vs-claude-code) to compare extension models.
- Browse [Agent workflow skills](/topics/agent-workflow) and the [Codex tool page](/tools/codex).

## Related skills

- [skill-authoring-and-evals](https://skillalmanac.com/skills/skill-almanac/skill-authoring-and-evals.md): Platform Score 62/100
- [agent-instruction-files](https://skillalmanac.com/skills/skill-almanac/agent-instruction-files.md): Platform Score 46/100 (provisional)
- [skill-safety-audit](https://skillalmanac.com/skills/skill-almanac/skill-safety-audit.md): Platform Score 57/100 (provisional)

## Related guides

- [Install Codex CLI and Sign In](https://skillalmanac.com/learn/install-codex-cli.md)
- [CLAUDE.md vs AGENTS.md: Which Agents Read Which File](https://skillalmanac.com/learn/agents-md-vs-claude-md.md)
- [Codex AGENTS.md setup: file locations and layering](https://skillalmanac.com/learn/codex-agents-md-setup.md)
- [What Is OpenAI Codex? Surfaces and Their Uses](https://skillalmanac.com/learn/what-is-openai-codex.md)
- [Codex vs Claude Code: Config Files and Sandbox](https://skillalmanac.com/learn/codex-vs-claude-code.md)
- [npx skills: What the CLI Installs and How to Remove It](https://skillalmanac.com/learn/npx-skills-cli-guide.md)

## Sources

- https://learn.chatgpt.com/docs/build-skills
- https://learn.chatgpt.com/docs/agent-configuration/agents-md
- https://agentskills.io/specification
- https://github.com/openai/skills
- https://cursor.com/docs/context/skills

Platform Scores report our assessment under a published method. They are not a safety guarantee.
