Ninja Builder Sign in Get started

Claude skills explained: what they are and how to write one

What Agent Skills are, how Claude loads them, and a working SKILL.md you can copy.

By Ninja Builder team4 min read
Title card reading Claude skills explained, with examples, beside a screenshot of the slash menu in Ninja Builder

Key takeaways

  • A skill is a folder with a SKILL.md file: a description plus instructions.
  • Claude keeps only descriptions in context and loads the full instructions when a task matches.
  • Save skills in ~/.claude/skills for yourself or .claude/skills to share with a project.
  • Write specific descriptions with trigger phrases; that is what makes a skill fire.

A Claude skill is a folder with a SKILL.md file inside: a short description at the top, then instructions Claude follows when that kind of task comes up. Claude reads only the descriptions until a task matches, then loads the full instructions, so you can install many skills without filling up the conversation. You can also run a skill yourself by typing / and its name.

This guide covers how skills work, how to write your first one, where to put it, and how skills differ from CLAUDE.md files, slash commands and MCP servers.

What a skill is, in plain words

Think of a skill as a checklist you would otherwise paste into the chat every time. "When you write release notes, group changes by feature, link the pull requests, and keep it under 300 words." Instead of repeating that, you save it once as a skill. Claude picks it up whenever you ask for release notes, in every project where the skill is installed.

Anthropic published Agent Skills as an open standard in December 2025 (the spec lives at agentskills.io), and skills now work in Claude Code, the Claude apps and the API. Other coding tools have adopted the same format, so a well-written skill is portable.

How Claude decides to use a skill

Skills load in layers, which is why they cost so little until they're needed:

Diagram of a skill folder named write-release-notes containing SKILL.md, template.md, an examples folder and a script, next to three loading stages: name and description always loaded, the SKILL.md body when the skill fits, and supporting files on demand
Only the description is always in context. The rest loads when it's needed.
  1. The description is always visible. Claude keeps every installed skill's description in context so it knows what's available.
  2. The instructions load when a task fits. If your request matches a description, Claude reads the body of SKILL.md.
  3. Extra files load on demand. Templates, reference notes and scripts in the folder are only read if the instructions point to them.

The practical lesson: the description decides everything. A vague one ("helps with docs") rarely triggers. A specific one ("Write release notes from merged pull requests. Use when the user asks for release notes or a changelog") triggers at the right moments.

Write your first skill

Here is a complete, working skill. Create a folder named after it and save this as SKILL.md inside:

---
name: write-release-notes
description: Write release notes from recent merged changes. Use when the user asks for release notes, a changelog or "what's new".
---

When writing release notes:
1. Read the commits since the last tag (git log).
2. Group changes under New, Improved and Fixed.
3. Write one plain sentence per change, for users, not developers.
4. Link each item to its pull request if there is one.
5. Keep the whole thing under 300 words.

The part between the --- lines is YAML frontmatter. Anthropic's skills docs recommend a description, because Claude uses it to decide when to load the skill. The name is optional and defaults to the folder name. Below the frontmatter, write the instructions in Markdown, as you would brief a new colleague.

Where to save skills

Where you put the folder decides which sessions see it:

LocationPathWho gets it
Personal~/.claude/skills/<name>/SKILL.mdAll your projects on this computer
Project.claude/skills/<name>/SKILL.mdEveryone working in this repository (commit it)
Plugin<plugin>/skills/<name>/SKILL.mdWherever the plugin is enabled

If two skills share a name, a personal skill wins over a project one. Organisations can also deploy skills through managed settings, which override both.

Run a skill yourself

Type / followed by the skill's name at the start of your message, for example /write-release-notes for version 2.3. Text after the name is passed along as arguments. Two frontmatter switches control who can start a skill:

  • disable-model-invocation: true means only you can run it. Use this for anything with side effects, such as a deploy.
  • user-invocable: false hides it from the / menu and leaves it as background knowledge for Claude.

Skills have also replaced custom slash commands. Old command files in .claude/commands/ still work, but new ones should be skills.

Skills vs CLAUDE.md, MCP servers and subagents

  • CLAUDE.md is always loaded. Keep it for short facts every task needs: how to run tests, coding style, where things live. When a section turns into a step-by-step procedure, move it into a skill. Our guide to CLAUDE.md and AGENTS.md covers what belongs there.
  • MCP servers connect Claude to outside systems (a database, Figma, your issue tracker). A skill can tell Claude how to use one well. See what MCP is.
  • Subagents are separate helpers with their own context that Claude hands work to. A skill is knowledge; an agent is a worker. More in AI agent teams explained.

Tips for skills that work

  • One job per skill. "Write release notes" beats "handle all documentation".
  • Say when, not just what. Include trigger phrases in the description.
  • Keep SKILL.md short and move long reference material into separate files it links to.
  • Check third-party skills before installing. A skill can include scripts that run on your computer. Read it, or scan it, first.
  • Test it. Ask for the task in a few different ways and see whether the skill triggers.

Managing skills without editing folders

If you'd rather not create folders by hand, Ninja Builder has a Library for skills, playbooks and agents. It comes with a set of ready skills, and under Added by you you can paste a GitHub link (for example a folder from Anthropic's skills repository) and the app runs a security scan before anything is added. New skill opens a form for the name, the one-line "when to use it" and the instructions, and each item has a switch to turn it off. Playbooks show in the / menu of every chat.

Ninja Builder message box with /new- typed and a menu suggesting the /new-website playbook with the description Build a new website
Typing / in Ninja Builder lists your playbooks with one line each.

This short tutorial shows the Library in action:

Claude Code Skills & Playbooks Made Easy: Ninja Builder Library Tutorial

Want skills, playbooks and helper agents ready to use in a chat window? Download Ninja Builder and try it free for 14 days. The playbooks docs list what's included.

Frequently asked questions

What is the difference between a Claude skill and a slash command?

Skills have replaced custom slash commands. A skill can be started by typing /name like a command, but Claude can also load it by itself when a task matches its description.

Do skills use up my context window?

Very little. Only each skill's description stays in context; the full instructions and extra files load only when the skill is used.

Where do I put a skill so all my projects can use it?

Save it as ~/.claude/skills/<skill-name>/SKILL.md in your home folder. Skills in a project's .claude/skills folder only apply to that project.

Are third-party skills safe to install?

Treat them like any downloaded code. A skill can include scripts that run on your computer, so read it or scan it before you install it.

Keep reading