Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

SKILL.md Example and Template (Copy and Edit)

A full, annotated SKILL.md example and a blank template you can copy, with the rules for the name, description and folder explained simply.

A SKILL.md file is a plain text file with two parts. At the top is a short header, written in YAML between two lines of three dashes, that holds the skill's name and description. Below it are the instructions, written in ordinary markdown, that Claude follows when the skill loads. Below you will find a complete annotated example and a blank template you can copy, both built to the rules in Anthropic's docs and the open Agent Skills spec.

The rules in one place

These come from the Agent Skills spec and Anthropic's docs.

  • The file is named SKILL.md and sits directly inside the skill's folder.
  • The folder name must match the name in the header.
  • name is required. Up to 64 characters, lowercase letters, numbers and hyphens only. It cannot start or end with a hyphen, cannot contain two hyphens in a row, cannot contain XML tags, and cannot contain "claude" or "anthropic".
  • description is required. It cannot be empty, can be up to 1,024 characters, and cannot contain XML tags. It should say what the skill does and when to use it.
  • The body has no fixed format. Anthropic recommends keeping it under 500 lines and moving long reference material into separate files.
  • Extra folders are optional. The spec suggests references/ for documents Claude reads when needed, assets/ for templates and data, and scripts/ for code Claude can run.

A full example skill

Here is a skill that turns rough notes into a weekly email newsletter. It uses one reference file and one template, which is a common shape for writing skills.

weekly-newsletter/
  SKILL.md
  references/
    voice.md
  assets/
    template.md

And here is its SKILL.md:

---
name: weekly-newsletter
description: Turns rough notes and links into a weekly email newsletter in the author's voice, with a subject line, three short sections and a sign-off. Use when the user asks for a newsletter, a weekly update email or a roundup of links.
license: MIT
---

# Weekly newsletter

## Before you write
1. Read references/voice.md for tone, banned words and the sign-off.
2. If the notes do not say what the opening should be about, ask.

## Steps
1. Group the notes into three themes. Leave out anything that does not fit.
2. Offer two subject lines, each under 60 characters.
3. Fill in assets/template.md. Keep each section under 120 words.
4. End with the sign-off from references/voice.md.

## Rules
- Use every link from the notes exactly once.
- Never invent facts, numbers or quotes that are not in the notes.
- Write in the second person and keep sentences short.

## Check before you finish
- Three sections, no repeats.
- Every link from the notes is included.
- The whole email reads in about two minutes.

## Example
Input: notes about a new pricing page, a podcast episode and three cold email tips.
Output: two subject lines, a one line opening, three sections (Pricing, Podcast, Cold email tips) and the sign-off.

What each part does

  1. The opening --- line must be the very first line of the file. Claude Code's docs say that if it is not, or the header does not parse, the skill loads with no name or description set.
  2. name: weekly-newsletter matches the folder name exactly. Lowercase with hyphens, no spaces.
  3. description is the most important line in the file. Claude sees only the name and description before deciding whether to load a skill, so this line has to say what the skill does and list the words a request would use ("newsletter", "weekly update email", "roundup of links"). Anthropic recommends writing it in the third person, as in "Turns rough notes into...", because the description is added to Claude's system prompt.
  4. license: MIT is optional. The spec allows a licence name or a pointer to a bundled licence file. Add it if you plan to share the skill.
  5. "Before you write" points to references/voice.md at the step where Claude needs it. Anthropic's docs say to mention each extra file at the moment Claude should open it, and to keep references one level deep from SKILL.md.
  6. "Steps" is a numbered list Claude can follow in order. Clear steps stop Claude from skipping parts of a routine.
  7. "Rules" holds things that must always or never happen.
  8. "Check before you finish" is a short checklist. Anthropic's best practices recommend this kind of feedback loop for tasks where quality matters.
  9. "Example" shows one input and the output you expect. Anthropic notes that examples show the style and level of detail you want more clearly than descriptions alone.

Copy this template

Replace each line in square brackets with your own words, and rename the folder to match your name.

---
name: your-skill-name
description: Says what this skill does in one sentence. Use when the user asks for this task, listing the words they would actually type.
---

# [Skill title]

## When to use this
[One or two lines about the job this skill is for.]

## Steps
1. [The first thing Claude should do]
2. [The next step]
3. [The next step]

## Rules
- [Something Claude must always do]
- [Something Claude must never do]

## Output format
[Describe the layout you want back, or paste a short template.]

## Check before you finish
- [A quick check Claude should run on its own answer]

## Example
Input: [a short, real request]
Output: [what a good answer looks like]

Keep the header plain. A description that starts with a square bracket or contains a colon followed by a space can break the YAML, so write it as a normal sentence.

Optional header fields

The Agent Skills spec defines a few optional fields beyond name and description:

  • license: the licence name or the name of a bundled licence file.
  • compatibility: up to 500 characters about what the skill needs, such as a product or internet access. The spec says most skills do not need it.
  • metadata: extra key and value pairs, such as an author or version.
  • allowed-tools: tools the skill may use without asking. The spec marks this as experimental.

Claude Code accepts more fields of its own, such as when_to_use, disable-model-invocation and argument-hint. Its docs suggest checking whether a Claude Code field is accepted before you upload the same skill to claude.ai. If you want one file that works everywhere, stick to name, description and license.

How to write a description that triggers

A good description names the task and the moments it applies. Compare these two:

  • Good: "Turns a list of tasks into a weekly plan with time blocks. Use when the user asks to plan their week, schedule tasks or build a timetable."
  • Too vague: "Helps with planning."

Anthropic's best practices make the same point with their own examples, and warn against descriptions as thin as "helps with documents". Write it in the third person, put the main use first, and include the words people actually say.

Common mistakes

  • Capital letters or spaces in the name, such as Weekly Newsletter.
  • A folder name that differs from the name line.
  • Pointing to a file that points to another file. Claude may only partly read files nested that deep.
  • Backslashes in file paths. Anthropic says to use forward slashes, even on Windows.
  • Dates that will go stale, such as "until next March".
  • Passwords or API keys inside the skill. Anthropic warns that everyone you share the skill with receives its files.

Check it before you use it

The spec's skills-ref validate ./my-skill command checks the header and naming rules. You can also ask Claude to review your folder against the Agent Skills spec. Then follow how to add a skill to Claude to install it, or read how to make a Claude skill with no code if you would rather have Claude write the file with you.

See finished skills for ideas in writing and editing, email marketing and documents and PDFs.

Questions

What goes in a SKILL.md file?

A short header with a name and a description, then plain markdown instructions. The header sits between two lines of three dashes. Everything else, such as steps, rules, an output format and examples, goes in the body below it.

What are the rules for a skill name?

Up to 64 characters, using only lowercase letters, numbers and hyphens, with no XML tags and no "claude" or "anthropic". The open spec adds that it cannot start or end with a hyphen, and the skill's folder must have the same name.

How long can a SKILL.md file be?

The description can be up to 1,024 characters. For the body, Anthropic recommends keeping SKILL.md under 500 lines and moving longer reference material into separate files that SKILL.md points to.

Does the file have to be called SKILL.md in capitals?

Use SKILL.md. Claude Code's docs say the file must be named exactly SKILL.md, and the Agent Skills spec uses the same name.

Sources

Get 3 free credits

Join the weekly email with the best new skills for your niche. We add 3 credits so you can try a pack for free. One email a week, unsubscribe any time.

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added