Claude Code Skills vs Commands: What Actually Differs

Claude Code skills vs commands: commands merged into skills, so the real difference is who triggers it. Head to head, with the fields that decide it.

How do skills and commands compare side by side: a comparison table from the post
How do skills and commands compare side by side

Anthropic merged custom commands into skills, so the two are one object with two triggers. That one change decides most of this page.

In Claude Code, a command and a skill are one object now. A .claude/commands/<name>.md file and a .claude/skills/<name>/SKILL.md folder both create /name and read the same frontmatter. The split is what the folder can carry, and which file wins a name clash.

TL;DR

  • Custom commands were merged into skills, per the skills docs. Both formats still work and share the same frontmatter.
  • The folder carries supporting files. The trigger fields disable-model-invocation and user-invocable work in both formats.
  • A skill beats a command file when the names clash, so the folder is the safer default.
  • 6 is the most skills you can chain in one message, per the commands reference.

How we compared these

6 criteria decide this comparison, from where a file sits to who can trigger it. Each one answers a question you hit in the first week of running either format.

  • where the file lives
  • who can start it
  • what it can carry
  • how it takes arguments
  • what it costs in context
  • which one wins a name clash

Every value below comes from Anthropic’s skills documentation and commands reference, both fetched 14 November 2026.

I left plan pricing out of the numbers. The docs list no separate charge for a command file or a skill folder, so neither carries a price tag. No primary source publishes a token count for a typical skill either.

A made-up figure is worse than a blank cell. So the cells stay blank.

The comparison only covers things the current docs state outright, so nothing here rests on a post about an older version.

I run a content pipeline where each stage is a skill folder with its own SKILL.md and reference files beside it. That layout is the one on this page.

What is the difference between a Claude Code skill and a command?

A command is what you type. A skill is the folder that answers it. Since the merge, one file can arrive as a slash command you trigger. It can also be an automatic trigger Claude picks, or both at once.

The docs state the merge plainly: custom commands have been merged into skills. A file at .claude/commands/deploy.md and a skill at .claude/skills/deploy/SKILL.md both create /deploy and work the same way, per Anthropic. Your existing command files keep working.

So claude code commands vs skills is a comparison of two file layouts for one mechanism. Skills follow the Agent Skills open standard. Claude Code extends that standard with invocation control, subagent execution, and dynamic context injection.

The extensions are where the remaining split lives. It comes down to the supporting files only the folder holds, and which file wins a name clash. If you want the mechanism itself explained, what a Claude Code skill is covers the anatomy of the folder.

The name you type comes from the file or folder itself, so both formats land on the same command.

Did Anthropic merge custom commands into skills?

Anthropic did merge them. The docs say custom commands have been merged into skills, and that a Markdown file in .claude/commands/ is the older format that still works. Nothing was removed, so an upgrade will not break a working setup.

That label carries less weight than it sounds. The docs prefer a skill folder for new work, since the folder can also hold supporting files, per the same page. The command file accepts the same frontmatter fields as a skill except name and paths.

On the custom slash commands vs skills question, both names point at the same object now. A search for “are slash commands deprecated” still turns up plenty of writing from 2025 that no longer matches the docs.

Command files create working slash commands today, and the only fields they cannot set are name and paths.

How do skills and commands compare side by side?

They share frontmatter, so on paper they look identical. The folder adds supporting files, and it wins a name clash. Those are the 2 differences left.

Command file Skill folder Built-in command
Path .claude/commands/<name>.md .claude/skills/<name>/SKILL.md compiled into the CLI
Command name from file name frontmatter name, else directory name fixed
Claude can fire it alone yes, unless disabled yes, unless disable-model-invocation: true no, most run fixed logic
Supporting files no yes no
Arguments $ARGUMENTS, $N, named $ARGUMENTS, $N, named per command
Wins a name clash loses to a skill beats a command file loses to a user skill, in a local terminal session

That first table carries most of the claude code skills vs slash commands answer. Most built-in commands execute fixed logic rather than a prompt, per the skills page, which is why their column has little to configure.

The remaining differences are quieter, and they show up in what loads into the window. The commands reference caps a single message at 6 chained skills.

Command file Skill folder
Human-only switch disable-model-invocation: true disable-model-invocation: true
Claude-only switch user-invocable: false user-invocable: false
Description in context yes by default, dropped when model invocation is off yes by default, dropped when model invocation is off
Max chained in one message 6 skills total 6 skills total
Separate charge listed none none

Both columns match because both files read the same frontmatter. A skill rule applied to a command file is the shared frontmatter at work. That is why it is short.

The precedence order

Location decides a clash before the format does. Enterprise beats personal, and personal beats project, per the resolution table in the docs. Enterprise means the .claude/skills/ folder inside the managed settings directory your org deploys. Personal means ~/.claude/skills/. Between a skill and a file in .claude/commands/, the skill runs.

