← Imam's Academy

Claude Code Skills: What They Are and How to Use Them

Claude Code Skills Are the Feature That Turns a Clever Tool Into Your Tool

I spent my first month with Claude Code typing the same instructions over and over. Every session started the same way. "When you write code, follow these conventions. When you finish, run the tests. When you commit, use this message format." I'd paste the same block, Claude would nod, and we'd get to work. Then I'd close the laptop, open it the next day, and paste it all again. It worked, but it felt wrong, like re-teaching a colleague the same job every morning.

Claude Code Skills fixed that. A skill is a small folder of instructions that Claude Code loads only when the task calls for it, and then follows without you having to say a word. Write the procedure once, save it in the right place, and every session from then on knows how you like things done. This guide explains what Claude Code Skills are, how they actually work under the hood, which ones ship with Claude Code already, and how to write your first one in about ten minutes. No coding background needed for most of it, and I'll say plainly where the line is.

MacBook Pro laptop showing colourful code in an editor while using Claude Code Skills

What Are Claude Code Skills, Exactly?

A Claude Code skill is a folder. That's the whole idea, and it's deliberately boring. Inside the folder sits one required file called SKILL.md, and optionally some supporting files: scripts the skill can run, reference documents it can read, templates it can copy from. The folder lives in a place Claude Code watches, and its name becomes a command you can type.

Here's the simplest possible example. You make a folder called release-notes, and inside it a file called SKILL.md that says how you want release notes written: check the recent commits, group them by feature and fix, keep each line under one sentence. From then on, typing /release-notes in any Claude Code session runs that procedure. Or you don't type anything at all, and Claude Code loads it on its own when your request sounds like a release-notes job. Both ways work, and I'll come back to which one to choose.

The SKILL.md file itself has two parts. The top is a short block of YAML frontmatter between two lines of three dashes, holding a name and a description. The rest is plain Markdown: the instructions Claude follows when the skill runs. Nothing else is required. The name has a few rules: at most 64 characters, lowercase letters, numbers and hyphens only, and it can't contain the reserved words "anthropic" or "claude". Under the open standard the name has to match the folder name, which is a good habit anyway, because the folder name is what becomes your /command.

Anthropic launched skills on October 16, 2025, for the Claude apps, Claude Code and the API, then published the format as the open Agent Skills standard. That last part matters more than it sounds. The same skill folder now works, with minor differences, in OpenAI's Codex, GitHub Copilot, Cursor, Gemini CLI and dozens of other agents. You are not learning a trick for one tool. You're learning a format that travels.

How Claude Code Skills Load (and Why That Matters for Your Token Bill)

The clever part of Claude Code Skills isn't what they contain. It's when they load. Anthropic calls the design progressive disclosure, and it works in three stages, each one loading only when it's needed.

Stage one is metadata. When a session starts, Claude Code loads only each skill's name and description. That costs about 100 tokens per skill, which is almost nothing. You could have twenty skills installed and the listing would still be a rounding error against your session. Stage two is instructions. When a task matches a skill's description, or you type /skill-name, the full SKILL.md body loads into the conversation. Anthropic's own guidance puts that body under 5,000 tokens and under 500 lines. Stage three is resources. The scripts, reference files and templates inside the skill folder load only when the instructions actually call for them. A script's code never enters the context at all. Claude runs it, and only its output comes back.

Once a skill loads, its text stays in the conversation for the rest of the session. Claude Code doesn't re-read the file on later turns. And when a long conversation gets compacted, Claude Code re-attaches the most recent run of each skill, keeping up to the first 5,000 tokens of each, inside a 25,000-token budget shared between all of them. That's why the guidance says to put the important rules first. After compaction, only the start of a long skill survives.

Compare that with the alternative most people reach for first: pasting everything into CLAUDE.md. That file loads at the start of every single session, in full, whether the session needs it or not. Anthropic's rule of thumb is to keep CLAUDE.md under 200 lines and move everything else into skills. Facts Claude always needs go in CLAUDE.md. Procedures Claude sometimes needs go in skills. That one sentence will save you more tokens than any other habit in this guide.

Claude Code Skills vs CLAUDE.md, Slash Commands, MCP and Subagents

Skills get confused with four other things, and the confusion costs people real time, so let's clear it up in one pass.

Skills vs CLAUDE.md. Covered above, but worth repeating as a rule: CLAUDE.md is for facts and conventions that apply to every session in a project, like which commands build the thing and where the tests live. A skill is for a procedure or reference material that applies to one kind of task. If you find yourself pasting the same checklist into chat, that's a skill. If a section of your CLAUDE.md has grown into a procedure, that's a skill too.

