Put client know-how in the wrong layer and the agent pays for it
MCP servers set what an agent can reach, skills how it works, sub-agents what it may touch; confuse them and you burn context and leak data.
In brief
- MCP decides which systems an agent can reach. Skills teach the agent to follow the client's process. Sub-agents move a task into its own context, with its own permissions.
- With skills, only the description sits in context up front; the body loads only when used. Long procedures therefore belong in a skill, not crammed into CLAUDE.md.
- Sub-agents are not cheap: Anthropic's multi-agent research system uses about 15 times the tokens of chat. Use them only when a side task would flood the main context or when a permission boundary is needed.
Three hours. That is how long the head of claims at a health insurer spends, in your second week on site, explaining how her team assesses a single claim.
First, check whether the policy is still in force. Then match the hospital invoices, look up the exclusion code table, and escalate to a senior reviewer if the claim exceeds a certain threshold.
You now have a notebook full of notes and an agent that needs to learn all of it. Before writing the first line of code, you have to answer one question: where should each piece of this knowledge live?
It sounds simple, but put things in the wrong place and the agent wastes context, becomes hard to change whenever the client alters a process, and may be able to read data it should never touch. A good FDE distinguishes between three containers: the MCP server, the agent skill and the sub-agent.
Three containers answer three different questions
MCP (Model Context Protocol) is an open standard for connecting AI applications to external systems such as data sources, tools and workflows. The official documentation likens MCP to a USB-C port for AI applications.
You write the connection once, and any application that supports the standard can plug into it. MCP answers the question: which systems can the agent reach?
In Anthropic’s definition, Agent Skills are organized folders of instructions, scripts and resources that an agent discovers and loads when it needs them. A skill answers the question: how does the agent do this work? Anthropic treats skills as a complement to MCP: MCP opens up access, while skills teach the agent more complex workflows.
A sub-agent is a specialized assistant. It runs in its own context window, with its own system prompt, its own set of tools and independent permissions. Sub-agents answer the third question: where should this work happen, and with what permissions?
Taking a claim apart
Go back to the notebook from that hypothetical insurer and sort it piece by piece.
The policy management system and the invoice store are the client’s infrastructure, so they belong in an MCP server, with tools such as looking up a policy by number or fetching invoices by claim ID. If the client later wants to move to a different agent or IDE, the connection can be reused.
The seven assessment steps, the exclusion code table and the payout formula are process knowledge, so they belong in a skill. The folder might look like this:
claims-assessment/
├── SKILL.md # the steps, escalation thresholds
├── exclusion-codes.md # long lookup table, read only when needed
└── calculate_payout.py # calculation script, so the model doesn't do mental math
The top of the SKILL.md file can be short:
---
name: claims-assessment
description: Use when assessing medical insurance claims, checking
policy validity, matching invoices and deciding on escalation.
---
1. Call the policy lookup tool; stop if the policy has lapsed.
2. ...
The line that matters most is the description. In Claude Code, only a skill’s description sits in context up front, so the agent knows which skills it has; the full content loads only when the skill is invoked. Anthropic calls this progressive disclosure (load only what is needed, when it is needed) and treats it as the core design principle of skills.
The last task is to scan several hundred scanned invoices for duplicates. This work is noisy: it dumps out large amounts of file content that the main agent will never read again, which makes it a good fit for a sub-agent:
---
name: invoice-reconciliation
description: Scan the invoice store for a claim and return a list of duplicate or unusual invoices.
tools: Read, Grep, Glob
---
Read only. Do not edit or delete files. Return results as a short table.
The tools field works as an allowlist, while disallowedTools serves as a denylist. With a client’s medical data, this is where you draw the permission boundary in configuration, instead of relying on the model’s self-discipline.
The two layers can be connected. When a skill declares context: fork, Claude Code starts a sub-agent of the type named in the agent field and uses the skill’s content as its prompt:
---
name: find-duplicate-invoices
description: Use when you need to scan all invoices for a claim to find duplicates.
context: fork
agent: invoice-reconciliation
---
Fetch the invoice list by claim ID, compare amounts and visit dates,
and return a table of suspected duplicate pairs.
How to find duplicate invoices is written in the skill, but execution happens inside a sub-agent that has only Read, Grep and Glob. When the client changes what counts as a duplicate, you edit the skill. When the security team wants tighter permissions, you edit the sub-agent. The two never collide.
Context is a budget to be spent carefully
This division follows from a practical fact: context costs money. The Claude Code documentation states that, unlike content in CLAUDE.md, a skill’s body loads only when used, so long reference material costs almost nothing until it is actually needed.
A ten-page exclusion code table placed in CLAUDE.md eats context on every turn of the conversation. Placed in a skill, it takes up room only while the agent is assessing a claim.
MCP has its own cost: loading the definitions of too many tools up front consumes context. Anthropic has experimented with having agents write code to call tools instead of loading every definition at the start, and in one example token usage fell from 150,000 to 2,000. An MCP server with fifty thin tools, each carrying a long description, is a liability.
Sub-agents are the most expensive option. Anthropic reports that its multi-agent research system uses about 15 times the tokens of ordinary chat, and that this kind of architecture is less suited to coding tasks with little room for parallelism.
That figure measures a whole multi-agent system, not a single sub-agent call, but the direction is clear: every separate context is another token bill to pay.
So use a sub-agent only when a side task would flood the main conversation with search results, logs or file contents that will never be read again, or when you need a permission boundary.
In what order should the work happen on site?
After the discovery session, do not open the editor straight away. Write down everything the client said as separate lines, then ask three questions of each line in turn: which system does it need to access, how does the work need to be done, and does it need its own space and permissions? Any line that does not get a “yes” to the third question is not a sub-agent by default.
Next, build an MCP server with few tools, each with a clear meaning, and keep process out of the tool descriptions. Only then write the skill. Put the most effort into the description line, because it is the only thing the agent sees when deciding whether to invoke the skill. Write it in the words the client’s users actually say, not in your own jargon.
Finally, use real questions from the client’s users to test whether the agent invokes the right skill and the right tool. When the client changes an approval threshold and you only have to edit one markdown file, that is a sign the packaging is right.
Four common mistakes
The most common mistake is stuffing the entire process into CLAUDE.md or the system prompt. The demo still runs, but every new procedure takes up more context on every turn, and by the third month no one dares touch the file.
The second mistake is writing business logic into the MCP server, for example wrapping a tool like “assess the entire claim” around dozens of if-else branches. The process is then locked inside server code that the business team can neither read nor change. Keep MCP thin and let skills carry the process.
The third mistake is splitting every task into a sub-agent to make the design look architectural. Every separate context adds tokens to pay for, and the client will see the bill before seeing the value. The fourth is the reverse: creating a sub-agent but letting it inherit every tool, which throws away its biggest benefit, the permission boundary.
How to put it on a CV so recruiters understand
The claims example above can become a concrete line on a CV.
Instead of “built an agent for an insurance company,” write something like: “Split the claims assessment process into a skill made up of SKILL.md, an exclusion code table and a payout calculation script; an MCP server that only reads policies and invoices; and a duplicate-invoice sub-agent granted only Read, Grep and Glob.”
That line shows the reader you know how to put process, connections and permissions in three different places, and why. If asked about it in an interview, go on to describe how the client changed an approval threshold and you only had to edit one file.
Models will change many times in the coming years. What stays with the client is how you organized their knowledge: processes anyone can read, connections that can be reused, and permissions written down in plain sight.
Was this article useful?
Thanks for the feedback!