Skip to main content

parse_skill_metadata

Function parse_skill_metadata 

Source
pub fn parse_skill_metadata(source: &str, path: &Path) -> Result<SkillMetadata>
Expand description

Reads the name and description of a skill from its YAML frontmatter.

Only top-level keys are read, so a nested metadata map cannot shadow them. Values may be plain, quoted, or block scalars. An unquoted colon is kept as part of the value instead of failing, because skills written for other clients frequently contain them.