Claude Code Skills: Where They Live and How to Add One

Add a Claude Code skill from a copyable SKILL.md example. See which copy wins, how slash commands work, and when a team can block inline shell commands.

Published

Claude Code Skills: Where They Live and How to Add One

If you keep reminding Claude Code how your team writes an API endpoint, save those instructions in the repository. Anthropic’s example fits 3 review rules in a single SKILL.md file. Claude Code skills let you call those rules up by name, and Claude can load them on its own when you ask for a new endpoint.

What are Claude Code skills?

A skill is a folder with a SKILL.md file that tells Claude how to handle a recurring task. Think of a recipe box. In a regular session, Claude has the descriptions of available recipes. It reads the full recipe when it needs to use it. A skill can include reference files, templates or scripts alongside the instructions. For a short checklist, the Markdown file is enough.

Consider a developer adding a billing endpoint. The prompt describes the new endpoint. The skill supplies the conventions that should hold for every endpoint in that codebase, such as how to name a resource and what an invalid request should return. The next developer can ask for a different endpoint and draw on the same conventions. Claude Code uses the Agent Skills folder format.

Anthropic’s Claude Code skills reference with its setup instructions
Claude Code skills reference

If you work in the Claude apps, start with how to use Claude Skills there. The weekly client report example shows how the same idea applies to a recurring deliverable.

Where skills live and which copy wins

Choose the location by asking who owns the instructions. An API’s error format belongs with the repository so a change to the API and its instructions can go through the same code review. Your preferred format for a summary of uncommitted changes can follow you between projects.

Who needs the skill?Where the file livesWhere it works
Contributors to one repository.claude/skills/<skill-name>/SKILL.mdCommit the folder to share it with the project
You, across local projects~/.claude/skills/<skill-name>/SKILL.mdProjects on this machine under your user account
People using a plugin<plugin>/skills/<skill-name>/SKILL.mdWherever that plugin is enabled

When directory names collide, enterprise wins over personal, and personal wins over project. Suppose you and a colleague both type /deploy in the same checkout. If you also have a personal skill folder called deploy, you can get your own instructions while your colleague gets the repository’s. Check for a personal copy before editing a shared skill to fix behavior that only you see. Anthropic’s name-resolution rules

Claude Code plugins vs skills

A plugin can distribute skills. Its prefix lets a plugin skill and a local skill with the same short name coexist. Type /plugin-name:skill-name for the plugin’s version. Share a single repository convention by committing the file. Consider a plugin when several repositories need a maintained collection, as in the Superpowers workflow.

How to add skills to Claude Code

Give the skill its own folder and save the instructions as SKILL.md. Here is the complete API conventions example from Anthropic’s skills guide.

  1. Choose the project folder

    At the root of your repository, open or create .claude/skills/. Inside it, create a folder named api-conventions. Using the project location keeps these API rules with the code they describe.

  2. Save the instructions

    Create SKILL.md inside that folder and paste the example below. Keep both lines of three hyphens. They enclose the YAML header, called frontmatter, that gives the skill its name and description.

Markdown
---
name: api-conventions
description: API design patterns for this codebase
---

When writing API endpoints:
- Use RESTful naming conventions
- Return consistent error formats
- Include request validation

The description helps Claude decide when to open the file. The lines underneath are what you want Claude to do once it has opened it.

The complete api-conventions SKILL.md on a music stand, with its name and description above the three endpoint rules
The header describes the job. The body gives Claude the conventions to apply.

How to use skills in Claude Code

In Claude Code, type / and look for the skill by name. Select it or type /api-conventions directly. For this example, the folder and the header use the same name. If the new entry is missing, check /skills and run /reload-skills to refresh discovery.

You can also ask for an endpoint in ordinary language. Claude uses the description to decide whether the skill fits. When you want to be certain that the conventions are in context, invoke the skill explicitly. Then inspect the proposed endpoint. Does a malformed request get rejected? Does the error have the same shape as the neighboring endpoints? A skill puts the checklist in front of Claude. You still need to check the diff.

Claude Code commands vs skills

Existing custom commands already work as skills. A Markdown file in .claude/commands/ keeps working, and Claude can select it when relevant. Built-in commands such as /help also appear in the slash menu. The menu gives both kinds of entry the same slash shortcut. The slash command guide covers the built-ins.

