Skip to main content
Skills are reusable, self-contained instruction files you can attach to your agents. Each skill is a single Markdown file with a YAML frontmatter block that defines its metadata.

Limits

  • Maximum 10 skills per account
  • Maximum 10 KB per skill file

File format

A skill is a SKILL.md file. It must start with a YAML frontmatter block followed by the skill content in Markdown.
---
name: my-skill-name
description: A short description of what this skill does.
allowed-tools:
  - web-search
license: MIT
compatibility: Works best with Claude 3+
metadata:
  author: Jane Doe
  version: "1.0"
---

## Skill Instructions

Write your skill instructions here in plain Markdown...

Frontmatter fields

Required

FieldTypeDescription
namestringUnique skill identifier. See name rules.
descriptionstringWhat the skill does. Max 1024 characters.

Optional

FieldTypeDescription
allowed-toolslist of stringsTools this skill is permitted to use.
licensestringLicense identifier (e.g. MIT).
compatibilitystringNotes on model or platform compatibility. Max 500 characters.
metadatadictionaryArbitrary key-value metadata (e.g. author, version).
No other fields are allowed. Any unexpected frontmatter fields will cause a validation error.

Name rules

The name field has strict formatting requirements:
  • Lowercase only — no uppercase letters allowed
  • Allowed characters — letters (a-z), digits (0-9), and hyphens (-)
  • No leading or trailing hyphens-my-skill and my-skill- are invalid
  • No consecutive hyphensmy--skill is invalid
  • Maximum 64 characters
summarizer
web-researcher
code-review2
sql-helper

Structure requirements

The SKILL.md file must:
  1. Start with --- to open the YAML frontmatter
  2. Close the frontmatter with a second ---
  3. Contain valid YAML inside the frontmatter block
  4. Have the frontmatter parse as a YAML mapping (not a list or scalar)

Minimal valid example

---
name: summarizer
description: Summarizes long text into bullet points.
---

When asked to summarize, extract the key points and present them as a concise bulleted list.

Common validation errors

ErrorFix
Missing required field: nameAdd a name field to the frontmatter
Missing required field: descriptionAdd a description field to the frontmatter
Skill name must be lowercaseUse all lowercase in the name
Skill name contains invalid charactersUse only letters, digits, and hyphens
Skill name cannot start or end with a hyphenRemove leading or trailing hyphens
Skill name cannot contain consecutive hyphensReplace -- with -
Unexpected fields in frontmatterRemove fields not in the allowed list
SKILL.md must start with YAML frontmatterEnsure the file starts with ---
Description exceeds 1024 character limitShorten the description
allowed-tools must be a listUse YAML list syntax for allowed-tools
File too largeKeep the skill file under 10 KB
Limit reachedYou can have at most 10 skills per account