MCPcopy Create free account
hub / github.com/Noumena-Network/code / getSkillCommandName

Function getSkillCommandName

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

Source from the content-addressed store, hash-verified

540}
541
542function getSkillCommandName(filePath: string, baseDir: string): string {
543 const skillDirectory = dirname(filePath)
544 const parentOfSkillDir = dirname(skillDirectory)
545 const commandBaseName = basename(skillDirectory)
546
547 const namespace = buildNamespace(parentOfSkillDir, baseDir)
548 return namespace ? `${namespace}:${commandBaseName}` : commandBaseName
549}
550
551function getRegularCommandName(filePath: string, baseDir: string): string {
552 const fileName = basename(filePath)

Callers 1

getCommandNameFunction · 0.85

Calls 1

buildNamespaceFunction · 0.70

Tested by

no test coverage detected