Agentic Pattern Libraryby Vikas Goyal
← All patterns
24

Skills / Progressive Disclosure

Also known as: agent skills, capability packs, on-demand instructions

Packaged instructions load only when relevant, keeping base context small.

TrackAgentic systems FamilyRuntime & interop Maturity Emerging ChangesContext
01

Problem

As an agent takes on more jobs, its system prompt grows with instructions for each one: how to build a spreadsheet, the house style for proposals, the steps for an expense report. Soon every request pays for thousands of tokens of instructions it doesn’t use, and the relevant ones get lost among the rest.

  • Agents need detailed, task-specific know-how to do work well.
  • Context spent on unused instructions costs money and dilutes attention.
  • Teams want to add capabilities without editing one giant prompt.
  • The agent must notice when a skill applies, or it won’t load it.
02

Solution

Package each capability as a skill: a folder with a short name and one-line description, a main instruction file, and optional scripts, templates or reference files. Only the names and descriptions sit in the agent’s base context. When a request matches a skill, the agent loads its instructions, then opens deeper files only if the task needs them. Skills are versioned and owned separately, so teams can add or improve one without touching the others.

03

Diagram

Request 1 · Always loaded26 one-line descriptions QBR deck file an expense security questionnaire … ~1,200 tokens 2 · On matchinstructions fileprocedure · rules 3 · If neededkey management ref other refs · closed scripts · templates match

Three levels of disclosure: a one-line description is always loaded, the instructions load on match, and the detailed files load only when needed.

04

When to use

Use it when

  • The agent handles many distinct kinds of tasks
  • Each task type has detailed procedures, templates or scripts
  • Different teams own different capabilities
  • Base prompt size has become a cost or quality problem

Avoid it when

  • The agent does one narrow job; put the instructions in the prompt
  • Skills would be so small that the indirection isn't worth it
  • Requests rarely make clear which skill applies
05

Trade-offs

Latency One extra file read when a skill is used
Cost Base context stays small on every request
Complexity Folder convention, descriptions and versioning
Reliability Focused instructions; depends on good descriptions

Gains

  • Small base context no matter how many capabilities exist
  • Capabilities added or updated independently
  • Detailed know-how available exactly when it's needed

Costs

  • Weak descriptions mean skills don't get loaded when they should
  • Overlapping skills can conflict
  • Another artifact type to version, test and own
06

Worked example

Scenario
A company's internal assistant has 26 skills, from "quarterly business review deck" to "file an expense" to "security questionnaire".
  1. Base contextHolds 26 one-line descriptions, about 1,200 tokens in total, instead of roughly 60,000 tokens of full instructions.
  2. User“Draft answers for this vendor security questionnaire.”
  3. AgentMatches the description for the security questionnaire skill and loads its instructions: a 2-page procedure with answer rules and approval steps.
  4. AgentQuestion 14 asks about encryption key rotation, so it opens the skill’s reference file on key management. Other reference files stay closed.
  5. Skill ownerThe security team updates the skill after a policy change. Version 3 goes live for everyone the same day, with no change to the agent’s prompt.
07

Failure modes

FailureSymptomMitigation
Skill not triggeredAgent improvises instead of using the right skillWrite descriptions in users' words; test triggering with sample requests
Wrong skill triggeredSimilar skills confusedDistinct descriptions; merge overlapping skills
Skill sprawlHundreds of stale, unowned skillsOwners, usage metrics and retirement of unused skills
Stale instructionsSkill encodes an outdated policy or templateReview dates and owners; evals per skill