Skip to content

Test progressive on-demand reference loading vs monolithic skill files on domain knowledge

Compare skills splitting dialect guides (AWS, GCP, Azure; BigQuery, Snowflake, Postgres) into separate reference files loaded only on demand.

Copy the prompt and paste it into the AI assistant you already use.

Architecture rules for progressive disclosure inside skill folders

  1. 01

    Keep reference links strictly one hop from SKILL.md

    When SKILL.md links to A.md which links to B.md which links to C.md, agents stop following hops partway and miss critical rules.

  2. 02

    Make routing conditions unambiguous in SKILL.md

    Write 'If warehouse == BigQuery, read references/bigquery.md BEFORE writing SQL' rather than vague 'see docs if helpful.'

  3. 03

    Add top-of-file tables of contents to files >150 lines

    Structured headings let agents read or grep the exact relevant section instead of ingesting 2,000 lines of unrelated API endpoints.

  4. 04

    Verify models don't eagerly preload every reference file

    Badly phrased index lists cause anxious models to read all 8 reference files on turn 1—erasing progressive token savings.

Questions and answers

Do models reliably read linked reference files when instructed?

On frontier models (Claude Sonnet/Opus, GPT-4.1/o-series, Gemini 2.5), explicit conditional 'READ references/x.md when...' triggers hit >96% compliance.

Why avoid nesting reference files two or three directories deep?

Benchmarks show a sharp drop in retrieval past 1 hop—agents skim or assume contents when forced to chase multi-file breadcrumb chains.

When is keeping rules inline in SKILL.md still better?

Universal invariants that apply to 100% of runs belong inline in SKILL.md to save an extra read_file tool round-trip.