Agent Skills cost about 100 tokens each until the model needs one. How SKILL.md, three-tier progressive disclosure and the description field really work, and where skills end and MCP begins.
Agent Skills are not a tool protocol and not a fancier system prompt: they are a context-loading discipline, and the whole design rests on one idea, progressive disclosure. A skill costs roughly a hundred tokens until the agent decides it needs it, which is why you can install forty of them without drowning the model, and why the one-line description field ends up doing more work than everything else in the folder.
Anthropic introduced Agent Skills in October 2025 and later published the format as an open specification at agentskills.io, so the same folder can, in principle, be picked up by any client that implements it. This post walks through what a skill actually is on disk, how the three loading tiers work, where skills sit next to MCP servers and system prompts, and the failure modes that show up once you have more than a handful.
A skill is a directory with one required file, SKILL.md. That file is YAML front matter followed by free-form Markdown instructions. Anything else in the directory is optional and conventionally grouped:
invoice-reconciliation/
├── SKILL.md # required: front matter + instructions
├── scripts/ # executable helpers the agent can run
│ └── match_lines.py
├── references/ # docs read only when needed
│ └── VENDOR_RULES.md
└── assets/ # templates, schemas, lookup tables
└── report_template.xlsx
The front matter is small and strictly validated. The specification defines these fields:
| Field | Required | Constraint | What it is for |
|---|---|---|---|
name | Yes | 1 to 64 chars, lowercase a-z, 0-9 and single hyphens, must match the directory name | Stable identifier |
description | Yes | 1 to 1024 chars | What the skill does and when to use it: the routing signal |
license | No | Short name or a bundled file | Distribution terms |
compatibility | No | Up to 500 chars | Environment needs (packages, network, intended product) |
metadata | No | String-to-string map | Client-specific extras such as author or version |
allowed-tools | No | Space-separated list, marked experimental | Tools pre-approved while the skill runs |
A minimal, valid file looks like this:
---
name: invoice-reconciliation
description: Reconciles supplier invoices against purchase orders and flags
mismatched quantities, prices and tax lines. Use when the user uploads
invoices or POs, asks why a payment total is off, or mentions three-way match.
---
# Invoice reconciliation
1. Run `scripts/match_lines.py <invoices.csv> <pos.csv>` and read its JSON output.
2. For any vendor listed in `references/VENDOR_RULES.md`, apply its rounding rule.
3. Fill `assets/report_template.xlsx`; never invent a PO number that is not in the input.
Because the header is plain YAML, the usual YAML traps apply: an unquoted colon inside the description, tabs for indentation, or a folded string that silently swallows a line. Running the file through a front matter parser before you ship it catches the boring breakages that make a client skip the skill without telling you.
The format only makes sense once you see when each part enters the context window. Both the spec and Anthropic's documentation describe three levels:
At startup the client reads the front matter of every installed skill and puts the name and description pairs into the system prompt. That is the only part of a skill the model sees until it decides to use one. The spec puts this at roughly 100 tokens per skill, so the math is friendly: 40 installed skills cost around 4,000 tokens of standing context. If the same 40 skills inlined a 3,000-token body each, you would burn 120,000 tokens before the user typed anything. You can check your own numbers with a token estimator on the concatenated descriptions.
When a request matches a description, the agent reads the full SKILL.md. In Anthropic's filesystem-based clients this is literally the model reading a file from disk with a shell command; other clients expose an explicit "activate skill" tool. Either way the body enters context only for the tasks that need it. The spec recommends keeping it under 5,000 tokens and 500 lines, and moving detail into separate files.
Files under references/ are read only when the body tells the agent to read them, so a 30-page vendor rulebook costs nothing on the runs that never touch that vendor. Scripts are the more interesting case: the agent executes them, and only their stdout comes back. A 400-line parsing script contributes perhaps 200 tokens of JSON output instead of 400 lines of source. That is both cheaper and more reliable, because deterministic code does the part that models are bad at (exact arithmetic, file format parsing) and the model handles judgment.
This is the same principle behind most of context engineering: the scarce resource is attention inside the window, so you load information at the moment it becomes relevant rather than up front.
Because Tier 1 is all the model sees, the description is effectively a routing rule written in natural language. A vague one fails quietly: the skill exists, the user asks for exactly what it does, and the model never opens it.
Compare:
Helps with invoices.Reconciles supplier invoices against purchase orders and flags mismatched quantities, prices and tax lines. Use when the user uploads invoices or POs, asks why a payment total is off, or mentions three-way match.The better version does three things. It states the capability in concrete verbs. It lists the trigger situations, including the phrases a user would actually type ("three-way match", "payment total is off"). And it names the input artifacts (invoices, POs), which the model can match against attachments in the conversation.
Two habits help once a library grows past a dozen skills:
pdf-forms skill and a pdf-extraction skill, each description should say what the other one handles ("For filling form fields use pdf-forms instead"). Overlapping descriptions are the most common cause of the wrong skill firing.This is the same discipline as designing tool schemas for LLM agents: the model chooses based on a short string you wrote, so that string deserves the most editing time.
Skills are often pitched as an alternative to MCP. They solve a different problem, and most serious setups use both.
| System prompt / rules file | Agent Skill | MCP server | |
|---|---|---|---|
| What it carries | Standing instructions | Procedural knowledge plus optional local scripts and files | Live capabilities: tools, resources, prompts over a protocol |
| When it costs context | Every turn, in full | ~100 tokens always, body only when matched | Tool definitions usually loaded up front; results per call |
| Where code runs | Nowhere | In the agent's own sandbox or shell | In a separate server process, local or remote |
| Auth and remote data | No | Not by itself | Yes: OAuth, API keys, per-user access |
| Distribution | Copy text | Copy or install a folder, version it in git | Install a package or point at a URL |
| Best for | Tone, hard constraints, project facts | "How we do X here" workflows, house formats, checklists | Talking to external systems: databases, SaaS APIs, search |
A useful mental split: MCP gives the agent new hands, a skill gives it a playbook for using the hands it already has. A skill can tell the agent which MCP tool to call, in which order, and how to interpret the result; it cannot by itself authenticate to Salesforce. If you are weighing protocols for agent-to-system and agent-to-agent communication, the MCP vs A2A comparison covers that layer; skills sit above both.
The one place they genuinely compete is context cost. A server that exposes 60 tools can cost thousands of tokens of definitions on every request, while 60 skills cost a few thousand tokens total until one fires. That is why some teams move rarely used, procedure-heavy capabilities out of MCP tool lists and into skills that call a small number of general tools.
The format is simple, so the problems are mostly operational:
SKILL.md points to GUIDE.md, which points to DETAILS.md. Models often read only part of a nested chain. The spec recommends keeping references one level deep from SKILL.md, and that advice holds up in practice.compatibility, and make scripts print a clear error instead of a stack trace.allowed-tools can narrow what a skill may do, but the spec marks it experimental and client support varies.Treat each skill as something with a contract you can test:
Anthropic's own skills repository is a good reference for the shape of real ones: short bodies, explicit "use when" clauses, and heavy lifting pushed into scripts.
Write the description first and edit it the most, because it is the only part the model reads before deciding. Keep SKILL.md short enough to read in one pass, push detail into one level of reference files, and push anything exact (parsing, arithmetic, format conversion) into scripts whose output, not source, enters context. Use MCP when the agent needs to reach an external system, and a skill when it needs to know how your team does the work.
Free, in your browser, no sign-up.
Using an agent? Add the Utilix tools to Claude Code over MCP (other editors):
One email when a new post goes up. No other mail; unsubscribe in one click.
We store your email only to send new posts. See the privacy policy.