That table also settles a nested layout. A skill at <subdir>/.claude/skills/ loads in sessions started at or below that subdir. A session started above it loads the skill once Claude reads or edits a file down there. Run /add-dir on the subdir to load it sooner.

Two edge cases matter for teams. A user skill replaces a bundled command but not its aliases. A project code-review skill replaces /code-review, while the alias /review still runs the bundled one. Plugin skills keep a namespace and load beside your own, as /plugin-name:skill-name.

A skill from a directory added with --add-dir gets a prefix when its folder name clashes with one of yours. It runs as /prefix:skill-name. All of this is worth knowing before you hunt a bug that is really a name collision.

Team bugs here are name collisions, and the precedence table settles them before you debug anything else.

How do you stop Claude from running a workflow on its own?

Set disable-model-invocation: true in the frontmatter. That one line stops Claude from starting the skill by itself, and keeps you typing /name. It also drops the description from the window until you do. That is the whole disable model invocation claude code answer, in either file format.

Anthropic’s own example is a deploy skill. The skills docs give the reason: you do not want Claude deciding to deploy because your code looks ready. If Claude tries anyway, Claude Code blocks the call. Expect a suggestion to run /deploy yourself.

If you would rather not edit the file, a skillOverrides entry of "user-invocable-only" does the same job from settings. It is the settings version of disable-model-invocation: true.

My own lead-gen and follow-up run themselves now, and a few pieces of that chain reach outside the machine. Any automation that sends something off this box sits one bad trigger from a costly mistake. So I read that flag before I ship a new skill.

Audit your own library the same way. Any skill that commits or sends something belongs behind the flag.

disable-model-invocation: true puts the trigger back in your hands.

That flag has an inverse. The user invocable claude code setting is user-invocable: false, which hides a skill from the / menu and gives it to Claude only. That fits background knowledge, such as how a legacy system works. Claude needs it loaded. You never need to type it.

One more field pairs well with the trigger decision. allowed-tools pre-approves the tools a skill may call during the turn that invokes it. Claude then runs without prompting you. The grant clears on your next message, per the pre-approve section.

How do a skill folder and a command file compare on context cost?

A skill’s description loads into context every session. Its body then stays put once loaded, so the cost grows with what you wrote. A command file takes the same frontmatter, so the rule holds there too. It just cannot carry supporting files.

The claude code skills context window question has a hard limit. The combined description and when_to_use text is truncated at 1,536 characters in the skill listing, per the frontmatter reference. The docs give the reason: it cuts context usage. A longer description does not buy a better trigger past that point.

Once a skill loads, its content stays in the conversation across later turns, so every line is a recurring token cost. Auto-compaction re-attaches the most recent invocation of each skill. Nothing is free here.

The skill content lifecycle section caps a re-attached skill at its first 5,000 tokens. Those re-attached skills share a combined budget of 25,000 tokens. Older skills can drop out after a compaction. A wide library loses coverage first.

Trimming descriptions is the cheap fix. One clear sentence per skill keeps the trigger and drops the words that never matched a task anyway.

A large skill library is a standing context cost, and the listing is where it shows up first.

That is why the docs tie invocation control to context loading in the same table. Turning off model invocation also takes that skill’s description out of the standing context. One field covers both effects.

That second effect matters more once your library grows. Few people notice it.

When a session feels heavy, /context shows what fills the window, per the commands reference. Skill descriptions sit in that total.

The separate plugins and MCP question is covered in Claude Code plugins vs skills.

The AutomateReal services page

AutomateReal services

How do you pass an argument to a skill or a command?

Both formats read the same placeholders and the same arguments field. $ARGUMENTS takes the whole string, and $0 takes one position. Name an argument and $issue expands to it, so a reader can follow the intent.

Named arguments come from the arguments field, which is frontmatter, so a command file takes it too, per the frontmatter reference. That is the whole claude code skill arguments story: same placeholders, same field, either format. With arguments: [issue, branch], the placeholder $issue becomes the first argument. The placeholder $branch becomes the second.

Migrate the $0 component from $1 to $2.

Running /migrate-component SearchBar JavaScript TypeScript fills those three slots in order. Leave a slot empty and an indexed placeholder stays as literal text. It does not expand.

If no placeholder takes what you typed, Claude Code appends ARGUMENTS: <value> to the end of the skill content. Claude still sees the input that way. Watch for that line the first time you wire up a new skill.

Multi-word values need quotes. Indexed placeholders use shell-style quoting, per the substitutions table, so /my-skill "hello world" second makes $0 expand to hello world.

Quote a multi-word value, or its second word lands in the next slot.

How do you turn your .claude/commands files into skills?

