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.
Architecture rules for progressive disclosure inside skill folders
- 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.
- 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.'
- 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.
- 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.
Related tasks in this category
See all in Cost, Token Footprint & Latency Rankings-
Compare AI skills by total dollar cost per verified completed task—including failed retries
A 'cheap' $0.04 skill that succeeds 50% of the time and burns 3 human-assisted retries costs far more than a $0.11 skill at 94% pass rate.
-
Trim bloated 4,000-token SKILL.md files down to lean instructions without losing accuracy
Stuffing basic Python tutorials and repetitive 'BE CAREFUL!' warnings into SKILL.md wastes context and dilutes real project rules.
-
Compare p50 and p95 wall-clock completion latency across interactive agent skills
Users abandon IDE and chat workflows when tail latency crosses 60 seconds. Compare turn count, tool serialization, and p95 speed.
-
Identify and eliminate runaway retry loops that burn $5+ on a single stuck agent run
When a linter or compiler error confuses an agent, bad skills edit-test-revert in circles for 40 turns until hitting max-token walls.
-
Evaluate high-volume background skill execution using Batch APIs, concurrency queues, and async workers
Backfilling 20,000 repo audits, ticket tags, or catalog extractions interactively wastes 50% Batch API discounts and hits RPM walls.
-
Forecast monthly LLM and tool-API spend before rolling agent skills out to 100+ seats
Estimate realistic monthly API spend across developer and ops teams using measured per-task token profiles, cache hit rates, and p95 retry tails.