1:1 mentoring with Big Tech AI engineers

Skills vs Subagents vs MCP — A Decision Tree

Three extension points, one axis: is the new capability knowledge, isolated reasoning, or access to a system outside the session?

By AgenticPrep TeamUpdated 10 min read
Key idea

Pick by what the capability is. Knowledge or a procedure is a skill. Work that needs its own clean context window is a subagent. Access to a system outside the session is an MCP server. When the answer is “some of each”, split it: the parts belong in different places.

Ask what the capability is, not what you want it to do: three questions decide
ASK IN THIS ORDERTHE FIRST YES WINSDoes it reach a system outside the session?databases, APIs, ticket trackersMCP servertyped tools with their own authyesnoWould it flood the window or need a clean head?big searches, reviews, second opinionsSubagentfresh window, narrower toolsyesnoIs it how we do X here?a procedure, a convention, a checklistSkillSKILL.md, loaded when relevantyesnoCLAUDE.md or the prompta fact every session needs, always loadedKnowledge is a skill. Isolated reasoning is a subagent. Outside access is MCP.

Every Claude Code project hits the question: where does this new capability belong? A team’s commit convention, a reviewer for payment code, access to the issue tracker. They feel like one problem (“make Claude better at this”) but they have three different lifecycles. Put each in the right place and it lives in exactly one file.

What each one puts in the main window

What each one puts in the main window, before and after it is used
AT STARTWHEN USEDSkillname + descriptioncapped at 1,536 charactersSKILL.md body entersand stays for the sessionSubagentname + descriptionshort: the prompt loads laterwork stays in its window;only the summary returnsMCP servertool definitions, or namesonly, with tool searcheach tool resultwarns at 10,000 tokensAll three put something in the main window before they are used. Keep that part short.

The choice is mostly a context engineering decision. A skill costs a description until it is used. A subagent’s reading stays in its own window. An MCP server costs its tool definitions, which run to hundreds or low thousands of tokens per tool; Claude Code’s tool search, on by default, defers them until they are needed. Claude Code warns when custom subagent descriptions pass 15,000 tokens, and when one MCP tool result passes 10,000 (default cap 25,000).

Skills: a procedure that loads only when it is needed

---
name: commit
description: Write commit messages in this repo's convention. Use when committing.
disable-model-invocation: true
allowed-tools: Bash(git add *) Bash(git commit *) Bash(git status *)
---
Subject: imperative mood, at most 50 characters, no trailing period.
Body: what changed and why, wrapped at 72 characters.
Footer: BREAKING CHANGE: when a public API changes; Refs: #123 for issues.

.claude/skills/commit/SKILL.md. Committing has side effects, so disable-model-invocation: true keeps it behind /commit, as the Claude Code skills docs recommend; with it, not even the description is in context until you type the command. Drop that line and Claude loads the skill when its description matches.

Only the description sits in context until the skill runs; then the body enters as one message and stays. Skills are no longer a Claude Code feature: they follow the Agent Skills open standard, and Latent Space’s AI Engineer World’s Fair 2026 recap named “every agent platform is building around skills” as one of its five trends. The same SKILL.md works in the Agent SDK, the Skills API and other agents.

Subagents: a fresh window and a narrower toolset

---
name: payments-reviewer
description: Reviews changes under payments/ for security issues. Use after any edit there.
tools: Read, Grep, Glob
model: opus
skills: security-checklist
---
You review payment code for security defects only. Do not edit files.
Report each finding as file:line, severity, and a one-line fix.

.claude/agents/payments-reviewer.md. tools locks it to read-only; skills preloads the full checklist at startup.

A subagent is a separate model run with its own system prompt, tools, permissions and context window. Nothing from the main conversation leaks in unless the delegation passes it. That is what makes it right for reviews, deep searches and adversarial checks, and wrong for small tasks: it starts cold and its tokens count toward the same usage. The pattern behind it is hierarchical delegation.

MCP servers: typed access to systems outside the session

One MCP tool call on spec 2026-07-28: no handshake, no session
client
{"jsonrpc": "2.0", "id": 7, "method": "tools/call",
 "params": {"_meta": {
   "io.modelcontextprotocol/protocolVersion": "2026-07-28",
   "io.modelcontextprotocol/clientCapabilities": {"elicitation": {}}},
  "name": "create_issue",
  "arguments": {"repo": "acme/web", "title": "Login 500 on Safari"}}}
Every request carries its own version and capabilities. No initialize, no Mcp-Session-Id.
server
{"jsonrpc": "2.0", "id": 7, "result": {"resultType": "complete",
 "content": [{"type": "text", "text": "Created acme/web#4821"}],
 "isError": false}}
A failed upstream call comes back here with isError: true, so the model can correct itself.

An MCP server exposes tools (and resources and prompts) over one protocol, so every host can call it the same way. Since spec revision 2026-07-28 the protocol is stateless: no initialize handshake, no session id, and servers never send requests; a mid-call question for the user comes back inside the result. Add one to Claude Code with claude mcp add --transport http github https://api.githubcopilot.com/mcp/. The protocol is in MCP Architecture; Claude-side wiring in MCP with Claude.

Three requests, decided

