Versus · AI tools

Claude Code commands vs skills

We read every plan page. Paid links are labelled. Money never changes a ranking. How we pick.

Verdict Our pick

The bar guide has a call.

The vectaai bar guide pointing at the verdict
  • a skill for anything new, especially multi-file workflows, reference material and team conventions.

Compared here

  • 01Custom slash commands
  • 02Skills

Short answer

In Claude Code, custom commands have been merged into skills. Anthropic's docs say it plainly: a file at .claude/commands/deploy.md and a skill at .claude/skills/deploy/SKILL.md both give you /deploy, your old command files keep working, and new work should go in skills because skills can carry supporting files. The one real behaviour difference is who pulls the trigger: by default Claude can load a skill on its own when its description matches the task, while you can lock any skill to manual-only with disable-model-invocation: true.

Use a skill for anything new, especially multi-file workflows, reference material and team conventions. Keep a simple one-file command (or a skill with disable-model-invocation) for actions with side effects that must only run when you type them, like deploys or releases. Built-in commands such as /clear and /compact are a separate thing and are not affected. Below: the side-by-side, the frontmatter that matters, where files live, which one wins on a name clash, and the context cost.

At a glance

From Anthropic's Claude Code skills documentation at code.claude.com/docs/en/skills, read 3 December 2026.
Custom command fileSkill
Where it lives.claude/commands/<name>.md.claude/skills/<name>/SKILL.md
How you run itType /<name>Type /<name>, or Claude loads it when relevant
StatusOlder format, still worksRecommended for new work
Supporting filesNo, one Markdown fileYes: reference docs, examples, scripts in the folder
FrontmatterSame as skills except name and pathsAll fields, only description recommended
Claude can run it on its ownYes, per the docs, since the mergeYes, unless disable-model-invocation: true
Hide from the / menuNot covered for command filesuser-invocable: false
Run in a subagentNot covered for command filescontext: fork plus agent
Name clash with the otherLosesWins

Money first. There is no money in this page for us: Anthropic does not pay us, and a free documentation question does not need a buy button. Display ads may show around it. That is the whole story.

Second: this page is built from one source, read carefully: Anthropic's Claude Code skills documentation, read on 3 December 2026. Most of page one for this search is blog posts and newsletters, many written before the merge, so they disagree with each other. Where the official docs say something, we quote them. We did not test every frontmatter field.

The short answer: they merged

If you learned Claude Code in early 2025, you learned two things: custom slash commands in .claude/commands/, and skills in .claude/skills/. That split is mostly gone. The docs say:

"Custom commands have been merged into skills. Your existing .claude/commands/ files keep working."

And:

"A Markdown file in .claude/commands/ is the older format and still works. It supports the same frontmatter except name and paths... Prefer a skill for new work, since skills also support supporting files."

So the question is no longer "command or skill?" It is "one file or a folder, and who is allowed to press the button?"

What "commands" means now (three different things)

People mix these up, and half the confusing blog posts are about the wrong one.

  1. Built-in commands. /clear, /compact, /model and friends. They ship with Claude Code. Nothing in the merge changes them. One wrinkle: in a local terminal session, a skill with the same name as a built-in command replaces it, though not its aliases.
  2. Custom command files. Markdown files in .claude/commands/. The older format. Still work.
  3. Skills. Folders in .claude/skills/ with a SKILL.md inside. The current format. Each one is also a /command.

When someone asks "commands vs skills", they almost always mean 2 vs 3.

Side by side

A custom command file is one Markdown file. The file name is the command. You type /name and its text goes to Claude as instructions. It accepts the same frontmatter as a skill, except name and paths.

A skill is a folder:

my-skill/
  SKILL.md       (required: overview and instructions)
  reference.md   (loaded when needed)
  examples.md    (loaded when needed)
  scripts/
    helper.py    (executed, not loaded)

The folder name is the command. SKILL.md holds the instructions, and the extra files sit beside it so big reference docs "don't need to load into context every time the skill runs", per the docs.

Who pulls the trigger

This is the real difference in daily use.

By default, skill descriptions are loaded into context "so Claude knows what's available", and Claude can decide to load a skill when the task fits. You can still type /name yourself. Since the merge, the docs say this applies to command files too: "Claude can invoke them without you typing the command."

Two frontmatter switches change this:

  • disable-model-invocation: true. Claude cannot run it on its own. The description is not loaded into context. It runs only when you type /name. The docs recommend this for "workflows with side effects".
  • user-invocable: false. The opposite. Hidden from the / menu, and typing /name does nothing; only Claude can load it. Meant for background knowledge, like "how our API is structured", that is not an action.

Rule of thumb: anything that deploys, sends, deletes or spends gets disable-model-invocation: true. You do not want Claude deciding by itself that now is a good time to release.

The frontmatter that matters

Anthropic says all fields are optional and only description is recommended. The ones you will actually use:

