Claude Code skills: what they are and how to use them

What a skill is, where it lives, how to install one, how to write your own, and where to find good ones.

Last updated

Abstract illustration of glowing cards fanned out like a hand of cards

Claude Code skills are folders with a SKILL.md file inside: a few lines of YAML that say what the skill is for, followed by Markdown instructions. Claude sees a short description of every skill you have, loads the full instructions only when your request matches one, and you can also run any skill yourself by typing /skill-name.

That's the whole idea. A skill is the place for a procedure you keep pasting into chat ("here's how we write migrations", "here's our release checklist") or a section of CLAUDE.md that grew into a playbook. Everything below was checked against Anthropic's Claude Code docs, the anthropics/skills repository and the claude CLI (version 2.1.332) on November 29, 2026. Skills change often, so if something looks different on your machine, the official docs win.

What a skill actually is

On disk, a skill is a directory. The only required file is SKILL.md:

summarize-changes/
├── SKILL.md          required: frontmatter + instructions
├── reference.md      optional: detail Claude reads only when needed
└── scripts/
    └── helper.py     optional: a script Claude runs, not reads

The directory name becomes the command, so this one runs as /summarize-changes. Extra files are how a skill stays cheap: Anthropic recommends keeping SKILL.md under 500 lines and moving long reference material into separate files that Claude opens only when the task needs them.

Claude Code skills follow the Agent Skills open standard, which other tools read too (more on that in the FAQ). Claude Code adds its own extras on top, like controlling who can invoke a skill, running it in a subagent, and injecting live command output.

There are two kinds of skill content, and it helps to know which one you're writing:

  • Reference skills hold knowledge Claude applies to your work: API conventions, a style guide, how a legacy system behaves.
  • Task skills are step-by-step actions: deploy, release, open a PR. These are usually ones you want to trigger yourself.

Claude Code also ships with bundled skills, such as /code-review, /debug, /loop, /batch and /claude-api, so you've probably used a skill already without writing one.

Skills vs slash commands, CLAUDE.md, subagents, plugins and MCP

These all customize Claude Code, and the names overlap enough to confuse anyone. Here's how Anthropic's docs separate them:

Feature What it is Loads Use it for
Skill Instructions, knowledge or a workflow in a SKILL.md Description every session, full content only when used Reusable procedures, reference docs, /deploy-style tasks
Custom slash command A Markdown file in .claude/commands/ Same as a skill Nothing new: commands have been merged into skills
CLAUDE.md Context Claude reads at the start of every session Always "Always do X" rules, build and test commands
Subagent A separate worker with its own context window When spawned Big searches, parallel work, anything noisy you only want a summary of
MCP server A connection to an outside system Tool names at start, schemas on demand Talking to GitHub, a database, Slack, Figma
Hook A command Claude Code runs at a lifecycle event Runs outside the model Rules that must hold every time, like formatting after each edit
Plugin A package of skills, subagents, hooks and MCP servers Whatever it contains Installing someone else's setup, or sharing yours

A few distinctions are worth spelling out.

Skills vs slash commands. As of November 2026 they're the same thing. Old files in .claude/commands/deploy.md still work and still run as /deploy, but a skill can also carry supporting files and scripts. If a skill and a command share a name, the skill wins. To convert, move .claude/commands/deploy.md to .claude/skills/deploy/SKILL.md.

Skills vs CLAUDE.md. CLAUDE.md loads in full every session; a skill's body loads only when it's used. Anthropic's rule of thumb is to keep CLAUDE.md under 200 lines and move reference material and procedures into skills. If Claude should always know it, it belongs in CLAUDE.md. If it's needed sometimes, make it a skill. (More on CLAUDE.md in how to use Claude Code.)

Skills vs subagents. A skill adds content to your current conversation; a subagent works in its own context window and hands back a summary. They combine both ways: a skill with context: fork runs its instructions inside a subagent, and a subagent can preload skills with a skills: field.

Skills vs MCP. MCP gives Claude new tools, like the ability to query your database. A skill gives Claude knowledge about how to use them well, like your schema and the queries your team trusts. A common setup is one of each. If MCP is new to you, read what is MCP.

Skills vs hooks. Anything in a skill is a request Claude follows with judgment, not a guarantee. If a rule must hold every time ("never edit .env"), Anthropic's advice is to make it a hook.

