Skip to main content

find_skill

Function find_skill 

Source
pub fn find_skill<'a>(
    skills: &'a [LoopSkill],
    name: &str,
) -> Option<&'a LoopSkill>
Expand description

Resolve one invocation name against a discovered set: exact, then case-insensitively, then the unqualified leaf of a dir:skill / plugin:skill name when exactly one skill owns that leaf. A leading / or $ sigil is stripped first, so the same resolver serves the slash command, the mention, and the skill tool — one name, one answer.