SKILL.md is the single entry file of a skill. The agent reads it first, then decides whether to load anything else.

1. Location

<skills-dir>/<skill-name>/SKILL.md

One directory per skill — never drop SKILL.md straight into the skills folder.

2. Frontmatter fields

FieldRequiredMeaning
nameyeskebab-case, matching the directory
descriptionyesdecides triggering: when to use plus what it produces
licensenoMIT / Apache-2.0 / proprietary
metadatanoversion, author, trigger notes

A real example:

---
name: stop-slop
description: Remove AI writing patterns from prose. Use when drafting, editing, or reviewing text.
metadata:
  author: Hardik Pandya
---

3. Body structure

SectionPurpose
# Titleone line on what it is
## When to usetrigger conditions
## Inputswhat the user must supply
## Stepsnumbered steps
## Outputformat and example
## Boundarieswhat it does not do

4. Three description rules

  1. start with a verb: Remove / Create / Analyze, not “This skill helps…”;
  2. name the trigger: how the user will phrase it;
  3. state the boundary: when it does not apply.

5. Length

SizeVerdict
under 30 linestoo thin; steps are missing
100–400 linesgood
over 800 linessplit into files; keep the entry short

6. Five common mistakes

MistakeConsequenceFix
marketing copy in descriptionnever triggersrewrite as “Use when…”
no output formatinconsistent resultsadd a template and example
dumping references into the bodycontext blow-upmove to references/
wrong nestingnever loaded<skills>/<name>/SKILL.md
no boundariesmisfires on neighboursadd “Do NOT use for…”

7. Minimal working example

---
name: weekly-report
description: Turn a list of updates into a weekly report. Use when the user provides raw updates or asks for a weekly summary. Do NOT use for meeting notes.
---

# Weekly Report

## When to use
User has bullet points of progress and wants a report.

## Inputs
- updates (bullets)
- audience (optional)

## Steps
1. Group updates by project.
2. Rewrite each as outcome, not activity.
3. List blockers separately.

## Output
Markdown with three sections: Shipped / In progress / Blocked.

Related: how to write a skill · install guide · skills library