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.
Codex Skills
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.
my-skill/ SKILL.md required scripts/ optional references/ optional assets/ optional agents/openai.yaml optional
Minimal SKILL.md
--- name: skill-name description: Say exactly when this skill should and should not trigger. --- Instructions for Codex to follow.
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.
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.
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.
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.
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.
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.
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.
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
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
anthropics/skills
Create, improve, evaluate, and benchmark reusable Agent Skills with a structured workflow.
Source updated
anthropics/skills
Distinctive visual direction, typography, and interface design guidance for production web experiences.
Source updated
vercel-labs/agent-skills
React and Next.js performance guidance from Vercel Engineering, covering rendering, data fetching, and bundle efficiency.
Source updated
Check the trigger, workflow, required tools, and expected outputs.
Look for network access, filesystem changes, credentials, and destructive commands.
Choose project or personal scope intentionally and avoid overlapping skills.
A short guide to the skills worth installing first, sent in Telegram by Anton Shumeiko. It also opens the free Claude Skills course.