Expand description
Skills: named instruction bundles — the SKILL.md idiom —
discovered from MCP servers as prompts (prompts/list = catalogue,
prompts/get = body) or resources (skill://<name> URIs or
mimeType: text/x-skill+markdown), referenced as @skill:<name> in the
instruction, a step, or a chat message, and preloaded into the calling
context (progressive disclosure: the catalogue is always visible, a body
only when referenced or skills.loaded). Bodies are cached by hash, never
stored; the loaded set [{name, hash}] is part of the context record.
Structs§
- Catalogue
- The catalogue + body cache.
- Skill
Body - A loaded skill body (cached by hash).
- Skill
Meta - A catalogue entry (no body).
- Skill
Source Ref - Where a skill comes from.
Enums§
- Discover
- How to discover on one source (
skills.sources[].discover). - Skill
Source Kind
Constants§
- DEFAULT_
PREFIX - The default reference prefix (
skills.reference_prefix). - SKILL_
MIME - The mime type that marks a resource as a skill.
- SKILL_
SCHEME - The URI scheme skills-as-resources use.
Traits§
- Skill
Server - The MCP surface skill discovery needs — implemented for the MCP client and by test fakes.
Functions§
- find_
references @skill:<name>references intext— a name is[A-Za-z0-9_.:-]+(trailing punctuation stripped), deduplicated in order of appearance.- prompt_
messages_ text - A
prompts/getresult’s text: the concatenated text parts of its messages. - render_
bodies - Render the loaded skill bodies as one system block.