Progressive disclosure
Updated 2026-10-23
Questions this answers
- My skill keeps getting longer. How much should go in the SKILL.md?
- How should I structure a SKILL.md file?
- I've installed a lot of skills. Does each one slow down every chat?
- Why doesn't my skill run when I expect it to?
- What are the reference files in a skill folder for?
- Why is my agent slow or expensive even on simple tasks?
The Fix
Progressive disclosure is how an AI agent loads a skill in stages: it reads only the parts the current task needs and leaves the rest of the folder unread. That's why you can install dozens of skills, each with pages of detail, without making every chat slower or more expensive.
A skill loads in three stages:
- Name and description. The agent keeps these in mind for every installed skill, at about 100 tokens each. It matches your request against the description to decide whether to open the skill.
- The SKILL.md body. The agent reads it only when the skill triggers. Anthropic suggests keeping it under 500 lines.
- Everything else in the folder. Reference files, examples, templates and scripts load only when the body points the agent to them for this task. A script runs without its code entering the context window; only its output does.
Our own brand skill shows the split. Its SKILL.md is 126 lines: the rules that apply to almost every task, then a table that maps each kind of task to one of 11 reference files, about 1,700 lines in all. Asked for a slide, the agent reads SKILL.md, the slides file and the voice file for the copy. The PDF rendering, proposal and web component files stay closed.
Four mistakes we see when teams write their first skills:
- A description that doesn't say when to use it. The agent never opens the skill, or opens a different one. Some apps won't upload a skill with no description at all. Say what it does and when, in the third person: "Drafts customer emails in our voice. Use when writing to a customer."
- All the source material in the body. For an email skill, start from a narrow set, like sent customer emails from one quarter, and leave out memos and press releases, which pull the voice in other directions. Pull out the patterns for the body and move long examples to a reference file.
- Assets with no rules for when to use them. A brand skill that lists the approved colors and layouts, but not which one fits which slide, gives a different deck every run. Those rules belong in the body.
- Too many skills installed. Every description sits in context all the time, and skills with similar descriptions compete for the same requests. Remove the ones you don't use, along with unused connectors.
When to Use It
Split a skill once its SKILL.md runs past a page or two, or covers situations that rarely come up together, like slides and PDFs, or finance and sales data. Keep the rules that apply to every run in SKILL.md and give each situation its own reference file. A skill that does one job in a few lines doesn't need splitting.
Two structure rules from Anthropic's guidance:
- Link every reference file directly from SKILL.md. If a reference links to another reference, the agent may only skim the second one.
- Name files by what's in them, like
slides.md, neverdoc2.md. The agent picks a file by its name and the line that points to it.
Then check that the split works. Give the agent three or four real tasks and watch which files it opens. A file it never reads is either badly signposted in the body or not needed. That's a small eval. Writing and structuring skills is part of our AI training for teams.
Best Practices
Anthropic: Skill authoring best practices
platform.claude.com
The 500-line guideline, one-level-deep references, and how to write a description the agent can match.
Anthropic: Agent Skills overview
platform.claude.com
The three loading levels and what each one costs in tokens.
Laxmena on skill design
internals.laxmena.com
Explains the frontmatter / body / references levels and why treating a SKILL.md as a loader spec cuts token cost.
Anthropic: Equipping agents for the real world with Agent Skills
anthropic.com
The primer on the SKILL.md format and how references are loaded on demand.