Claude Commands Vs Skills

Claude commands vs skills used to be two formats, but Claude Code has merged custom slash commands into skills. A file at .claude/commands/deploy.md and a skill at .claude/skills/deploy/SKILL.md both create /deploy, and they work the same way.

Your old command files keep working. Many plugins still ship them, and this list of plugins with slash commands shows which ones do. For anything new, the Claude Code docs say to write a skill, since it does everything a command does and more. If you still paste the same steps into chat by hand, our skills and prompts guide shows when to save them as a skill.

What Does A Skill Add Over A Command?

Three things differ:

Command fileSkill
Where it lives.claude/commands/name.md.claude/skills/name/SKILL.md
Makes /nameYesYes
Can hold extra filesNoYes
Claude can run it on its ownNoYes, unless you turn that off

How Do I Turn A Command Into A Skill?

Make a folder inside .claude/skills/ with the command's name, then move the old file into that folder and rename it SKILL.md.

.claude/commands/deploy.md   becomes   .claude/skills/deploy/SKILL.md

Then add a description at the top, because Claude reads that line to decide when the skill fits a task you give it. For a personal skill that works in every project, use ~/.claude/skills/ instead.

Can I Stop Claude From Running A Skill By Itself?

You can. Set disable-model-invocation: true in the frontmatter, and the skill only runs when you type its slash command. That suits a deploy step. If a step must run every time with no choice left to Claude, a hook may fit better, as our skill or hook guide explains.

To go the other way, user-invocable: false hides the skill from you and leaves it for Claude to use.

Do Skills Take Arguments Like Commands Did?

They do. Type the arguments after the slash command. Inside SKILL.md, $ARGUMENTS stands for everything you typed after the command name, and $0 stands for the first argument on its own.

What About Built-In Commands?

Built-in commands such as /help and /compact are part of Claude Code itself. A few, like /debug and /code-review, are bundled skills. The /loop skill is another one, and it can run a skill again on a timer. The Claude Code commands reference lists them all. One of them is /security-review. It checks the code you changed on your branch for flaws, and you can see what 9 security plugins add to it.

FAQ

Should I Keep Long Notes In CLAUDE.md Or In A Skill?

Move a procedure to a skill. Claude Code loads CLAUDE.md in every session, but a skill's body loads only when it is used, so long notes cost almost nothing until then.

Ad Sponsor this spot. Reach developers who pick skills