← Back to blog
A long row of translucent glass folders with glowing violet tabs, one opened to reveal violet sheets and a glowing cube as a robotic hand reaches toward it.
AI Agents·November 19, 2026·11 min read

Agent Skills Explained: How SKILL.md and Progressive Disclosure Actually Work

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.

What a skill is on disk

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:

FieldRequiredConstraintWhat it is for
nameYes1 to 64 chars, lowercase a-z, 0-9 and single hyphens, must match the directory nameStable identifier
descriptionYes1 to 1024 charsWhat the skill does and when to use it: the routing signal
licenseNoShort name or a bundled fileDistribution terms
compatibilityNoUp to 500 charsEnvironment needs (packages, network, intended product)
metadataNoString-to-string mapClient-specific extras such as author or version
allowed-toolsNoSpace-separated list, marked experimentalTools 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.

Progressive disclosure: the three tiers

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:

When each part of a skill enters the context window Tier 1: name + description of every skill Loaded at startup, always present Tier 2: SKILL.md body of the matched skill Read only when a task matches its description Steps, rules, examples, pointers to files Tier 3: references/, scripts/, assets/ Docs are read only when the body points to them Scripts are executed: only their output enters context description matches the task body references a file or script Typical cost about 100 tokens per skill x every installed skill under 5,000 tokens (recommended ceiling) zero until touched then only what is read

Tier 1: metadata, always loaded

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.

Tier 2: the body, loaded on activation

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.

Tier 3: resources and scripts, loaded as needed

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.

The description is the router

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:

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:

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 vs MCP servers vs system prompts

Skills are often pitched as an alternative to MCP. They solve a different problem, and most serious setups use both.

System prompt / rules fileAgent SkillMCP server
What it carriesStanding instructionsProcedural knowledge plus optional local scripts and filesLive capabilities: tools, resources, prompts over a protocol
When it costs contextEvery turn, in full~100 tokens always, body only when matchedTool definitions usually loaded up front; results per call
Where code runsNowhereIn the agent's own sandbox or shellIn a separate server process, local or remote
Auth and remote dataNoNot by itselfYes: OAuth, API keys, per-user access
DistributionCopy textCopy or install a folder, version it in gitInstall a package or point at a URL
Best forTone, hard constraints, project facts"How we do X here" workflows, house formats, checklistsTalking 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.

Failure modes once you have many skills

The format is simple, so the problems are mostly operational:

Testing a skill like any other component

Treat each skill as something with a contract you can test:

  1. Trigger set. Write 10 to 20 requests that should activate it and 10 that should not, including near-misses that belong to a neighboring skill. Run them and count activations. This measures the description, which is the part most likely to be wrong.
  2. With vs without. Run the same tasks with the skill disabled. If output quality does not change, the skill is dead weight in Tier 1.
  3. Script contract. Unit test the scripts directly. They are ordinary code and should not need a model to verify.
  4. Version it. Keep skills in git next to the code they describe, so a change to the house format and the skill that enforces it land in the same review.

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.

Takeaway

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.

#agent-skills#progressive-disclosure#context-engineering#mcp#claude
ShareXLinkedInHacker News

Try it

Free, in your browser, no sign-up.

Using an agent? Add the Utilix tools to Claude Code over MCP (other editors):

claude mcp add utilix -- npx -y @utilix-tech/mcp

New posts by email

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.

Related reading

AI Agents
MCP vs. A2A: Why Two "Agent Protocols" Solve Completely Different Problems
AI Agents
Context Engineering: What Changed When Prompt Engineering Outgrew the Prompt
AI Agents
Most Tool-Calling Failures Are Schema Failures, Not Model Failures