Skip to content
AgenticAIWiki
  1. Learn
  2. Part 11
  3. 58. Context engineering
  4. 58.7

Lesson 58.7 · 7 of 7 · 6 min read · Reviewed 24 Nov 2026

Skills and progressive disclosure

By the end, you can

  • Explain how skills use progressive disclosure to keep context small.
  • Decide when to package know-how as a skill rather than a prompt, a tool or retrieval.

AgentsAgent: A system where a model decides its own next steps, calling tools in a loop until the task is done. keep needing procedures: how your team writes a release note, fills in an expense form, reviews a contract, or builds a slide deck in the house style. Paste them all into the system promptSystem prompt: Instructions passed in the top-level system field that set the model’s role, rules and context for the whole conversation. and the context fills with text that’s irrelevant to most requests (58.1). Leave them out and the agent improvises. SkillsSkill: A folder of instructions, scripts and resources that an agent loads when relevant to a task. solve this with the same idea as just-in-time retrieval (58.2), applied to instructions.

What a skill is

release-notes/
  SKILL.md            name, description, then the instructions
  template.md         the house format
  scripts/
    changelog.py      gathers merged pull requests

SKILL.md starts with a short header:

---
name: release-notes
description: Write customer-facing release notes from merged pull requests,
  in our house format. Use when asked for release notes or a changelog.
---
1. Run scripts/changelog.py for the version range.
2. Group changes into New, Improved and Fixed.
3. Follow template.md. Lead with customer benefit, not internal names.

Progressive disclosure, in three levels

Level What the agent sees When Typical cost
1 Each skill’s name and description Always, in the system prompt Tens of tokens per skill
2 The body of SKILL.md When the agent decides the skill fits the task Hundreds to a few thousand tokens
3 Extra files and scripts Only if the instructions point to them Whatever is read; scripts can run without their code entering the context

With 40 skills, the agent carries 40 short descriptions, not 40 full manuals. The description works like a tool description (34.2): it must say what the skill does and when to use it, or the agent won’t pick it.

Skill, tool, retrieval or prompt?

You need the agent to… Use
Follow a procedure or house style A skill
Take an action in another system A tool (33), perhaps on an MCP server (35)
Know facts from documents Retrieval (21)
Behave this way on every request The system prompt (11.1)

Skills and tools combine well: a skill can tell the agent which tools to use, in what order, and how to check the result.

An open format

The skill format is an open specification. Several coding agents and assistant products read the same folders, so a team can keep one library of skills in a repository and use it across tools. Check which fields and script features each product supports.

Treat skills as code

  • Version them with the rest of the repository and review changes (72.1).
  • Test them. Keep a few evalEval: A repeatable test that measures how well an AI system performs on a set of cases with defined success criteria. tasks per skill and check the agent picks the skill and follows it (19).
  • Vet third-party skills. A skill can run scripts and steer the agent, so an untrusted skill is as risky as an untrusted MCPModel Context Protocol (MCP): An open protocol that standardises how AI applications connect to tools, data and prompts through servers. server (65.3).

Common mistakes

  • Vague descriptions. “Helps with documents” is never chosen correctly. Say what and when.
  • One giant skill. Split by task so each loads only what it needs.
  • Facts in skills. Prices and policies change. Put them where retrieval can find the current version, and let the skill say where to look.

Key points

  • A skill is a folder holding a SKILL.md file (a short name and description, then instructions) plus optional scripts, templates and reference files.
  • Progressive disclosure: the agent sees only each skill's name and description until a task needs it, then loads the instructions, then any extra files.
  • Skills package procedures (how to do things). Tools perform actions, and retrieval supplies facts.
  • The format is open and used by several agent products, so a skill written once can travel between them.
Hands-on labOn your own machine

Package a team procedure as a skill

Turn one procedure your team repeats into a skill folder whose description makes an agent pick it at the right time.

You will have: A skill folder with SKILL.md (name, description, steps), one supporting file, and three test prompts with the result of each.

Steps

  1. Pick a procedure you explain more than once a month, such as writing release notes or triaging a bug report.
  2. Create a folder with SKILL.md. Write a name and a description that says what the skill does and when to use it.
  3. Write the steps as short numbered instructions, and move long reference material into a separate file the steps point to.
  4. Write three test prompts: one that should use the skill, one that should not, and one borderline case.
  5. Run them in an agent that supports skills, or ask a colleague to judge from the description alone which prompts should load it, and fix the description until all three come out right.

Done when

  • SKILL.md has a description that names both what and when.
  • The long reference material lives in its own file, not in SKILL.md.
  • All three test prompts load, or skip, the skill as intended.

Docs: Agent Skills specification

Quick checkYour agent has 40 internal procedures, each about 3,000 tokens long. Pasting them all into the system prompt fills the context and confuses tool choice. What fits best?
How sure are you?
Pick an answer and how sure you are

Finished the chapter? Take the chapter check.