Suggested Title

Agent Skills and Progressive Disclosure: How Mega-Prompts Died

Body

You know the pattern. You build an agent. It needs to handle customer support, billing, refunds, and onboarding. So you stuff every workflow, every policy, every edge case into one giant system prompt. 50,000 tokens before the user says a word. 95% of it irrelevant to any given conversation.

That approach is dying. The replacement is progressive disclosure, and it comes wrapped in a format called Agent Skills.

What Progressive Disclosure Actually Means

Progressive disclosure is an old design idea. The Nielsen Norman Group formalized it for user interfaces decades ago. The principle: show only what someone needs right now. Advanced options hide behind clicks. Rarely-used features sit in secondary menus. The goal is reducing cognitive load.

The same logic applies to AI agents. The context window is the agent's cognitive space. Overload it and performance degrades. Research on "lost-in-the-middle" effects shows that models reliably miss information buried in long contexts. The more irrelevant context surrounds the relevant pieces, the worse retrieval gets.

Progressive disclosure fixes this by organizing information into layers. The agent loads what it needs when it needs it. Nothing more.

The Three-Level Hierarchy

The Agent Skills format, released by Anthropic as an open standard on December 18, 2025, implements progressive disclosure in three explicit tiers.

Level 1: Metadata. At startup, the platform reads only the skill's name and a one-line description from the YAML frontmatter. Aurimas Griciunas of SwirlAI measured this across Anthropic's 17 official skills. The median discovery cost is roughly 80 tokens per skill. The range runs from 55 tokens (webapp-testing) to 235 tokens (xlsx). All 17 skills together cost about 1,700 tokens. That means an agent can maintain awareness of dozens of skills for less context than a single activated skill consumes.

Level 2: Instructions. When the platform determines a skill is relevant to the current task, it loads the full SKILL.md markdown body. Token counts here range from roughly 275 (internal-comms) to 8,000 (skill-creator), with a median around 2,000. Best practice keeps the body under 5,000 tokens. The platform makes the relevance decision using LLM reasoning over the descriptions from the discovery layer.

Level 3: Resources. During execution, the agent pulls in supporting materials on demand. Scripts, reference documentation, templates, and configuration files enter context only when the agent reaches a step that requires them. These resources can be substantial. A single skill directory might contain dozens of supporting files. None of them load until they are needed.

The Token Savings Are Real

The numbers tell the story. Supreeth Ravi laid out the math clearly in his analysis of the specification.

Without progressive disclosure, 50 skills loaded upfront at roughly 2,000 tokens each burns 100,000 tokens before any work begins. With progressive disclosure, the same 50 skills cost 5,000 tokens for metadata plus 2,000 tokens when one skill activates. Total: 7,000 tokens. That is a 93% reduction with identical capabilities.

Matthew Kruczek benchmarked progressive disclosure for MCP servers and found 85-100x token reductions while maintaining or improving tool selection accuracy. His benchmark of a typical enterprise setup with 400 tools showed over 400,000 tokens just for tool schema definitions. Claude's context window maxes out at 200,000 tokens. The math does not work without progressive disclosure.

Anthropic's own internal testing reinforced this. When they implemented lazy tool loading for Claude, Opus 4 improved from 49% to 74% accuracy on tool selection benchmarks. Opus 4.5 jumped from 79.5% to 88.1%. Better accuracy came not from a better model but from showing the model fewer, more relevant tools.

Who Adopted It

The adoption happened fast.

  • Anthropic launched Agent Skills in public beta on October 16, 2025. Released the specification as an open standard on December 18.
  • OpenAI adopted Skills in Codex six days later, on December 24, explicitly stating it builds on Anthropic's open specification.
  • Microsoft integrated Agent Skills into VS Code Copilot and released an Agent Skills SDK for custom agent frameworks in March 2026.
  • GitHub announced Copilot support shortly after the open standard release.
  • LangChain built progressive disclosure into its Deep Agents SDK, released into beta in April 2026. The documentation includes a tutorial on building a SQL assistant with on-demand skills.
  • Cursor, Gemini CLI, Goose, and Amp all adopted the standard format.

The common thread: every platform that adopted the specification implements the same three-level loading pattern. The SKILL.md file is the contract. The platform implements the interface.

Simon Willison, developer advocate and early adopter, called Agent Skills "maybe a bigger deal than MCP."

How a Skill File Works

A skill is a directory containing a SKILL.md file. The file has two parts: YAML frontmatter (metadata) and a Markdown body (instructions).

Here is Anthropic's PDF skill as an example:

pdf/
├── SKILL.md
├── reference.md
├── forms.md
└── scripts/
    ├── check_bounding_boxes.py
    ├── check_fillable_fields.py
    ├── convert_pdf_to_images.py
    └── ... (5 more scripts)

The SKILL.md file contains the metadata and core instructions. The YAML frontmatter looks like this:

name: pdf
description: Use this skill whenever the user wants to do anything
  with PDF files.

