العربية
Back

Software and updates

Agent Skills: what they are and how to write your own SKILL.md

An explainer from Anthropic's docs: a skill is a folder with a SKILL.md file, how Claude loads it in stages, where to save it, steps to create a first skill, and the warning on untrusted sources.

Last reviewed:

Claude Code Anthropic WindowsmacOSLinux

What a skill is

A skill is a folder with a SKILL.md file in two parts: YAML frontmatter between --- markers that tells Claude when to use it, and Markdown content with the instructions Claude follows when it runs. Claude uses it automatically when it fits your request, or you invoke it directly with /skill-name. Claude Code skills follow the open Agent Skills standard, which works across multiple AI tools.

How Claude loads it

Anthropic describes staged loading: metadata (name and description) is always loaded at startup at small cost, the SKILL.md body loads when triggered, and bundled files are read as needed. That is why many skills can be installed without bloating context, and why the description must say what the skill does and when to use it.

Write your first skill

  1. Create a folder for it in your personal skills folder, such as ~/.claude/skills/summarize-changes.
  2. Create SKILL.md in it with frontmatter holding a name and a description, for example one that summarises uncommitted changes, flags risk and says when to use it.
  3. Under the frontmatter write the instructions you want Claude to follow, in clear steps.
  4. Open a git project, make a small edit and run claude.
  5. Test it two ways: ask something that matches the description so Claude invokes it, or invoke it by name.

Where to save it

  • Personal: ~/.claude/skills/name/SKILL.md for all your projects on this machine.
  • Project: .claude/skills/name/SKILL.md inside the repository; commit it so your team gets it.
  • Enterprise: through managed settings for all users on the organization's machines.
  • For wider distribution: through a plugin.

Source warning

Anthropic advises using skills only from trusted sources, meaning ones you wrote or got from Anthropic, because a malicious skill can direct Claude to call tools or run code in ways that do not match its stated purpose. If you must use an unknown source, audit every file. Treat it like installing software.

Not verified

We read the two pages on 1 December 2026. We did not read the skill authoring best practices or the cookbook they point to, nor every frontmatter field, so we do not describe them. The skill example here is our own wording of what the docs show, not a copy.

Related pages

Sources

Wording is ours, from the official source. Images and video belong to their owners and are credited with a link to the official page.

#agent-skills#skill-md#claude-code#anthropic

Frequently asked questions

What is the difference between a skill and a prompt?

A prompt is instructions for one conversation; a skill is a resource that loads on demand so you do not paste it again, per Anthropic.

When should I create a skill?

When you keep pasting the same instructions or checklist into chat, or when a CLAUDE.md section has grown into a procedure rather than a fact.

Where do I save a skill?

Personal skills go in ~/.claude/skills/skill-name/SKILL.md for all your projects, project skills in .claude/skills inside the repository to share with your team.

Which line matters most in a skill?

The description: it must say what the skill does and when to use it, because Claude matches your request against it.

Should I trust any skill I find?

No. Anthropic advises trusted sources only, and auditing every file if you must use an unknown one.