Agent-specific guide

Codex Skills

Codex skills are reusable workflows defined in a SKILL.md file. Pick a skill for a task you repeat, put it in scope for your project, and check the result with a small input before you rely on it.

How to install Codex skills

For a local skill, copy its entire folder, including any assets or references. The SKILL.md file goes one level inside the skill directory, not directly under .agents/skills. Use the repository root for shared workflows and your home directory for personal ones.

One repository

.agents/skills/<name>/SKILL.md

Put it at the repository root to share it with teammates who work in that repo.

One part of a monorepo

<subfolder>/.agents/skills/<name>/SKILL.md

Keep a specialized workflow next to its code. Start Codex in the subfolder or below it.

Personal, across repositories

~/.agents/skills/<name>/SKILL.md

Keep workflows you personally reuse in your home directory, outside any particular repo.

Publisher-managed bundle

Codex plugin directory

Install via the publisher’s documented plugin route when a workflow needs bundled skills or connectors.

Confirm the skill is available

  1. Open your repo in Codex. For a nested skill, start from its intended working folder. Codex checks parent folders up to the Git root.
  2. In the CLI or IDE extension, open /skills or type $ to select a skill by name. In the desktop app, start in the Skills area to inspect what is available.
  3. Give the selected skill a small input with a clear expected result. If it does not appear, check its frontmatter, its scope, whether it is disabled, and whether another skill has the same name. Restart Codex if changes still do not appear.

Before installing third-party files, check their source and any scripts they run. Start with a disposable project and keep existing approval settings. See OpenAI’s local skill discovery documentation.

For current OpenAI plugin examples, start with openai/plugins. The older openai/skills repository explicitly points readers to the plugin repo for current examples. Use the publisher’s install instructions for a specific skill or bundle.

Create a Codex skill: a PR handoff example

Save this as .agents/skills/pr-handoff/SKILL.md in a test repo. It takes a pasted change summary and test evidence, then returns a short handoff for a reviewer. It needs no connector, script, or write permission. The output below is an example to check against, not a captured Codex run.

---
name: pr-handoff
description: Turn a supplied pull request diff and test notes into a reviewer handoff. Use only for PR handoffs with a diff or change summary.
---

Use only the diff or change summary and test evidence in the request.
Do not edit files, run commands, or post to GitHub.
If no diff or summary is supplied, ask for one and stop.

1. State what changed and why in one sentence.
2. List one behavior a reviewer should confirm.
3. Report only supplied test evidence. Say "Not run" if none is given.

Return three labeled lines: Change, Review, Tests.

Try it with this prompt

Select $pr-handoff in Codex and send a small, known change:

$pr-handoff Change: save() now returns early if the title is blank. Tests: none run.
Change
Blank titles are rejected before a save starts.
Review
Confirm that a nonblank title still saves normally.
Tests
Not run.

Negative check: invoke it with no change summary. It should ask for the missing input rather than invent a diff or test run.

To make your own, replace the trigger, inputs, and output format with a workflow your team repeats. You can also ask Codex’s built-in $skill-creator to scaffold it, or make an editable draft with the Skill Generator and choose Codex as the target.

Codex skills vs. AGENTS.md, plugins, and MCP

Skill
A repeatable method for a specific task, such as turning a diff into a PR handoff. Keep instructions, examples, and optional scripts together in the skill folder.
AGENTS.md
Repository guidance that should apply even when no particular skill is selected. Put build commands, file conventions, and standing review requirements here.
Plugin
A package for distributing skills and other capabilities. Choose it when teammates need an installable bundle rather than a folder manually copied to each repo.
MCP
A connection to tools or data such as an issue tracker. A skill can explain how to use a tool, but access still depends on how that connector is configured.

A team can use all four: project rules in AGENTS.md, a test workflow in a skill, distribution through a plugin, and issue data through MCP. See OpenAI’s customization overview for where each piece fits.

Codex Skills FAQ

Why is my Codex skill not showing up?

Check that the file is named SKILL.md, its frontmatter has a name and description, and it is inside its own folder under .agents/skills. Confirm that the folder is in scope for the current repository or the current user. Reopen the project or restart Codex if changes do not appear, and check whether the skill is disabled in configuration.

How do I invoke a skill in Codex?

In Codex CLI or the IDE extension, type $ and pick the skill by name, or open the list with /skills. For a reproducible check, explicitly select the skill and provide a small sample input. Codex can also choose skills whose descriptions match a task.

Can I use a Claude Code skill in Codex?

Often, if its SKILL.md and resources follow the shared Agent Skills format. Move the skill folder into a Codex discovery location and check it for Claude-specific fields, tool names, scripts, or assumptions about how inputs are passed before using it. A portable file format does not guarantee that its dependencies are portable.

Do Codex skills give the agent new permissions?

No. Instructions and helper files do not change sandboxing, approval settings, or credentials. A skill may ask Codex to run code or call a connected tool, so inspect any bundled scripts and dependencies before enabling it.

Should I install skills from the openai/skills GitHub repository?

The repository identifies itself as deprecated for current examples and points to openai/plugins. For a current plugin, use its publisher’s documented installation path. If you need a standalone skill, review the exact folder and its dependencies before installing it.

Create your own skill

Write down the workflow you keep repeating.

Draft a focused skill, inspect the files, and run it on a small Codex task before sharing it.