Skip to content

Agent Skills: What They Are and How They Load

By Maximo Correa · 2026-11-16

Agent Skills are an open format for giving an AI agent new abilities. A skill is a folder with a SKILL.md file: name and description metadata, then instructions. The agent reads only the name and description at startup and loads the full file when a task matches. Anthropic created the format, and many tools now read it.

A skill is a folder with one required file

An Agent Skill is a folder that holds a file named SKILL.md. The file has two parts: a short block of metadata at the top, then instructions in plain markdown. The official overview puts it this way: "At its core, a skill is a folder containing a SKILL.md file." The metadata carries a name and a description. The instructions tell the agent how to do one kind of job, such as filling a PDF form, reviewing a pull request or writing a release note.

my-skill/
├── SKILL.md          # required: metadata + instructions
├── scripts/          # optional: executable code
├── references/       # optional: documentation
└── assets/           # optional: templates, resources

A minimal SKILL.md looks like this:

---
name: pdf-processing
description: Extract PDF text, fill forms, merge files. Use when handling PDFs.
---

Step-by-step instructions the agent follows go here.

That example is the one the specification itself uses. The file is the whole product: there is no server to run and no package to compile. If you want the short definition of the file, see SKILL.md in the glossary.

Where the format comes from, and who reads it

Anthropic developed the format and then released it as an open standard. The site agentskills.io describes it as "originally developed by Anthropic, released as an open standard, and has been adopted by a growing number of agent products." The same site keeps a list of clients, and its source list includes Claude Code, Claude, ChatGPT and Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose and Amp, among many others.

Two of those have their own documentation that says so. Claude Code's docs state that its skills "follow the Agent Skills open standard, which works across multiple AI tools." OpenAI's Codex docs say skills "build on the open agent skills standard." Codex has its own locations and settings, covered in Codex skills: where they live and how to install them.

A standard format does not mean identical behavior. Claude Code adds fields of its own, such as disable-model-invocation, and says plainly that it extends the standard. Treat the shared part (the folder, SKILL.md, name, description) as portable, and check each tool's docs for everything else.

The two metadata fields

The specification makes both fields required, with limits:

FieldRequired by the specLimit
nameYes1 to 64 characters. Lowercase letters, numbers and hyphens. Cannot start or end with a hyphen.
descriptionYes1 to 1,024 characters. Says what the skill does and when to use it.

Claude Code is looser than the standard here. Its docs say that for frontmatter fields, "All fields are optional. Only description is recommended so Claude knows when to use the skill." When you leave out name, the folder name becomes the command. If you also publish to other tools, write both fields anyway, because the specification requires them.

The description does the real work, and the next two sections explain why.

Progressive loading: three stages

Agent Skills are built so that dozens of skills can sit on a machine without filling the context window. The overview describes three stages:

  1. Discovery. At startup the agent loads "only the name and description of each available skill."
  2. Activation. When a task matches a skill's description, "the agent reads the full SKILL.md instructions into context."
  3. Execution. The agent follows the instructions, "optionally executing bundled code or loading referenced files as needed."

The specification gives rough sizes: metadata of about 100 tokens per skill, a SKILL.md body under 5,000 tokens, and a recommendation to keep the main file under 500 lines. Claude Code's docs make the same point from the cost side: "a skill's body loads only when it's used, so long reference material costs almost nothing until you need it."

This is why a skill suits a long procedure better than a CLAUDE.md file. Claude Code's docs draw the contrast directly: "Unlike CLAUDE.md content, a skill's body loads only when it's used."

Where skills live in Claude Code

Claude Code reads skills from several places. Where you save one decides which sessions load it:

LocationPathLoads in
Personal~/.claude/skills/<skill-name>/SKILL.mdAll your projects on this machine
Project.claude/skills/<skill-name>/SKILL.mdSessions in this repository. Commit it so your team gets it too
Nested<subdir>/.claude/skills/<skill-name>/SKILL.mdSessions started in or below that subdirectory
Plugin<plugin>/skills/<skill-name>/SKILL.mdWherever the plugin is enabled, as /plugin-name:skill-name
Enterprise.claude/skills/<skill-name>/SKILL.md in the managed settings directoryAll users on machines where your organization deploys it

