Short answer. Codex skills are folders with a SKILL.md file (a name, a description and instructions) that Codex loads from .agents/skills in your repository, $HOME/.agents/skills, /etc/codex/skills or its own bundled set. You call one with $skill-name or /skills in the Codex CLI and IDE extension, or Codex picks it when your task matches its description (OpenAI docs: Build skills).
Applies to: Codex CLI and IDE extension, as described on OpenAI’s “Build skills” page. Last checked: November 18, 2026.
On this page
What a Codex skill is
OpenAI describes a skill as a package of instructions, resources and optional scripts for one workflow, built on the open agent skills standard. Standalone skills work in the Codex CLI, the IDE extension and the ChatGPT desktop app; plugins are the way to package skills (and connectors) for other people (Build skills).
The folder layout from the docs:
my-skill/
SKILL.md Required: instructions + metadata
scripts/ Optional: executable code
references/ Optional: documentation
assets/ Optional: templates, resources
agents/
openai.yaml Optional: appearance and dependencies
SKILL.md needs two frontmatter fields, name and description. OpenAI’s template:
---
name: skill-name
description: Explain exactly when this skill should and should not trigger.
---
Skill instructions for ChatGPT or Codex to follow.
The description does more work than it looks. It is what Codex reads when it decides whether to use the skill on its own, so OpenAI asks for both sides: when the skill should trigger and when it should not (Build skills).
How Codex loads skills: names first, body later
At the start, Codex sees only each skill’s name, description and file path. The full SKILL.md is read only when the skill is chosen. The list has a budget: according to OpenAI, “this list uses at most 2% of the model’s context window, or 8,000 characters when the context window is unknown.” When you install many skills, Codex shortens descriptions first and may leave some skills out of the list, with a warning (Build skills).
In practice, a short, specific description keeps a skill visible when the list gets crowded. Claude Code uses the same name-first pattern; What are Claude Skills? walks through it on the Anthropic side.
Where to put skills
| Scope | Location | Use it for |
|---|---|---|
REPO | .agents/skills in the working directory and in each parent directory up to the repository root | Skills that belong to one project and should be committed with it |
USER | $HOME/.agents/skills | Your personal skills, available in every project |
ADMIN | /etc/codex/skills | Skills a machine administrator installs for every user |
SYSTEM | Bundled with Codex | Built-in skills such as skill-creator and plan |
Source: Build skills. Codex follows symlinked skill folders, so one copy can serve several repositories. Two details to watch: the folder is .agents/skills, not .codex/skills, and if two skills share the same name, “Codex doesn’t merge them; both can appear in skill selectors.”
Call a skill or let Codex choose
There are two ways a skill runs (Build skills):
- Explicitly. In the Codex CLI or IDE extension, type
$followed by the skill name, or open the/skillslist. - Implicitly. Codex picks a skill when your request matches its description.
To stop a skill from being picked on its own, set allow_implicit_invocation: false in its agents/openai.yaml (shown below). The skill still runs when you call it with $.
Create a skill
The bundled creator drafts the folder and SKILL.md for you; by default it makes an instruction-only skill (Build skills):
$skill-creator
You can also make the folder by hand in one of the locations above. Codex picks up changes automatically; if an edited or new skill does not show up, restart Codex.
OpenAI’s writing advice for skills: keep each one to a single job, prefer instructions over scripts unless you need deterministic behaviour, write imperative steps with explicit inputs and outputs, and test real prompts against the description to check it triggers when it should (Build skills).
Install curated skills
$skill-installer installs skills from OpenAI’s curated set by name, or from another repository when you ask it to. The docs’ example installs the Linear skill (Build skills):
$skill-installer linear
Restart Codex if the new skill does not appear. A skill can carry scripts that Codex may run, so read a third-party skill’s SKILL.md and scripts/ before you install it, the same way you would review any code you add to a project.
Turn a skill off
To disable a local skill without deleting it, add an entry to ~/.codex/config.toml that points at its SKILL.md, then restart Codex (Build skills):
[[skills.config]]
path = "/path/to/skill/SKILL.md"
enabled = false
Other Codex settings live in the same file; Codex configuration profiles covers how profiles layer on top of it.
Optional metadata: agents/openai.yaml
agents/openai.yaml controls how the skill looks in the app, whether Codex may choose it on its own, and which tools it depends on. OpenAI’s example declares the OpenAI Docs MCP server as a dependency (Build skills):
interface:
display_name: "Optional user-facing name"
short_description: "Optional user-facing description"
icon_small: "./assets/small-logo.svg"
icon_large: "./assets/large-logo.png"
brand_color: "#3B82F6"
default_prompt: "Optional surrounding prompt to use the skill with"
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"
allow_implicit_invocation defaults to true. For connecting MCP servers to Codex itself, see Codex MCP.
Skills, AGENTS.md and hooks
Because only a skill’s name and description sit in context until it is chosen, a skill is the place for a long workflow you need some of the time: a release checklist, a migration recipe, a review routine (Build skills). Rules that should shape every task, such as build commands and code style, fit better in AGENTS.md; see CLAUDE.md vs AGENTS.md. Checks that must run every time, whatever the model decides, belong in Codex hooks. Published skills with install commands and licenses are listed in the skills directory.





