Skip to main content

Module skills

Module skills 

Source
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.
SkillParam
A parameter declared in a skill’s frontmatter.
SkillRef
A reference document within a skill’s refs/ directory.
SkillScript
An executable script within a skill’s scripts/ directory.
SkillSection
A named section within a skill’s body, delimited by ## Section Name.

Enums§

SkillMode
Injection mode for a skill.

Functions§

default_skill_index_budget
Default byte budget for skill_index rendering.
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_index constrained to byte_budget bytes total.
skill_reminder
Render the available-skills catalog as a <system-reminder> block.
skills_for_injection
Select skills whose mode is Always, plus any Trigger skills whose triggers match the given goal text.