Skip to main content

validate_skill_metadata

Function validate_skill_metadata 

Source
pub fn validate_skill_metadata(skill: &Skill) -> Result<()>
Expand description

Validate a skill’s identity (name well-formed, description present) without requiring the on-disk directory to match the frontmatter name. Use this when reading skills from an upstream source whose layout we don’t control — e.g. when materialising a registry’s dynamic [[source]] entries against third-party repos. Vendors commonly use unprefixed directory names with brand-prefixed frontmatter names (e.g. skills/composition-patterns/ containing name: vercel-composition-patterns); that’s a legitimate convention and the registry’s archive flow already renames on the way out using the frontmatter name.