Skip to content
ai-native.marketingSubscribe

How to write a SKILL.md file: the format, the fields, and a marketing example

A SKILL.md file is a recipe card for your agent: a clear title, a tight recipe, and the same result every time.

AI-native stacks6 min read

TL;DR

A SKILL.md file is a recipe card taped inside the cupboard door. The agent glances at the title on every card when it starts work, and only takes one down when the dish is on the menu. Write a clear title and a tight recipe, and the agent cooks it the same way every time.

This guide walks through the format field by field, shows a complete marketing skill you can copy, and gives the steps to write and test your own. For what skills are and which ones to install, start with agent skills for marketers.

What is a SKILL.md file?

A SKILL.md file is the required file in an agent skill: a Markdown document whose frontmatter tells the agent what the skill is, and whose body tells it how to do the job. A skill is a directory containing, at minimum, a SKILL.md file, with optional folders for scripts, references, and assets.

The format took off quickly. Since the standard launched, 1 million skills have been published and nearly 280 million installed, and Anthropic has donated it to the Agentic AI Foundation under the Linux Foundation. Our skills index lists the marketing ones worth a look, with install commands.

What goes in the SKILL.md frontmatter?

The frontmatter needs a name and a description, and four optional fields cover licensing, environment, metadata, and tool permissions.

FieldRequiredRules
nameYes1 to 64 characters, lowercase letters, numbers, and hyphens, no leading, trailing, or double hyphens, and it must match the folder name
descriptionYes1 to 1,024 characters on what the skill does and when to use it, with the keywords a task would contain
licenseNoA licence name or a bundled licence file
compatibilityNoUp to 500 characters on environment needs, such as a product or network access
metadataNoAny string keys and values, such as author and version
allowed-toolsNoPre-approved tools, experimental and supported unevenly

Each of the optional fields have a job, but most marketing skills need none of them. Add metadata for author and version once a skill is shared across a team.

How do you write a good skill description?

Say what the skill does, then say when to use it, in the words a person would type. A description that names the jobs and triggers gives the agent something to match, and one that reads "Helps with PDFs." gives it almost nothing.

Agents load every name and description at startup, at about 100 tokens per skill, and decide from that alone whether to open the rest. So list the formats and channels the skill covers, such as blog post, LinkedIn post, and landing page, plus the verbs people use, such as edit, tighten, or check.

The numbers that shape a SKILL.md file

64maximum characters in a skill name
1,024maximum characters in a description
100approximate tokens each skill costs at startup
500recommended maximum lines in SKILL.md
Source: Agent Skills specification

A complete SKILL.md example for marketing

Here is a brand voice editor a two-person team can drop into Claude Code, Cursor, or any agent that reads skills. It lives in a folder called brand-voice-editor, with the voice guide and banned list in a references folder.

---
name: brand-voice-editor
description: Edits marketing drafts into the Acme brand voice and removes banned writing patterns. Use when asked to edit, tighten, or check a blog post, LinkedIn post, newsletter, email, or landing page for Acme.
metadata:
  author: acme-marketing
  version: "1.0"
---

# Brand voice editor

## Steps
1. Read references/voice.md and references/banned.md.
2. Rewrite the draft in the Acme voice. Keep every fact, number, and link.
3. Remove every pattern listed in banned.md.
4. Return the edited draft, then a short list of what changed and why.

## Example
Input: "Our platform empowers teams to achieve more."
Output: "Acme cuts campaign reporting from a day to an hour."

## Edge cases
- If a claim has no source, flag it instead of rewriting it.
- If the draft is under 50 words, edit it without a change list.

The banned list can start from the patterns in how to spot AI slop. In Claude Code you can install a skill by adding its folder to ~/.claude/skills, and Claude apps can build one with the skill-creator skill.

How to write and test a SKILL.md file

Start from one job you repeat every week and build the smallest skill that does it. These steps take an afternoon.

  1. Pick one repeatable job. A brand edit, a weekly report, or an SEO check, small enough to describe in one line.
  2. Name the folder and the skill the same. Lowercase with hyphens, such as seo-page-audit.
  3. Write the description last. Once the steps work, describe the job and the triggers in plain words.
  4. Keep the body to steps, one example, and edge cases. Step-by-step instructions, examples, and edge cases are the recommended sections.
  5. Move long material into references. Voice guides and checklists go in their own files, linked one level deep from SKILL.md.
  6. Validate it. Run skills-ref validate ./my-skill to check the frontmatter and naming rules.
  7. Test the trigger. Ask for the job in three different ways and check the skill fires each time. If it doesn't, rewrite the description.

Skills can run code, so install other people's only from trusted sources. For the bigger picture of where skills sit next to Projects and Cowork, see Claude for marketing.

Frequently asked questions

What is a SKILL.md file?

A SKILL.md file is the required file in an agent skill. It starts with YAML frontmatter holding a name and a description, followed by Markdown instructions that tell the agent how to do one job.

What fields are required in SKILL.md?

Only name and description. The name must be lowercase letters, numbers, and hyphens, up to 64 characters, and match the folder name. The description can run to 1,024 characters.

How long should a SKILL.md file be?

Keep it under 500 lines and roughly 5,000 tokens. Move long reference material into separate files that the skill links to.

Where do I put a skill folder?

It depends on the agent. In Claude Code you can add the folder to ~/.claude/skills, and other agents and Claude apps have their own install paths or upload options.

Do SKILL.md files work outside Claude?

Yes. Agent Skills is an open standard, and more than 70 agent platforms, including ChatGPT, Cursor, GitHub Copilot, and VS Code, support it.