Skills vs plugins. A plugin is packaging. It can hold skills alongside subagents, hooks and MCP servers, and plugin skills get a namespace, so a review skill in a plugin called my-plugin runs as /my-plugin:review.

Where Claude Code skills live

Where you save a skill decides which sessions see it:

Location Path Available in
Personal ~/.claude/skills/<skill-name>/SKILL.md All your projects on this machine
Project .claude/skills/<skill-name>/SKILL.md This repository; commit it so your team gets it
Nested <subdir>/.claude/skills/<skill-name>/SKILL.md Sessions in that folder, or once Claude works on files there (handy in monorepos)
Plugin <plugin>/skills/<skill-name>/SKILL.md Wherever the plugin is enabled, as /plugin-name:skill-name
Enterprise .claude/skills/ in the managed settings directory Everyone on machines your organization manages
claude.ai account Skills enabled on your claude.ai account Cowork, cloud sessions, and terminal sessions signed in with that account

When two skills share a name, enterprise beats personal and personal beats project. Plugin skills never clash because of their namespace.

Claude Code watches these folders, so a skill you add or edit shows up in the current session. If it doesn't, run /reload-skills. Run /skills to see everything you have, filter it, and sort by token cost.

One thing that trips people up: Cowork and cloud sessions don't read ~/.claude/skills/ on your laptop. They use the skills enabled on your claude.ai account, which you manage at claude.ai/customize/skills/yours. In the terminal, those account skills are downloaded into ~/.claude/skills/synced/, so don't edit them there; a later sync overwrites your changes.

How to install a Claude Code skill

There are two ways, depending on how the skill is shared.

Install a skill from a plugin marketplace

Most collections of skills are published as plugins in a marketplace (a GitHub repo with a .claude-plugin/marketplace.json catalog). Claude Code adds Anthropic's official marketplace, claude-plugins-official, the first time you start an interactive session. Inside Claude Code, type:

/plugin

The Discover tab lists what your marketplaces offer. To install by name, use /plugin install <plugin>@<marketplace>. For example, Anthropic's skill-creator plugin, which helps you write and test skills:

/plugin install skill-creator@claude-plugins-official

In a session, this opens the plugin's details first so you can see what it adds and choose a scope: just you (user), everyone in this repo (project), or you in this repo only (local).

For any other marketplace, add it first. Anthropic's own skills repository works this way:

/plugin marketplace add anthropics/skills
/plugin install document-skills@anthropic-agent-skills

That gives you the Word, Excel, PowerPoint and PDF skills; example-skills@anthropic-agent-skills installs the rest of the examples, such as frontend-design, mcp-builder and webapp-testing.

You can do the same from your shell without starting a session, for example in a setup script:

claude plugin install skill-creator@claude-plugins-official
claude plugin list

claude plugin install uses user scope unless you pass --scope project or --scope local. Plugins installed this way load the next time you start Claude Code, or right away after /reload-plugins.

Install a skill from GitHub by copying the folder

A skill is just a folder, so if someone shares a single skill on GitHub, copy it into one of the locations above:

git clone https://github.com/anthropics/skills.git ~/src/anthropic-skills
cp -r ~/src/anthropic-skills/skills/frontend-design ~/.claude/skills/

Use .claude/skills/ inside your project instead of ~/.claude/skills/ if the whole team should get it.

Before installing anything, read it. Skills are instructions Claude follows, and the allowed-tools field lets a skill pre-approve tools without asking you; Anthropic notes that Claude Code applies a project skill's allowed-tools even in a -p run in a folder you've never trusted. Plugins can also run hooks and MCP servers with your user privileges. Treat a stranger's skill like a stranger's shell script.

How to write a Claude Code skill

Make a folder and a SKILL.md:

mkdir -p ~/.claude/skills/changelog-entry

Here's a complete, minimal skill. Save it as ~/.claude/skills/changelog-entry/SKILL.md:

---
name: changelog-entry
description: Writes a CHANGELOG.md entry for the changes on the current branch. Use when the user asks for a changelog entry, release notes, or what to put in the changelog.
---

# Changelog entry

1. Run `git log main..HEAD --oneline` and `git diff main...HEAD --stat` to see what changed.
2. Group the changes under Added, Changed, Fixed or Removed. Skip refactors and test-only changes.
3. Write one line per change, in plain language a user would understand, starting with a verb.
4. Add the lines under a `## Unreleased` heading at the top of CHANGELOG.md, creating the heading if it is missing.
5. Show the entry and wait for approval before committing anything.

