Here’s how to add skills to Claude Code in one sentence: make a folder, put a file called SKILL.md inside it, start that file with a description, and drop the folder into ~/.claude/skills/ (every project) or .claude/skills/ (this project only). That’s it. No install command, no restart, no registry.
The sentence is easy. The details are where people lose an afternoon. On 6 December 2026 I tested this on the server my agent fleet runs on, headless, with claude -p. A skill in the right folder answered on the first turn for about two cents. A skill saved as a plain .md file one level up got “isn’t available in this session”, and Claude Code’s own validator didn’t even mention it.
Then I pointed the same checks at my own fleet and found 41 instruction files that Claude Code has never once registered as skills. They still run every night. I’ll show you why, because it’s the most useful thing in this post.
You’ll get the five ways to add a skill, a copy-paste first skill, a table of where skills load, the fields worth setting, a safety check for skills you didn’t write, and six ways a skill silently fails to show up. I reproduced each failure on purpose.
How to Add Skills to Claude Code: The Short Answer

A skill is a reusable set of instructions Claude Code loads only when it’s needed. Claude sees a one-line list of skill names and descriptions all the time. The full body loads only when you type /skill-name or Claude decides your request matches the description. That’s the whole point: a 400-line procedure costs almost nothing until it’s used. A 400-line CLAUDE.md costs you on every turn. (More on that trade-off in my Claude Code memory guide.)
There are five ways to get a skill into Claude Code. Pick by who wrote it and where it needs to run:
| Way to add a skill | What you do | Best for |
|---|---|---|
| 1. Write a personal skill | Create ~/.claude/skills/<name>/SKILL.md | Your own habits, in every project on this machine |
| 2. Write a project skill | Create .claude/skills/<name>/SKILL.md in the repo and commit it | Team procedures that should travel with the code |
| 3. Install a plugin | /plugin marketplace add, then /plugin install | Published skill packs, such as Anthropic’s own |
| 4. Copy a folder from GitHub | Clone or download the skill folder into one of the paths above | A single skill someone shared, after you’ve read it |
| 5. Turn it on at claude.ai | Enable or upload it in your claude.ai skills settings; Claude Code syncs it | Skills you want in Cowork, cloud sessions and the terminal |
Old .claude/commands/*.md files still work too. Anthropic merged custom commands into skills, so a command file now behaves like a skill without the folder. If you’re starting fresh, use the folder. It’s the only layout that can hold supporting files and scripts.
Step by Step: How to Add Skills to Claude Code, Starting With One

This is the exact skill I used for the test, cut down to the bones. It does nothing useful. It proves the plumbing, which is what you want from a first skill.
1. Make the folder
mkdir -p ~/.claude/skills/receipt-check
Use ~/.claude/skills/ for a skill you want everywhere. Use .claude/skills/ inside a repo for a skill that belongs to that project. The folder name becomes the command, so this one runs as /receipt-check.
2. Write SKILL.md
---
name: receipt-check
description: Prints a fixed receipt code. Use when the user asks for the receipt code.
---
Reply with exactly one line: RECEIPT-OK-7731 $ARGUMENTS
Two parts. The YAML between the --- lines tells Claude when to use the skill. The Markdown underneath tells it what to do. The opening --- has to be the very first line of the file, or Claude Code treats the whole thing as plain body text. $ARGUMENTS is replaced with whatever you type after the command.
3. Test it both ways
Call it directly, then call it the way a normal person would ask:
claude -p "/receipt-check alpha"
claude -p "Give me the receipt code."
My results on Claude Code 2.1.292, Haiku, 6 December: the slash command returned RECEIPT-OK-7731 alpha in 1 turn for $0.018. The plain-English request returned RECEIPT-OK-7731 in 3 turns for $0.013. Claude found the skill from the description alone. No restart, either: Claude Code watches the skills folders and picks up new or edited skills inside a running session. If one doesn’t appear, run /reload-skills.
If both calls work, you now know how to add skills to Claude Code. Everything after this is about making the next one trigger at the right time and not at the wrong one.
Where Claude Code Loads Skills From (and Who Wins a Name Clash)

Where you save a skill decides which sessions see it. This is the table I wish every tutorial led with:
| Location | Path | Loads in |
|---|---|---|
| Personal | ~/.claude/skills/<name>/SKILL.md | All your projects on this machine. Not Cowork or cloud sessions |
| Project | .claude/skills/<name>/SKILL.md | Sessions in this repo, and the parent folders up to the repo root |
| Nested | <subdir>/.claude/skills/<name>/SKILL.md | Sessions started in that subfolder, or once Claude touches files there |
| Plugin | <plugin>/skills/<name>/SKILL.md | Wherever the plugin is on, as /plugin-name:skill-name |
| claude.ai account | Synced into ~/.claude/skills/synced/ | Cowork, cloud sessions, and terminal sessions signed in with that account |
| Enterprise | The managed settings directory | Every user on machines your org manages |
When two skills share a name, enterprise beats personal, and personal beats project. A skill beats a .claude/commands/ file with the same name. Plugin skills never clash, because they carry the plugin’s name as a prefix.
The line that catches people is the cloud one. Cowork, cloud sessions and cloud scheduled routines don’t read ~/.claude/skills/ on your laptop. A skill that works perfectly in your terminal comes back as “not found” from a cloud routine. Either commit it to the repo’s .claude/skills/ or enable it on your claude.ai account. Terminal sessions sync account skills on Claude Code 2.1.273 or later. In a short -p run, set CLAUDE_CODE_SYNC_SKILLS=1 so the run waits for the download.
One more trap from the docs: the folder name synced is reserved, so don’t call your own skill that.

Get the AI Playbook
The playbook I use to decide which jobs become agent skills first, where each one should live, and how to check it actually ran. Free, unsubscribe anytime.
Installing Skills Someone Else Wrote (Plugins, GitHub, claude.ai)

From a plugin marketplace
Anthropic publishes its example skills as a plugin marketplace. Inside Claude Code:
/plugin marketplace add anthropics/skills
/plugin install document-skills@anthropic-agent-skills
/plugin install example-skills@anthropic-agent-skills
The same route installs Anthropic’s skill-creator, which helps you write and test skills: /plugin install skill-creator@claude-plugins-official. If it says the marketplace isn’t found, add it first with /plugin marketplace add anthropics/claude-plugins-official. Plugin skills run with a prefix, like /example-skills:name. I ranked the plugins worth installing in a separate Claude Code plugins guide.
From a GitHub folder
A skill is just a folder, so “installing” one from GitHub means putting that folder under ~/.claude/skills/ or .claude/skills/. A symlink works too: Claude Code follows it and loads the skill once, even if two locations point at the same target. That’s handy if you keep your skills in a separate repo.
From claude.ai
Skills you turn on in your claude.ai settings sync into Claude Code when you’re signed in with that account. Edit them on claude.ai, not in ~/.claude/skills/synced/, because the next sync overwrites local edits. Uploads to claude.ai accept only six frontmatter fields: name, description, license, compatibility, metadata, allowed-tools. Anything else, like argument-hint, fails with “Unexpected key(s) in SKILL.md frontmatter”.
The 60-second safety check
Here’s the line in Anthropic’s docs that every “install this cool skill” post skips: Claude Code applies a project skill’s allowed-tools even in a -p run in a folder you’ve never trusted. A skill can pre-approve its own Bash commands. So before you add a skill you didn’t write, open SKILL.md and every file next to it, and look for:

⚡ GET THE AI EDGE
Weekly AI tips that actually save you time and money. No fluff, no hype — just what works.
- An
allowed-toolsline broader than the job needs (Bashwith no pattern is the whole shell) - Lines starting with
!`. Those are shell commands that run before Claude reads the skill - Anything that reads keys,
.envfiles or environment variables, or posts data to a URL - A
scripts/folder in a skill that has no reason to run code - A description that doesn’t match what the body does
None of those is proof of anything bad. Each one is a reason to read slower. Tayla Burrell’s red-flag list is a good one for non-coders. My fleet runs with permissions wide open on purpose, so I care about this more than most. I explain why in the –dangerously-skip-permissions breakdown.
The SKILL.md Fields That Actually Matter

Every field is optional. Only description is recommended. Claude Code quietly ignores a field name it doesn’t recognise, so disable_model_invocation with underscores does nothing and you get no error. These are the ones I’d actually set:
| Field | What it does | When to use it |
|---|---|---|
description | What the skill does and when to use it. Claude matches your requests against this | Always. Put the trigger words first |
when_to_use | Extra trigger phrases, appended to the description | When the description is getting long |
disable-model-invocation: true | Only you can run it with /name. The description leaves Claude’s context entirely | Anything with side effects: deploy, send, publish, delete |
user-invocable: false | Hidden from the / menu; only Claude loads it | Background knowledge, not an action |
allowed-tools | Tools Claude can use without asking while the skill runs | Narrow, named commands, e.g. Bash(git status *) |
context: fork | Runs the skill in its own subagent, without your conversation history | Self-contained tasks with a clear output |
arguments | Named arguments, so you can write $issue instead of $0 | Skills that take two or more inputs |
paths | Globs for the files that activate the skill | Rules that only apply to one part of a codebase |
Three numbers from Anthropic’s skills docs are worth knowing. The description plus when_to_use is cut at 1,536 characters in the listing. The whole listing gets about 1% of the context window, and when it overflows, the skills you use least lose their descriptions first. And Anthropic says to keep SKILL.md under 500 lines, with long reference material in separate files that Claude reads only when needed.
About context: fork: despite the name, it doesn’t fork your conversation. The subagent gets the skill body as its task and nothing you’ve discussed. I untangled the four different “forks” in Claude Code in my Claude Code fork explainer.
Why Your Skill Isn’t Showing Up: 6 Failures I Reproduced

Same scratch project, same day, each one run headless with claude -p on Haiku. Eight test runs cost $0.12 in total.
| What I set up | What happened | Fix |
|---|---|---|
Skill saved as a flat file: .claude/skills/flat-file.md | /flat-file → “isn’t available in this session”. Plain request ignored. Not in the skill list. claude plugin validate didn’t mention it | Move it to .claude/skills/flat-file/SKILL.md |
SKILL.md with no frontmatter, starting with # No Frontmatter Skill | Loads and runs. Its description became “No Frontmatter Skill”, its first line. Validator warns “No frontmatter block found” | Add a real description with trigger words |
disable-model-invocation: true | /manual-only worked. “Give me the manual code” → Claude asked what I meant. The skill isn’t in its list at all | Working as designed. Type the command |
| Field name with underscores or a typo | Silently ignored, per the docs | Copy names exactly: hyphens, lowercase |
| Long session, then auto-compaction | Docs: only the first 5,000 tokens of each skill come back after compaction, within 25,000 for all skills combined | Put the critical rules at the top, or invoke it again |
Two skills stacked in one -p prompt | Docs: through -p or the SDK only the first skill loads; the rest becomes its arguments | One skill per headless call |
Two commands help here. claude plugin validate ~/.claude/skills (or .claude/skills) checks every SKILL.md it finds. It needs Claude Code 2.1.233 or later. Just remember the first row: it only checks files that are already in the right shape, so a flat file passes by being invisible. /skill-doctor (2.1.252+) shows which skills cost context and never get used.
If a rule must hold every single time, don’t trust a skill to enforce it. The docs say it plainly: move that rule into a hook, which runs whether or not Claude is following the skill.
What I Found When I Pointed These Checks at My Own Fleet

My business runs on scheduled Claude Code jobs: blog posts, social, outreach, inbox triage, a nightly watchdog. Every job has an instruction file in .claude/skills/. On 6 December I counted them:
- 41 live instruction files in the project’s
.claude/skills/, plus 50 backup copies - 0 of them in folders. Every one is a flat
.mdfile, the exact layout that failed row one above - So Claude Code registers none of the 41 as skills. They’re not in the list it sees. Typing
/blog-writerfinds something else: an old personal skill with the same name (more on that below)
So why does the fleet work? Because the scheduler never asks Claude Code to find a skill. It runs claude --print with a prompt that says “read the skill file at /home/agent/project/.claude/skills/blog-writer.md and execute it”. Claude opens it like any other file. Inside a prompt, a file path does the job. That’s a fine pattern for cron. It just isn’t a skill in Claude Code’s sense, and calling it one confused me when I wrote this.
The real skills on that server tell a different story. There are 4 personal skills in ~/.claude/skills/, all dated 25 February 2026:
- 3 of the 4 have no frontmatter. Their descriptions are “Blog Writer Skill”, “Image Generate Skill” and “Video Creator Skill”. That’s not much for Claude to match a request against. The validator flagged all three
- They’re stale. The video skill describes a rendering setup my fleet deleted in May. The image skill describes a pipeline I replaced. A legacy
write-blogcommand still says “WordPress draft”, while my live rule is publish - They show up in the skill list of every session on that server, including the one that wrote this post
I haven’t measured whether one of those stale skills ever fires in place of the file the prompt names. The honest move is to remove the ambiguity, not to wait for the day it does. My fix list is short: delete or rewrite the four stale skills, and move each instruction file into a folder with a real description. Then the jobs and an interactive session read the same thing. That’s on my list, not done. (Yesterday I also wrote about these same files having 49 backups and no version history, so they clearly need a cleanup.)
If you want to see how the instruction files, the scheduler and the logs fit together, the Claude Code harness walkthrough maps all six parts of mine.
FAQ: How to Add Skills to Claude Code, Answered

What’s the difference between a skill and CLAUDE.md?
CLAUDE.md loads into every session, in full. A skill’s body loads only when it’s used. Facts that are always true go in CLAUDE.md. Procedures go in skills. Anthropic’s own rule of thumb: when a section of CLAUDE.md turns into a procedure, make it a skill.
Are skills the same as slash commands?
Mostly, now. Custom commands were merged into skills. A file in .claude/commands/ still works and accepts the same frontmatter except name and paths. A skill folder adds supporting files, and if both exist with the same name, the skill wins.
Do skills work in headless mode (claude -p)?
Yes. Every test in this post ran with -p. Two differences: only the first skill in a prompt loads, and a skill with context: fork makes the run wait for its result instead of running in the background.
Do skills cost tokens when I’m not using them?
Only the name and description, which sit in a listing capped at about 1% of the context window. A skill with disable-model-invocation: true costs nothing until you type it. Once a skill runs, its body stays in the conversation for the rest of the session.
How do I remove a skill?
Delete its folder. Claude Code drops it from /skills in the current session. For a plugin skill, disable or uninstall the plugin. For a claude.ai skill, turn it off on claude.ai, or the next sync downloads it again.
Do I need to restart Claude Code after adding a skill?
No. Claude Code watches the skills folders. If a new skill doesn’t appear, run /reload-skills. Skills inside a subfolder load the first time Claude works on a file there.
Final Thoughts: How to Add Skills to Claude Code So They Actually Load
Learning how to add skills to Claude Code takes five minutes: a folder, a SKILL.md, a description that names the trigger. The part nobody tells you is that a skill in the wrong shape doesn’t error out. It just isn’t there, and the validator won’t save you. Even my own 41-file fleet got that wrong, and it ran fine for months.
So after you add one, run two calls: the slash command, and a plain-English request that should trigger it. If both come back, it’s real. If only the slash command works, fix the description. If neither does, check the folder.
And if you’d rather have someone build the skills, the scheduler and the logs that keep a set of agents honest while you sleep, that’s the work I do. Start with the Claude Code cheat sheet if you’re still setting up, or how to install Claude Code if you haven’t yet.

Get the AI Playbook
The AI Playbook, plus real jobs my agents ran unattended, what they cost, and what broke anyway. Receipts, not predictions. Unsubscribe anytime.

📥 FREE: THE AI PLAYBOOK
The exact tools and workflows I use to run a one-person agency. 25 years of marketing experience distilled into an actionable guide. Yours free.
