Skip to main content

validate_skill_content

Function validate_skill_content 

Source
pub fn validate_skill_content(
    content: &str,
    dir_name: Option<&str>,
) -> ValidationReport
Expand description

Validate a raw SKILL.md (frontmatter + body).

dir_name is the expected skill directory name; when supplied, a mismatch with the frontmatter name is flagged (matters for packaged .skill archives where the top-level folder must equal the skill name).