Then open Claude Code in a git project and either ask "what should go in the changelog for this branch?" or type /changelog-entry.

The rules for that file, from the docs:

  • The frontmatter must start on line 1. Claude Code only reads the YAML when the opening --- is the file's first line. If the YAML doesn't parse, the skill still loads, but with no description, so Claude can't match it automatically.
  • Only description is recommended in Claude Code. Every field is optional there; without a description, Claude uses the first non-empty line of the body. name defaults to the folder name.
  • Set both name and description if you want the skill to travel. The Agent Skills spec, claude.ai uploads and the Skills API require name (lowercase letters, numbers and hyphens, 64 characters at most, matching the folder name) and description (1,024 characters at most). The example above follows those rules, so it works outside Claude Code too.
  • Keep the body short. Once loaded, a skill stays in the conversation, so every line costs tokens on every later turn.

Optional fields worth knowing

Claude Code accepts more frontmatter than the open standard. The ones you'll actually use:

Field What it does
disable-model-invocation: true Only you can run it with /name. Use it for anything with side effects, like deploys or commits
user-invocable: false Only Claude can use it; it's hidden from the / menu. Good for background knowledge
allowed-tools Tools Claude can use without asking, during the turn that runs the skill, such as Bash(git status *)
argument-hint Autocomplete hint, such as [issue-number]
paths Glob patterns; the skill activates only when Claude works on matching files
context: fork Runs the skill in a subagent, with agent: picking which one (Explore, Plan, general-purpose or your own)
model, effort Model and effort level for that turn

A field name must match exactly; Claude Code silently ignores fields it doesn't recognize. And if you plan to upload a skill to claude.ai or use it through the API, stick to name, description, license, compatibility, metadata and allowed-tools, because anything else there is a hard error.

Arguments and live context

Whatever you type after the skill name arrives as $ARGUMENTS (or $0, $1 and so on by position). A line starting with !`command` runs that command before Claude sees the skill and pastes the output in its place. Together they make task skills like this one:

---
name: pre-pr
description: Checks the branch before opening a pull request.
argument-hint: [base-branch]
disable-model-invocation: true
allowed-tools: Bash(git status *)
---

## Working tree
!`git status --short`

## Steps
1. Compare this branch against the base branch: $ARGUMENTS (use main if none was given).
2. Run the test suite and the linter. Fix anything that fails and run them again.
3. List anything risky in the diff: missing tests, hardcoded values, unhandled errors.

Run it with /pre-pr main. If an injected command fails, the whole skill invocation stops, so append || true to commands that can exit non-zero on purpose.

To check your skills for broken frontmatter, run this from your shell:

claude plugin validate .claude/skills

(or ~/.claude/skills for personal ones). If you'd rather not write the file yourself, ask Claude ("make a skill in .claude/skills that does X"), or install the skill-creator plugin above, which also tests whether the skill triggers on the right prompts.

How Claude decides to use a skill

At the start of every session, Claude Code puts a listing of your skills' names and descriptions into Claude's context. When you ask for something, Claude matches the request against those descriptions and, if one fits, loads that skill's full SKILL.md. So the description is the trigger. Write it the way you'd describe the task out loud, with the words people actually use, and put the main use case first.

Details that matter once you have many skills:

  • Each skill's description plus when_to_use text is cut at 1,536 characters in the listing.
  • The whole listing has a budget of 1% of the model's context window. When it overflows, Claude Code drops the descriptions of the skills you use least, and those skills stop triggering on their own. /skill-doctor shows what each skill costs and how often it's used.
  • A skill with disable-model-invocation: true costs nothing until you run it, because its description isn't in the listing at all.
  • Once loaded, a skill stays in context for the rest of the session. After auto-compaction, Claude Code keeps only the first 5,000 tokens of each recently used skill, so put the important instructions at the top.

If a skill doesn't trigger, Anthropic's troubleshooting steps are: make sure the description has the words a user would say, ask Claude "What skills are available?" to see if it's loaded, rephrase your request, or just run it with /skill-name. If it triggers too often, make the description narrower or add disable-model-invocation: true.

Skills work best in codebases where there's less to explain in the first place: clear conventions, a real test suite, a short AGENTS.md. That's the idea behind RailsFast, a Rails starter that ships with those.

