Skip to main content

Crate talos_skill

Crate talos_skill 

Source
Expand description

SKILL.md parser and loader for Talos agent skills.

This crate discovers and parses SKILL.md files from configured search paths. Each skill consists of YAML frontmatter (between --- delimiters) followed by a Markdown body containing instructions.

§Discovery Paths

Skills are discovered from three locations (in priority order):

  1. .talos/skills/ — project-local skills
  2. ~/.talos/skills/ — user-global skills
  3. Parent directories up to git root — inherited skills

§SKILL.md Format

---
name: my-skill
description: A skill that does something useful
triggers:
  - keyword1
  - keyword2
---

# Instructions

Detailed markdown instructions go here...

Structs§

Skill
A fully parsed skill with frontmatter metadata and Markdown body.
SkillFrontmatter
YAML frontmatter extracted from a SKILL.md file.
SkillIndex
Lightweight skill index entry for Level 0 progressive disclosure.
SkillLoader
Discovers and loads skills from configured search paths.
SkillManager
Manages progressive disclosure of skills across three levels.

Enums§

SkillDisclosure
Disclosure level for progressive skill loading.
SkillError
Errors that can occur during skill loading.

Functions§

estimate_tokens
Estimates the token count for a given text.

Type Aliases§

Result
Result type alias for skill operations.