Technology

What Claude Skills Are and How to Build Your Own

What Claude Skills Are and How They Work

Imagine you get a new helper at work. They are clever and fast, but they do not know how your team likes things done. So every single day you explain it again. Same explanation, every morning, forever.

A Claude Skill is how you stop doing that. You write the explanation down once, in a file. From then on Claude reads it by itself, at the moment it becomes useful.

Anthropic gives away a whole set of these for free at github.com/anthropics/skills. You can read every one of them. This guide explains how a skill works, then walks you through building your own and checking that it actually gets used.

Updated November 2026.

WHAT IS IN THE FOLDER skill-name/ ├── SKILL.md you need this one ├── scripts/ small programs ├── references/ extra notes, read only if needed └── assets/ templates and fonts Everything except SKILL.md is optional. INSIDE THAT FILE — name: commit-style description: what + when to use — The label. This is all Claude reads at first. # Commit messages Imperative, under 60 chars. Explain why, not what. Your instructions. Read only if the label matches.
One Markdown file is a complete skill. The folders exist for when it outgrows that.

A skill is just a folder

This part surprises people. There is no app to install and no code to write. A skill is a folder with a text file inside it.

skill-name/
├── SKILL.md      <-- the only file you actually need
├── scripts/      <-- optional: small programs
├── references/   <-- optional: extra notes
└── assets/       <-- optional: templates, fonts

Only SKILL.md is required. The .md ending means Markdown, which is a simple way of writing text where you use a # to mark a heading and a - to mark a bullet point. If you have used Reddit, WhatsApp or Discord formatting, you already know most of it.

What goes in the file

Two parts. A label at the top, then your instructions underneath.

---
name: commit-style
description: How we write commit messages. Use this when
  writing or editing a commit message.
---

# Commit messages

Keep the first line under 60 characters.
Explain WHY you made the change, not what you changed.

The bit between the two --- lines is called the frontmatter. That is a slightly odd word for a very simple thing: it is the label on the box. It tells Claude what this skill is and when to open it.

Everything under it is what you actually want Claude to do.

That is a complete, working skill. Nothing else is needed.

The label rules

  • name is required. Up to 64 characters, lowercase letters, numbers and hyphens only, with no hyphen at the start or end and no double hyphens. It must match the folder name.
  • description is required. Up to 1,024 characters. Say what it does and when to use it.
  • license is optional. Who is allowed to reuse it.
  • compatibility is optional, up to 500 characters. Anything special it needs to run.
  • metadata is optional. Extra notes for your own use.
  • allowed-tools is optional and still experimental.

You can ignore the last four. Almost every skill uses only the first two. Claude Code accepts a few extra fields of its own, such as disable-model-invocation: true, which stops Claude running a skill by itself. That is worth setting on anything with side effects, like a deploy.

Why you can have loads of these

Here is the clever bit, and it explains why skills do not slow Claude down.

Think about a library. You do not read every book to find the one you want. You read the spines, pick one, and open only that.

Claude does the same thing:

  • It always reads the spines. That is the name and description of every skill you have. Tiny.
  • It opens one book only when the description matches what you asked for.
  • It looks at the appendix only if that book points to one.

So having twenty skills installed costs almost nothing. Claude is only reading twenty spines.

The description decides everything

Because Claude only sees the spine when choosing, the description is the most important thing you write. Brilliant instructions with a vague description will never get opened.

Weak: “PDF stuff.”

Strong: “Pull text and tables out of PDFs, fill in forms, join files together. Use this whenever someone mentions a PDF.”

The strong one contains the words a real person would actually say. That is what makes it match.

If a skill never seems to fire, the description is nearly always the problem. Rewrite that before you touch anything else.

Where to put the folder

~/.claude/skills/     <-- just for you, in every project
.claude/skills/       <-- shared with your team, in one project

The second one is the interesting option. If you put a skill in the project folder and share the project, everyone on your team gets it automatically. Nobody has to be told the rules, because the rules arrive with the code.

You can also run a skill on demand by typing a slash and its name, like /deploy.

Build your first skill in three steps

Here is a complete skill you can make now. It teaches Claude to write release notes the way your team likes them.

Step 1. Make a folder

mkdir -p ~/.claude/skills/changelog

That line makes a folder. mkdir is short for “make directory”, and the ~ symbol means your home folder. You can also make the folder by clicking around normally. The folder name, changelog, is also the skill’s name.

Step 2. Write the SKILL.md file

Inside that folder, make a file called SKILL.md and put this in it.

---
name: changelog
description: Write release notes in our style. Use this when
  someone asks for release notes, a changelog, or a summary
  of what changed.
---

# Release notes

Sort changes into Added, Changed, Fixed and Removed.
Leave out any group that is empty.

Write for someone who uses the product, not someone who
built it. "Search now handles apostrophes" is good.
"Fixed regex in tokeniser" is not.

One line per change.

Notice that the description uses both “release notes” and “changelog”. If your team says one and the label only says the other, the skill will miss. Put in the words people actually use.

Step 3. Try it

Start a new chat with Claude and ask for release notes. It should find the skill by itself and follow your rules. You can also run it directly by typing /changelog.

Check that it fires, and that it helps

A skill that quietly never runs is easy to miss, so test it on purpose.

  1. Use a fresh session. Anthropic’s documentation for Claude Code warns that leftover context from writing the skill can hide gaps, so test in a new chat.
  2. Ask the way a colleague would. Not “use the changelog skill” but “can you write up what changed this week?”. If nothing happens, rewrite the description first.
  3. Compare with and without it. The same documentation points out that seeing a skill trigger tells you Claude found it, not that it did what you intended. Run the same request with the skill turned off and compare the two results.
  4. Put the key use case first. In Claude Code the description is cut off at 1,536 characters in the skill listing, so the most important words belong at the start.

When one file is not enough

The Agent Skills specification recommends keeping SKILL.md under 500 lines and moving detailed material into separate files. Claude only opens those files when the job needs them, so a big pile of reference notes costs almost nothing while it sits unused.

Put anything with an exact right answer into scripts/. Checking a file, resizing images and adding up numbers are jobs a small program does the same way every time, which beats asking a model to be careful. Keep references one level deep from SKILL.md rather than in a chain of files that point to other files.

Let a skill write the first draft

There is a skill whose job is building other skills, called skill-creator. It sets up the folder, writes the label and can test whether your description actually gets picked up, which is the part that is hardest to judge on your own.

Then read a few real ones in Anthropic’s public collection. Seeing a good one teaches you more than any guide. Our tour of the Anthropic skills library explains what each one does, and Claude skills vs MCP servers covers when a skill is the wrong tool.

Sources and further reading

Where the rules above come from, so you can check them.