AI

How to Write a SKILL.md File That Actually Triggers: Best Practices

Web Brick Studio · · 9 min read

How to Write a SKILL.md File That Actually Triggers: Best Practices

A good SKILL.md has three parts: a short name, a description that says exactly what the skill does and when to use it, and clear step-by-step instructions under 500 lines. The description carries the most weight by far, because it’s the only part Claude reads before deciding whether to load the skill. Anything long goes into separate reference files that you link to, so Claude only opens them when it needs them.

Part of our complete guide to Claude Skills.

You wrote a skill, uploaded it, asked for exactly the thing it does, and Claude ignored it. Annoying, and very common. Our beginner’s guide covers creating and uploading a skill. This post goes a level deeper: writing one that loads at the right moment and gives the same result every time.

How does Claude read a skill?

Anthropic calls it progressive disclosure. In practice Claude reads a skill in layers:

  1. Frontmatter (name and description). Always loaded, for every skill you have. It’s how Claude knows the skill exists at all.
  2. The SKILL.md body. Loaded only once Claude decides the skill fits the task.
  3. Linked files in the same folder, like references, templates and scripts. Loaded only if the instructions point to them and the task needs them.

That’s why you can install lots of skills without slowing Claude down. It’s also why a vague description means your skill simply never loads.

What are the frontmatter rules?

FieldRule
nameUp to 64 characters. Lowercase letters, numbers and hyphens only. Cannot contain “anthropic” or “claude”.
descriptionRequired. Up to 1,024 characters. No XML tags.
---
name: invoice-checker
description: Checks supplier invoices against purchase orders and flags differences. Use when the user uploads an invoice, asks to check a bill, or mentions a PO mismatch.
---

How do you write a description that triggers?

Say what it does, then when to use it. Two sentences is usually plenty.

Then use the words people actually type. If your team says “quote”, don’t write “proposal”. Name the file types too (“Use when the user uploads a .csv or .xlsx”), because that helps Claude match file-based tasks.

Write in the third person: “Writes product descriptions” beats “I can help you write”. And be narrow. “Writes Shopify product descriptions” will outperform “Helps with ecommerce” every time.

A quick test we use: read only your description. Could a stranger tell which requests should use it and which shouldn’t? If not, rewrite it.

How should you write the instructions?

  • Number the steps for anything that has an order.
  • Include one short example of good output. Examples teach format faster than any rule.
  • Write rules as checks. “Meta descriptions under 155 characters” can be tested. “Make it good for SEO” can’t.
  • Say what not to do, but keep that list short. Five clear bans beat thirty.
  • Don’t explain what Claude already knows. Nobody needs “HTML is a markup language” in a skill. Spend the words on your rules.
  • Keep the body under roughly 500 lines and move long reference material into its own file.

How should the folder be laid out?

client-report/
├── SKILL.md
├── references/
│ └── report-glossary.md
├── assets/
│ └── report-template.docx
└── scripts/
└── build_chart.py

Link to each file from SKILL.md and give a reason, like: “For metric definitions, read references/report-glossary.md.” Claude then opens that file only for the reports that need it.

Use scripts for anything that has to be exact: calculations, file conversion, validation. Claude runs the script and uses its output, which is far more reliable than mental arithmetic. One catch: in the Claude API, skills run without network access and can’t install packages at runtime, so stick to standard libraries there.

Extra options in Claude Code

Claude Code supports more frontmatter fields. Three we use constantly:

  • disable-model-invocation: true stops Claude loading the skill on its own. Use it for anything risky, like a deploy skill you only want triggered by typing /deploy.
  • allowed-tools lets the skill use certain tools without asking each time.
  • context: fork runs the skill in a separate subagent and keeps your main chat tidy.

Why isn’t your skill working?

  1. Vague description. “Helps with marketing” will never trigger reliably.
  2. Two skills with overlapping descriptions. Claude may grab the wrong one. Merge them or sharpen the scope.
  3. One giant file. Split the references out.
  4. Folder name doesn’t match the name field. Keep them identical.
  5. Code execution switched off in Claude’s settings, so the skill can’t load files or run scripts.
  6. Never tested. Try five real requests, including two that shouldn’t trigger it.

Is there a quick way to start?

Yes. Ask Claude to use the built-in skill-creator: “Help me create a skill for our client reports.” It interviews you, writes the SKILL.md and packages it up.

Then fix the description using the tips above, because that’s the part it most often gets too generic. For finished examples, see 15 Claude Skills you can copy.

Good vs bad descriptions: examples

