MCPInstall

Claude Skills vs Agents vs Commands: 1,235 Files Compared

Claude Code skills, subagents and slash commands compared: what each loads, who can start it and when to use which, with data from 1,235 public files.

13 min readmcpinstallEnglish
claude skills vs agentsclaude skillsclaude code subagentsslash commandsagent skills
Claude skills vs agents vs commands: a glowing folder of instruction cards linked by light trails to a slash key, with a subagent robot working alone inside a separate glass cube

In Claude Code, a skill is a folder of instructions that loads into your current conversation when it is relevant, a subagent (what most people mean by "agent") is a separate worker with its own context window that returns only a summary, and a slash command is now just a skill you start by typing /name. Custom commands were merged into skills: the files in .claude/commands/ still work, but they are the older format, and Claude can now run them on its own unless you tell it not to.

So the real choice is between two things, not three. Use a skill when you want Claude to follow a procedure or a set of conventions inside the conversation you are already having. Use a subagent when the work would flood that conversation with search results, logs or file contents you will never look at again.

This guide compares the three side by side, using Anthropic's documentation as of November 24, 2026, and reports what we measured the same day in 1,235 public skill, subagent and command files from eight popular repositories.

SkillSubagent ("agent")Slash command
What it isA folder with a SKILL.md and optional scripts and reference filesA Markdown file with a system prompt, a tool list and a modelA single Markdown file, the older format of a skill
Where it lives.claude/skills/<name>/SKILL.md.claude/agents/<name>.md.claude/commands/<name>.md
Where it runsIn your current conversationIn its own context windowIn your current conversation
Who starts itClaude, when the description matches, or you with /nameClaude, when the description matches, or you with an @-mentionYou with /name, and now Claude too
What stays in your contextThe description always; the full text once it is usedOnly the summary it sends backSame as a skill
Can limit toolsPre-approves tools with allowed-toolsYes, with tools and disallowedToolsSame as a skill
Can pick a modelYes, for the current turnYes, for the whole taskSame as a skill
Best forProcedures, conventions, checklists, repeatable workflowsResearch, log digging, reviews, parallel workNothing new; write a skill instead

What is the difference between a skill and a subagent?

A skill adds instructions to the conversation you are in; a subagent takes the task away into a separate conversation and brings back a summary. Everything else follows from that one difference.

When a skill runs, its SKILL.md content enters your conversation as a message and stays there for the following turns. Claude keeps everything it already knew about your task, and now also knows your deployment checklist, your API conventions or your review procedure. The cost is context: the instructions take up room for as long as the session lasts.

When a subagent runs, Claude writes it a task, and the subagent starts fresh with its own system prompt, its own tool permissions and its own context window. It can read fifty files, and none of them touch your main conversation. The cost is that it knows nothing about what you discussed unless Claude puts it in the task, and it needs time to gather its own context.

Anthropic's subagent documentation gives the same rule: use the main conversation when the task needs frequent back-and-forth or when phases share a lot of context, and use a subagent when the task produces verbose output, needs specific tool restrictions, or is self-contained enough to return a summary.

Are slash commands the same as skills now?

Yes. Anthropic's skills documentation states that custom commands have been merged into skills, and that existing .claude/commands/ files keep working. A file at .claude/commands/deploy.md and a skill at .claude/skills/deploy/SKILL.md both give you /deploy.

Three differences remain:

Command fileSkill folder
Supporting files (scripts, templates, reference docs)No, one file onlyYes
Frontmatter fieldsAll skill fields except name and pathsAll
If both exist with the same nameLosesWins

The merge changed one behavior that is easy to miss. A command used to run only when you typed it. Now Claude can invoke it without you typing anything, exactly like a skill. If a command pushes code, deploys or sends a message, add this line to its frontmatter so that only you can start it:

---
description: Deploy the application to production
disable-model-invocation: true
---

For new work, Anthropic's guidance is to write a skill. To convert an old command, move .claude/commands/deploy.md to .claude/skills/deploy/SKILL.md. You still type /deploy.

What we found in 1,235 public skill, agent and command files

Almost nobody uses the controls that separate these three. Of 683 skills, 4 are marked manual-only and none run in a subagent; of 241 command files, 2 are marked manual-only.

On November 24, 2026 we cloned eight widely used public repositories and read the frontmatter of every skill, subagent and command file in them, 1,235 definitions after removing duplicates and translated copies.