Two details are worth knowing. Skills you ship in a plugin appear with the plugin name as a prefix. And the older .claude/commands/ files still work: Claude Code's docs say "Custom commands have been merged into skills."

If you are new to the packaging side, what a Claude Code plugin is explains how a plugin bundles skills with other parts. To read skills before you install any, browse the skills directory or the list of the best Claude Code skills.

How a skill gets chosen

You can invoke a skill yourself. In Claude Code you type /skill-name. The other path is the one that matters for most people: the agent reads the descriptions it was given at startup and decides whether one fits the task. Claude Code's field reference says of the description: "Claude uses this to decide when to apply the skill."

So the description is a trigger, not a summary. Two rules follow from the docs:

  • Put the key use case first. In Claude Code, the description and when_to_use text together "is truncated at 1,536 characters in the skill listing to reduce context usage."
  • Use the words people say. The troubleshooting steps for a skill that does not fire begin with "Check the description includes keywords users would naturally say."

There is also a budget. Claude Code's docs say the skill listing "always contains every skill name, but if you have many skills, Claude Code drops some descriptions to fit the listing's character budget, which removes the keywords Claude needs to match your request." The budget scales at 1% of the model's context window. A name without its description is a weak signal, so a large skill collection can quietly make its own skills harder to match.

If a skill is malformed, the failure is silent in a different way. Per the docs: "If the frontmatter YAML is malformed, Claude Code loads the skill body with empty metadata, so /skill-name still works but Claude can't match against your description."

You can also take selection away from the model. Setting disable-model-invocation: true means "Claude can't invoke the skill on its own", which suits workflows with side effects like a deploy.

Why an installed skill can sit unused

Installing a skill puts a folder on disk. Whether the agent loads it is a separate step, and that step depends on the description matching the task in front of the agent. The sections above point to several ways the second step can fail without any error message:

  • The description is vague, so no task matches it.
  • The listing was trimmed to fit the budget and your skill lost its description.
  • The frontmatter did not parse, so the skill has no description at all.
  • The skill is set to disable model invocation, so only you can run it.
  • The task came up many turns into a long session and nothing prompted the agent to look.

We cover the mechanism in why installed skills sit dormant, and the practical answer to "will it fire" in do Claude Code skills auto-activate. If you want to confirm that a skill ran in a given session, how to tell if a skill actually fired shows what to check. The idea of routing a task to the right skill has its own page: what is skill routing.

What skills look like in the wild

Most guides stop at the definition. Here is the other half: how many skills exist and how they are packaged. These figures come from Flowy's index, 2026-11-16, published listings (GitHub repositories for Claude Code that Flowy lists):

MeasureValue
Published listings (repositories)4,286
Skills across those listings56,631
Repositories that ship at least one skill4,038
Median skills per repository that ships skills3

Divide 56,631 by 4,038 and you get an average of about 14 skills per repository. The median is 3. A gap that wide says the distribution is lopsided: the typical skill repository is a small, focused folder or two, while a minority are large collections that pull the average up. For a reader choosing skills, that has a practical meaning. A repository with three skills is a small set you can read in a few minutes. A repository with dozens is a library, and every skill you enable from it adds a description to the startup listing and uses some of the budget described above.

For comparison, the same index counts 11,517 subagents, 11,263 commands and 1,034 MCP servers. Skills are the largest component by a wide margin. The counts describe what is published, not what works: Flowy's index does not rate or test any of it.

How to try one

  1. Pick a skill folder and read its SKILL.md. It is plain text, so you can review exactly what it will tell the agent to do before you use it.
  2. Copy the folder to ~/.claude/skills/<skill-name>/ for use everywhere, or .claude/skills/<skill-name>/ for one project.
  3. Start Claude Code and ask for the task in the words the description uses, or type /skill-name.
  4. If nothing happens, check the description first, then run Claude Code with --debug to see whether the frontmatter parsed.

To keep going from here, the best Claude Code skills page ranks what the crawl found, and the plugin guide covers the bundled form. For the OpenAI side of the same format, read Codex skills.