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
| Field | Required | Meaning |
|---|---|---|
name | yes | kebab-case, matching the directory |
description | yes | decides triggering: when to use plus what it produces |
license | no | MIT / Apache-2.0 / proprietary |
metadata | no | version, 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
| Section | Purpose |
|---|---|
# Title | one line on what it is |
## When to use | trigger conditions |
## Inputs | what the user must supply |
## Steps | numbered steps |
## Output | format and example |
## Boundaries | what it does not do |
4. Three description rules
- start with a verb: Remove / Create / Analyze, not “This skill helps…”;
- name the trigger: how the user will phrase it;
- state the boundary: when it does not apply.
5. Length
| Size | Verdict |
|---|---|
| under 30 lines | too thin; steps are missing |
| 100–400 lines | good |
| over 800 lines | split into files; keep the entry short |
6. Five common mistakes
| Mistake | Consequence | Fix |
|---|---|---|
| marketing copy in description | never triggers | rewrite as “Use when…” |
| no output format | inconsistent results | add a template and example |
| dumping references into the body | context blow-up | move to references/ |
| wrong nesting | never loaded | <skills>/<name>/SKILL.md |
| no boundaries | misfires on neighbours | add “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