7 min read

How to Build a Claude Skill (SKILL.md Step by Step)

How to Build a Claude Skill (SKILL.md Step by Step)

How to build a Claude skill comes down to one folder and one file, and once you have built one you stop explaining the same job in every chat. Skills work in Claude Code, in the Claude desktop app and on claude.ai, and most of the repeatable work I run with Claude is packaged as skills.

To build a Claude skill, create a folder named after the skill inside .claude/skills/, add a file called SKILL.md with a name and a description at the top, then write the steps Claude should follow in plain Markdown. Type /skill-name to run it.

Below is the whole process with a working example you can copy.

What a Claude skill is

A skill is a folder with one required file, SKILL.md. The top of the file holds a short block of settings called frontmatter. The rest is instructions written the way you would brief a new assistant.

Claude keeps every skill's description in mind at all times, but only loads the full instructions when a request matches that description or when you type the skill's name. That keeps a large library of skills cheap: twenty skills cost twenty short descriptions until one is needed.

  1. 1

    Description

    always in context, a sentence or two per skill

  2. 2

    Match

    your request fits the description, or you type /name

  3. 3

    Instructions

    the full SKILL.md loads

  4. 4

    Supporting files

    opened only when a step points to them

How Claude loads a skill

How it compares to the other ways of instructing Claude:

What it isWhen Claude reads it
A promptInstructions typed into one chatOnly in that chat
CLAUDE.mdStanding notes about a projectAt the start of every session
A skillA packaged procedure for one jobWhen the job comes up or you call it

Use CLAUDE.md for facts that are always true about a project. Use a skill for a job with steps.

Where Claude skills live

Anthropic's Claude Code documentation page titled Extend Claude with skills
Anthropic's skills documentation at code.claude.com is the reference for every field and folder.

Anthropic's Claude Code skills documentation lists several locations. These three cover almost everyone:

ScopePathAvailable in
Project.claude/skills/<skill-name>/SKILL.mdThat project folder; commit it to share with a team
Personal~/.claude/skills/<skill-name>/SKILL.mdEvery project on your computer
Your claude.ai accountAdded under Customize in the desktop app, or in skills settings on claude.aiYour account's sessions across devices

Older custom commands still work. A file at .claude/commands/proposal.md and a skill at .claude/skills/proposal/SKILL.md both create /proposal. Anthropic recommends skills for anything new, because a skill folder can also hold supporting files.

Build your first skill in five steps

The example below turns sales call notes into a proposal. Swap in any job you do every week.

Step 1: Create the folder

Inside your project folder, create .claude/skills/proposal/. The folder name becomes the command, so /proposal.

Step 2: Write the frontmatter

Create SKILL.md in that folder. The first line must be ---, followed by the settings, followed by another ---:

markdown
---
name: proposal
description: Turn sales call notes or a transcript into a two-page proposal with three price options. Use when the user pastes call notes, mentions a proposal, or asks what to send a prospect after a call.
---

Only description really matters for most skills. If you leave out name, the folder name is used.

Step 3: Write the steps

Under the frontmatter, write the procedure. Be specific about inputs, rules and where the result goes:

markdown
# /proposal

1. Read business/services.md for packages and prices. Read business/voice.md.
2. The user's input is their call notes or a transcript: $ARGUMENTS
3. If the notes do not say the prospect's problem, goal and timeline,
   ask up to three questions before writing.
4. Write the proposal with these sections: Where you are (quote the
   prospect's own words), What you want, What I'd do, What's included,
   What's not included, Investment, Next step (one action with a date).
5. Prices come only from services.md. Anything unpriced becomes a
   question for me. Never invent a discount.
6. Keep it under two pages. Add a cover note under 100 words.
7. Save it to outputs/proposals/<prospect>-<date>.md and print the path.

$ARGUMENTS is replaced with whatever you type after the command, so /proposal [pasted notes] hands the notes straight in.

Step 4: Run it

Start Claude Code in the project folder and type /proposal followed by your notes. You can also just paste notes and say "write the proposal": because the description mentions call notes and proposals, Claude can pick the skill up without the command.

Step 5: Read the output and fix the skill, not the draft

When a draft is wrong, resist editing only the draft. Ask why it was wrong and change the instruction that caused it. If the investment table invented a setup fee, add a line saying setup fees come only from services.md. The skill gets better every run instead of you fixing the same mistake every week.

Write a description Claude will match

The description decides whether Claude uses the skill without being asked. Three rules:

  • Say what it does and when to use it. "Proposal helper" is too vague. "Turn sales call notes into a proposal. Use when the user pastes call notes or mentions a proposal" gives Claude both.
  • Use the words you actually type. If you say "quote" rather than "proposal", put "quote" in the description.
  • Keep it under a few sentences. The skill listing cuts long descriptions off, so put the important words first.

If you want a skill to run only when you call it, add disable-model-invocation: true to the frontmatter.

Add supporting files when the skill grows

Keep SKILL.md short: Anthropic suggests under 500 lines. Move long material into files next to it and link to them from the steps:

text
proposal/
  SKILL.md            the steps
  examples.md         two proposals that worked
  pricing-rules.md    discounts, payment terms, minimums
  scripts/
    word_count.py     a helper Claude runs, not reads

Claude only opens a supporting file when the steps point to it, so a skill can carry a lot of reference material without slowing anything down.

Improve a skill after every real run

Skills get better each time you correct them. When I built a full animated website with a website pipeline skill (the build is in Claude Code builds a $10,000 website in 20 minutes), I finished by telling Claude to update the skill with what it learned on that build. The next build started from a better skill.

A simple habit: after any run where you corrected the output, end with "update the skill so this does not happen again", then read the change before you accept it.

  1. 1

    Run it

    on a real job, not a test

  2. 2

    Check the output

    against your own files

  3. 3

    Find the cause

    the instruction that produced the mistake

  4. 4

    Update the skill

    then read the change before you accept it

The next run starts from a better skill

The improvement loop

Check a skill before you install someone else's

Public skills are useful, and some are traps. Before installing one, save its files without running anything and read them as text. Do not install it if:

  • An install step downloads and runs a script from a site you do not recognise.
  • It asks for passwords, API keys or account logins it should not need.
  • It tells Claude to hide a step or not mention something to you.

Prefer official sources and well-known publishers, and never paste an install command copied from a comment.

How to build a Claude skill: FAQ

Can I use Claude to create a skill?

Claude writes skills well. Describe the job, paste an example of good output and ask it to write the SKILL.md. Anthropic also publishes a skill-creator plugin for testing skills, installed with /plugin install skill-creator@claude-plugins-official.

How do I get skills for Claude?

You can write your own, install them from plugins or public repositories after reviewing them, or add them to your claude.ai account under Customize so they follow you across devices.

Are slash commands and skills the same thing?

Custom slash commands have been merged into skills. Both create a /name command, and existing command files keep working, but skills add supporting files and automatic loading.

What are good examples of Claude skills?

The most useful skills do one business job end to end: repurpose a video into posts, score a lead list, write a proposal from call notes, plan tomorrow from your notes. Claude Code skills examples lists 15 with the files to copy, and you can see the 18 I use on Claude skills for marketing agency owners.

Get 18 finished skills

Writing skills is worth learning, and you do not have to start from zero. The AI Operator Kit includes the 18 Claude Code skills I use for content, leads, outreach, sales and building pages, ready to copy, edit and learn from.

More on claude

View all