That is Level 1. About 80 tokens. The agent now knows this skill exists and when to use it.

The Markdown body contains the procedural instructions. "Quick Start" guides, workflow steps, and pointers to deeper resources. That is Level 2. A few thousand tokens.

The reference documents and scripts are Level 3. They only load when the agent hits a step that needs them. The PDF skill's forms.md contains detailed instructions for filling PDF forms. The eight Python scripts handle specific tasks like checking bounding boxes and converting PDFs to images. None of this enters context until the agent calls for it.

Why This Kills Mega-Prompts

The old approach had three bad options.

Option one: stuff everything into the system prompt. One agent, one massive prompt, every workflow documented in advance. The cost is enormous. A 58-tool setup burns 55,000 tokens of JSON schema definitions before the model starts reasoning. Add system prompts, workflow instructions, conversation history, and retrieved documents on top. The context window fills with noise.

Option two: build separate agents for each use case. A code review agent, a billing agent, a refund agent. The maintenance burden multiplies. Code gets duplicated. Learning does not transfer between agents.

Option three: let the model figure it out. No procedural knowledge, just hope. Results are unpredictable. Compliance becomes a nightmare.

Agent Skills with progressive disclosure replaces all three. One agent, many skills, loaded on demand. The token cost at idle drops to near-zero. A 58-tool setup that previously consumed 55,000 tokens of overhead now costs roughly 4,500 tokens for metadata alone. The other 50,000+ tokens stay on disk until needed.

The Broader Pattern

Progressive disclosure is not just about Agent Skills. It is a system design pattern. The same principle applies anywhere you need broad capability with focused execution.

Customer support agents that know 200 product features but only discuss two per conversation. Internal operations agents managing dozens of workflows. Research agents navigating large knowledge bases. In every case, the pattern is the same: discover what is available, activate what is relevant, load resources on demand.

Klavis AI's Strata server extends the pattern into a four-stage funnel for MCP servers. Speakeasy's Gram implementation uses embeddings-based semantic search over tool descriptions. Open-source projects like lazy-mcp and OpenMCP organize tools into navigable tree structures. All of these implement the same core idea: defer loading until needed.

What You Need to Build

If you use Claude Code, Codex, or Cursor, progressive disclosure is already implemented. The platform handles the loading logic.

If you are building your own agents with LangChain, CrewAI, or another framework, you need to implement the interface yourself. The SKILL.md contract gives you the structure. The loading logic is your job.

The key components:

  • Skill discovery. Recursively find all SKILL.md files in your skill directories.
  • Metadata parsing. Extract YAML frontmatter and build a catalog for the system prompt.
  • Activation logic. Use the LLM's reasoning over skill descriptions to determine which skill to load.
  • On-demand resource loading. Let the agent pull in reference docs and scripts during execution.
  • Context management. Decide when to cache, when to evict, and when to reload.

Microsoft's Agent Skills SDK provides a ready-made implementation. The SDK separates where skills come from (providers) from how agents use them (integrations). You can load skills from the filesystem, HTTP servers, or custom databases. The progressive disclosure pipeline generates a skills catalog for the system prompt and exposes tools for on-demand content retrieval.

Where This Goes Next

The trend is clear. Mega-prompts are being replaced by modular, loadable skill packages. The three-level hierarchy (metadata, instructions, resources) is becoming the standard pattern across every major platform.

The open question is implementation. The specification defines the file format. It does not define the runtime. Discovery logic, caching strategies, context eviction policies, and cross-skill coordination are all implementation details left to builders.

That gap is where the real engineering work happens. The format is solved. The loading interface is not.

Citations

Word Count

1,335

Fact-Check Notes

  • The 58-tool/55K-token figure: This comes from the task brief context. I did not find a single published source that documents this exact combination. The Speakeasy benchmarks (via Kruczek) show 40 tools = 43,300 tokens, which implies 58 tools would be approximately 63,000 tokens. The 55K figure is plausible for a well-documented 58-tool setup with shorter descriptions. Flag for Brian to verify against his source.
  • "SkillsMP indexes over 400,000 skills": This comes from the SwirlAI newsletter. I could not independently verify SkillsMP's current index size. The figure is from a published source but should be confirmed.
  • "OpenClaw passed 175K GitHub stars in under two weeks": This comes from the SwirlAI newsletter. I could not verify this independently. It is a remarkable claim that needs confirmation.
  • "Simon Willison called it 'maybe a bigger deal than MCP'": This quote appears in the Supreeth Ravi substack. I did not find the original source from Willison. This should be verified.
  • Anthropic internal testing numbers (Opus 4: 49% to 74%, Opus 4.5: 79.5% to 88.1%): These come from the Kruczek benchmark article. I did not find Anthropic's original published source. These numbers should be verified.
  • The dates for OpenAI Codex adoption (December 24, 2025) come from the Supreeth Ravi substack. Verify against OpenAI's official announcements.
  • LangChain Deep Agents beta release date (April 2026) comes from a MEXC news article. Verify against LangChain's official blog.