RepositorySkillsSubagentsCommands
affaan-m/everything-claude-code33177115
wshobson/agents18519991
garrytan/gstack7000
anthropics/claude-plugins-official533532
anthropics/skills2000
obra/superpowers1500
vercel-labs/agent-skills900
anthropics/claude-code003
Total683 (55%)311 (25%)241 (20%)

Skills: the defaults win

Measure, 683 skillsResult
Set disable-model-invocation: true (only you can start it)4 (0.6%)
Set user-invocable: false (only Claude can start it)0
Set context: fork (run in a subagent)0
Pre-approve tools with allowed-tools73 (10.7%)
Take arguments ($ARGUMENTS or argument-hint)48 (7.0%)
Description length, median210 characters
Description length, 90th percentile437 characters
Longest description1,068 characters
Descriptions over the 1,536-character cap0
SKILL.md body, median6,499 characters
SKILL.md body, 90th percentile20,379 characters

Two numbers matter for your context window. The description of each skill is always loaded so Claude knows the skill exists, and the median one is 210 characters, roughly 50 to 60 tokens. Installing 100 typical skills costs about 6,000 tokens before you type anything. The body loads only when the skill is used, and the median body is about 1,600 tokens, with one in ten above 5,000.

That last figure runs into a documented limit. When Claude Code compacts a long conversation, it re-attaches each used skill but keeps only the first 5,000 tokens of each, within a shared budget of 25,000 tokens. Roughly one skill in ten in our sample is long enough to lose its tail after compaction. If your skill is that long, put the rules that must always hold at the top and move reference material into separate files.

Commands: 99% can now run without you

Measure, 241 command filesResult
Have a description237 (98.3%)
Use arguments ($ARGUMENTS, $1)150 (62.2%)
Pre-approve tools with allowed-tools24 (10.0%)
Set disable-model-invocation: true2 (0.8%)

Commands are still the format people use when they want to pass arguments: 62% take them, against 7% of skills. But 239 of 241 leave model invocation on. Twelve of the commands have names such as commit, commit-push-pr, ship, epic-publish and code-migrate, and none of the twelve sets the flag. Before the merge that did not matter, because a command ran only when typed. Claude Code's permission prompts still stand between Claude and a git push, so this is not an open door, but if you have pre-approved git commands, the flag is the only thing that keeps the timing in your hands.

Subagents: authors pin the model, rarely the tools

Measure, 311 subagentsResult
Set a model270 (86.8%)
Model chosen: sonnet / inherit / opus / haiku / other116 / 67 / 57 / 28 / 2
Restrict tools (tools or disallowedTools)84 (27.0%)
Preload skills with the skills field0
Description length, median246 characters

Authors use subagents mostly to choose a model per task: 87% set one, and sonnet is the most common pick. Only 27% narrow the tool list, which means nearly three in four of these subagents inherit every tool the main conversation has. A reviewer or researcher that should never edit files is better defined with tools: Read, Grep, Glob.

The zeros are the most interesting result. Nobody in this sample combines the two mechanisms, even though Claude Code supports it in both directions: a skill with context: fork runs its instructions inside a subagent, and a subagent with a skills list starts with those skills already loaded.

When should you use a skill, a subagent or a command?

Pick by where the output should end up: in your conversation (skill), or out of it (subagent). Pick a command only if you already have one.

You want toUseWhy
Stop pasting the same instructions every sessionSkillLoads on demand, stays for the session
Teach Claude your team's conventionsSkillReference content applies alongside your conversation
Run a fixed workflow with side effects, such as a releaseSkill with disable-model-invocation: trueYou decide when it runs
Search a large codebase or read long logsSubagentThe noise stays in its context; you get the summary
Get an independent code reviewSubagent with read-only toolsFresh context, cannot edit files
Run several pieces of work at onceSubagentsEach has its own context window
Use a cheaper model for routine workSubagent with model: haikuThe model applies to that task only
Run a long procedure without filling your contextSkill with context: forkThe skill is the task, a subagent is the place
Give a specialist worker standing knowledgeSubagent with a skills listSkills are injected when it starts
Keep an existing /command workingLeave itCommand files are still supported

Can a skill and a subagent work together?

Yes, in two directions, and they do different jobs.

