What matters in AI.

Subscribe

Learn / AI agents

Definition · AI agents

Skills

Skills are folders of instructions, scripts and resources that an AI agent loads only when a task needs them. Each skill has a SKILL.md file with a name and a description. The agent reads the short description first, and reads the full instructions when a task matches. Anthropic made the format and published it as the Agent Skills open standard.

Last reviewed

Key points

  • A skill is a folder with a SKILL.md file. The file has a name, a description and instructions. The folder can also hold scripts and reference files.
  • The agent reads only the name and description of each skill at startup, about 100 tokens for each skill. It reads the full instructions only when a task matches the description.
  • Anthropic announced Skills on 16 October 2025. On 18 December 2025, it published the format as the Agent Skills open standard. OpenAI Codex also uses it.
  • A skill can tell the agent to start code. Anthropic says a malicious skill can make the agent use tools or code for a hidden purpose.
  • Use a skill as you use software that you install. Get skills from trusted sources only, and read all of their files first.

How it works

The Agent Skills specification gives the folder one required file, SKILL.md, and three optional folders: scripts, references and assets. The agent loads a skill in three steps.

Step What the agent loads When Cost in the context window
1. Discovery Name and description At startup, for all skills About 100 tokens for each skill
2. Activation The full SKILL.md text When a task matches the description Less than 5,000 tokens, as recommended
3. Execution Reference files and scripts Only when the instructions tell it to Only the output of a script

Source: Agent Skills specification and Anthropic documentation, read 1 December 2026.

An agent reads only the description of a skill until a task matches it. Then it reads the instructions and starts the scripts.
An agent reads only the description of a skill until a task matches it. Then it reads the instructions and starts the scripts.

A user can also start a skill by its name, for example /deploy in Claude Code.

Why it matters

A skill is code that comes in with text. Snyk says skills “operate with the full permissions of the AI agent they extend”.

  • A malicious skill can make the agent use tools or code for a hidden purpose (Anthropic).
  • A skill that gets text from the web can put prompt injection into the agent.
  • A trusted skill can change when its dependencies change (Anthropic).

In practice

Snyk scanned 3,984 skills from ClawHub and skills.sh on 5 February 2026. It found a security problem in 1,467 skills (36.82%) and 76 malicious payloads. The attack has its own page: Agent skill poisoning.

Product Where skills live How a skill starts
Claude Code ~/.claude/skills/ or .claude/skills/ Automatically, or by /skill-name
Claude API Sent through the /v1/skills endpoints Named in the API message, with the code execution tool
OpenAI Codex .agents/skills in the repository or the home folder Automatically, or by $skill

Source: Anthropic and OpenAI documentation, read 1 December 2026.

In Claude, the names and descriptions go into the system prompt. The network access of a skill changes with the product:

  • Claude API. Skills have “No network access”.
  • Claude Code. A skill has the same network access as all other software on the computer of the user.

Thus the same skill is a larger risk on a laptop than in a sandbox.

Controls that the products give you:

  • Stop automatic use. In Claude Code, disable-model-invocation: true lets only a user start the skill. Anthropic gives a deploy skill as an example. In Codex, allow_implicit_invocation: false does the same.
  • Examine the allowed-tools field. This field approves tools for the skill before use. Claude Code says that a skill can give itself broad tool access. Examine this field in all skills in a repository before you start Claude Code there.

Trade-offs

  • Skills vs prompts. A prompt works for one conversation. A skill loads when necessary in each session. Nobody types the same instructions again.
  • Skills vs MCP. An MCP server gives the agent tools. A skill teaches a workflow. Anthropic says it will “explore how Skills can complement” MCP servers.
  • Description vs control. The agent selects a skill from its description. A loose description can start an incorrect skill. A skill with side effects can start when nobody told it to. For such skills, stop automatic use.

Questions and answers

What is the difference between a skill and a prompt?

A prompt gives instructions for one conversation. A skill keeps instructions in a folder. The agent loads the skill when a task matches its description. The Anthropic documentation says "Skills load on demand", unlike prompts for one-off tasks. A skill can also hold scripts that the agent starts.

What is the difference between a skill and an MCP server?

An MCP server gives an agent tools through the Model Context Protocol. A skill is a folder of instructions and scripts that the agent reads and starts itself. Anthropic says it will explore how skills can complement MCP servers.

Are third party skills safe to install?

Not by default. A skill can tell the agent to start code with the permissions of the agent. Snyk scanned 3,984 public skills in February 2026 and found 76 malicious payloads. Anthropic says to use skills only from trusted sources and to read all bundled files before use.

Sources

  1. Equipping agents for the real world with Agent SkillsAnthropic, 16 Oct 2025
  2. Introducing Agent SkillsAnthropic, 16 Oct 2025
  3. Agent Skills OverviewAgent Skills
  4. Agent Skills SpecificationAgent Skills
  5. Agent Skills (Claude Platform documentation)Anthropic
  6. Extend Claude with skillsAnthropic
  7. Build skills (Codex documentation)OpenAI
  8. ToxicSkills: Malicious AI Agent Skills on ClawHubSnyk, 5 Feb 2026

Guides that use this term

In the news