How to install
Codex skills: how to install them, and the ones worth adding
What a Codex skill is, where the folders go, how to install one from GitHub, how to call it with $, and the skills worth adding first.
3 min read · Updated
A Codex skill is a folder with a SKILL.md file inside. It teaches Codex a job it can repeat, like filling in a PDF or testing a web app. To install one, you put the folder where Codex looks for skills. There is nothing to register.
What is inside a skill
SKILL.md is the only file a skill needs. It starts with two lines Codex reads first: a name and a description that says when the skill should be used. The rest of the file is the instructions.
A skill can also carry extra folders:
| Folder | What it holds |
|---|---|
scripts/ |
Code the skill runs |
references/ |
Docs Codex reads when it needs them |
assets/ |
Templates and other files |
agents/openai.yaml |
How the skill looks in Codex, and what it depends on |
Where Codex looks for skills
| Folder | Who gets it |
|---|---|
~/.agents/skills/<skill-name>/ |
You, in every repo |
.agents/skills/<skill-name>/ in a repo |
Everyone who works in that repo |
/etc/codex/skills/ |
Everyone on the machine (set by an admin) |
Inside a repo, Codex checks .agents/skills in your current folder and in every folder above it, up to the repo root. So a skill can live at the root for the whole repo, or in one package for that package only.
Codex also ships with two skills of its own: skill-creator and skill-installer.
Install a skill from GitHub
Most skills live in one folder of a bigger GitHub repo. degit copies that folder without cloning the whole repo:
npx degit anthropics/skills/skills/pdf ~/.agents/skills/pdf
The first part is owner/repo/path-to-folder. The second part is where it lands. On Windows PowerShell, write $HOME instead of ~:
npx degit anthropics/skills/skills/pdf $HOME/.agents/skills/pdf
Every skill on AgentDuck shows this command, filled in, under its Codex install steps.
For skills in OpenAI's own collection, you can ask the built-in installer instead. Type this in Codex:
$skill-installer linear
Codex notices new skills on its own. If one does not show up, restart Codex.
Use a skill
There are two ways:
- Let Codex pick it. Codex reads every skill's name and description first, and loads the full
SKILL.mdonly when your task matches. Ask it to fill in a PDF form and it reaches for the PDF skill. - Call it yourself. In the Codex CLI or the IDE extension, type
$and the skill's name, like$pdf, or run/skillsto see the list.
If a skill never kicks in, read its description. Codex decides from that line, so a vague one gets skipped. Rewrite it to say when you want the skill used.
Make your own
Type $skill-creator and describe the job. It asks what the skill should do and when it should run, then writes the folder for you. Start with instructions only, and add scripts later if the skill needs them.
Turn a skill off
You do not have to delete the folder. Add this to ~/.codex/config.toml, then restart Codex:
[[skills.config]]
path = "/home/you/.agents/skills/pdf/SKILL.md"
enabled = false
Read it before you trust it
A skill can ship scripts, and Codex runs them on your machine. Before you install one, open SKILL.md and anything in scripts/. Every skill on AgentDuck has a "What it can do" panel that lists its scripts, shell commands, network calls and file writes, with links to the exact lines. How to check a skill before you install it goes further.
The same skills work in Claude Code
SKILL.md is a shared format. Claude Code reads the same kind of folder from ~/.claude/skills, so one copy of a skill can serve both agents. See how to install a skill in Claude Code.
Skills worth adding first
For coding:
For documents:
For building your own:
For more, browse every skill for Codex. To connect tools as well, see how to add an MCP server to Codex.