Create the folder .claude/skills/<name>/SKILL.md and copy the body in. Keep the frontmatter except name and paths. Type /name to confirm the command still fires. Delete the old file last, because a same-named skill wins the clash anyway.

  1. Pick a name. The directory name sets the command, unless name in the frontmatter overrides it.
  2. Create .claude/skills/<name>/SKILL.md and paste the body from the command file.
  3. Copy the frontmatter fields across, and drop name and paths.
  4. Move any reference files into the same folder and point the body at them.
  5. Type /name in a session to confirm the command resolves.
  6. Delete the old .claude/commands/ file once the skill fires.

Step 5 has one trap. A command file in a subdirectory gets a colon in its name, so .claude/commands/frontend/component.md runs as /frontend:component, not /component. Match the folder layout if scripts or docs already reference that name.

Run both files side by side for a session before you delete the old one. A name clash is cheap to test when nothing else depends on the result.

Step 6 closes the migrate slash commands to skills job. The folder also brings the supporting files with it. Set context: fork and the skill runs in its own subagent context.

That starts a fresh agent with the skill as its prompt, and the history stays out of it. A long audit runs without filling your main conversation. The how to use a Claude Code skill walkthrough covers that pattern end to end.

Convert by copying the body and testing /name before you delete anything.

Which one fits your workflow?

Pick a skill folder for anything with scripts or reference files beside it. Pick a command file only for a one-file procedure with nothing attached. Built-in commands are for session control, and you cannot edit them.

  • Custom command file (.claude/commands/<name>.md). Best for a short procedure you always type yourself, with nothing attached to it. The file name becomes the command. Weakness: Anthropic calls it the older format. It cannot hold supporting files, and it loses to a same-named skill.
  • Skill folder (.claude/skills/<name>/SKILL.md). Best for a procedure with scripts or references that travel with it. Supporting files sit beside SKILL.md, and context: fork can run the whole thing apart from your main conversation. Weakness: the description sits in context every session. The loaded body stays there across turns.
  • Built-in command (/help, /compact, /usage, /init, /memory). Best for session control. Most execute fixed logic coded into the CLI, so they are fast and predictable, per the skills page. Weakness: you cannot edit them. Bundled skills such as /code-review, /debug, and /doctor sit in a middle layer, prompt-based like yours but shipped by Anthropic.

Each option carries a real cost. The folder costs context. The command file costs flexibility. The built-ins cost nothing to set up and nothing to extend.

The rest of the extension surface sits beside these files. CLAUDE.md holds always-on project instructions. Hooks fire on tool events, and MCP servers add tools. Subagents take delegated work.

The when to use skills vs slash commands decision comes down to one question: who should be able to start the thing.

Who fires it Frontmatter You type Claude can fire Description in context
You only disable-model-invocation: true /name no no, until you invoke it
You or Claude default /name yes yes
Claude only user-invocable: false hidden from / yes yes

If you are unsure, start with the folder. It carries supporting files, it beats a command file on a name clash, and moving back later costs one copy and one test.

Given a workflow with 3 reference files attached, I pick the folder and stop thinking about it. The harder call is the second row, where a workflow can fire on its own. That one earns a few minutes of thought before you ship it. Mine start there.

Decide the trigger first, then pick the file that supports it.

FAQ

Are Claude Code custom slash commands deprecated?

No. Custom commands were merged into skills, and a file in .claude/commands/ still creates a working slash command, per the skills docs. Anthropic calls the file format older, and it still runs.

Do my old .claude/commands files still work after the merge?

Yes. The docs state that existing .claude/commands/ files keep working, and that a command file and a skill both create the same command. An upgrade alone will not silence a working setup.

Does a command file show up in the / menu like a skill does?

Yes. Both create the same command name. A command file takes its name from the file. A skill takes it from the frontmatter name field or from the directory name.

Can Claude fire one of my command files without me typing it?

Yes, by default. Claude can invoke any skill on its own when the task matches the description. A command file carries the same behavior until you set disable-model-invocation: true.

Do skills and commands work in Cowork and cloud sessions, or only in my terminal?

Cloud and Cowork sessions do not read ~/.claude/skills/ on your machine, per the docs. They load the skills enabled on your claude.ai account.

A terminal session signed in with that account downloads the same skills into ~/.claude/skills/synced/. Commit the skill to the repository’s .claude/skills/ only for cloud sessions outside a project thread. Project cloud threads do not load committed skills.

Is a skill the same thing as a saved prompt template?

No. A skill is a folder with a SKILL.md holding metadata and instructions, plus optional scripts and references, per the open standard. A prompt template is text you paste into a chat. On the claude code skills vs prompts question, the skill is the one that travels between clients.

Where to start

The skills I run day to day are written up in the skills bundle, if you would rather read mine than author your own. It sits beside the built-in mechanism. It does not replace it.

The AutomateReal skills page

AutomateReal skills

If a workflow you repeat every week keeps landing on you, a discovery call maps it in about thirty minutes. Bring the one that annoys you most.