SHEET 03blog/skills-vs-mcp-vs-plugins/ REVISED 

Agent Skills vs MCP vs plugins vs subagents: which one to use

A skill teaches an agent how to do a task, an MCP server gives it new tools, a plugin packages both, and a subagent runs work in its own context. When to use each.

Published
Length
10 min read
Tags
  • ai-agents
  • developer-tools
  • llm

Use a skill when the agent needs to know how to do something, an MCP server when it needs to reach something, a plugin when you want to ship several of these as one installable unit, and a subagent when a task would flood your main conversation with output you won’t read again. Most real setups combine two or more of them.

As of late November 2026, Claude Code alone ships all four plus hooks, and the MCP spec can now serve skills too, so the lines blur. This is how I tell them apart.

What is the difference between a skill, an MCP server, a plugin and a subagent?

A skill is instructions on disk, an MCP server is a program, a plugin is a package and a subagent is a separate agent with its own context window.

Agent Skill MCP server Plugin (Claude Code) Subagent
What it is Folder with SKILL.md, optional scripts/, references/, assets/ Process (stdio) or remote HTTP service speaking MCP Directory with .claude-plugin/plugin.json bundling other components Markdown file with a system prompt, tool list and model
What it adds Procedure, conventions, domain knowledge Tools, resources and prompts backed by live code Skills, subagents, hooks, MCP servers as one unit An isolated worker that returns a summary
Context cost at startup Name and description only (about 100 tokens per skill per the spec) Tool names and server instructions when tool search is on Sum of what it contains Description only
Holds credentials or state No, but it can call scripts that do Yes, this is its job Through its MCP servers and hooks Inherits or restricts the parent’s tools
Portable across agents Yes, open format Yes, open protocol Claude’s own format (Claude Code, claude.ai, Cowork) No, each tool has its own format
Where it lives .claude/skills/<name>/ (Claude Code), .agents/skills/<name>/ (Codex) .mcp.json or user config Installed from a marketplace into ~/.claude/plugins/ .claude/agents/ or ~/.claude/agents/

Hooks are the fifth piece: shell commands that run at fixed points, such as before or after a tool call. The hooks guide says they give you deterministic control, so “certain actions always happen rather than relying on the LLM to choose to run them.” If a rule must hold every time, like running the formatter after each edit, put it in a hook. The model may or may not follow a skill.

When should I write a skill instead of an MCP server?

Write a skill when the gap is knowledge and build an MCP server when the gap is access. If you can write the fix down as steps a new engineer could follow, it’s a skill.

Anthropic’s launch post for Agent Skills (October 16, 2025) says building one “is like putting together an onboarding guide for a new hire.” That framing holds up. Good skill candidates:

  • Your team’s way of writing database migrations, release notes or incident summaries.
  • A review checklist the agent should apply to every pull request in one area of the code.
  • A procedure that needs a small deterministic helper, such as a script that validates a config file. The script lives in scripts/ and the skill tells the agent when to run it.

Good MCP server candidates:

  • Anything behind OAuth or an API key: your CRM, your ticket tracker, Gmail, a production read replica.
  • Anything that needs state across calls, rate limiting or server-side audit logs.
  • Anything other people’s agents will call.

Context cost is the other factor. A skill’s body loads only when it’s used, and Claude Code’s skills docs say “long reference material costs almost nothing until you need it.” Claude Code also defers MCP tool definitions with tool search, loading only tool names and server instructions at session start. Still, a 300-line checklist is cheaper and easier to review as a skill than as tool descriptions.

Do Agent Skills replace MCP?

No. The two are converging into one distribution path. SEP-2640, the Skills extension for MCP, is Final. It exposes each file of a skill as an MCP resource, conventionally under a skill:// URI, and adds skills/list and skills/get methods. The problem it fixes, in the SEP’s words: a server and “the skill that teaches an agent to use it are versioned, discovered, and installed separately.”

Support landed quickly:

  • The official TypeScript SDK added Skills over MCP in v2.4.0 (October 23, 2026), with loadSkills(folder) on the server side and SkillsClient on the client side.
  • Claude Code supports skills from MCP servers in public beta from v2.1.331. A server’s skill shows up as <server>:<skill>, so a pdf skill on a server named docs runs as /docs:pdf.
  • Google’s stitch-skills repo describes itself as Agent Skills “designed to work with the Stitch MCP server.” The server provides the tools and the skills teach the workflow.

MCP-served skills get fewer features than local ones. Claude Code ignores frontmatter fields such as allowed-tools, hooks, model, context and paths on them, and !`command` shell injection doesn’t run. That’s a sensible default for text that arrives from a remote server.

