MCPcopy
hub / github.com/cli/cli / InstallName

Method InstallName

internal/skills/discovery/discovery.go:80–85  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

78// otherwise it returns the plain name. Callers should use filepath.FromSlash
79// when building OS-specific paths from this value.
80func (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/.

Callers 5

updateRunFunction · 0.80
selectSkillFunction · 0.80
InstallFunction · 0.80
InstallLocalFunction · 0.80
TestInstallNameFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestInstallNameFunction · 0.64