Codex Skills

Codex skills: structure, config.toml and how to use them.

A Codex skill is a folder with a SKILL.md file (name and description required) plus optional scripts/, references/, assets/ and agents/openai.yaml. Codex lists each skill by name and description, then loads the full instructions only when it uses the skill. Skills are controlled in ~/.codex/config.toml.

Codex skill structure

my-skill/
  SKILL.md            required
  scripts/            optional
  references/         optional
  assets/             optional
  agents/openai.yaml  optional
SKILL.md
Required. YAML frontmatter with name and description, then the instructions Codex follows.
scripts/
Optional. Executable code for steps that must be deterministic.
references/
Optional. Longer documentation the skill points to.
assets/
Optional. Templates and files the skill uses.
agents/openai.yaml
Optional. Display name, icon, default prompt, tool dependencies, and the invocation policy.

Minimal SKILL.md

---
name: skill-name
description: Say exactly when this skill should and should not trigger.
---

Instructions for Codex to follow.

Codex CLI skills config

Skills are found in fixed folders: .agents/skills in your working directory and every parent up to the repository root, $HOME/.agents/skills for your user, and /etc/codex/skills for a machine. Settings live in ~/.codex/config.toml. Restart Codex after a change.

Disable one skill without deleting it (~/.codex/config.toml)

[[skills.config]]
path = "/path/to/skill/SKILL.md"
enabled = false

Turn off the bundled system skills for a project (.codex/config.toml)

[skills.bundled]
enabled = false

Stop one skill from running unless you call it (agents/openai.yaml)

policy:
  allow_implicit_invocation: false

Use exactly one selector per [[skills.config]] entry: path for one SKILL.md file or name for every skill with that name. The last matching entry wins.

Codex skills: common questions

What is the Codex skill structure?

A directory with a required SKILL.md (name and description in frontmatter) and optional scripts/, references/, assets/ and agents/openai.yaml. Keep each skill focused on one job.

How do I configure Codex CLI skills?

Locations are fixed (.agents/skills, $HOME/.agents/skills, /etc/codex/skills). Configuration goes in ~/.codex/config.toml: [[skills.config]] entries enable or disable a skill by path or by name, and skills.max_context_tokens sets the size of the skills list, up to 10,000 tokens.

How do I enable or disable a skill in Codex CLI?

Add a [[skills.config]] entry with path = "/path/to/skill/SKILL.md" and enabled = false to ~/.codex/config.toml, then restart Codex. Use exactly one selector per entry: path for one file, name for every skill with that name. The last matching entry wins.

Can I stop Codex from picking a skill on its own?

Yes. In the skill, set policy.allow_implicit_invocation: false in agents/openai.yaml. The skill then runs only when you call it with $skill-name.

Why does Codex shorten or skip my skills?

The initial list of skills uses at most 2% of the context window (8,000 characters when the window is unknown). With many skills, Codex shortens descriptions first and may omit some with a warning. Install fewer, narrower skills or raise skills.max_context_tokens.

Which skills should I try first in Codex?

Start with one job you repeat: frontend-design for interface work, a testing or review skill for your stack, or skill-creator to turn your own workflow into a skill. Install one, test it on a small task, then add another.

Do Claude Code skills work in Codex?

Both use the Agent Skills format, so many skills work in both. Install folders and tool access differ, so test each skill in Codex before relying on it.

Next

Checked against OpenAI and Anthropic documentation on 24 Nov 2026. Written by Anton Shumeiko.

Review checklist

Check the package before installing.

Codex discovers skills by description, so clear scope matters more than a catchy name.

Project-scoped skills work best for repository conventions; user-scoped skills suit personal workflows.

Verify commands in the target workspace and keep external credentials out of skill files.

Examples

Three packages to read

01 166.9K repo stars
skill-creator

anthropics/skills

Create, improve, evaluate, and benchmark reusable Agent Skills with a structured workflow.

Content language
English
Repository license
Apache-2.0

Source updated

02 166.9K repo stars
frontend-design

anthropics/skills

Distinctive visual direction, typography, and interface design guidance for production web experiences.

Content language
English
Repository license
Apache-2.0

Source updated

Read SKILL.md

Check the trigger, workflow, required tools, and expected outputs.

Inspect scripts

Look for network access, filesystem changes, credentials, and destructive commands.

Install narrowly

Choose project or personal scope intentionally and avoid overlapping skills.

Get the free Claude Code skills PDF

A short guide to the skills worth installing first, sent in Telegram by Anton Shumeiko. It also opens the free Claude Skills course.

Open in Telegram