pub fn validate_skill_name(name: &str) -> Result<(), SkillError>Available on crate feature
skills only.Expand description
Checks that name is a valid skill identifier.
The specification allows 1–64 characters of lowercase letters, digits, and hyphens. A name may not begin or end with a hyphen.
This is also the path-safety boundary: because a name becomes a filename, rejecting everything
outside [a-z0-9-] is what prevents a caller from escaping the skills directory with .. or a
path separator.
§Errors
Returns SkillError::Validation naming the specific rule that failed.
§Example
use adk_skill::validate_skill_name;
assert!(validate_skill_name("disk-triage").is_ok());
assert!(validate_skill_name("../escape").is_err());