Running those servers for real users (auth, gateways, the stateless 2026-07-28 spec, the SDK advisories) is a separate job, covered in running MCP in production.

When do you need a plugin?

You need a plugin when you want to hand someone a working setup in one command, or install the same setup across many repos. Claude Code’s plugins overview says skills, subagents, hooks and MCP servers “all work on their own, without a plugin,” and recommends a plugin when you want several of them “packaged as one unit.”

Three things to know before you install one, from the plugin security page and the overview:

  1. “A Claude Code plugin you install can execute arbitrary code on your machine with your user privileges.” Its hooks, monitors and MCP servers run outside Claude Code’s sandbox.
  2. With auto-update on, “the files you reviewed can change on disk.”
  3. An enabled plugin is part of every session. The name and description of each skill and agent it contains sit in context on every turn, even when you never use them.

So read hooks/hooks.json, .mcp.json and everything in bin/ before installing, and run claude plugin details <name> afterwards to see the component inventory. The full pre-install checklist is in before you install an AI skill.

When is a subagent the right tool?

Use a subagent when the work is self-contained and noisy: searching a large codebase, running a test suite, reading long logs. The subagents docs describe a worker with its own isolated context window that “returns only a summary.” You can restrict its tools too, for example a reviewer that gets Read, Glob, Grep and nothing that edits files.

Skills and subagents combine. Add context: fork to a skill’s frontmatter and Claude Code runs it in a subagent with the skill body as the prompt. The subagent doesn’t see your conversation, so the skill has to stand on its own.

This site was built with subagents. Each task in the plan went to a fresh implementer subagent, a separate reviewer subagent checked the result, and fix rounds were capped at five. Later tasks ran in parallel in separate git worktrees. It worked because every task was bounded and had a review step. When phases share a lot of context, the docs recommend staying in the main conversation. More on that setup in running parallel coding agents on a small team.

How do I write my first SKILL.md?

Start with one procedure you’ve explained to an agent more than twice. Put it in a folder, give it a precise description and keep the body short.

  1. Pick the folder. Claude Code reads .claude/skills/<name>/ in the repo and ~/.claude/skills/<name>/ for all projects. The Codex skills docs list .agents/skills/ (from the current directory up to the repo root) and $HOME/.agents/skills/. If your team uses both, keep one copy and symlink the other.
  2. Name it by the spec’s rules: 1 to 64 lowercase letters, digits and hyphens, no leading, trailing or double hyphens, matching the folder name. Claude Code falls back to the folder name if name is missing, but Codex and the spec require it.
  3. Write the description for routing. The agent reads only the name and description to decide whether to load the skill, so say what it does and when to use it, in the words a user would type. The spec caps it at 1,024 characters. Claude Code truncates description plus its own when_to_use field at 1,536.
  4. Keep SKILL.md under 500 lines, as the spec and Claude Code both recommend. Move long material into references/, linked one level deep.
  5. Put deterministic work in scripts. “Check that every migration has a down step” is a job for a script, not the model.
  6. Validate and test. Run skills-ref validate ./my-skill (the validator linked from the spec), then ask one question that should trigger the skill and one that shouldn’t.

Here’s a complete skill you can drop in and adapt. It reviews SQL migrations before merge. The folder layout:

.claude/skills/migration-review/     (or .agents/skills/migration-review/ for Codex)
├── SKILL.md
└── references/
    └── rules.md

And SKILL.md:

---
name: migration-review
description: Reviews SQL database migration files before merge. Use when the user adds or changes a migration, asks to review a schema change, or mentions ALTER TABLE, indexes, or a deploy that touches the database.
allowed-tools: Read Grep Glob Bash(git diff *)
---

# Migration review

Review every new or changed file under the migrations directory.

## Steps

1. List the migration files changed on this branch with `git diff --name-only` against the main branch.
2. For each file, check the rules in [references/rules.md](references/rules.md).
3. Report findings as a table: file, line, rule, risk (high/medium/low), suggested fix.
4. If there are no findings, say so in one line. Do not invent issues.

## Hard rules

- Never run the migration or connect to a database.
- Flag any statement that rewrites or locks a large table without a stated plan.
- Flag any migration with no rollback path.

references/rules.md holds the long checklist: adding a column with a default on a large table, creating indexes without CONCURRENTLY on PostgreSQL, dropping columns the running code still reads, renames that break a rolling deploy. The agent reads that file only when the skill fires.

