Agent Skills (SKILL.md)
Reusable task instructions with optional scripts and references
What is Agent Skills (SKILL.md)?
Agent Skills is an open format for packaging a repeatable task as a folder with a SKILL.md file and optional supporting resources. The file starts with YAML metadata and continues with Markdown instructions. A compatible application discovers the skill, makes it available to the agent, and loads its procedure when selected.
How it works
Read the diagram
- Name and description
- Task matches
- Load SKILL.md
- Use needed resources
Key takeaways
-
SKILL.md requires name and description in YAML frontmatter.
-
The name must match its folder; keep the task and activation conditions specific.
-
Scripts, references, and assets are optional. An instruction-only skill is valid.
-
Application support determines discovery, activation, tools, and execution permissions.
Illustrative example
A hypothetical content team repeats the same publication review every week. Its skill asks for source evidence, a bilingual link check, and a list of unresolved claims. The team tests it on a draft with one broken link and one unsupported number before trusting it in regular work.
What the format requires
The specification requires a SKILL.md file inside the skill directory. Its YAML frontmatter contains name and description. A name has 1–64 lowercase letters, digits, or hyphens, matches the folder name, and cannot start or end with a hyphen or contain consecutive hyphens. The description has 1–1024 characters and explains what the skill does and when to use it. The Markdown body contains the procedure.
An annotated SKILL.md example
This illustrative skill needs only the draft and its supplied sources. It does not claim to install tools or fetch private records. Save it in a folder named publication-review inside a skill location supported by your application.
---
name: publication-review
description: Review a publication draft against supplied sources. Use when the user asks for a source and link check before publishing.
---
# Review a publication draft
1. Read the full draft and its supplied sources.
2. Match each factual claim to a source; flag missing support.
3. Check that English and Spanish links reach the intended pages.
4. Return findings with the claim, source, and proposed correction.
5. Leave publication to the user’s requested workflow. Scroll the table to see every column.
| Part | Purpose |
|---|---|
| name | Identifies the skill and matches publication-review, its parent directory. |
| description | Defines the task and the request that should activate it. |
| Markdown steps | Specify evidence checks and the expected result after activation. |
Discovery, activation, and supporting files
Supporting applications can start with each skill’s name and description, then read SKILL.md when a task calls for it. Scripts, references, and assets can remain outside the initial context until needed. A description that only says “helps with content” gives the agent little basis for choosing the skill. State the concrete input, task, and activation condition.
File locations and invocation syntax belong to the host. Codex documents repository discovery through .agents/skills directories and supports explicit invocation as well as matching by description. Other products can use different locations, selectors, or tool integrations. The open format does not promise that every agent will discover an arbitrary folder.
Skills, project rules, and tool access
AGENTS.md stores project guidance; a skill packages a task procedure; MCP exposes tool and data interfaces to an application. A skill can describe how to use an MCP tool, but that tool must already be available and authorized. Loading SKILL.md does not retrain the model or guarantee a correct result.
The specification marks allowed-tools as experimental, with support that can vary. Treat the application’s permissions and higher-priority instructions as the boundary. Review third-party instructions and bundled scripts before running them, especially scripts that request credentials, network access, or writes.
Public SKILL.md files and supporting resources
OpenAI’s PDF skill provides a concrete example of a task procedure: render document pages, inspect their appearance, and check the final output. Its public directory includes assets alongside SKILL.md. The Playwright skill pairs browser instructions with scripts, reference material and assets. Both source files and their directories are linked below, so the procedure can be read together with the resources it uses.
Sources and documentation
- Agent Skills: format specification
- Agent Skills: overview and loading model
- Agent Skills: implementation guidance
- Agent Skills: writing effective procedures
- Agent Skills: evaluating outputs
- OpenAI: build and load skills
- OpenAI PDF skill: SKILL.md source and directory
- OpenAI Playwright skill: SKILL.md source and directory
Related terms
AGENTS.md
A Markdown file with project instructions for coding agents
Agentic Workflows
Processes that allow model-selected steps from feedback
AI Agents
Models selecting actions from tools and feedback
Tool Use
A model working with results from external operations
MCP (Model Context Protocol)
A protocol connecting AI applications with tools and data
Prompt Engineering
Designing and testing instructions for a model