Progressive Disclosure Architecture
Keep the entrypoint small and load branch-specific material only when needed.
These examples and illustrative results are independently authored teaching materials, not measured model results.
Use case
A cloud-deploy skill supports AWS and Azure, but the current request specifies read-only AWS preparation. Its teaching directory contains SKILL.md, references/aws.md and references/azure.md. AWS material checks region and role; Azure material covers subscription and resource group. Loading both full branches is unnecessary for this selection.
Mechanism
Keep shared objectives, action boundaries and completion conditions in the entrypoint, then give each branch a precise read trigger. For known AWS, read its guide and prepare the required inputs. Resolve the provider only when unknown. Paths are relative to the skill root. Report a missing selected guide rather than substituting another provider’s instructions.
Bad example
For the AWS preparation request above, load every AWS and Azure document first, then choose plausible steps. Shared authorization rules may live only in one reference file.
Good example
Keep shared entrypoint rules: prepare only, do not submit; completion is a candidate configuration and missing-input list. The selected provider is AWS. Read references/aws.md relative to the skill root and inspect region/role requirements. Read references/azure.md only for Azure tasks. Resolve an unknown provider first. Report a missing selected guide without inventing platform steps.
Why the change matters
A clear trigger connects loading to the actual task and limits unrelated operational guidance. Shared boundaries remain visible regardless of branch. Reading is still an action: a pointer’s existence does not establish that the file was read.
Observable expectation
An illustrative trace shows AWS selected, aws.md read, region/role availability reported and a preparation plan delivered without submission; azure.md is not read because Azure was not selected.
Compare actual reads with branch selection and preserve missing-file states. Azure-only requirements in an AWS flow or completion without reading need inspection.
Limits
Loading still consumes context and depends on the host. Source word/line budgets or savings percentages are not measurements for this method, and context is not unlimited. Keep key references reachable from the entrypoint instead of hiding rules behind multiple unread layers.
Sources and evidence
- anthropics/skills · Progressive Disclosure
File at this version8a1541c4a3ff - ComposioHQ/awesome-claude-skills · Bundled Resources / Progressive Disclosure
File at this versionbe2a406907db - ComposioHQ/awesome-claude-skills · How to use this skill
File at this versionbe2a406907db - affaan-m/ECC · Trigger-Table Lazy Loading
File at this versionef648e01899b - obra/superpowers · Platform adaptation
File at this version8ca22dba9a94 - obra/superpowers · Progressive disclosure / shallow references
File at this version8ca22dba9a94 - addyosmani/agent-skills · load only the applicable hardening section
File at this version9d0c60d406b4 - mattpocock/skills · Sequence Cut
File at this versiond81f3a183412 - mattpocock/skills · Branch-complete context pointers
File at this versiond81f3a183412