MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getSkillCommandName

Function getSkillCommandName

src/skills/loadSkillsDir.ts:536–543  ·  view source on GitHub ↗
(filePath: string, baseDir: string)

Source from the content-addressed store, hash-verified

534}
535
536function getSkillCommandName(filePath: string, baseDir: string): string {
537 const skillDirectory = dirname(filePath)
538 const parentOfSkillDir = dirname(skillDirectory)
539 const commandBaseName = basename(skillDirectory)
540
541 const namespace = buildNamespace(parentOfSkillDir, baseDir)
542 return namespace ? `${namespace}:${commandBaseName}` : commandBaseName
543}
544
545function getRegularCommandName(filePath: string, baseDir: string): string {
546 const fileName = basename(filePath)

Callers 1

getCommandNameFunction · 0.85

Calls 1

buildNamespaceFunction · 0.85

Tested by

no test coverage detected