How to install agent skills in Codex
Codex reads skills from .agents/skills/ in your repo (every folder from where you start up to the repo root) and from $HOME/.agents/skills/ for all projects. Copy the skill folder there, or ask Codex to install one with $skill-installer. Call a skill by typing $ and its name, or pick it from /skills.
Where Codex looks
| Scope | Folder |
|---|---|
| Repository | .agents/skills/ in each folder from your current folder up to the repo root |
| You | $HOME/.agents/skills/ |
| Admin | /etc/codex/skills/ |
Install by copying
Copy the whole skill folder, not just SKILL.md, into .agents/skills/ so that the file ends up at .agents/skills/<name>/SKILL.md. Scripts and reference files in the folder come with it.
SKILL.md must include name and description. Codex detects skill changes automatically; if a new skill does not appear, restart Codex.
---
name: release-notes
description: Writes release notes from merged pull requests. Use when the user asks for release notes or a changelog entry.
---
1. List merged PRs since the last tag.
2. Group them as Added, Changed and Fixed.Install with $skill-installer
$skill-installer linearThat is the example from OpenAI's docs: the built-in installer skill fetches and installs a named skill for you.
Use it
- Implicitly: Codex picks a skill when your task matches its description.
- Explicitly: type $ to mention a skill, or run /skills in the CLI or IDE and choose one.
If it does not show up
- Start Codex inside the repo. It scans .agents/skills from your current folder up to the repo root, so a skill in a sibling folder is not found.
- Check SKILL.md has both name and description in its frontmatter.
- Restart Codex if a change is not picked up.
Because Codex and Cursor both read .agents/skills/, a skill committed there serves both. Claude Code reads .claude/skills/ instead, so teams using all three keep a copy or a link in each.
When a skill or vault helps, and when it does not
Helps
- Skills hold procedures that would push AGENTS.md past Codex's 32 KiB instruction limit.
- One SKILL.md folder works across Codex, Cursor and Claude Code.
Does not help
- Rules every task needs belong in AGENTS.md, which Codex always loads.
- Check a skill's scripts before you run Codex with wider sandbox permissions.