FieldWhat it does
descriptionWhat the skill does and when to use it. Claude reads this to decide when to apply it.
nameThe / menu name. Defaults to the folder name.
argument-hintAutocomplete hint, for example [issue-number].
disable-model-invocationtrue = manual only.
user-invocablefalse = Claude only.
allowed-toolsTools Claude can use without asking during that turn. The grant clears on your next message.
context and agentcontext: fork runs the skill in a subagent of the type you name.
modelModel for the turn when you run it with /name.

One gotcha the docs call out: Claude Code "ignores a field it doesn't recognize without reporting an error". Typo a field name and it silently does nothing. Check spelling first when a skill misbehaves.

Another: despite the name, context: fork "doesn't run in a fork of the current conversation". The subagent does not see your chat history, so the skill's instructions must stand on their own.

Arguments and live data

Skills take arguments. $ARGUMENTS holds everything you typed after the command; $0, $1 and so on pick individual ones. The docs' example: a skill saying "Migrate the $0 component from $1 to $2", run as /migrate-component SearchBar JavaScript TypeScript.

Skills can also pull in live data before Claude sees them. A line like !git diff HEAD runs the command and pastes the output into the skill. Two warnings from the docs: a failed command aborts the whole skill, and admins can switch this off with disableSkillShellExecution in settings.

Where the files live, and who wins a name clash

LocationPathWho gets it
Personal~/.claude/skills//SKILL.mdAll your projects on this machine
Project.claude/skills//SKILL.mdEveryone in the repo, once committed
Nested/.claude/skills/...Sessions started in or below that folder
Plugin/skills//SKILL.mdWherever the plugin is on, as /plugin-name:skill-name
EnterpriseManaged settings directoryEvery user where the org deploys it

When two share a name, the docs list the order: enterprise beats personal, personal beats project, a skill beats a .claude/commands/ file with the same name, and plugin skills never clash because they are namespaced.

Practical upshot: if you converted /deploy to a skill but left the old command file behind, the skill wins. Delete the old file anyway so your teammates are not confused.

The context cost

Skills are not free. Descriptions sit in context all the time so Claude knows they exist. The combined description and when_to_use text is cut at 1,536 characters in the listing, so the docs say to put the key use case first. Full content loads only when the skill is used, then stays in the conversation. After compaction, re-attached skills share a 25,000-token budget, keeping the first 5,000 tokens of each.

So: keep SKILL.md under 500 lines (Anthropic's advice), push detail into reference files, and do not install fifty skills you never use. Context you spend on skill listings is context you are not spending on your code, and on a Pro plan it is usage too. Our Claude Pro vs Max page explains how usage limits work.

Which one should you use?

  • New workflow, more than a few lines, or needs reference files: skill.
  • Team convention Claude should apply without being asked (code style, how to write tests): skill, default settings, or user-invocable: false if it is pure background knowledge.
  • Deploy, release, send, delete: skill with disable-model-invocation: true. An old one-file command also works, but since the merge Claude can invoke those too, so the flag is the safer route.
  • Existing command files that work: leave them. Convert when you need a second file.

If what you really want is project-wide instructions that always apply, that is a CLAUDE.md job, not a skill. See AGENTS.md vs CLAUDE.md. New to Claude Code itself? Start with Claude vs Claude Code and Claude CLI vs Claude Code.

How we checked

We read Anthropic's Claude Code skills documentation on 3 December 2026 and quote it directly. Claude Code changes often; the docs page wins over this one if they ever disagree. We did not test every field on every platform. More on how we pick.

Questions people ask

What is the difference between Claude commands and skills?

Mostly the file layout now. Anthropic merged custom commands into skills: both create a /name command and support the same frontmatter (commands lack name and paths). Skills live in a folder, so they can carry supporting files and scripts. By default Claude can also load a skill by itself when its description fits the task.

Are Claude Code slash commands deprecated?

Custom command files are called the older format, but Anthropic's docs say your existing .claude/commands/ files keep working and recommend skills for new work. Built-in commands like /clear, /compact and /model are a different thing and are unaffected. We found no removal date on the page we read.

How do I stop Claude from running a skill automatically?

Add disable-model-invocation: true to the skill's frontmatter. Claude then cannot invoke it on its own, its description is not loaded into context, and it runs only when you type /name. Anthropic suggests this for workflows with side effects, such as deploying or sending messages, where timing matters.

How do I convert a command into a skill?

Move the file into a folder named after the command and rename it SKILL.md. Anthropic's example: move .claude/commands/deploy.md to .claude/skills/deploy/SKILL.md. The folder name becomes the command, so you still type /deploy. Then add supporting files next to SKILL.md if the workflow needs them.

Do skills use up my context window?

A little, all the time, and more when used. Skill descriptions load into context so Claude knows what exists; the full skill loads only when invoked. Description plus when_to_use text is cut at 1,536 characters in the listing. Once invoked, the skill stays in the conversation, and Anthropic advises keeping SKILL.md under 500 lines.

Sources

Every fact above comes from these pages. Prices change, so each one carries the date we read it.

  1. Claude Code docs: Skills, checked 3 Dec 2026