Skills vs slash commands. There is no longer a real difference, because Anthropic merged custom commands into skills. A file at .claude/commands/deploy.md and a skill at .claude/skills/deploy/SKILL.md both create the same /deploy command, and old command files keep working. Skills just add what commands never had: supporting files, control over who can invoke them, and automatic loading when a task matches. If you already have custom commands, you don't need to rewrite them. New ones should be skills.

Skills vs MCP servers. An MCP server gives Claude tools it can call: a search tool, a database connection, a way to reach another app. A skill gives Claude instructions for how to do a kind of task. One adds capability, the other adds procedure. They work together well. A skill can tell Claude to use an MCP tool in a particular way, and an MCP server can be the thing a skill's script talks to. But a skill on its own can't reach a system Claude couldn't already reach, and an MCP server on its own can't teach Claude your workflow.

Skills vs subagents. A subagent is a separate Claude instance doing a job on its own, with its own context. A skill is a set of instructions inside your current session. The two meet in one frontmatter field: set context: fork on a skill and Claude Code runs that skill in a subagent instead of in your main conversation, which keeps a long procedure from crowding your context. Most skills don't need that. The ones that do are the long, self-contained jobs, like a full review pass or a research sweep.

And one more, because people ask: a skill is not a fine-tune, not a plugin binary, and not a system prompt extension. Nothing about the model changes when you install a skill. The only thing present up front is the skill's entry in the listing: its name and description. The instructions aren't there until the skill runs.

The Skills That Ship With Claude Code

You don't start from zero. Claude Code ships with 16 bundled skills, and a few of them are worth knowing on day one, because they show you what a good skill looks like.

/debug. The one I reach for most. It walks through a bug the way a careful engineer would: reproduce it, narrow it down, fix the cause rather than the symptom, then check the fix. If you keep telling Claude "no, actually find the real bug", stop typing that and type /debug instead.

/loop. Runs a task repeatedly until it's done or it hits a limit you set, which suits jobs like fixing every failing test in a file or working through a list of small issues without you babysitting each round.

/verify and /run. These two launch your app so Claude can check a change against the running app, instead of relying on tests alone. /run starts it, /verify checks it. They matter because tests pass and apps still break. Seeing the thing run is a different kind of check.

/claude-api. A skill for working with the Claude API itself: the endpoints, the parameters, the pricing-shaped decisions. Useful when you're building something on the API and you want Claude's answers to match the current docs instead of its memory of them.

/skill-doctor. Reports what each of your skills costs in context and how often it's actually used. Run it when your skill list has grown past a dozen and you want to know which ones earn their place. The Skills row in /context shows the same listing size at a glance.

/reload-skills. Claude Code watches your skill directories, so adding, editing or removing a skill usually takes effect in the current session without a restart. If you create a top-level skills directory mid-session, /reload-skills picks it up.

One rule worth knowing: a skill you write replaces a bundled skill of the same name. That's deliberate, not a bug. If the bundled /verify doesn't match how your project checks itself, write your own verify skill and yours wins. In fact, Claude Code's commit instructions will run a personal or project skill named verify right before each commit, except for changes to docs or tests, as long as you're on Claude Code v2.1.286 or later. Keep that skill to fast, mechanical checks, lint, types and tests, and leave the judgment calls for a human pass.

How to Use Skills in Your Daily Work

Using Claude Code Skills is the easy part. There are two ways in, and you should know both, because they suit different jobs.

The first way is typing it. /deploy staging at the start of a message runs the skill directly, with "staging" passed in as an argument. The same name later in a sentence, as in "go ahead and /deploy to staging", only gives Claude permission to run it. That distinction trips people up, so remember it: command at the start of the message runs it, command mid-sentence permits it.

The second way is doing nothing. Claude reads your request, compares it to every skill description in the listing, and loads the ones that match. That's why the description is the most important line in the whole skill. It's the only thing Claude reads when deciding whether to load it. A skill without a description is nearly invisible. A description that says what the skill does and when to use it, in the words you'd actually type when you need it, gets picked up. Anthropic's own video on skills puts it plainly: "Claude reads your request, compares it to all available skill descriptions, and activates the ones that match."

Skills can also take arguments. Text after the skill name becomes $ARGUMENTS, so /fix-issue 123 turns "Fix GitHub issue $ARGUMENTS" into "Fix GitHub issue 123". You can take arguments by position with $0 and $1, or name them in the frontmatter and write $issue or $branch. A named argument with no value expands to an empty string, so write your instructions to cope with that.

Two frontmatter fields decide who can trigger a skill, and they're worth setting deliberately. disable-model-invocation: true stops Claude from loading the skill on its own, so only you can run it with /name. Use that on anything with side effects: deploys, commits, messages to other people. user-invocable: false does the opposite. It hides the skill from the / menu, so only Claude can load it. Use that on background knowledge that isn't an action, where you never want to trigger it by hand.

