InstallName returns the relative path used for the install directory. For namespaced skills it returns "namespace/name" (creating a nested directory), otherwise it returns the plain name. Callers should use filepath.FromSlash when building OS-specific paths from this value.
()
| 78 | // otherwise it returns the plain name. Callers should use filepath.FromSlash |
| 79 | // when building OS-specific paths from this value. |
| 80 | func (s Skill) InstallName() string { |
| 81 | if s.Namespace != "" { |
| 82 | return s.Namespace + "/" + s.Name |
| 83 | } |
| 84 | return s.Name |
| 85 | } |
| 86 | |
| 87 | // IsHiddenDirConvention returns true if the skill was discovered in a hidden |
| 88 | // (dot-prefixed) directory such as .claude/skills/ or .agents/skills/. |
no outgoing calls