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

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.
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.
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.
Choose the project folder
At the root of your repository, open or create
.claude/skills/. Inside it, create a folder namedapi-conventions. Using the project location keeps these API rules with the code they describe.Save the instructions
Create
SKILL.mdinside 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.
---
name: api-conventions
description: API design patterns for this codebase
---
When writing API endpoints:
- Use RESTful naming conventions
- Return consistent error formats
- Include request validationThe description helps Claude decide when to open the file. The lines underneath are what you want Claude to do once it has opened it.

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.

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








