Skip to main content

load_skill_index

Function load_skill_index 

Source
pub fn load_skill_index(
    root: impl AsRef<Path>,
) -> Result<SkillIndex, SkillError>
Available on crate feature skills only.
Expand description

Loads a SkillIndex by discovering and parsing all instruction files under root.

Each file is read, parsed, and assigned a content-hash-based identifier. The resulting index is sorted by skill name and path.