Move a custom command when it needs room for supporting files. Anthropic’s example moves .claude/commands/deploy.md to .claude/skills/deploy/SKILL.md. You still type /deploy. If you leave both definitions in place under that name, the skill wins. For a release procedure that should start only when a person asks, set disable-model-invocation: true in its header.

What changed for teams in version 2.1.332?

Anthropic added another source of skills and a way to check shell commands during loading on November 25, 2026. The release and compatibility details below were checked against the Claude Code changelog on November 26, 2026.

Skills from MCP servers are in beta. A Model Context Protocol (MCP) server can now supply a skill. Its entry appears as server:skill in the / menu, so a developer can identify which server supplied the procedure. Other skills keep their names. A team that already shares a checklist through its repository can keep calling it as before.

Teams can refuse an inline shell command as a skill or custom command loads. The new PreSkillShellCommand hook gives a team a place to check that command before it runs. Check installed versions with claude --version before distributing shared settings that name the hook. On 2.1.331 and older, that settings entry opens a dialog at startup.

Claude Code skills best practices for installation

Read a skill before installing it. Open SKILL.md, read the inline shell commands, and inspect any scripts it refers to. In Anthropic’s change-summary example, Claude Code runs git diff HEAD and inserts the output before Claude reads the skill. That timing matters. By the time you see the summary, the command has already run.

A skill approaches a command check with separate paths to run or refuse the inline command
PreSkillShellCommand gives a team a decision point while the instructions are loading.

The API conventions example above contains only text. If that is all your repository needs, commit it and ask a colleague to use it on the next endpoint. If you maintain a shared skill that runs shell commands, review those commands together and decide which ones your hook should refuse before rolling it out.

If you want a maintained set of skills to share across repositories, compare the best Claude Code plugins.

Published
Category
Build
Related Articles
Open WebUI: What It Is, What It Costs, and How to Start

Open WebUI: What It Is, What It Costs, and How to Start

See where team chats and documents go, how the Open WebUI License works, and how to start the interface with Docker and connect a model.Nov 26, 2026Build
Gemini CLI: Who Can Use It and How to Start

Gemini CLI: Who Can Use It and How to Start

Check which accounts still work with Gemini CLI, which models Google supports, and how to install the terminal agent or move a project to Antigravity CLI.Nov 26, 2026Build
Open Source AI Platforms in 2026: Ollama, LibreChat, Dify and 7 More

Open Source AI Platforms in 2026: Ollama, LibreChat, Dify and 7 More

Compare Ollama, LibreChat, Dify and seven more by licence, hosting effort and model costs. Choose the right layer for your company’s AI stack.Nov 26, 2026Build
Claude PR Steward

Claude PR Steward

See what Claude PR Steward does to one pull request, how to start it manually, where to cap spend, and which GitHub rules protect your merge.Nov 25, 2026Build
LibreChat: What It Is, What It Costs, and How to Start

LibreChat: What It Is, What It Costs, and How to Start

See who maintains LibreChat, which models it connects to, where conversations go, and how to get from a local Docker install to your first reply.Nov 25, 2026Build
Google AI Studio Text to Speech: Make a Voice-Over and a Dialogue

Google AI Studio Text to Speech: Make a Voice-Over and a Dialogue

Make a one-minute narration and a two-speaker dialogue in the Speech Playground. Choose voices, direct the delivery and download the audio or save a WAV.Nov 25, 2026Build
OpenAI API Key for Your First App: ChatGPT Credits and Setup

OpenAI API Key for Your First App: ChatGPT Credits and Setup

Create a project key, check whether your ChatGPT plan includes API credits, and send a first Python request. Find the right fix for 401 and 429 errors.Nov 25, 2026Build
OpenCode: What It Is, What It Costs, and How to Start

OpenCode: What It Is, What It Costs, and How to Start

How OpenCode works in your repository, which models and subscriptions it accepts, and how to start a terminal session with a question about your code.Nov 25, 2026Build
Newsletter

One letter, every Sunday.Working systems, not hot takes.

Weekly. No spam. Unsubscribe anytime.