Skip to main content

skill_body_name

Function skill_body_name 

Source
pub fn skill_body_name(text: &str) -> Option<&str>
Expand description

The skill a body’s own frame names, off its first line’s directory.

The CLI injects a skill’s body as a user row whose first line names the skill’s directory and whose remainder is the skill’s markdown. The name is the path’s last segment that is not a version, so a plugin-cached skill (.../ui-ux-pro-max/2.13.0) is named as its directory names it - the same reading the web client’s fold makes (skillBody in its units.ts).