MCPcopy Create free account
hub / github.com/codeaashu/claude-code / getRegularCommandName

Function getRegularCommandName

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

Source from the content-addressed store, hash-verified

543}
544
545function getRegularCommandName(filePath: string, baseDir: string): string {
546 const fileName = basename(filePath)
547 const fileDirectory = dirname(filePath)
548 const commandBaseName = fileName.replace(/\.md$/, '')
549
550 const namespace = buildNamespace(fileDirectory, baseDir)
551 return namespace ? `${namespace}:${commandBaseName}` : commandBaseName
552}
553
554function getCommandName(file: MarkdownFile): string {
555 const isSkill = isSkillFile(file.filePath)

Callers 1

getCommandNameFunction · 0.85

Calls 1

buildNamespaceFunction · 0.85

Tested by

no test coverage detected