Skip to content

Skills

A skill is a set of instructions that an agent loads when a task needs them, together with the files the instructions refer to. A skill is a folder with a SKILL.md file at its top. SKILL.md has front matter with name and description, then the instructions. The description says what the skill is for, so the agent knows when to load it.

Quick Reference

Skill

FieldPurposeGuidance
NameIdentifies the skill

Unique. At most 64 characters of lowercase letters, digits and hyphens. Taken from the SKILL.md front matter when you upload.

DescriptionTells the agent when to load it

From the SKILL.md front matter, at most 1024 characters. The agent sees this in its prompt and decides from it whether the skill applies.

FilesThe skill's contents

SKILL.md plus any text files it refers to. A folder named scripts is refused. Files must be UTF-8 text. The whole skill is at most 10 MiB.

Upload

FieldPurposeGuidance
Choose folderUpload a skill directory

Drop a skill folder, a .zip of one, or a single SKILL.md.

Replace from folderUpdate every file

Replaces the skill’s files with a new folder in one step.

CopyDuplicate a skill

Creates a new skill with the same files under a new name.

File Browser

FieldPurposeGuidance
EditChange a file in place

Open any file and edit its text. New file, New folder, Upload files, rename, Download and Remove are available. SKILL.md cannot be renamed or removed.

How an agent uses a skill

The prompt of the agent lists the name and description of each of its skills. The agent loads a skill with load_skill. The agent reads the other files of the skill with read_skill_file.

An agent cannot use two skills that have the same declared name.

Writing a skill

This example is a minimal SKILL.md:

---
name: refund-policy
description: Use when a customer asks for a refund. Explains eligibility and the steps to issue one.
---

# Refund policy

1. Check the order date in `policy/windows.md`.
2. ...

Keep SKILL.md short. Put long reference material in separate files, and name those files in the instructions.

Related