Skills can also inject live data. A line starting with a backtick, an exclamation mark and a command, like `!git diff`, runs the command before Claude sees the skill, and the output replaces the placeholder. That's how a release-notes skill can arrive with your real recent commits already inside it. Two warnings from Anthropic's docs. A failing command aborts the whole skill, so append || true to any command you expect to exit non-zero. And injected commands never prompt for permission, so outside auto mode, a command your permission rules don't already allow will abort the skill. List the commands in allowed-tools to pre-approve them.

How to Write Your First Claude Code Skill in 10 Minutes

Enough theory. Here's the whole process, start to finish, with a skill you'll actually use. The example is a pre-publish checklist for blog articles, because it's the kind of procedure people paste into chat again and again. Swap in your own procedure and the steps are identical.

Step 1: pick the repetition. The skill has to come from something you already do more than once. Anthropic's advice is blunt about this: create a skill when you keep pasting the same checklist or procedure into chat. If you only do something once, a skill is overhead. If you do it weekly, it's a saving. My rule is three times. The third time I paste the same block, it becomes a skill.

Step 2: decide where it lives. Where you save a skill decides who gets it. Personal skills go in ~/.claude/skills/<name>/SKILL.md and follow you across every project on your machine. Project skills go in .claude/skills/<name>/SKILL.md and travel with the repo once you commit them, so your whole team gets them. Skills in a subdirectory, like <subdir>/.claude/skills/, apply to sessions working in that part of a monorepo. Plugin skills ship with plugins. Enterprise skills come from a managed settings directory. And skills you enable on claude.ai also reach Cowork and cloud sessions, plus terminal sessions signed in with that account. When two skills share a name, enterprise beats personal and personal beats project.

Wooden desk with a laptop, coffee cup and notebook for writing a Claude Code skill

Step 3: write the frontmatter. Create the folder and the file, then start with the header. Here's a working example for the checklist skill:

---
name: publish-checklist
description: Check a finished blog article before publishing. Use when the user asks whether an article is ready to publish, wants a pre-publish review, or says "check this article".
argument-hint: [article-file]
---

Notice what the description does. It leads with what the skill does, then lists the words someone would actually type when they need it. If the skill fires when it shouldn't, the description is too broad, and narrowing it is the fix. The description plus when_to_use gets cut off at 1,536 characters in the listing, so put the main use case first.

Step 4: write the body as standing instructions. Keep it short and direct. Every line costs tokens on every turn after the skill loads, so say what to do rather than narrating how or why. And write standing instructions, not one-off ones. Claude doesn't re-read the file, so "run the tests after every edit" holds up better than "run the tests". Here's the body for our example:

## Instructions
1. Read the article file given as $ARGUMENTS.
2. Check the title contains the target keyword and is under 70 characters.
3. Check every link returns a real page. Do not guess. Report any link you cannot verify.
4. Check there are exactly two images, each with alt text.
5. Check the search description is 150 characters or fewer.
6. Report problems as a list. Do not fix anything unless the user asks.

Step 6 is the most important line in that whole file. A skill that reports instead of fixing is a skill you can trust, because you decide what's worth changing. The list doubles as notes for the publish step. Save the file, and the skill is live. No restart, no install step, no config file to edit.

Step 5: test it like you'd test anything else. Run a few realistic prompts in a fresh session with the skill on, then again with it set to "off" in the skillOverrides setting, and compare the results. A skill that triggers has only been found. It hasn't been shown to help. Anthropic's skill-creator plugin automates that loop, including tuning the description, after you run /plugin install skill-creator@claude-plugins-official. If a skill doesn't trigger at all, ask Claude "What skills are available?" to confirm it loaded, then run claude plugin validate ~/.claude/skills to find frontmatter that doesn't parse. Broken YAML doesn't stop /skill-name from working, but Claude can no longer match the description, which is the same as the skill not existing for automatic loading.

Writing a Description That Actually Triggers

Most Claude Code Skills fail at the description, not the instructions. The instructions can be perfect, but if the description doesn't match how people ask, the skill never loads, and a skill that never loads is a file on a disk. Here are the habits that fix it.

Lead with the use case, not the tool. "Check a finished blog article before publishing" beats "A pre-publish validation skill". Nobody types "run the pre-publish validation skill". They type "is this ready to publish?" Write the description in their words, not yours.

Add trigger phrases. The when_to_use field exists for exactly this. It takes extra trigger phrases or example requests and appends them to the description. Use it for the three or four ways people actually ask for the thing.

Use paths when the skill belongs to certain files. That field takes glob patterns, and Claude loads the skill automatically only when it works with matching files. A skill for reviewing database migrations should carry a paths pattern for your migration folder, so it doesn't fire on every other file you touch.

