API Reference
SkillResource
Defined in: skills/skills.types.ts:38
A bundled reference the model can pull in on demand — the third level of progressive disclosure, below Skill.instructions.
Remarks
A skill's description is advertised when the
skill is disclosed (cheap), but the content is produced by
load only when the model calls the skill_resource
tool — so a skill can carry a large reference doc, dataset, or form template
that never enters context, or even gets read, unless it is actually used.
See
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
description | string | One-line summary, advertised alongside the skill's instructions so the model can decide whether this resource is worth loading. Always cheap. | skills/skills.types.ts:43 |
load | () => string | Promise<string> | Produce the resource's content. Called ONLY when the resource is loaded via the skill_resource tool — defer the expensive read (file, dataset, network) to here so it costs nothing until accessed. Async so a load can fetch. | skills/skills.types.ts:49 |