Progressive disclosure means showing the model a cheap summary first and loading detail only once the task justifies it. For agent skills, discovery costs only a name and description; the full SKILL.md, and then any references or scripts, enter context later.1

flowchart TD
    accTitle: Skill discovery and loading
    accDescr: Claude sees only skill names and descriptions, matches the request against them, loads the chosen SKILL.md, and then reads a reference or runs a script only if the task needs one.
    B[Names and descriptions] --> M{Request matches?}
    M -->|No| N[Continue without the skill]
    M -->|Yes| S[Load SKILL.md]
    S --> R{More needed?}
    R -->|Detail| D[Read one reference file]
    R -->|Operation| X[Run a provided script]
    R -->|No| W[Follow the core workflow]

Each step down the chart costs more context, and each is taken only when the step above says so.

Applying it to a skill

  • Keep the essential workflow in SKILL.md; the course recommends under 500 lines.1
  • Move conditional detail to references/, scripts/, or assets/, and say in SKILL.md when to read or run each.1
  • Prefer scripts for operations: Claude runs a tested script and only its output enters context, not its source.1

Footnotes

  1. Introduction to Claude Code Agent Skills (study guide) 2 3 4