Only name and description are required, so the file is portable. allowed-tools is experimental in the open spec and support varies by agent. In Claude Code it pre-approves the listed tools for the turn that invokes the skill without blocking others, so a review skill should list only read-only ones (the Bash(git diff *) pattern syntax is Claude Code’s). For anything with side effects, like a deploy, set disable-model-invocation: true so it runs only when you type /name.

The skills people star are narrow and procedural, and they say plainly what they do. Star counts are from the GitHub API on November 29, 2026.

Repo Stars What it shows
anthropics/skills ~202,000 Anthropic’s public skills, worth reading before you write your own
cloudflare/security-audit-skill ~79,900 A multi-phase audit with “independently verified, machine-readable findings”
vercel-labs/skills ~41,400 npx skills, an installer that targets many agents
google-labs-code/stitch-skills ~14,100 Skills paired with a vendor’s MCP server

Each one encodes a workflow its author already runs, with explicit steps and outputs. None is a vague “be a better coder” prompt. The Cloudflare skill is a good model even if you never run it, because it separates finding a bug from confirming it. How well audit skills work on a real codebase is its own topic, covered in AI security audit tools.

How do I share skills across a team and across agents?

Commit project skills to the repo, and reach for an installer or a plugin only when you need versioning across many repos. From simplest:

  • In the repo: .claude/skills/ or .agents/skills/ under version control. Changes go through code review like everything else. This is where I’d start.
  • With an installer: npx skills add <owner/repo> from vercel-labs/skills installs skills into each agent’s folder and records them in skills-lock.json with a content hash per skill, so skills check and install --frozen-lockfile can compare what’s on disk with what you reviewed.
  • Through a plugin marketplace: a Git repo with a .claude-plugin/marketplace.json. Pin versions and turn off auto-update for anything you haven’t re-reviewed.

Whichever you choose, treat a third-party skill like a dependency. A GitHub issue on Convex’s quickstart skills, opened October 26, 2026 and widely discussed in late November, reported that they sent the user’s app idea to a remote host (labelled “telemetry” in a comment) and piped remote scripts into bash. On November 28 the maintainer replied that the prompt only generates a custom quickstart and called the comment “unfortunate comment-slop.” Anthropic advises installing skills “only from trusted sources.” A skill is text the model treats as instructions, so a malicious one needs no exploit code.

Checklist: what I’d do this week

  • List the three instructions you paste into agent chats most often. Turn the most common one into a skill with a sharp description.
  • Move anything that must always happen (formatting, blocking edits to .github/, secret scanning) out of prompts and into hooks.
  • Audit your MCP servers. Replace any that only hold instructions with skills.
  • Open /plugin and disable the plugins in the “Not used recently” group. Each one costs context on every turn.
  • Pick one folder convention for skills and write it in the README, so Claude Code and Codex users on the team read the same files.
  • Before installing any third-party skill or plugin, read every script and hook it ships.

If you’re deciding how your team should structure agents, skills and internal tools, that’s the kind of architecture call I help with as a fractional CTO.

Questions

What is the difference between an Agent Skill and an MCP server?

A skill is a folder with a SKILL.md file of instructions, plus optional scripts and reference files, that the agent reads when a task matches its description. An MCP server is a running process or remote service that exposes tools and data over the Model Context Protocol. Skills carry know-how. MCP servers carry live capabilities such as authenticated API calls.

Do Agent Skills replace MCP?

No. They solve different problems and increasingly ship together. Since SEP-2640 reached Final, an MCP server can serve skills alongside its tools, and Claude Code supports this in public beta from v2.1.331. Use a skill for procedure and an MCP server for anything that needs credentials, state or a network call.

When do I need a Claude Code plugin instead of a skill?

When you want to ship several pieces as one versioned unit, for example two skills, a reviewer subagent, a hook and an MCP server. A single skill in .claude/skills/ works without a plugin. An installed plugin can run code with your user privileges, and auto-update can change its files after you reviewed them.

Do skills work outside Claude Code?

Yes. Agent Skills is an open format, and OpenAI Codex reads SKILL.md files from .agents/skills/ in the repo and in your home directory. The file format is the same, but each tool scans a different folder, so pick one convention before you commit skills to a repo.

What fields does a SKILL.md file need?

The open Agent Skills spec requires name and description in the YAML frontmatter. The name must be lowercase letters, digits and hyphens, at most 64 characters, and match the folder name. The description can be up to 1,024 characters and should say what the skill does and when to use it.

About the author

Software engineer and serial founder in Alexandria, Egypt, and CTO at Zaher.AI, a GEO and SEO agency serving MENA.

Console

Type help and press Enter.