Where to find good Claude Code skills

  • Anthropic's official plugin marketplace (claude-plugins-official), already added for you. Browse it with /plugin or on the web at claude.com/marketplace, which shows install counts and marks some plugins "Anthropic verified". Most of its plugins come from partners and other authors; Anthropic maintains a smaller set, such as commit-commands, code-review and feature-dev.
  • anthropics/skills on GitHub, with over 200,000 stars as of November 29, 2026. It holds the document skills behind Claude's file features (docx, pdf, pptx, xlsx), examples like frontend-design, mcp-builder, webapp-testing and skill-creator, a template, and the Agent Skills spec. Anthropic describes these as demonstration skills, so test them before you rely on them.
  • Anthropic's community marketplace, with third-party plugins submitted to Anthropic: /plugin marketplace add anthropics/claude-plugins-community, then install with the @claude-community suffix.
  • Third-party directories and repos. Plenty of independent skill directories and "awesome" lists exist, and many popular plugins live in their authors' own marketplaces. Anthropic doesn't review third-party marketplaces, so read a skill before installing it.

Honestly, the best skills are often the ones you write. Watch for the third time you paste the same instructions into Claude Code; that's a skill.

Frequently asked questions

What are Claude Code skills?

Claude Code skills are folders containing a SKILL.md file with instructions and a short description. Claude reads the descriptions of all your skills at the start of a session and loads a skill's full instructions only when your request matches it. You can also run any skill directly by typing /skill-name.

How do I add skills to Claude Code?

Either install a plugin that contains skills, with /plugin inside Claude Code or claude plugin install <plugin>@<marketplace> in your shell, or copy a skill folder into ~/.claude/skills/ (all your projects) or .claude/skills/ (one project). Claude Code picks up new skill folders during the session; run /reload-skills if one doesn't appear.

How do I install Claude skills from GitHub?

If the repository is a plugin marketplace, add it with /plugin marketplace add owner/repo and install with /plugin install <plugin>@<marketplace-name>; for example, /plugin marketplace add anthropics/skills, then /plugin install document-skills@anthropic-agent-skills. If it's a single skill folder, clone the repo and copy the folder that contains SKILL.md into ~/.claude/skills/ or your project's .claude/skills/. Read the skill first, especially its allowed-tools.

How do I build a skill in Claude?

Create a folder such as ~/.claude/skills/my-skill/ and put a SKILL.md in it, starting with YAML frontmatter that has a name and a description saying what the skill does and when to use it, followed by the instructions in Markdown. Test it by asking for something that matches the description, or by typing /my-skill. Anthropic's skill-creator plugin can draft the skill and run evals on it for you.

Where is the Claude skills folder?

Personal skills live in ~/.claude/skills/<skill-name>/SKILL.md and project skills in .claude/skills/<skill-name>/SKILL.md at the root of your repository. Plugin skills sit inside the plugin's own skills/ folder, and skills synced from your claude.ai account are downloaded to ~/.claude/skills/synced/.

Where are Claude Cowork skills stored?

Cowork doesn't read the skills folder on your computer. It loads the skills enabled on your claude.ai account, synced when each session starts, and you manage them at claude.ai/customize/skills/yours. To use a personal Claude Code skill in Cowork, enable it on your claude.ai account.

How do I properly activate a Claude Code skill?

Type /skill-name at the start of your message to run it directly. For automatic activation, the skill's description has to contain the words you'd naturally use for that task, and its frontmatter must start on the first line of SKILL.md so it parses. If Claude still doesn't pick it up, ask "What skills are available?" to check that it loaded.

Are Claude skills free?

Skills themselves are just text files, and many shared ones are open source; much of Anthropic's anthropics/skills repository is Apache 2.0. Using them in Claude Code needs a plan that includes Claude Code, and skill descriptions and loaded skills count toward your token usage like any other context. Our Claude Code pricing page covers the plans.

Can Codex use Claude skills?

Mostly yes, because both follow the open Agent Skills standard. As of November 2026, Codex reads SKILL.md folders from .agents/skills in your repository and ~/.agents/skills in your home folder, and requires name and description in the frontmatter. Claude Code-only fields and features, such as context: fork or !`command` injection, won't behave the same there. More on Codex in what is Codex.

Sources

All checked on November 29, 2026.

Checklist

Grab your free launch checklist 🚀

The definitive checklist to launch any project. It includes pre-launch steps & a detailed launch checklist you can go through to get your new project off the ground.

Secure connection. No spam.