Agent skills

Agent skills are folders of instructions, scripts, and resources that an agent loads when a task needs them, to gain a specific ability.

An agent skill is a package that teaches an agent how to do one kind of task. It is a folder with a SKILL.md file at its root. The file starts with a short name and a description, followed by instructions written in plain language. The folder can also hold scripts, templates, and reference files that the instructions point to.

Skills load in stages to save context. At the start, the agent sees only the name and description of each skill. When a task matches a description, the agent reads the full instructions, and it opens the other files only when it needs them. This lets an agent have many skills available while its context stays short.

Skills differ from tools. A tool is one action that the model can call, while a skill describes how and when to combine tools, commands, and files to finish a task. Many skills include scripts that the agent runs, so they need an environment that can execute code. Agents often run these scripts in a sandbox, so that a faulty or untrusted skill cannot affect the host.