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

Function getCommandName

src/skills/loadSkillsDir.ts:554–559  ·  view source on GitHub ↗
(file: MarkdownFile)

Source from the content-addressed store, hash-verified

552}
553
554function getCommandName(file: MarkdownFile): string {
555 const isSkill = isSkillFile(file.filePath)
556 return isSkill
557 ? getSkillCommandName(file.filePath, file.baseDir)
558 : getRegularCommandName(file.filePath, file.baseDir)
559}
560
561/**
562 * Loads skills from legacy /commands/ directories.

Callers 3

REPLFunction · 0.50
onDoneFunction · 0.50

Calls 3

getSkillCommandNameFunction · 0.85
getRegularCommandNameFunction · 0.85
isSkillFileFunction · 0.70

Tested by

no test coverage detected