Weak descriptionWhy it failsBetter description
Helps with marketing.Too broad, overlaps with everythingWrites Instagram and LinkedIn posts in our brand voice. Use when the user asks for social posts, captions or a content calendar.
I can write product copy for you!First person, no trigger wordsWrites Shopify product descriptions with our structure. Use when the user asks for a listing, product copy or product description.
Data skill.Says nothing about what or whenCleans CSV and Excel exports and reports every change. Use when the user uploads a .csv or .xlsx and asks to clean, fix or dedupe it.
Use this for reports.Which reports? What output?Writes the monthly client SEO report as a Word document. Use when the user asks for a client report or monthly SEO summary.

A complete example, line by line

Here’s a short but complete skill, and then why each bit is there.

---
name: meeting-notes
description: Turns meeting transcripts or rough notes into clean meeting minutes with decisions and action items. Use when the user shares a transcript, call notes or asks for meeting minutes or a meeting summary.
---

# Meeting notes

1. Start with a 2-sentence summary of what the meeting was about.
2. List decisions made, one per line.
3. List action items as: Owner | Task | Due date. Write "No date" if none was given.
4. List open questions that need follow-up.
5. Keep it under 300 words. Do not invent decisions or owners.

Example action item:
Sara | Send updated quote to client | Friday

The name is short, lowercase and matches the folder. The description says what comes out and lists the words people use for it: transcript, call notes, minutes, summary. Steps are numbered because the order matters.

“Under 300 words” is a rule you can actually check. “Do not invent decisions or owners” guards against the single most common failure in AI summaries. And the one-line example shows the exact format, which teaches more than another paragraph of rules would.

How do you test a skill before sharing it?

  1. Write five requests that should trigger it, each worded differently.
  2. Write two that shouldn’t, like a related task another skill handles.
  3. Run each in a fresh chat. Note whether the skill loaded and whether the output followed every rule.
  4. Fix the description if it triggered wrongly. Fix the instructions if the output broke a rule.
  5. Repeat until all seven behave.

Save the test requests in a text file next to the skill. You’ll rerun them after every change, and you’ll be glad you did.

Maintaining skills over time

Give every skill an owner who updates it when the process changes. Keep a short changelog at the bottom of SKILL.md, or in a separate file, so the team can see what changed and when.

Delete rules nobody needs. Long skills get skimmed by people and followed less well by Claude. And whenever a draft goes wrong, ask one question: was a rule missing, unclear or fighting with another rule?

Instruction-only skills or skills with scripts?

Most business skills only need text. Add a script when a step must come out exactly right every time: converting a file format, validating a CSV against a schema, adding up totals. Scripts make that step more reliable but need more care. Test them, keep them short, avoid network calls unless they’re essential, and put a comment at the top saying what the script does.

Writing for Claude vs writing for people

Claude reads the skill, but so do the people who review and update it. Write it the way you’d brief a capable new colleague. Clear steps, short sentences, the reason behind any odd rule, an example of the result.

Skip the CAPITAL LETTERS and the stacked warnings. If a rule really matters, explain why in one line; Claude applies a rule more sensibly in situations you didn’t predict when it knows the reason.

Sources

Want custom skills written for your team’s workflows? Get in touch.

How to write SKILL.md: FAQs

Why is my Claude Skill not triggering?

Nine times out of ten the description is too vague or misses the words you actually use in requests. Rewrite it to say what the skill does and when to use it. Then check code execution is switched on in Claude’s settings, since skills depend on it.

How long should a SKILL.md be?

Keep the main file under about 500 lines, and shorter is usually better. Long references, worked examples and templates belong in separate files inside the skill folder, linked from SKILL.md, so Claude reads them only when a task needs them.

What characters can a skill name use?

Only lowercase letters, numbers and hyphens, with a maximum of 64 characters. The name can’t contain “anthropic” or “claude”. Match it to the folder name exactly, or you’ll run into loading problems that are hard to spot.

Can a skill include code?

Yes. Put scripts in a scripts folder and say in SKILL.md when to run them. They suit exact work like calculations, validation and file conversion. In the Claude API, scripts have no network access, so stick to standard libraries.

Can one skill call another skill?

Not directly. Claude can, though, load several skills for the same task. So keep each one focused and let them combine: a brand-voice skill and a blog-post skill working together, for example, instead of one huge skill doing both jobs.

Do I need YAML experience to write a SKILL.md?

No. The frontmatter is a couple of lines between two rows of three dashes: a name and a description. Everything below that is ordinary text, written the way you’d explain a task to a colleague.

Keep reading

More from our blog.