pub fn validate_skill(text: &str) -> Result<SkillMetadata, SkillValidationError>Expand description
Validate one SKILL.md document and return its typed metadata.
The YAML parser uses its strict resource and duplicate-key policy. The metadata fields and limits follow the Agent Skills specification; unknown fields outside the documented client extensions are rejected.