Put the important rules first. After compaction, only the start of a long skill survives, so the rule that matters most goes at the top. Keep SKILL.md under 500 lines, and move detail into linked files in the same folder. Link each file from SKILL.md and say what it contains, so Claude knows it exists and opens it only when the task needs it.

Pre-approve only what the skill needs. The allowed-tools grant covers the turn that invokes the skill and clears with your next message. A skill can grant itself broad access, so read the allowed-tools of any skill checked into a repo before you run Claude Code there. That warning applies double to third-party skills you download. A skill is a folder of instructions, and instructions can tell Claude to do things you wouldn't want. Read the SKILL.md before you install it, the same way you'd read a script before running it.

Five Skills Mistakes That Waste Your Time

Putting everything in CLAUDE.md. The file loads every session, in full. A 400-line CLAUDE.md is a tax on every conversation you start, including the ones that need none of it. Keep it under 200 lines. Move procedures into skills.

Writing a description for yourself instead of for matching. "My deploy helper" tells Claude nothing about when to use it. "Deploy the app to staging and run the smoke tests. Use when the user asks to deploy, ship, or push to staging." That one gets picked up. If a skill triggers too often, narrow the description. If it never triggers, widen it.

Letting a skill fix things it should only report. A skill that edits files, commits, or sends messages on its own needs disable-model-invocation: true, so only you can run it. The skills that cause the worst accidents are the helpful ones that act before you asked. Report first. Fix on your word.

Writing one giant skill instead of three small ones. A skill that does everything is a skill that loads everything. Split it. One skill per kind of task, each with a tight description, loads cheaper and triggers more accurately. If your SKILL.md is creeping past 500 lines, it's two skills wearing one name.

Installing third-party skills without reading them. Skills are having a moment, and there are collections of them everywhere now. Some are excellent. But a SKILL.md is just text, and text can contain instructions to do things you didn't agree to, including granting itself tools in allowed-tools. Read the file first. Check the frontmatter. If a skill for formatting documents asks for shell access, ask why before you say yes.

Questions People Ask About Skills

Is Claude Code free? No. The free plan doesn't include Claude Code at all. The cheapest way in is Pro at $20 a month, or the API if your usage is light and spiky. Skills themselves cost nothing extra. They're part of Claude Code on every paid plan, and they run on the same usage limits as everything else in your session.

Do Claude Code Skills work in VS Code? Yes, through the Claude Code extension for VS Code, which reads the same skill locations as the terminal. The one exception is cloud sessions, including Claude Code on the web, which don't read ~/.claude/skills/ on your machine. For those, commit the skill to the repo's .claude/skills/ folder, or enable it on your claude.ai account.

Can a skill run code? Yes, two ways. It can include scripts in a scripts/ folder that Claude runs, and it can inject live command output with the backtick-exclamation syntax. A script's code never enters the context. Only its output does. That's the difference between a skill that tells Claude how to check something and a skill that checks it.

Do skills replace subagents? No, and they solve different problems. A subagent is a separate Claude doing a job on its own. A skill is a procedure your current session follows. You can combine them: set context: fork on a skill and it runs in a subagent, which keeps a long job out of your main conversation.

Are Claude Code Skills the same as Claude's skills in the app? Same format, same idea, different surfaces. Skills launched across the Claude apps, Claude Code and the API at the same time, and the Agent Skills open standard means a skill folder can move between them with minor differences. The rules about where they live and how they trigger are what change between surfaces.

How many skills should I have? As many as you have repeated procedures, and no more. The listing costs about 100 tokens per skill, so the cost of having many is small. The real cost is a listing full of vague descriptions that match the wrong requests. Five sharp skills beat twenty fuzzy ones.

The Short Version

A Claude Code skill is a folder with a SKILL.md file: frontmatter that says what it does and when to use it, then Markdown instructions Claude follows when it runs. Claude Code sees only the name and description until a task matches, then loads the full file, and only reads supporting files when the task needs them. That staged loading is the whole point. It makes a big library of procedures nearly free until the moment you need one.

Start with one skill, built from something you already paste into chat for the third time. Write the description in the words you'd actually type when you need it. Keep the body short, put the important rules first, and make it report before it fixes anything. Then add a second one next week. In a month, you'll have a Claude Code that works the way you work, and you'll wonder how you put up with re-teaching it every morning.

If you want the agent workflows that make skills pay off as a service, the AI Agent Starter Kit ($99) has the plug-and-play agent setups I use for first builds, including the checklists and procedures I turned into my own skills. And if you haven't built your first agent yet, the free AI Creator Prompt Pack gives you 64 copy-ready prompts to practise with before you spend anything.

Keep Reading

Two guides that go with this one: