Expand description
Skill system: file-based capability extension.
Skills are markdown files in specific directories that can be loaded on-demand to extend the agent’s capabilities.
Structs§
- Skill
- A discovered skill with metadata.
- Skill
Param - A parameter declared in a skill’s frontmatter.
- Skill
Ref - A reference document within a skill’s
refs/directory. - Skill
Script - An executable script within a skill’s
scripts/directory. - Skill
Section - A named section within a skill’s body, delimited by
## Section Name.
Enums§
- Skill
Mode - Injection mode for a skill.
Functions§
- default_
skill_ index_ budget - Default byte budget for
skill_indexrendering. - discover_
skills - Discover skills in the given search paths.
- extract_
skill_ body - Extract the body of a SKILL.md file, stripping YAML frontmatter if present.
- parse_
skill_ meta - Parse YAML frontmatter (if present) from skill content.
- skill_
index - Render a compact “available skills” block for the system prompt.
- skill_
index_ with_ budget - Render
skill_indexconstrained tobyte_budgetbytes total. - skill_
reminder - Render the available-skills catalog as a
<system-reminder>block. - skills_
for_ injection - Select skills whose mode is
Always, plus anyTriggerskills whose triggers match the given goal text.