RequestInstinctRight home
Review PRs touching payment codea checklist skill in the busy main contextSubagent: clean window, read-only tools, preloads the checklist
File and update GitHub issuesa skill that teaches curl against the APIMCP server: typed tools, auth and pagination handled once
Follow our commit conventiona commit-writer subagentSkill: the main model already has the diff

Each instinct works for a week. The skill-as-reviewer runs out of attention in a crowded window; the curl skill breaks when auth rotates; the commit subagent re-reads a diff the main model already has, at the price of a second run.

The overlap trap: two smells

Knowledge in a subagent prompt smell 1
  • the same “how we do X” lives in a skill and in a prompt
  • you update one and forget the other
  • Fix: one skill; the subagent preloads it with skills:
Access in a skill smell 2
  • endpoints, auth headers and retries in Markdown
  • every context that loads it sees the secret
  • Fix: an MCP server owns how; the skill says when

Smell test: a curl template with an auth header is an MCP server waiting to be written. A subagent prompt with pages of “how we do X” is a skill it should be reading.

How they combine: one support agent

One support agent, three layers: each piece small enough for its owner to change
Ticketarrives in ZendeskMain agentorchestrates, owns nothingZendesk MCPread, update statusDocs search MCPsame KB as humansStripe MCPaccount statebrand-tone skillvoice rulesreply-templates skillreset, refund, cancelReply senttemplate matchedescalation subagentfresh window: a brieffor the humanAccess lives in MCP, voice lives in skills, the hard judgement gets a clean window.

The main agent orchestrates but owns no capability. Access lives in MCP servers, so a new Stripe field is a server change. Voice lives in skills a support lead can edit. The escalation brief is written in a fresh window, so it is not coloured by the twenty password resets the main agent handled before it. When the escalation path needs a hard gate, that is a graph, not a prompt: see graph engineering.

Hooks, plugins and the Agent SDK

Hook
Your code, run on an event such as a tool call. The model cannot invoke it, so it is a guarantee, not a capability. See hooks in Claude Code.
Plugin
The packaging layer: one install that ships skills, subagents, hooks and MCP configs together. A way to distribute the three, not a fourth option.
Agent SDK
The same three in your own app: skills from the filesystem, subagents in agents, servers in mcp_servers.
from claude_agent_sdk import query, ClaudeAgentOptions, AgentDefinition

options = ClaudeAgentOptions(
    setting_sources=["user", "project"],        # loads .claude/skills/
    skills="all",
    mcp_servers={"github": {"type": "http",
                            "url": "https://api.githubcopilot.com/mcp/"}},
    agents={"payments-reviewer": AgentDefinition(
        description="Reviews payment code for security issues.",
        prompt="You review payment code for security defects only.",
        tools=["Read", "Grep", "Glob"], model="opus")},
    allowed_tools=["Read", "Grep", "Glob", "Agent", "mcp__github__*"],
)

async def main():
    async for message in query(prompt="Review the refund PR", options=options):
        print(message)

Python claude-agent-sdk; skills load only when setting_sources includes user or project. MCP tools are named mcp__<server>__<tool>. See Agent SDK patterns.

Common mistakes

A skill description that says what the skill is but not when to use it, so it never triggers. A subagent for a two-line task. An MCP server with forty tools nobody calls, loaded up front in a client without tool search. Teaching MCP’s old initialize handshake and session ids: the current spec has neither.

Interview angle

“When would you use MCP servers vs direct tool implementations?” leads straight here. Answer with the axis (knowledge, isolation, access), then the cost of each in the main window, then one split example. Mention that skills are now a cross-platform standard and MCP is stateless since 2026-07-28.

Check yourself
Your skill body contains a curl template with an Authorization header. What is wrong, and where does it go?

It is access disguised as knowledge: credentials, endpoints and error handling that will drift, visible in every context the skill loads into. Move the access into an MCP server (auth, retries and pagination handled once). Keep a short skill only for when and why to use those tools.

A teammate wants a commit-writer subagent. Why is a skill the better fit?

The main conversation already holds the diff; a subagent would start from nothing, re-read it and cost a second model run for two lines of text. The convention is knowledge, so it is a skill, and because committing has side effects, disable-model-invocation: true keeps it behind /commit.

Your security reviewer subagent and your main agent both need the same 40-line checklist. Where does it live?

In one skill. The subagent preloads it with skills: security-checklist in its frontmatter (the full body is injected at startup), and the main agent loads it on demand. Two copies drift; one skill does not.

Recap
  • Skill = knowledge or a procedure; only its description is loaded until it runs.
  • Subagent = a separate run with its own window and tools; only its summary returns.
  • MCP server = typed access to outside systems; on spec 2026-07-28 it is stateless.
  • Keep each capability in one place: subagents preload skills, skills point at MCP tools.
  • Hooks are guarantees and plugins are packaging; neither is a fourth option.

Next: MCP with Claude — wire a server into Claude Code, the Agent SDK and the Messages API.

  • skills
  • subagents
  • mcp
  • claude-code
  • agent-sdk
Share

Keep reading

All posts

Enjoyed this post? The full curriculum has 151 sections, system design problems, and AI-reviewed practice runs.

See the full guide