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.

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.
| Skill | Subagent ("agent") | Slash command | |
|---|---|---|---|
| What it is | A folder with a SKILL.md and optional scripts and reference files | A Markdown file with a system prompt, a tool list and a model | A 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 runs | In your current conversation | In its own context window | In your current conversation |
| Who starts it | Claude, when the description matches, or you with /name | Claude, when the description matches, or you with an @-mention | You with /name, and now Claude too |
| What stays in your context | The description always; the full text once it is used | Only the summary it sends back | Same as a skill |
| Can limit tools | Pre-approves tools with allowed-tools | Yes, with tools and disallowedTools | Same as a skill |
| Can pick a model | Yes, for the current turn | Yes, for the whole task | Same as a skill |
| Best for | Procedures, conventions, checklists, repeatable workflows | Research, log digging, reviews, parallel work | Nothing 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 file | Skill folder | |
|---|---|---|
| Supporting files (scripts, templates, reference docs) | No, one file only | Yes |
| Frontmatter fields | All skill fields except name and paths | All |
| If both exist with the same name | Loses | Wins |
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.
| Repository | Skills | Subagents | Commands |
|---|---|---|---|
| affaan-m/everything-claude-code | 331 | 77 | 115 |
| wshobson/agents | 185 | 199 | 91 |
| garrytan/gstack | 70 | 0 | 0 |
| anthropics/claude-plugins-official | 53 | 35 | 32 |
| anthropics/skills | 20 | 0 | 0 |
| obra/superpowers | 15 | 0 | 0 |
| vercel-labs/agent-skills | 9 | 0 | 0 |
| anthropics/claude-code | 0 | 0 | 3 |
| Total | 683 (55%) | 311 (25%) | 241 (20%) |
Skills: the defaults win
| Measure, 683 skills | Result |
|---|---|
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-tools | 73 (10.7%) |
Take arguments ($ARGUMENTS or argument-hint) | 48 (7.0%) |
| Description length, median | 210 characters |
| Description length, 90th percentile | 437 characters |
| Longest description | 1,068 characters |
| Descriptions over the 1,536-character cap | 0 |
SKILL.md body, median | 6,499 characters |
SKILL.md body, 90th percentile | 20,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 files | Result |
|---|---|
Have a description | 237 (98.3%) |
Use arguments ($ARGUMENTS, $1) | 150 (62.2%) |
Pre-approve tools with allowed-tools | 24 (10.0%) |
Set disable-model-invocation: true | 2 (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 subagents | Result |
|---|---|
Set a model | 270 (86.8%) |
Model chosen: sonnet / inherit / opus / haiku / other | 116 / 67 / 57 / 28 / 2 |
Restrict tools (tools or disallowedTools) | 84 (27.0%) |
Preload skills with the skills field | 0 |
| Description length, median | 246 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 to | Use | Why |
|---|---|---|
| Stop pasting the same instructions every session | Skill | Loads on demand, stays for the session |
| Teach Claude your team's conventions | Skill | Reference content applies alongside your conversation |
| Run a fixed workflow with side effects, such as a release | Skill with disable-model-invocation: true | You decide when it runs |
| Search a large codebase or read long logs | Subagent | The noise stays in its context; you get the summary |
| Get an independent code review | Subagent with read-only tools | Fresh context, cannot edit files |
| Run several pieces of work at once | Subagents | Each has its own context window |
| Use a cheaper model for routine work | Subagent with model: haiku | The model applies to that task only |
| Run a long procedure without filling your context | Skill with context: fork | The skill is the task, a subagent is the place |
| Give a specialist worker standing knowledge | Subagent with a skills list | Skills are injected when it starts |
Keep an existing /command working | Leave it | Command files are still supported |
Can a skill and a subagent work together?
Yes, in two directions, and they do different jobs.
| Approach | The system prompt comes from | The task comes from |
|---|---|---|
Skill with context: fork | The agent type named in agent (default general-purpose) | The SKILL.md content |
Subagent with a skills field | The subagent's own Markdown body | The 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 loaded | Loaded when used | Documented limit | |
|---|---|---|---|
| Skill | Description, about 50 to 60 tokens at the median | Full SKILL.md, about 1,600 tokens at the median | Description plus when_to_use cut at 1,536 characters; 5,000 tokens per skill and 25,000 in total kept after compaction |
| Subagent | Description, about 60 tokens at the median | Nothing in your context except its final summary | Startup warning when custom subagent descriptions together pass 15,000 tokens |
| Command | Same as a skill | Same as a skill | Same as a skill |
Skill with disable-model-invocation: true | Nothing | Full text when you type /name | Same 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.
- Anthropic, Claude Code documentation: Extend Claude with skills (commands merged into skills, frontmatter reference, invocation control, skill content lifecycle, running skills in a subagent) and Create custom subagents (scopes, frontmatter, preloading skills, choosing between subagents and the main conversation)
- Agent Skills specification
- MCPInstall survey, November 24, 2026: frontmatter of 683
SKILL.mdfiles, 311 subagent files and 241 command files in affaan-m/everything-claude-code (commit4adeee6), wshobson/agents (1eecf4b), garrytan/gstack (cb06a6d), anthropics/claude-plugins-official (65adb96), anthropics/skills (e4bb5d9), obra/superpowers (22f0b46), vercel-labs/agent-skills (5a37a63) and anthropics/claude-code (50cdc70). Files with identical content, and files that repeat a name inside one repository (translated copies), were counted once. A file underagents/was counted as a subagent only if it had bothnameanddescriptionin its frontmatter.