ApproachThe system prompt comes fromThe task comes from
Skill with context: forkThe agent type named in agent (default general-purpose)The SKILL.md content
Subagent with a skills fieldThe subagent's own Markdown bodyThe message Claude writes when it delegates

A forked skill looks like this:

---
name: deep-research
description: Research a topic thoroughly
context: fork
agent: Explore
---

Research $ARGUMENTS thoroughly:

1. Find relevant files using Glob and Grep
2. Read and analyze the code
3. Summarize findings with specific file references

Two details from the documentation are worth knowing before you use it. The forked subagent does not see your conversation history, so the skill has to stand on its own. And context: fork only makes sense for skills that contain a task: a skill that only lists conventions gives the subagent guidelines and nothing to do.

How much context does each one use?

A skill costs a description up front and its full text once used; a subagent costs a description up front and a summary when it finishes.

Always loadedLoaded when usedDocumented limit
SkillDescription, about 50 to 60 tokens at the medianFull SKILL.md, about 1,600 tokens at the medianDescription plus when_to_use cut at 1,536 characters; 5,000 tokens per skill and 25,000 in total kept after compaction
SubagentDescription, about 60 tokens at the medianNothing in your context except its final summaryStartup warning when custom subagent descriptions together pass 15,000 tokens
CommandSame as a skillSame as a skillSame as a skill
Skill with disable-model-invocation: trueNothingFull text when you type /nameSame as a skill

The last row is a useful side effect: a manual-only skill costs no context at all until you call it. Token figures here are our estimates at four characters per token; the limits are from Anthropic's documentation.

A subagent is not free either. It sends its own requests, and those count toward the same usage limits as your main conversation.

Where does each type fall short?

  • Skills stay in your context once used, so ten heavy skills in one session crowd out your actual work. Claude also decides when to load them from the description alone, so a vague description means the skill never triggers.
  • Subagents start without your conversation. If the task depends on what you discussed for the last hour, a plain subagent will redo that work or miss it. Subagents that run in the background also get a narrower set of tools.
  • Commands cannot carry scripts or reference files, and offer nothing a skill does not.
  • None of the three connects Claude to an outside system. To give Claude access to GitHub, a database or a browser, you need an MCP server. Skills tell Claude how to do something; an MCP server gives it something to do it with.

Our survey has limits too. Eight repositories are a sample of popular public collections, not of everything installed on developers' machines. We read frontmatter as text, so a field written in an unusual way could be missed. And two of the repositories account for 81% of the files.

Frequently asked questions

Are Claude Code slash commands deprecated?

No. Anthropic's documentation says existing .claude/commands/ files keep working. It calls them the older format and recommends a skill for new work, because a skill can include supporting files.

What is the difference between an agent and a subagent in Claude Code?

In everyday use they mean the same thing: a worker defined in .claude/agents/ that Claude delegates to. Anthropic's documentation calls them subagents. The main Claude Code session is the agent you talk to, and subagents work for it.

Does Claude use skills automatically?

Yes, by default. Claude reads every skill's description and loads the skill when your request matches it. Set disable-model-invocation: true to make a skill manual-only, or user-invocable: false to hide it from the / menu so only Claude can use it.

Can a subagent use skills?

Yes. A subagent can find and run skills during its work like the main conversation does. To load specific skills at startup, list them in the subagent's skills field. Skills marked disable-model-invocation: true cannot be preloaded.

Where do I put skills so my team gets them?

Commit them to .claude/skills/ in the repository. Skills in ~/.claude/skills/ are personal and load in every project on your machine. The same split applies to subagents: .claude/agents/ for the project, ~/.claude/agents/ for you.

Skills vs MCP: which do I need?

Often both. A skill is instructions; an MCP server is a connection to a tool or data source. A skill can tell Claude how your team writes pull requests, and the GitHub MCP server is what lets Claude open one. Since November 24, 2026 the two can also come together: with Skills over MCP, a server ships its own skills, which show up in Claude Code as /<server>:<skill>.

Where to go next

If you want skills other people have already written, browse the Claude skills directory on MCPInstall, or start with the trending Claude Code skills for this month. Before you install one from a stranger, read how to check whether an agent skill is safe: a skill can run scripts and pre-approve tools, and 10.7% of the ones we surveyed pre-approve at least one.

Sources

Checked on November 24, 2026.