Skip to main content

is_valid_skill_name

Function is_valid_skill_name 

Source
pub fn is_valid_skill_name(name: &str) -> bool
Expand description

Validate that a skill name contains only safe identifier characters.

Skill names are interpolated into XML-like <skill-instruction source="…"> attributes. Restricting the character set at load time means injection is blocked at the source rather than relying solely on escaping at emit time.